Posts

Showing posts from September, 2015

oop - Why does Wikipedia say "Polymorphism is not the same as method overloading or method overriding." -

I've looked around and I could not find any similar questions. Here is the paragraph I: The polymorphism method is not similar to overloading or law override. Polymorphism is related to the application of specific implementations only for one interface or more general base class. The method overloading refers to those who have the same name but have different signatures within the same class. The method is overwritten, where a subclass replaces one or more of the methods of the implementation of its parent methods, there is no overload of the method of polymorphism and the method is not overwritten. Can anyone here explain this more clearly, especially "is not equal to imposing the method of polymorphism"? I am confused now. Thanks in advance. Polyomorphism (very easily stated) is likely to use a derivative class where the base orbit Is expected: class base {} class derived base {} base v = new received (); // oak On the other hand, the method override,...

ms access - printing a record -

I am using this code to print a record from the form Private sub Bitianpratirekordklik () on error GoTo Err_btnPrintRecord_Click DoCmd.DoMenuItem acFormBar, acEditMenu, 8 ,, acMenuVer70 DoCmd.PrintOut acSelection Exit_btnPrintRecord_Click: Exit sub Err_btnPrintRecord_Click: MsgBox Err.Description resume Exit_btnPrintRecord_Click End sub However, this code is not automatically printing printer to select printer, it is automatically sending the printer by default . Anyone can help to print a print window to choose a printer from it. DoMenuItem has been deprecated since at least 2000 onwards. You can use RunCommand to open a print window. DoCmd RunCommand ACCMD print There is almost no good idea to print the record. It does not take much time to prepare a report that can be used with any argument. This will give you more control and will give a very enjoyable experience to your users.

javascript - Dojo caching issue in Spring -

I am having a problem where dojo wants to html cache and then it is not shown properly if I This function works well once, and this parameter works on all subsequent calls when it is unique. If I call it twice with duplicate parameters, then there is not necessarily anything. I appreciate any help combine function (name, page) {var id = dojo.byId ("userId"); Dojo.byId ("Result"). InnerHTML = "& lt; b & gt; Loading ... & lt; / b & gt;"; Dojo.xhrGet ({url: "/test.html?pName="+name+"id="+id.value+"&&page=+ Page, Weight: Function (Data, ioargs) {dojo.byId (" Result "). WinnerHTML = data;}, error: function (error, ioargs) {warning (error);}})} It does not appear that the dojo is caching HTML, but your browser or your web server is probably caching the result. Try to stop the blocking : True to your property object for dojo. XhrGet: dojo.xhrGet ({url: "/ Test.html? Pname =" + ...

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

I'm new to this I'm writing a clr. stored procedure that can be used to get values ​​used in a calculation Call for another stored procedure for Gives an archived methodology int (I think SqlInt32? Value of the table's value is int) which is then necessary to convert to decimal. Here I have the code: Public static integral mood (SQL MDMMYLUE, escalistering AMY type, out of SQLDCM Result) {aResult = 0; Try {SqlConnection conn = New SqlConnection ("Reference Connection = True"); SqlCommand cmd = New SqlCommand ("sp_GetType", conn); Cmd.Parameters.AddWithValue ("@ myValueType", aMyValueType); Cmd.CommandType = CommandType.StoredProcedure; Conn.Open (); Object type = CMD. Exclamation Asser (); Conn.Close (); Decimal type FORCalculation = Convert. ToDecimal (type); Decimal value = convert toDecimal (aMyValue); // ** calculation calc = new calculation (); Decimal result = calorie.docalulation (typefarculation, value); I get an exception...

c# - How to specify a min but no max decimal using the range data annotation attribute? -

I would like to specify that the value should be a decimal area> = 0, but I really do not want to apply A maximum value Even what I have so far ... I'm not sure what is the right way to do this. [class (typical), "0", "??"] public decimal value {get; set;} about something like this: [range (0.0, double.maxvalue)] You should do what you want and you can avoid using the wire.

JavaScript: Confirm dialog box that shows value from a text box -

Is there a way to display a confirmation dialog box on which a user is typed in a text box on a form ? (For example, if the user types 100.00, I would like to see a message in the dialog box, like "confirmation amount. OK click if $ 100.00 is the correct amount.") Yes: var amount = document.getElementById ("textbox"). value; Confirm (click on "Confirm Amount." OK, if $ "+ amount +" is the correct amount. ") Edit: Here's an example:

tfs - Problem with URL in IIS7.5 + Sharepoint Services in TFS2010 -

My question is a bit simple but I do not know how to get it. I have this dedicated server at home, almost just used for Team Foundation Server, I have a single server configuration wizard, so I run with SQL Server and IIS 7.5 The services are, the problem is that each link and URL generated on the SharePoint site is generated by the local computer name, which is TFS. I have a domain (example.com) and a subdomain that points to my home static IP address, the router is configured correctly, and if you have TFS.example.com The Sharepoint home page is available, but as I said, for example, any link is generated. I want to know what is the way to correct it before all the things that I have done before, go to PC and set up a Windows host rule, so ask any request For, TFS, it becomes my IP, but I want to change it, and to change something on the server, all the routes URL is rewritten or there is no domain like some things, and all customers connect to the internet It is. Thank y...

exception handling - C++ , is this goto statement warranted? -

I changed a little title because I thought this is a more appropriate question. Would you refactor it (looks like legitimate use of Goto)? If you go to the statement, how will you refactor the following code? if (data. Device) {try {...} hold (const std :: exception & amp;) {goto; } ... // There are more things that should not be caught:; } Full details if you try to use the #ifdef HAVE_GPU // GPU device (data. Device) {try {Integral :: Gpu eri (S), R, Q, Block. (Shell); Eri (base center (), quartets, data. Device); } // If GPU fails, then propagate CPU cache (std :: exception); } Data. Device + size =; Host_index.extend (block_index); Block_index.data.clear (); done: ; } Most preferred after #endif thanks , I decided to go with the flag, but Mr. With York comment. > Thank you to all if (data. Device) {bool Status = true; Try {...} hold (std :: exception) {status = false; } If (position) {... / more things that should not be caught}}

drupal - How to edit email templates without the mail editor plugin? -

I have established the Mail Editor module for the Drupal to edit the template for my email which sends my site out and I get this module after enabling the module: "This version is incompatible with the Drupal Core version 6.16." How do I work around it? Am I just trying out older versions of the plugin or can I use it instead? As you have downloaded the mail editor's 5.x version, or an older version of the 6.x branch. I have downloaded (only 6.x release available): It's okay, and there is nothing in the code to restrict the smaller version number. Out of curiosity, I do not see anything in the mail editor, the user does not have user settings page (admin / user / settings) of the core. Is there anything more in it?

html - Centered content with drop shadow and a pattern background. Is transparent PNGS the only way to go? -

यदि ऐसा है, तो आप किस पीएनजी आईई तय करेंगे? यदि आपको जरूरी मान्य करने के लिए अपने सीएसएस की जरूरत नहीं है, तो आप इसका उपयोग कर सकते हैं: .box-shadow {-moz-box- छाया: 2px 2px 3px # 969696; / * FF 3.5+ * / -webkit-box-shadow: 2px 2px 3px # 969696; / * वेबकिट = सफारी + क्रोम * / -khtml-box-shadow: 2px 2px 3px # 969696; / * कॉन्करर * / बॉक्स-छाया: 2px 2px 3px # 969696; / * ओपेरा * / फिल्टर: प्रोगिड: डीएक्सआईमेजट्रांसफ़ोर्म। माइक्रोसॉफ्ट। शैडो (रंग = '# 969 9 6', दिशा = 145, शक्ति = 3); / * आईई * /} यह उपयुक्त है जहां बॉक्स-छाया CSS3 संपत्ति का उपयोग करता है और MSIE के लिए यह फिल्टर का उपयोग करता है यदि आप अपने उपयोगकर्ताओं पर भरोसा कर सकते हैं कि ब्राउज़र अपडेट है या IE का उपयोग किया है, तो आपको सुरक्षित होना चाहिए। कोड पूरी तरह से मेरे सिर से नहीं है, मैं संदर्भ के लिए उपयोग किया है।

xaml - XmlnsDefinitionAttribute combined with x:Name causes compilation error with code generation -

I have and continue with using the XmlnsDefinition attribute in the Silverlight 4 assembly. Here is the case of trial: [/ P> XmlnsDefinition ("vase: foo", "SilverlightApplication1.SomeNamespace")] I MainPage.xaml Edit .cs and looks like this: Namespace SilverlightApplication1 {Public partial class home page: UserControl {public manpage ()} {InitializeComponent (); }}} Namespace SilverlightApplication1.SomeNamespace {Public Class SomeControl: ContentControl {}} Now I have the following in MainPage.xaml: & lt; UserControl X: Class = "Silverlight Application 1. Menopause" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/ 2006 / xaml "Xmlns: foo =" vase: foo "& gt; & Lt; Grid & gt; & Lt; Foo: SomeControl & gt; & Lt; TextBlock Text = "Hello World" /> & Lt; / Foo: SomeControl & gt; & Lt; / Grid...

iphone - UIWebView does not persist authentication on iOS3.2/iOS4 -

I have created an application that uses UIWebView to display a site that uses basic authentication. After the iOS 3.2 (on both the iPhone and the iPad) the content was stopped showing. My approach to authenticating users is: Create an NSURLConnection Resolve the authentication challenge to provide the credentials Implement the response responses to receive feedback and load the request in a UIWebView, i.e. [webView loadRequest:] Anytime iOS3.2, authentication was broken; UIWebView does not investigate any more against shared credential storage. For the iPhone on the IOS, I worked stupidly on this issue, which included the login informatino in the URL (i.e.) the initial load request for the webview. For IOS3.2 on the iPad, this is not sufficient initial request all rights have been certified, but subsequent calls are still not authenticated. Any suggestions? use setDefaultCredential: forProtectionSpace : shared NSURLCredentialStorage the webview still uses the ...

Django 1.2 DateField admin site problem -

Therefore, I am creating a Django 1.2 app, and I am having problems with the admin site. Import the users from django.db import model from Django.contrib.auth.models.modules.py: import datetime class Dailysales (models.Model): salesdate = models.DateField (primary_key = True) ... def __unicode __ (self): Returns self.salesdate.strftime ("% B /% d /% Y") My problem is that in the admin site , The area of ​​sale is being shown as text input, as far as I can tell the exact same thing with Django 1.1, and it gave me the date picture widget. I do not know whether it relates to 1.2 or I have made a mistake for some other reasons, but I'm not sure what I can see, because I think all the documents say that it should only work. If the model says that this is a datefiled, then why is it necessary to cause the admin page to be a datepeak? There is no indication on where to check.

What are some practical projects to consider in trying to learn C? -

I have seen many questions and answers so why should I learn why. I know that this is a low level, I understand how things work at that level, and this will make me a better programmer. There are some good books to read to help me learn. C. I do not think I have some practical projects on which I can work so that I can get help in knowing how language is used. There are many examples of the books I am studying in, and they are completely useful, as far as knowledge is concerned about language. But I do not feel like I'm getting any information in "real life" examples which I can do with C. My background: I am a college graduate who is programming programming C #. I am enjoying programming practice in C - but I feel like they are exercising. I know that I am not going to become an instant expert and I want to start wondering. I just need some tips for some things that can help me to become better, but it seems that more than just exercising. (I want to make it clea...

jquery - swfupload - multiple instances and setting dynamic data with setPostParam -

I am using swfupload, and there is a bunch of 'attach file' link and every single Jquery Dialog Opens which is associated with 1 swfupload example I tried to set a custom post parameter but it failed: www.arianhojat.com/temp/code/swfupload/index.html if You delete the 'setPostParam' line correctly but want to set parameters, it gives an error in firebug: "Without exception: setpost param k The call failed. "... Instead of trying an alternate solution ... I open the swfupload object every time ... and delete it after it is closed ... but I found an "irrelevant exception: finally the flash element could not be found" is not sure that this is an important error because the popup still shows if you retrieve the link I think it might be possible to go May be the way Q does not confirm about that error Here is my code that the task of this code: (The PS file upload should stop the communication and warn of a warning, as I do not have the host s...

python - On the google app engine, why do updates not reflect in a transaction? -

I store a group of entities in the Google App Engine Data Store with the same ancestors / parent / unit group . This is because institutions can be updated in a nuclear datastore transaction. The problem is as follows: I start the DB transaction I update entityX by setting entityX.flag = True I save the unit SX I query for the unit where the flag == is true but, here's the problem. This query does not return any results. This unit should have come back, but it was not. When I withdraw the transaction, my code works perfectly, so it should be a transaction which should be a strange behavior. Should the institutions in the entity group update somewhere else in the same transaction? PS: I am using Python and GAE tells me that I can not use nested transactions: ( App engine transactions are designed in that manner, that means a snapshot is seen as the beginning of the transaction read within the transaction, so in the transaction first The result of writing d...

version control - Moving from SVN to TFS -

I have come here with colonization using Tortoise SNN for a control of source control. Now in a new area, I am using TFS. I have some questions, I'm sure the more will be followed ;-): This clearly (I hope !) Have all the same features, where I can make changes with the comment, I can return back, compare variations between different dated source files. Should I be happy with this change, or should try to bring back the change in SVN I or, in my thoughts, which is better Thank you, You will find very similar features in both Subversion with Tortoise SNN and Team Foundation Server, however TFS is well integrated into Visual Studio. To recommend switching from TFS, I do not have any killer facility or issue to suggest changes in the integrated nature of TFS. TFS also gets the benefit of work / bug, all built-in tracking, so you have everything in a development tool.

performance - How can I speed up this Sql Server Spatial query? -

I have a simple SQL server spatial query (which I think): Hold USA States some four-sided polygon in all (ie. viewport Google / Bing maps to a web page / bounding box) select Cast ( 2 as a TINYINT) as LocationType, a.Name FullName, StateId, a.Name, Boundary.STAsText () range, CentrePoint.STAsText (as aS) Centrepoint [dbo]. [States where one] @ BoundingBox.STIntersects (a.Boundary) = 1 It takes 6 seconds to run: ( Here is the execution plan. ... deleted and filter operation statistics ... deleted Now, I'm sure how to debug it ... to know that I need a fine tune etc. Is there a spatial index? I believe ... / ****** object: index [SPATIAL_States_Boundary] script IV Date: 07/28/2010 18:03:17 ****** / SPATIA Create L. current index [SPATIAL_States_Boundary] [dbo]. [States] ([limit]) using the GEOGRAPHY_GRID (Grid = ( LEVEL_l = high, level_2 = high, level_3 = high, level_4 = high), CELLS_PER_OBJECT = 1024, PAD_INDEX = off, SORT_IN_TEMPDB = off, DROP_EXI...

Stop build when no changes from last build in HUDSON -

Hi, I'm new to Hudson, and I have a pretty stupid question when Hudson discovered that since the last build someone There is no change, so do not stop building? Why? I did a test job with a shell step command and always ran the command, whether the repository changed or not. How can I stop the stock if there is no change? Thanksgiving create triggers are different types. I think that you have configured your test job on " from time to time ", which will continue to build on the specified intervals regardless of code changes. If you call " Poll SCM " then Hudson will vote for your SCM for changes and will only build upon changes.

validation - Why this feed doesn't validate -

It tells me that there is an invalid character but I can not find it See values ​​for just a href:

c# - using static methods or instantiate the class? -

Recently I got a dispute about the use of static methods in the square used by hundreds of threads . In my opinion there is no special advantage of "first" solution, besides it is easy to use for a class customer but I have been told that this is a very bad idea and I have to use the "second" solution Can I explain how wrong I am? Thanks a lot! Let's assume the dictionary thread is safe. class A {static dictionary & lt; Int, string & gt; M_dic = New Dictionary & lt; Int, string & gt; (); Public static string GetData1 (int nKey) {return m_dic [nKey]; } Public string GetData2 (int nKey) {return m_dic [nKey]; }} // These Functions have been called with Threads ... Zero Threadfunk 1 () {Print A. Gate Data 1 (1); } Zero ThreadFunc2 () A A = new A (); Print a.getdata2 (1); } Regards, Leonid Using an example member (for me, at least) is something relevant about the example - either its position, or possibly in case of override method...

asp.net mvc - Structuremap 2.6.1 bootstrapper -

मैं StructureMap 2.6.1 का उपयोग कर रहा हूं यह Bootstrapper.cs से कोड है: ObjectFactory.Initialize (x = & gt; x.for & lt; IFoo & gt; ()। उपयोग करें & lt; Foo & gt; ()); जब मैं अनुप्रयोग चलाता हूं, तो मुझे निम्नलिखित अपवाद मिलता है: प्लगिन के लिए कोई डिफ़ॉल्ट उदाहरण निर्धारित नहीं IFoo, संस्करण = 1.0.0.0, संस्कृति = तटस्थ, PublicKeyToken = null जब मैं इस अप्रचलित कोड का उपयोग करता हूं तो मुझे एक अपवाद नहीं मिलता: ForRequestedType & lt; IFoo & gt; () .डिफ़ॉल्ट.आईएसओफ़ ​​कॉनट्रिक टाइप और लेफ्टिनेंट ; फू & gt; (); क्या कोई मुझे ऑब्जेक्टफ़ैक्टर्स के प्रारंभकर्ता के लिए नवीनतम सिंटैक्स बता सकता है? धन्यवाद। हर बार जब आप आरंभ करते हैं, तो आप ऑब्जेक्टफ़ैक्टर को रीसेट कर रहे हैं। अर्थात। निम्न परिदृश्य में: ObjectFactory.Initialize (x = & gt; x.for & lt; IFoo & gt; ()। & Lt; फ़ू & gt; ()) का उपयोग करें; ObjectFactory.Initialize (x = & gt; x.for & lt; IBaz & gt; ()। उपयोग करें & lt; बाज़ & gt; ...

iPhone: Converting C# code to Objective-C -

Can you help me convert this C # code to Objective-C? I do not have any clue about C # / Visual Studio! Public Static Class BezierSpline {Public Static Zero GetCurveControlPoints (point [] knots, outside point [] firstControlPoints, point out [secondControlPoints] {Int n = knots.Length - 1; // Calculate the first Bizzier Control Point / Double Right Vector on Right Hand [] rhs = New Double [N]; // Set the right hand side for x values ​​(int i = 1; i & lt; n - 1; ++ i) rhs [i] = 4 * sea meat [i] .x + 2 * sea meat [ I + 1] .x; Rhs [0] = sea meat [0]. X + 2 * sea meal [1] .x; Rhs [n - 1] = (8 * knots [N -1] .x + knots [n] .x) / 2.0; // Get the first control digit X-value double [] x = GetFirstControlPoints (rhs); // Set the Right Hands for Y values ​​(INT I = 1; i & lt; n - 1; ++ i) rhs [i] = 4 * sea meal [i] .Y + 2 * I + 1] .Y; Rhs [0] = sea meat [0]. Y + 2 * sea meal [1]. why; Rhs [n - 1] = (8 * knots [N -1]. Y + knots [n] .Y) / 2.0; // Get the first control points Y-value d...

php - Assign regex pattern as key to an array -

I have an array of regular expressions and trying to loop through a text document to find the first pattern Let's find the key for an array, then continue by finding another pattern and assigning it as value. Whenever I came in Pattern 1, I should always be assigned as a key and all patterns should follow 2 matches, unless I can not find a new key for the first key as values to be specified. Text Document Structure: Topic: Email after some time: someemail@email.com Source: www.google.com www.stackoverflow.com www.reddit.com Then I have an array of expressions: $ expressions = array ('email' = & gt; '(\ b [a-zA] -Z0-9 ._% + -] + @ [a -ZA-Z0-9 .-] + \. [A-zA-Z] {2,4} \ b) ',' url '= & gt; '([A-Za-z] [A-Za-z0].!! -9 + .-] {1,120}: [one-zA-Z0-9 /] (([[za- _ + *,; /: @ & Amp; ~ = -]) |% [A-FA f0-9] {2}) {1,333} (# ([one-zA-Z0-9] [one-zA- Z0-9 $ _ + *,; /:.!? @ & Amp; ~ =% -] {0,1000})))) '); I want to loop through my text...

jQuery Escaping HTML from a Textarea -

I want to hide the names of the tags from the HTML tags, text from a textarea and the result In the second textarea is such that: & lt; Mytag & gt; becomes & amp; Lt; Mytag & gt; I am using .html () and .text () and going forward is fine. My problem is working with the textarea element, which works a bit differently. This works fine if I first enter text in a lesson: var htmlStr = $ ('# textareaInput'). Val (); // do not like it. Html () .text ()? . $ ('# Dummy') text (htmlStr); // An object that supports text. HTML () $ ('# textareaOutput') Val ($ ('# dummy') .HTML ()); But I want to do something simpler like this: var htmlStr = $ ('# textareaInput'). Val (); . $ ('# TextareaOutput') Val ($ (htmlStr) .html ()); I think my problem is that I do not understand that to manipulate the objects of jQuery, like strings, without manipulating the dome elements - because now I am using a div Beca...

javascript - Reverse geocoding on marker click -

I have Google Map embedded with my web application in ASP.NET 3.5. I have applied the reverse geocoding on map click (getting address from latitude and longitude). Now, I need it but on the marker click How do I click the marker? For each of your markers, add the following event handlers for the click event. It assumes that you are using version 2 API , // In the context of your marker object and click // function, click the event GEvent.addListener (marker, "click", function () {// show your geocoding here} ); You can get the marker's coordinates with your getLatLng () method, which returns returns. More information can be found.

java - Is it portable to reference the request parameter map after a request-cycle? -

After text "itemprop =" text "> I want to know if your Java servlet specification corresponds to the referring value of the reference / value of . returns : unchangeable Code> java.util.Map parameter names are included in the form of map values ​​as keys and parameter values. The parameters used in the parameter map are the string type. Value is string array in parameter map. But this is not clear to me: If the map is irrevocable for the application server only, the application server If it is allowed that the application server can reuse an example of any other request (for example, if the parameters and their values ​​are similar to the previous request Edit: The reason for this: I want to save it and one more request Request map in case of errors to print them out for clinical purposes. After the If the map is simply unchanged for the application, not the application server This API is irreversible, yes. It also makes se...

c# - Programmatically setting 'display name' in YAF -

I am using YAF as my online platform. I have synchronized the user account database between YAF and my own application, but 'membership.providers' [YafMembershipProvider]] make CreateUser' their own members at the same time. However, there is a problem .. If my users are identified by the email address for logon then now the forum shows everyone's email address is not a good idea. YAF has an option named 'Display Name' Is it possible to make it even Ramatically? If anyone doubts this, then Jaben The answer does not work in the latest version of YAF.NET (Sample Web Application) - if you need to do this, you can do this using the website (since YAF. Classes.DB no longer exists). You can find WS at & lt; your url & gt; /forum/YafWebService.asmx - You have SetDisplayNameFromUsername A method named Land, is to receive a token which will get you to your host settings page (at least setting before using tokens would need a save). If you are...

java - Error 400: Request[/editRecordsAction] does not contain handler parameter named -

I am creating a Stretches app and I am using a dispatch action. It was working some time back and now it is closed and catching me. Here is action mapping and action request for one page. This gives mess to an error on all pages that use the sender function. I get this error. Error 400: In the request [/ editRecordsAction] console error [7/28/10 8: 28: 38: 658 CDT] 0000001d Dispatches E. Org.apache.struts.actions.DispatchAction In unspecified request [/ editRecordsAction] & lt; The action name = "editRecords" does not include the handler parameter named path = "/ EditRecordsAction" type = "ccreports.actions.editRecordsAction" parameter = "parameter" & gt; & Lt; Forwarded name = "editRepViewFwd" path = "jsps / repviewEdit.jsp" & gt; & Lt; / Forward & gt; & Lt; Forwarded name = "edit SUPViewFwd" path = "jsps / supviewEdit.jsp" & gt; & Lt; / Forward & gt; ...

c# - Is it possible to Merge stacks with LINQ -

I'm just starting to learn LINQ, I'm wondering if it's possible to group elements in 3 different stacks Would it be possible to add more than one array from the clause, and this is what I have with LINQ? var exclusive value = values ​​from n to n strikes. Toure () Select n nGroup nGroup.Key in group n; You can pile up union together. var s1 = new stack & lt; Int & gt; (); Var s2 = new stack & lt; Int & gt; (); Var s3 = new stack & lt; Int & gt; (); Var r = s1.Union (s2.Union (s3)). ToArray ();

iframe - HTML Renders in IE7 but not in Firefox or Chrome -

In IE 7, & lt; Iframe & gt; renders, but the following html in Firefox or Chrome? var content = "& lt;; DOCTYPE html public \" - // WAPFORUM // DTD XHTML mobile 1.2 / n \ "\" http://www.openmobilealliance.org/tech /DTD/xhtml-mobile12.dtd\"> body style = \ "background-color: # 0C0C0C; Color: #FFFFFF \ "& gt; Please enter credentials & lt; form name = \" dynamic format \ "& gt; & lt; ul class = \" edgetoedge \ "style = \" background-color: # 0C0C0C ; div id = \" errorDiv \ "style = \" color: red \ "& gt; & lt; / div & gt; & lt; / li & gt; & lt; ; Li & gt; & lt; Input id = \ "Phone number: _min langnet \" type = \ "hidden \" value = \ "16 \" /> gt; gt ; & lt; script & gt; ..... var dynamicFormIframe = document GetElementById ('dynamicformIfre'); DynamicFormIframe = (dynamicFormIfra...

java - Spring 3.0 JAX-WS and or vs. Apache CXF -

Spring 3.0.1 supports solid JAX-WS web services. At the same time, I think many articles call Apache CXF as a great Web service framework. If I work in the spring / hibernation and want to reveal high performance web services at the front end, should I consider using Apache CXF? Is there any advantage of adding this extra frame to the mix? Both are not mutually exclusive Apache CXF is fully compliant with JAX-WS. Remember, JADS-WS is just a specification of Speed ​​ATP API, and does not pay much attention to the implementation that you use. Java 6 ships to internal JX-WS implementation (Metro, Or part of it), and CXF is only an optional implementation. The CXF is probably slightly more capable than Java with JAVX-WS, but unless something is not specific that you do not need Java 6, I'm not sure that this It's worth worrying. For Spring and JX-WS, Spring Bus makes it a little easier to use.

c# - Problems submitting DataGridView changes with Linq-to-SQL -

मैं एक DataGridView नियंत्रण के माध्यम से डेटाबेस मान संस्करण कार्यान्वित करने की कोशिश कर रहा हूं, लेकिन ईमानदारी से मैं कर रहा हूँ यह पूरा करने की कोशिश कर रहे एक कठिन समय मैं मूल रूप से LINQ-to-SQL वर्गों और घटनाओं का उपयोग कर रहा हूं, निम्नलिखित सबसे महत्वपूर्ण स्निपेट्स हैं: var डेटा = डेटा से q.FOOBARS नई {ID = q.FOOBAR_ID का चयन करें, LOREM = q.FOOBAR_LOREM, आईपीएसयूएम = q.FOOBAR_IPSUM}; डेटाग्रीड दृश्य ग्रिड = नया डेटाग्रिड दृश्य (); ग्रिड। डेटा स्रोत = डाटा; // ग्रिड ईवेंट निजी शून्य grid_CellDoubleClick (ऑब्जेक्ट प्रेषक, DataGridViewCellEventArgs ई) {this.grid.CurrentCell.ReadOnly = false; this.grid.BeginEdit (सही); } निजी शून्य grid_CellLeave (वस्तु प्रेषक, DataGridViewCellEventArgs ई) {if (this.grid.CurrentCell.IsInEditMode) {// विधि कॉल this.SetVariableValue (this.grid.CurrentRow.Cells [ "आईडी"]। Value.ToString (), this.grid.CurrentCell.OwningColumn.Name, this.grid.CurrentCell.FormattedValue.ToString (), this.grid.CurrentCell.EditedFormattedValue.ToStrin...

java - Do I have to use an animation to change an Android activity's view? -

Everywhere I look online, it seems that I have to use the animation to change the mind dynamically (eg Slide in, out). Do I have to do this, or can I just simplify contentview () on every new activity? Thank you! There's nothing to say that you have to use animation just because your intent object, start your activity with startActivity or startActivityForResult , and then call setContentView when it loads. No animation is necessary. H.H.

c# - Validate string is base64 format using RegEx? -

How I validate the base 64 string and came on it. ^ (: [one-zA-Z0-9 + /] {4}?) * (: [One-zA-Z0-9 + /] {2} == | [ One-zA-Z0-9 + /] {3} =)? $ I also need a little help in allowing "==" as "=". Thanks This should be done very well. Heeshets for private static reading & lt; Char & gt; 'A', 'B', 'C', 'D', 'A', 'A', 'E', 'F', 'G', 'H', 'I', 'J' H '' K ',' L ',' M ',' N ',' O ',' P ',' Q ',' R ',' S ',' T ',' U ',' V ' 'W', 'X', 'Y', 'Z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U' V ',' y ',...

sql - Count associations in sqlite database query? -

I have a silicon database with three tables: notes, lists, and notes-in-list. Both notes and lists have some additional data columns, such as an autogenerated id column and title, the note-in-lists have an association table with an autocomposition, and two foreign keys, one note ID and one Indicates list id. I have a query that gives all the notes in a list: select _id, include notes in the title notes from Notes_In_Notes on the list. _id = notes_in_lists.note_id where Notes_in_Lists.list_id = 2 This will return all the note titles and the IDs for example 2. However, the notes can be in many lists and I should be able to tell if the note is associated with many lists. This same note_in_ list is listed several times by the note_in_list list .note_id. Easy to do by yourself: Selection number (note_id) from the note_in_ list where note_ id = 2 but let me Questions have to be added in a query and I do not know where it is starting. edit sample data note: _id...

Using Java to wrap over C++ -

I have a project written in C ++ and I want to write it a GUI as a Java interface. Java option has been fixed so I have to be able to call Java from C ++ code. Rewriting the C ++ code is not an option. I would like input on this: What equipment can I use to get this wrapping? If any of the C ++ codes are required, Any other insights / follow-up questions you have. Thanks. you should look for JNI-Java native interface

.net - Automated Testing OpenXML SDK -

I am implementing the MS Word document generation using Content Control and OpenXml SDK. I have to do some automated testing for that code (unit test or some easy UI automation test) Has anyone used it with the test of MS Word document generation? What are the possible options? Thanks in advance! No, I have not tested the unit of the Haven MS Word document generation, but called Ingo Walls , This unit should not be isolated from any other form of testing. 1) [Optional - Use SDK for your needs] to make sure that you think right] How to drive your app to SDK. Write some test scripts that emulate the desired functionality and make sure they meet Word documents as you expect. 2) Create an interface (or interface) that contains such functionality that are required for your documents generation. Note: The interface does not need to provide full functionality of the OpenXML SDK - only the functionality you need for your applications. 3) Create a solid implementation of your...

Accessing Assembly Information GUID in a C# Form Application -

I would like to use GUID in assembly information for use in my Microsoft Visual C # 2008 Express Edition project mutex Used to verify that only one instance of the application is running. How can the GUID be reached? I just need to use it in the program. Main (...) function. Thank you. A similar question was asked on MSDN: Here the code is extracted: Public static tee gate suspensions feature & lt; T & gt; (Assembly assembly) where t: specialty {if (assembly == blank) empty return; Object [] attributes = assembly. GetCustomAttributes (typeof (t), true); If (Properties == empty) return tap; If (attributes. Length == 0) empty return; Return (t) characteristics [0]; } Some values ​​are also available through assembly type:

Aptana Folding/Collapsing javascript code -

I need to be able to fold / fall pieces of different code in my javascript, such as #region #endregion C # In. I can not find a way to do this, window menu -> select preferences -> in detail Expand -> Detailed editors -> Javascript extension -> Folder selection.

java - Can I constrain a HashMap by the amount of memory it takes up? -

I am implementing a simple cache using LinkedHashMap based on the instructions I've seen . I use the following code: Public class cache LinkedHashMap {Private FINAL INC. Capabilities; Public cache {super (capacity + 1, 1.1f, true); This.capacity = ability; } Largest entries removed from the protected boolean (entry senior) {return size ()> Capacity; }} It is very easy though, it only puts a fixed size on the map. I am running on a very small pile and depending on the size of the cached objects and the capacity of my chosen it can still run out of memory, it is arbitrary of the objects and therefore I can not predict how big they can be. . To cut the cache I do not want to depend on SoftReferences because the way it is cleaned is incredible; It changes from VM to VM, and they can either be retrieved soon, or they can never be recovered until they reach my heap. Do I have a way to monitor the size of the map and constrain it based on that? If the soft / weak r...

unity3d - Is there an RPG Dialogue plugin available for the Unity Game Engine? -

Is there an RPG conversation available for the unity game engine? Or maybe an RPG starter kit? My Unity game needs some kind of communication engine, if I can escape from it, I will not have to make it from scratch. In an RPG kit development you will need all for an RPG ... More info:

php - display tooltip on hover over text -

How do I go about displaying tooltips when a user overcomes some text? These text keywords are I do not want to add these tooltips manually for each keyword To do this automatically on client side or server side, I'm looking for a way to create some kind of script I am When a user enters these keywords, and the keyword is present in the database or in an array, then it should get information from the database. Please tell me how to solve any good tutorial this problem. There are many useful plugins for creating good tooltips. I know two of those who use the framework: MB-Tooltip : [ jquery-plugin-tooltip : [ You have to surround your keywords to apply a span element and a selector to the jQuery selector. It may be that it is better to query the keyword presence server-side to create ad-hoc HTML code for displaying the right tooltips, otherwise you have to make tooltip in AJMAG manner, to handle mouse hover events on the keyword.

php - How to let a user manipulate text (make it bold/italicized), before it is saved in a MySQL table? -

Is there any way a user can type via PHP? For example, a user may be able to create text that he typed bold or italy . Anyone can assume that I am trying to get the same effect of this website. Is there any way to do this in PHP? I am trying to do this because once the user hits 'deposit' after typing the text information, the information will be saved in a MySQL table. From now on, I will try to display information later. Therefore, it will be easy to retrieve the text because the user has typed it (bold or italic). how does it work? Thank you. Stack overflow uses Markdown language here, it has a PHP implementation: and here is a JavaScript implementation : Or you can use WYSIWYG control to edit StackOverflow on the following grounds: Actually it italic and bold (and other formatting List) as a simple text with special formatting: * italic * ** bold ** so that you can make that plain text in your database Can store again before formatting it, it is format...

Static methods in ruby modules? -

Is it possible to declare stable methods in a module in Ruby? Module software DEF Self.exit includes "exited" end end class Windows includes software DRF self.start "start" self.exit end and windows Start The above example "Exits" Is the example methods possible in the module? Define your module in this way (i.e. an example in the exit module Method): Module software exits the DF exit "End" and end and then Expand Instead of include class Windows extension software # Your own Start method, as the question is at the end In use: irb (main): 016: 0> Windows.start started = & gt; > ... Therefore when class is used in terms of definition (as a class itself as a receiver), methods become class methods.

PHP HttpRequest::setHeaders() converting my header names to camel case -

I have to send the following headline with my httpRequest: 'X-ABC-Rico-Token Has the following code: $ array = array ("X-ABC-Reco-Token" => $ Tokens); $ This-> request> setHeaders ($ array); Echo var_dump ($ this-> request-> getHeaders ()); However, this is the output I received: "X-ABC-Reco-Token" => string 'a0d15 977' / Pre> Note that X-ABC has been converted to X-ABC. Is there any way I want it to be a matter? The other method in my mind passes from httpRequest and adds a method like "fix", by which the property of the class will be set where the http request is awaiting ABC by str_replace () apc for ABC Are doing (maybe "CuridaData"? - See).

flash - Programming language or tool for web-based Visio-like drawing as applied to product configurator -

I have extensive experience with MS Vision solution development, and in terms of their need to provide the same functionality in a web interface Is a heavy visual product-maker or "configurator" vivo functionality that I hope to reproduce: The visual shapes stored in a sidebar, causing the user to drag and drop on the dragging area. Use The creation of a shape at the end of the ga- ture might not necessarily be ... just changing the arrangement, resizing, changing the parameters etc. A back-end to remove that part due to which the user has dropped on the drawing area, In which the parameters have changed, dimensions, components etc. In the most general sense, I need an interactive interface. Looking at the above parameters, is Flash a good option? Is there a development environment that can be better? Flash will work for the tasks you've specified here, you can use it on the canvas tag Can effectively do with. Now, the development of Flash is a be...

internet explorer 8 - Javascript document.write in IE 8 -

This is heading me, chasing this whole day, we have an ad server that has a The script makes a call that then incorporates the code. e.g. The Adveruver page is called in an iframe: & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Script src = "http: // adserver / ad? S = 728x90" & gt; & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt; Javascript given by script call above: document.write ('& lt; script type = \' text / javascript \ src src ' Http://partner.googleadservices.com/gampad/google_service.js\'>\n '); Document.write ('& lt; / script & gt; \ N'); Document.write ('& lt; script type = \' text / javascript \ '& gt; \ n'); Document.write ('GS_googleAddAdSenseService ("ca-pub-xxxxxxxxxxxxxxxxxxx"); \ N'); Document.write (...

asp.net - How to get nicely formatted comment count and date for a blog post in subtext -

I'm making my own skin for subtext, and there is one thing that I can not understand ... how i I can & lt; Asp: literal id = "PostDesc" runat = "server" /> This generates something like this: Posted @ Thursday, July 29, 2010 2:13 am | Feedback (0) How do I view Phile Hawks on my site? After hours of intense hours of research, trial and error, and address after browsing the subtext source code walked. & lt; Asp: hyperlink runat = "server" navigateUrl = '& lt;% # string.format ("{0} # feedback", Url.EntryUrl ((IEntryIdentity) container.detite))% & gt; & Gt; View Comments (& lt;% # Eval ("FeedBackCount")%>) & lt; / ASP: Hyperlink & gt; For the number of comments, and I will do something similar to date.

xml - Is it possible to apply normalize-space to all nodes XPath expression finds? -

सरल XML दस्तावेज़ पर विचार करें: & lt; html & gt; & lt; body & gt; & LT; तालिका & gt; & LT; टीआर & gt; & lt; टीडी & gt; मद 1 & lt; / td & gt; & lt; / tr & gt; & LT; टीआर & gt; & lt; टीडी & gt; मद 2 & lt; / td & gt; & lt; / tr & gt; & Lt; / तालिका & gt; & Lt; / body & gt; & lt; / html & gt; XPath / html / body / table / tr / td / text () का उपयोग हम ["आइटम प्राप्त करेंगे 1 "," आइटम 2 "] उदाहरण के लिए, यह पाने के लिए normalize-space () फ़ंक्शन का उपयोग करना संभव है? [ "मद 1", "आइटम 2"] सामान्य-स्थान (/ html / body / table / tr / td / text ()) उत्पादन सामग्री ट्रिम कर दी गई है केवल पहली टीडी टैग का ["आइटम 1"] XPath "/ html / body / table / tr / td / text ()" का उपयोग करने पर हम ["आइटम 1", "आइटम 2"] प्राप्त करेंगे क्या ["आइटम 1", "आइटम 2"] प्रा...

iphone - cocos2d error -

I am following the tutorial of this tutorial, I have got a project template and have to go to start it. ... I have downloaded cocos2d-iphone-0.99.1 Add sub-directory Cocos 2D to the project .... But when I created I had 9 errors and 4 bugs Scene.h: Such a file or directory director 'undeclared (first use in this function) / Volumes / Jobed / cocos2d / CCTexture2D. m: 79: 24: error: FontManager.h: no such file or directory /Volumes/Jobed/cocos2d/CCTexture2D.m:80: 35: error: FontLabelStringDrawing.h: no such file or directory / Volumes / Jobed / cocos2d / CCTexture2D.m: function '- [CCTexture2D (text) initWithString: fontName: fONTSIZE:]': / vol / Jobed / Cocos2d / CCTexture2D m: 519: error: 'ZFont' undeclared (first use in this function) / Volumes /Jobed/cocos2d/CCTexture2D.mitter19: Error: (Each unauthorized identifier is only once / section / Jobed / Cocos2d / CCTexture2D information. M: 51 9: Error: appears in each task for) / Volumes / Jobed / cocos2d / CCTe...

android - View State lost with click -

I have created a custom view that is essentially a gallery object that can be hidden and shown (view. View View. By clicking on a text view) The images I placed in this gallery have a custom background state lightdog selector. Except for the status of the images in the gallery, everything works fine, when the gallery moves through the scene. See from GONE to see. The victorious, and the selector who has been drawn, is the default dozob (transrucit_box). These are the items in my selector XML: & lt; Item Android: Dragon = "@ Drawable / Red_box" Android: state_pressed = "true" /> & Lt; Item android: drawable = "@ drawable / orange_box" Android: state_selected = "true" android: state_focused = "true" /> & Lt; Item Android: Dragon = "@ Drable / Blue-box" Android: state_selected = "true" /> & Lt; Item android: drawable = "@ drawable / translucent_box" /> The most strange t...

c# - to compare Indian time -

I have to find out what will be the time in India when the clock will be 1 AM at night in any other country. It will know that in any way, it helps me to know that it is to fire the births born in the midnight at 1 in the birthplace ... SQL Server 2008 contains the DATETIMEOFFSET data type (which includes the time zone) plus functions such as SWI TCHOFFSET to switch from one time offset to another. What version are you in?

enums - JPA @Enumerated Error -

I have existence with the field that I want to become an enum. @ column (name = "TEMPRATURE_ZONE") @ Nominated (STRING) private temperature range tempratureZone; Enum is defined as follows: public enum TemperatureRegime {environment, cool} data EclipseLink-116: EclipseLink-116] (Eclipse Stubbornness: My Table Always For The Area "Ambient" or "Cold" So far, when I get the following exception on a findAll query table Services - 2.1.0.v20100614-r7608): org.eclipse.persistence.exceptions.DescriptorException exception details: Any conversion value provided for the price [chill] in the area [LOCATION_GROUP.TEMPRATURE_ZONE]. Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping [tempratureZone - & gt; LOCATION_GROUP.TEMPRATURE_ZONE] Descriptor: RelationalDescriptor (com.company.location.LocationGroup -> [DatabaseTable (LOCATION_GROUP)]) I can not see what the problem is, any thoughts? Cheers, James I believe That's ...

iphone - EXC_BAD_ACCESS on lauching, random bug -

I've completed my first app but I'm getting weird EXC_BAD_ACCESS, which is almost all the time Here's the trace: # 0x02adba93 in objc_msg & end # 1 in 0x07022e00 ?? In 3 0x0003999f in # 2 0x028bcbcd _CFAutoreleasePoolPop # - in PurpleEventCallback # 6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ # in 0x02961dc4 7 0x028c2737 __CFRunLoopDoSource1 in # 8 0x028bf9c3 __CFRunLoopRun in # 9 0x028bf280 CFRunLoopRunSpecific # 10 in 0x028bf1a1 CFRunLoopRunInMode [NSAutoreleasePool release in #] # 4 0x002e9f84 _UIApplicationHandleEvent # 5 0x0310dafa 11 0x002e2226 - [UIApplication _run] # 12 0x002edb58 UIApplicationMain # 13 0x0000282e The main in the main. M: 14 The strange thing is that the app starts normally, so I really do not understand what's going on and some help will be great :) You have over-released Double-click on your executable An object, so when the autoorigery pool is cleared, it is an invalid operation. Select the argum...

jquery - Why use $ in the name of javascript variables? -

संभावित डुप्लिकेट: चर को आरंभ करने के इस दो तरीकों के बीच अंतर क्या है? var $ val = 'कुछ' या var val = 'something' जैसा कि मैंने देखा कि वे एक ही बात हैं। शायद इस मामले में $ चर में नाम का ही हिस्सा है? (यह उस मामले में एक अर्थहीन प्रश्न बन जाएगा: /) धन्यवाद चर नाम में $ नाम का ही भाग है , लेकिन सम्मेलन इसका उपयोग चर नामों को शुरू करने के लिए करना है जब चर एक को दर्शाता है JQuery ऑब्जेक्ट। var $ myHeaderDiv = $ ('# header'); Var myHeaderDiv = document.getElementById ('हेडर'); अब आपके कोड में, आप जानते हैं कि $ myHeaderDiv पहले से ही एक jQuery ऑब्जेक्ट है, इसलिए आप jQuery फ़ंक्शंस कॉल कर सकते हैं: $ myHeaderDiv.fade (); DOM- चर से jQuery के चर में प्राप्त करने के लिए: var $ myHeaderDiv = jQuery (myHeaderDiv); // एक और चर jQuery के लिए असाइन करें (myHeaderDiv)। Fade (); // सीधे // का उपयोग करें, जैसा कि $ को jQuery के ऑब्जेक्ट में रखा जाता है यदि आप अन्यथा निर्दिष्ट नहीं करते हैं: var $ myHeaderDiv = jQuer...

c# - Scrollbar loses focus when datagridview refreshs its content -

View my datagrid once refreshed after its content. Refresh starts with a thread / invoice. When I catch the scrollbar and refresh starts, I have to lose focus and I have to regraw the scrollbar again, doing so that every second is very upset. Does anyone have any indication of how to do this, in the way I do not focus? As a solid example, the task manager does.

language agnostic - What platform should you use to build your first web application? -

I'm deciding between LAMP and Google App Engine with Python. It's mainly an educational experience, so I'm not going to stop learning about the value of LAP (and in the way of working in app engine) It depends on where you come from. If you are already familiar with PHP or Python, then I rely on my choice. on that. If you are starting with a scratch, there are some things to consider: PHP (if you consider LAM in P) the advantage is that There are a large part of web applications / sites that use it. If you have a purpose, then many other web-aids should be able to modify or contribute, I think you should go with PHP. PHP is messy on the other hand and it is very difficult to clean web design and code. There is no real application outside PHP's web development that I know (I may be wrong). Python is a real sweet language with a clean c NTX and many (third party) libraries have many applications outside of web development in Python. Google App Engin...

unable to remove div inserted by jquery -

Trying to remove a div inserted by jquery onclick. For some reason it has not been working yet () has tried to remove; to conceal(); CSS (); Empty (); They are not all just working .. So here is my JS function function column () {var content = '& lt; Div id = "floating_box" class = "fb" & gt; 'Sdfsdfsdfsdfsfsddsfsfsdfsdfsdfsfsdfsdfsdfsfsdfsd' '& lt; / Div & gt; '; JQuery ('body.floating_box') below () .; JQuery ('body') enclosed (content). } And here is my HTML code & lt; Div id = "notify" class = "nn" onclick = "callme ()" & gt; & Lt; Span id = "nbox" class = "nb" & gt; & Lt; Img src = "gn16.png" & gt; & Lt; Span id = "ntext" class = "nt" & gt; 23 & lt; / Span & gt; & Lt; / Span & gt; & Lt; / Div & gt; function callme () {var content = '& Lt; Div id =...

ruby on rails - How to paginate two tables in one view -

I want to ask if I can use the plugin twice on a page? For example, I have a table with male users and on one page there is a table with women users on one or the other scene and I need to endorse both tables. My question is, what is the general solution to this problem? You can tell the option to : param_name parameter to use for the page number within the URL The name of (Default is : Page ). You can do this:

Reading Resources correctly in Eclipse with Java -

मैं उस प्रॉपर्टी-फाइल को लोड करने का प्रयास करता हूं जो & lt; project & gt; / निम्नलिखित कोड के साथ (एक स्थिर संदर्भ में, मेरे पास अभी कोई ऑब्जेक्ट इंसटाइज नहीं किया गया है): & lt; संसाधन / पाठ / अनुवाद_एएन.प्रॉपर्टीज़ This_Classes_name & gt; .class.getResourceAsStream ( "/ संसाधन / पाठ / translation_en.properties"); मैं इसे इस तरह लोड क्यों करूँ? पहले मैं क्लास ऑब्जेक्ट का उपयोग करता हूं क्योंकि getResourceAsStream () स्थिर नहीं है और मैं googling के माध्यम से सीखा है कि मुझे इस प्रॉपर्टी फाइल को लोड करने के लिए इस विधि का उपयोग करना चाहिए। तब मैं एक / जो जावा मेरे main.java, लेकिन परियोजना के सापेक्ष नहीं लग रहा है का उपयोग करें। यद्यपि, मैं अभी भी उस का उपयोग कर अशक्त प्राप्त करता हूं। यह कैसे काम नहीं कर सकता, अगर उस सही जगह में कोई फ़ाइल है? जावा यहां क्या करता है? संसाधनों को कक्षापथ में होना चाहिए। एक विकल्प पूरे स्रोत / संसाधन फ़ोल्डर को अपने स्रोत फ़ोल्डर में कॉपी करना है। एक अन्य विकल्प केवल संसाधनों वाले एक नया स्रोत फ़ोल्डर बन...

c++ - Intrusive lists -

I can not find much information about online thanks An infiltration list is one where the point on the next list node is stored in the same structure as the node data. This is generally a bad thing, because data related to this specific list implementation is concerned. Most class libraries (for example, C ++ Standard Library) use non-intrusive lists, where the data list (or other container) does not know anything about the implementation.

android - How to animate a child view and having the parent view to automatically resize? -

I have a quick question. I'm trying to animate a child's view to make it disappear. This part is easy, but during the animation, the size of the parents' view is not changed. How can I do to change the size of the parents during animation? Here is my current code: Animeshnset set = new animation set (true); Animation feed = new scale animation (1.f, 1.f, 1.f, 0); Animation fade2 = new alpha animation (1, 0); Set.addAnimation (fade); Set.addAnimation (fade2); Set.setDuration (2000); Set.setFillAfter (true); BgColor.startAnimation (set); bgColor is the scene that I am missing. Here is the end result: You can see the difference after the animation. Any thoughts? Thanks in advance! After the animation is completed you can add an animation Listnr and can change the layout animation KsetAnimationListener (new animation Listnr) {@Override public void onAnimationEnd (animation animation) {BgColorksetVisibility (see. GONE);} @ override public void Pranime...

visual studio 2008 - Jabber-Net release build fails to connect to XMPP Server -

I downloaded from jabber-net source I vs 2005/08 SSNL file (2005-jabber-net.sln) Open, set the "2005-example" as the active project, create it in debug mode, after connecting to the XMPP server, after the method (), the callback is called jc_OnAuthenticate (), which means that The application is connected to XMPP server. Then I in release mode. Creating the SLN, the same example went on again, this time the connect () does not happen after the call, callback jc_OnAuthenticate () is never called; Is this a known problem with overbought? There is some code in the debug. : \ jabber \ protocol \ EnumParser.cs (184): debug Asset (map.TryGetValue (Value, Out Val)); I write it again: bool b = map.TryGetValue (value, out value); Debug.Assert (b); Works (at least for me).

memory management - C++ passing struct or object by value -

मेरे पास यह है: enum इकाइयों {पाउंड्स, किलॉस}; संरचना विन्यास (const इकाइयों इकाइयों); Const char * नाम; इनलाइन कॉन्फ़िगरेशन (यूनिट्स पीयूनेट्स, चार * पी एननाम): यूनिट्स (पीआईएनआईटीएस) {name = strdup (pName); } इनलाइन ~ कॉन्फ़िगरेशन () {निशुल्क ((शून्य *) नाम); }}; मैं इनमें से किसी एक को इस तरह से चला रहा था: कॉन्फ़िगरेशन सीसी (किलॉस, "एबीसी"); cdao- & gt; बारे में (सीसी); मुझे इस से बुरा क्रैश हो रहा था जब तक कि कोई संदर्भ लेने के लिए मैंने विधि को रीडिफाईंग करने की कोशिश की: कॉन्फ़िगरेशन सीसी (किलॉस, "एबीसी"); cdao- & gt; बारे में (& amp; सीसी); और अब सबकुछ काम करता है। लेकिन मूल्य द्वारा स्ट्रैट मेमोरी के साथ कैसे पेंच हो सकता है? आपने अपना स्वयं का कॉपी कन्स्ट्रक्टर या असाइनमेंट ऑपरेटर प्रदान नहीं किया है। इसलिए, जब आप प्रतिलिपि या एक असाइनमेंट करते हैं, तो संकलक-जनरेट किए गए प्रतिलिपि कन्स्ट्रक्टर और असाइनमेंट ऑपरेटरों का उपयोग किया जाता है, जो वास्तव में इस मामले में सही काम नहीं करते हैं। वे प्रत्येक सदस्य की प्रतिलिप...

javascript - how to create watermark effect using jquery in asp.net -

I got to do this but I found that it is not working because I have multiple squares in the same text box Are given. How to change it to work with many classes. I do not know how to use to work with selectors. I'm using it like this & lt; Div class = "inbox3full" & gt; & Lt; Div class = "threeinbg" & gt; & Lt; Asp: text box id = "textart order" cssClass = "three water" text = '& lt;% # bind ("ordered order")% & gt; Runat = "server" tooltip = "Type your sort order" & gt; & Lt; / Asp: textbox & gt; & Lt; / Div & gt; & Lt; / Div & gt; With jquery as .water {font-family: Tahoma, Arial, sans -serif; font-size: 75%; color: black;} & lt; script type = "text / javascript Repeat "& gt; $ (document) .ready (function () {$ (" .water "). AddClass ('watermark'); $ (" watermark "). Live ('focus', f...

githooks - git hooks push and local commits -

I am writing a git hook for my project team recently. I would like to know whether the developers are committing various commitments locally, without following the standard commit message pattern, they push those commands, will fail there because the pattern is not being followed? The desired result will be that they will be able to work locally according to their wishes, then they are compelled to follow the pattern of structures when they are the main corporate branch. Thoughts? Is this the best practice? This is the trick: are not published (pushed / drawn) If your project members push into bare repo where to check for a server side hook ( pre-acquire or update ) commit message pattern (which I'm not sure is it Maybe done), that push will fail. But the committed developer lives on the local repo and he still has to fix it ( git commit --mend if no other committee has already been made). It would be better: Create a template GIT repos with the right ho...

Another (400) bad request with C# REST Client: How to POST pure XML? -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मुझे एक कठिन मेरे सी # थ्रीस्ट क्लाइंट के साथ काम करने वाला एक सरल रेफरल वेब सर्विस एप्लिकेशन प्राप्त करने का समय मैं POST विधि का उपयोग करके शुद्ध XML भेजने की कोशिश कर रहा हूं। मैंने एक डब्ल्यूसीएफ रेस्ट सर्विस बनाया है जो ऊपर और चल रहा है (मैं अपने ब्राउज़र में सर्विस टेस्ट पेज देख सकता हूं)। इसके अलावा मैं फिल्डर के माध्यम से मेरी डब्लूसीएफ़ रेस सर्विस को कॉल कर सकता हूं और यह सही तरीके से प्रतिक्रिया करता है (मुझे एक रिटर्न वैल्यू मिलेगा)। लेकिन बड़ी समस्या यह है कि बाकी क्लाइंट मैंने हर तरह के सभी गाइडों का इस्तेमाल किया है। इसके अलावा, एक ही ग्राहक कोड जावा-आधारित REST सेवा के साथ काम करता है। लेकिन मुझे मिलता है .net में त्रुटि "दूरस्थ सर्वर ने एक त्रुटि लौटा दी है: (400) खराब अनुरोध।" अनुरोध के बाद यह अपवाद होता है। GetResponse () जैसा कि मैंने WCF सेवाओं को विकसित किया है, मैंने दोनों क्लाइंट (app.config) और सर्वर (web.config) के लिए कॉन्फ़िगरेशन सेटिंग निर्दिष्ट करने के लिए उपयोग किया है लेकिन यह स्थिति ...