Posts

Showing posts from February, 2011

.net - Is a Windows Service application the right approach -

I currently have a windows app that is automatic and runs daily. The purpose of downloading a dataset is to use a dataset to insert into the SQL 2005 database. Is there a window service application suitable in this situation, will it be more flexible, and it will perform better You can of course get it as a service, but I do not think you benefit from any one since the service is always running, so generally those applications are used It is done, which have to be run, because they will be continuously demanding a condition. Are Nc (the waiting remoting would, to check every minute for information in databases, etc.). Since you go once a day, so if you change it then you will not have any benefits. If your automated work is being set up correctly, then the machine should run, just like the service of a window app (especially consolve) on the service is that if something fails, then you can re-app Can start and run it. This will not be so easy with a service, because to ens

updating data in EXCEL using ado.net , how to refer to columns in sql statement? -

I am using ADO.NET OLEDB drivers from Excel file. I have no HDR in the connection string (which means that there is no header in my excel file) I want to mention the column to run the update statement and because they are in the Excel file, the following SQL query Throws the following error in: No value was given for one or more of the required standards. Update [fact $] set ac = 'test123' where DO = 'excel sheet' are related columns 'fact'. As far as my quick research has been found, as far as jet engine F The column name starting with, i.e. F1, F2, F3 etc. provides. You can do your self test by making OleDataReader by calling the GetSchemaTable () method to know about your columns.

python - Auto-incrementing attribute with custom logic in SQLAlchemy -

I have a simple "invoice" class with the "number" attribute, which is assigned when the user saves a Invoice Some obstacles are: 1) The application is a (thin) client-server one, so whatever the number that determines should be seen for the collision - 2) There is also a "version" attribute in the invoice, So I can not use a simple DBMS-level automating field I'm trying to create it using a custom type, which is saved every time an invoice is saved. Whenever process_bind_param is not called any value, then it will call any type of singleton to determine the number and avoid collision. Is this a decent solution? Anyway, I am having a problem. This is my custom type: class autoimmunity (type type decokerter): impl = types.Unicode def copy (self): return automation ( Def defragment_bind_param (self, value, bid): if not value: # Must be found next autoincrement value value = "1" # Exam value :) Return value My problem is just that w

asp.net mvc - Begin.Form with overload that accepts routeValues and htmlAttributes -

मैं start.Form का एक अधिभार का उपयोग करता हूं जो रूट मान स्वीकार करता है & lt;% RouteValueDictionary रूट वैल्यू = व्यूकोन्टेक्स्ट। रूटाडेटा। मूल्य; मार्ग वैल्यू। जोड़ें ("टेस्टराउट 1", "परीक्षा"); (Html.BeginForm ("श्रेणी", "होम", मार्ग वैल्यू, FormMethod.Post)) का उपयोग कर रहा है {% & gt; & Lt; इनपुट प्रकार = "सबमिट करें" मान = "सबमिट करें" नाम = "सबफ़ॉर्म" / & gt; & Lt;%}% & gt; यह काम करता है और फार्मेटाग को इस रूप में प्रस्तुत करता है: & lt; form method = "post" action = "/ home / category? Testroute1 = test" & gt; मुझे html गुणों को बदलने की आवश्यकता है, इसलिए मैंने क्यों प्रयोग किया है: & lt;% RouteValueDictionary routeValues ​​= ViewContext.RouteData.Values; मार्ग वैल्यू। जोड़ें ("टेस्टराउट 1", "परीक्षा"); (Html.BeginForm ("श्रेणी", "होम", मार्ग वैल, FormMethod.Post, new {id = "frmcategory&qu

javascript - Is there any reason why MicrosoftAjax.js is not minified? -

I compress my own JS using YuiCompressor, but is there any reason that MicrosoftAjax.js is not minified ? Or some of its compressed say run it compressed version (if there is a compressed version) or should I shorten it to decompile and script resources? Let me tell this deceptive answer. ASP.NET AJAX has always provided both Debug and Compressed versions of MicrosoftAjax.js. Web. Control of a combination of configuration debug settings and which script is referenced. Additionally, you can use compressed scripts regardless of them.

.net - How to skip the subsequent byte[] received from socket using c# -

I am using the function under a thread to get the byte [] socket through the socket. Since there are two network adapters in my machine, it is receiving the [byte] twice, I want to get the next byte []. What should I do to get it? Public Zero Recipient () {strMultpileBatchString = ""; String mcastGroup = ReceiverIP; String port = receiver port; // Announce Socket Object Socket S = New Socket (Address Family.Inter Network, SocketType.Dgram, ProtocolType.Udp); // Start the end point of the receiver socket. IPPpoint IEPP = New IPPpoint (IPadation. Anyone, Intel Purse (Port)); S.SetSocketOption (SocketOptionLevel.Udp, SocketOptionName.NoDelay, 1); S.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, 1); S.Bind (ipep); S.SetSocketOption (SocketOptionLevel.IP, SocketOptionName.MulticastTimeToLive, 0); IPADress IP = IP Address Perca (Emacs group); S.SetSocketOption (SocketOptionLevel.IP, SocketOptionName.AddMembership, New Multicast Option (IP)); Whil

How do I use Bazaar with a HTTP proxy? -

How do I use the market with a HTTP proxy? I can not find anything in my documents. http_proxy Set environment to indicate your proxy, e.g. . (On Windows): set http_proxy = http: //webcache.mycompany.com: 3128 / < / Html>

cocoa touch - iPhone code leaks and I don't know why -

This is a well-known snippet, which is to select a photo from the iPhone Photo Library: Select Model Viewer Controller: Animated Picker: Yes]; [Picker Release];}} Here you can see a screenshot of Instruments Why does this leak? I do not understand this, because the picker is going well, I think. UIImagePickerController If you are going to use it more than once, then it is recommended Is that you reuse an example

animation - Drag to rotate in iPhone-app -

I'm trying to pull a UIImageView according to an anchorpoint, but the whole image move is actually a one for my app settings The scene is and a parameter is set with the dial (hands / needle (?)). I want that when I am pulling it, the location of the needle / rotation center does not increase. Thank you for your future reply. You have to set a conversion rotation on your needle layer. To see the correct sample code for you, the Metronome app that Apple provides will be very similar to you.

c# - Wildcard search for LINQ -

I would like to know whether it is possible to search wildcards using LINQ. I see What if I want something like a test, if% this% works, how can I do this? Regards / div> I routinely I will use the expression because you can not always use Linux SQL. For example Linq's list & lt; String & gt; List = new list & lt; String & gt; (); List Add ("this is a sentence."); List Add ("this is the second one."); List Add ("C # is fun."); List Add ("Link is also fun."); System.Text.RegularExpressions.Regex regEx = New System. Lesson Regular Expression Renex ("this"); Var qry = List Where & lt; String & gt; (Item = & gt; regEx.IsMatch (item)) .style & lt; String & gt; (); // Print result forte (Miscellaneous items in curie) {Console.WriteLine (item); }

debugging - Windbg Thread ID After StackOverflow And Process Shut Down -

Produces dump files ...) 1 chance DLL unload: thread ID but does not have StackOverflowException (I will not expect it later, this point exception has not yet been thrown). 1 chance Stackoverflow: Thread ID but does not have StackOverflowException in it. 1 Stop the chance process (off): StackOverflowException but it does not include thread IDs. ??? Is there any way, either to configure the adipulus or to run the command in the windbag, to capture the exception and to use the thread ID? In response to Magnus, is there a few useful information if the thread ID is not available? Moving! Threads give some information, but without both thread ID and exception, there seems to be no where else to go! Clarcec seems more useful than walking! In this case, threads. The following post is a bit more information about capturing a StackOverflowException, although it is completely Was never resolved

javascript - Toggle text -

I have a text box with text beside it. When the checkbox is selected and unselected, I want to toggle the text 'yes' or 'no'. I have a hard time with this, is anyone an example of this? I can not answer the status of the checkbox to the Jacobine. Thanks javascript ... Window.onload = function () {var chk = document.getElementById ('CheckboxIdHere') chk.onclick = function () {var lbl = document.getElementById ('LabelEdderHeer') lbl.innerHTML = (this check)? "Not yes"; }} Click the <$ code> $ (function () {$ ("# checkbox here") (function () {$ (< "#LabelIdHere") .HTML (($ (this) .is (": checked")) "yes": "no");});});

http - How does XMLHttpRequest know when to invoke its callback? -

What I think, if the client-side JavaScript code uses XMLHttpRequest to make POST requests, then it's a response Waits for and fulfills that it prepares the prepared station to prepare it. Invites full and callback function. My question is, how does it decide that the response is complete? Does it return the contents of the first TCP packet? Or does the server shut down the TCP connection to complete the transaction? Or is there something special in TCP packet material that tells the XMLHttpRequest object that the response is complete? This waits for either to close the connection to the server, or until the content in the response- By the same reaction as the length header, many bytes can not be read, then he waits.

Alternative for Report.Load() event in Ms Access 2003 -

I have created an application in Access 2003 and has continued to work on another computer with Access 2007. I have created a report method which loads data from a record set in some unbound fields on the report. This method assumes three parameters value from three fields on the report. The data source of the report is a query. I call the method in the load () event of the report, such as LoadSummary ([field1], [field2], [field3]) and work fine in Access 2007 is. I switched access to 2003 and the load event is unavailable. I tried to call the method using open, page and activate event but all failed because it seems that when these events are on fire, the fields are not populated with the data. Please help how can I work it out in Access 2003? No eye opener is welcome Thanks. Try the on-property event of the report header section. If that does not work, then try the format event on the sections in detail, but boolean variables in a report level do this only once.

JMS File Store tuning -

We are using Weblogic JMS as a JLM provider for our application. We constantly use the file store as a store. There is a mechanism for adjusting the file store size, so that once the file reaches the specified size, a new file is generated. I have seen now that all the messages till date are kept in the same file. I think it will affect the operation of the IO operation by reading / writing messages. Does anyone have come into this situation and what is the solution? is? Weblogic JMS file store tuning details are Perhaps the unit of order processing will be helpful. I can not see anything about the file size, but the message paging information may be helpful. / P> When I have used JMS with continuous messaging, I have not had any problems with the file size. Once the message is crossed, what happens to his entry in the file? Should it be removed or not accepted? Certainly the size of the file grows without compromising.

c++ - What's the most efficient way to erase duplicates and sort a vector? -

Image
I probably have to take a C ++ vector with lots of elements, remove duplicates, and sort it. I currently have the code below, but it does not work. vec.erase (std :: unique (vec.begin (), vec.end ()), vec end ()); Std :: sort (vec.begin (), vec.end ()); How can I do this correctly? Additionally, erasing the first duplicate (like the one coded above) or what is faster to sort first? If I sort the first, what is std :: unique executed? Or there is another (perhaps more efficient) way to do this. ? I agree and; A good idea can be here even if you are trapped using vectors, if you have enough duplicates, then you might be better to create a set to do dirty work. Let's compare the three ways: Sort by vector, exclusive (vec. Start (), vec.end ()); Vec.erase (unique (vec.begin (), vec.end ()), vec.end ()); Convert (manual) set to set Convert to set up (using constructor) set & lt; Int & gt; S (vec.begin (), vec.end ()); Vec.assign (s

sql server - T-SQL Unicode "word" definition -

I am new to Unicode in Microsoft SQL Server 2005/2008. I have changed my DB to use Navaraka () instead of the worker. (). I am surprised that the sorting is different from Sarkar () I found this second reference on stack overflow, it was explained that Unicode sorting is done on the "word" basis. After more research, I would like to visit the Unicode Consortium site ( Www.unicode.org), in particular the Unicode Text Segmentation (www.unicode.org/reports/tr29) site that discusses this, and it mentions hyphen as a special case. (Sorry, as a new user, I could not post hyperlink to them) But what I am trying to define is actually the rules of different collations, specially For American English collations from What are the other special cases? For example, is the only character that has been neglected? Or about other punctuation, such as apostrophes? Any links or pointers will be appreciated. Do not use a SQL Match; Use of a Windows This is mentioned : For Windows Ph

language agnostic - What are some algorithms for finding a closed form function given an integer sequence? -

I see a program's way to take an integer sequence and spit a closed form function. Something like this: Returned: 1,3,6,10,15 Return: n (n + 1) / 2 Samples can be useful Are; Language is unimportant It touches an extremely deep, refined, and active field of mathematics. In some cases (linear repetition) and negligent (2, 3, 5, 7, 11, 13, .... seems to be close to others) is damn close to trivial, for example seeing and seeing the Herb you can start Wilf's book on this topic (CF page 1 (2E)) but this will only get you so far. But I think that your best bet is to lose, ask Sloan's comprehensive question when you must know, and instead read one of the most eccentric people in this dark subject Spend your time in Anyone who tells you this problem is solvable, you will get snake oil (cf. page 118's wolfbook (2e).)

javascript - yuicompressor error, not sure what is wrong? -

There is a lot of confusion here, trying a yuicompressor on a simple JavaScript file. Looks like my JS file: function split text (text) {return text.split ('-') [1]; } [Error] 1: 20: Invalid character [error] 1: is an error: [INFO] Use of charset cp1252 [Error] 1: 20 : Invalid character [Error] 1: 20: Syntax error [Error] 1: 40: Invalid character [Error] 1: 49: missing; [Error] 1: 50: Invalid character .. .. [Error] 7: 3: [Error] 1: 0 in compilation statement: Compilation 38 produces syntax errors ... < P> Will someone tell me what is wrong? Your encoding of the actual file is the issue YUICompressor is working on. Open the file in Notepad ++ and select ANSI & amp; it should work. [

modal dialog - Jquery Traversing -

I am using JQuery to show a modal dialog box. In the dialog box there is File Upload Control and Upload Button. In addition there are two buttons to save and cancel in. I need to control file uploads essentially. I have to cross the file control and get the path by using $ (this) I'm able. Parent (). siblings (). Children () Get (1) .value; And display an error message on the click of the upload button. But I want to display the same error to save the button. Need help in saving the button as I have created a button with the dialog box $ ("#dialog"). Dialog ({bgiframe: true, autoOpen: false, height: 500, width: 600, modal: true, button: {Cancel: jobs} {$ (this) .dialog ('close');} 'Save' : Function () {}}}); From your code example it looks like inside this Cancel and Save Handlers is the #dialog element, so you can go for all children there. Instead it would be more robust to use a selector instead of a traversal. $ (this) .find ('

Text search capabilities? -

We have a framework in which there are hundreds of XML files / text files / resources that decide the behavior of the system. (Huge <> Other teams use this framework and produce different products on it. To create a product using a framework, this usually means That's the XML files in various ways. This issue is in front of the consumers of our forum, that they are not sure which files are necessary, which files are not and what should be splashed Should not be. In other words, I think there is a lack of good documentation (we have a document but they describe different components in the system but do not miss the big picture and do not display the system workflow. ) So what I was thinking is a semantic text based search engine, which indexes these files and presents them in an intuitive way. If the consumers of our forum want to know "how can I fill the blah", then the search engine should point out the steps involved in completing Blah Is this a go

multiple file upload in just single browse click without jquery -

How to create control in a web application that has multiple file selections in a single button similar to controlling ophiferylog in window applications You will need a flash uploader, such as Also check:

Error when trying to upload file in PHP -

By the morning I am doing all the work right php page. The page is not uploading any selected file anymore. Whatever I receive, the following error message is: WARNING: move_uploaded_file (upload / brainstream_2009_06_25_23041.zip) [function.move-uploaded-file]: failed to open the stream: such In a file or directory, c: \ xampp \ htdocs \ vectorization \ admin \ jobs_edit.php on line 146 Warning: move_uploaded_file () [function.move-uploaded-file]: 'C: \ documents and C: \ xampp \ htdocs \ vectorization \ admin \ jobs_edit.php The row 146 file could not be uploaded to Settings \ Admin \ Local Settings \ Temp \ php1B2.tmp 'to' upload / brainstream_2009_06_25_23041.zip '. Please select a valid file file name: BrainStream.zip I have written the following code: $ uplfile = $ _FILES ['uploadfile'] [ 'Name']; $ Upltmp = $ _FILES ["UploadFile"] ["tmp_name"]; If ($ ($ uplfile)) {$ ext = explosion (".", $ Uplfile); $ U

design - Plugin based application in C# -

I would like to create a graphical user interface application using the language of my choice, the application will run on Windows XP. It will be some kind of a complex Windows Form application. I think and according to most suggestions, best to use C #, the tree structure on the left side of the GUI will be populated after reading from a configuration file which will be a binary file. (But initially I can work with a simple ASCII file to test my code.) The application will accept some input from the user through this GUI and will be written back in the same config file and the tree on the form The structure or labels or any related fields will reflect the change. There will be 3 tabs and 3 related config files for each tab. I need some help in designing the application for now. Am I planning to use the host app (main application) and use the 3 tab control as plugins, is it practical? If you can do so please guide me on this. I mean how do I do 3 plugins in C # and how do I write

data binding - ASP.NET DataSource & GridView databinding, setting a parameter value programmatically -

Then, I have a gridview with an object data source, and I want to set the program a selectParameters of the ObjectDataSource. I have tried (during page_load and dropdown list = selected index changed) objectDataSource.SelectParameters ["my_parameter"]. DefaultValue = "my_value"; ObjectDataSource.DataBind (); But it was not working. what would you suggest? Trace the oscillating event at the data source. Secure Zero ObjectDataSource 1Silching (Object Sender, ObjectDataSourceEctingEventErgase E) {E. Input parameters ["month"] = datetime.nobmonth; }

java - How to set class path for client of web service in build.xml -

Hi, I know to set up a client path for client tags under the build.xml web service in Java needed. / P> I have to add the log4j.properties file to client jar. Thank you I think you can build.xml Are talking about. Take a look at

.net - DataGridView Master-Detail for DTOs? -

In my Windows Forms app, I have two datagrad views which represent the master-extension relationship, for each data source a data There is a transfer object, which is shown as ILID (TK) - so the data relation is out. What's the best way to run the master-extension grid? Is such a built-in method to do in .NET or do I have to write my own ribbon when the selected master line changes? Process the line center event on the master grid. Generate the details grid manually or update the data source and reboot.

Bitfield manipulation in C -

The classic problem of testing and setting individual bits in an integer in C is probably one of the most common intermediate-level programming skills in the You set and test with simple bitmasks like unsigned int mask = 1 & lt; & Lt; 11; If (value and mask) {....} test for // bit value. = Mask; Set // bit value & amp; = ~ Mask; // Clean a bit There is an argument that this error prone, difficult to maintain, and poor practice. In C language, it provides bit-level access that is typewritten and portable: typedef unsigned int boolean_t; #define FALSE 0 # Define TRUE! FALSE typedef union {struct {boolean_t user: 1; Boolean_T zero: 1; Boolean_T force: 1; Int: 28; / * Unused * / boolean_t compat: 1; / * Bits 31 * /}; Int raw; } Flags_t; Int create_object (flags_t flags) {boolean_t is_compat = flags.compat; If (is_compat) flags.force = FALSE; If (flags.force) {[...]} [...]} but it makes me cringe Interesting reasoning for my colleague and I still have unresolve

c++ - How do you pass boost::bind objects to a function? -

I have at least one dimensional function right now I'm passing it function indicator though there are several criteria in many functions, Some of which are certain. I have used this kind of motif such as template & lt; Class T & gt; At least (T & amp; F) {} factor F (param 1, absolute 2); Minimize & lt; Functor & gt; (F); However, in the definition of the Factor many boards are Boost :: The dam looks cleaner so that I can: Reduce (boost: bind) (F, _1, absolute 1, absolute 2)) However, I am not clear whether my at least declaration boost :: Bind . What type of object is boost :: bind ? Is there an easy pattern for this that avoids the boilerpets of mosquitoes but many parameters are binding? You just use the boost :: function I think that < Code> boost :: bind has its own type, but it is compatible with boost :: function specific use for typingfiff for the function: typedef boost :: function & lt; Bool (std :: string) &

architecture - Handling multiple sites via git -

Here is the position: 9 sites, they all share the same codebase, but there is a difference: < Type: 2 of them can be considered "social" sites (events, news, profile, login) Type B: 3 of them are your regular sites (event module, news, etc.) Type C: 4 of them are small "brochures" type sites (just pages and a contact form) Now I'm a skilled Was thinking the area to deploy sites. If I change one of those sites, sometimes it applies only to one site, sometimes it also happens on both types of sites. Some changes all type A and B Sites will affect and similarly. I'm getting it to work with Git. How can I apply changes in many folders efficiently? I tried to make branches for A, B, C but I think that is not really a solution. For example, if the file xxx.txt exists in A, and I switch to B, then it is still there. I think I should decide which files are shared and which are not and then there is no way to mix and match it all together. all

Why are all files marked with 'merge' in TFS? -

I'm merge my development branch into the main branch. My development branch has a subset of only those files that I have changed, all other files should be unchanged. Logically, I want to merge only those files that I have changed I will not check in the file that I did not change. But when I perform a merge operation in TFS, it marks every file in the tree with the 'merge' type of change. It seems that I have to check every single file in the entire source code tree! I really do not want to do this because it is impossible to see these changes and see what I am making as part of my project. At first, I thought I can use tfpt.exe to undo the unchanged command to undo all the 'merge' changes, but it will not undo those changes. Anyone have any ideas on this? Thank you. There are several possible reasons why this is not the full list: A namespace operation (delete, undelete, rename) is done on the original folder of the files named "merge"

What are the pitfalls of executing jQuery without $(document).ready();? -

स्व-व्याख्यात्मक, मुझे आशा है। आपके jQuery चयनकर्ता किसी भी तत्व को बेतरतीब ढंग से याद करेंगे क्योंकि यह अभी तक लोड नहीं हुआ है (ब्राउज़र द्वारा)।

java - Handling many simultaneous AJAX requests with a struts2 action -

I've got a Struts 2 verb that responds to an AJAX request with some request parameters, a remote service call Data that XML gives, then changes the data via XSL and returning XHtml as a result of a stream result. The response is different depending on the given criteria. There is an action class with a group of stuffs moved here: public class ServiceHandler ActionSupport extended {Private ByteArrayInputStream inputStream; Public string executed () {string response = ""; // Receive request parameters // request for remote server via HTTP connection // Exxplore results via XSL / // uses dom4j for XML / XSL stuff // This should not be an empty response = ResultDoc.asXML (); Inputstream = new bytereinputstream (feedback .getBytes ()); Return "Success"; } Get public byteforeinestreams inputstream () {inputStream return; }} And here are the important struts.xml bits: My problem is that when I have multiple requests run at the same time, all service c

tsql - Problem connecting to SQL Server 2005 named instance -

I have a script that connects SQL Server 2005 to the name using the OSQL. But the script throws the following errors: [SQ Native Client] Named Pipes Provider: Can not open connection to SQL Server [53]. [SQL Native Client] Login timeout expired [SQL Native Client] An error has occurred while establishing connections on the server. When connecting to SQL Server 2005, this failure may arise from the fact that under default settings, SQL Server does not allow remote connections. The connection part of the script is shown below: osql -E -S & lt; Servername & gt; \ & Lt; Name_instance & gt; -i D: \ script \ script1.sql -o D: \ scripts \ script1.txt My question is what is the reason for this error and what is the possible resolution? The -S parameter specifies the example. Your example '\' shows you need something to change: osql -e -s localhost \ myInstance -i D: \ scripts \ script1.sql -o D: \ You must also verify that your client and server a

data warehouse - Are textual fields ever allowed in fact tables? -

Is there any case where I can have a text field such as details in the facts table? There is currently a fact table of meeting events (cereal: line per meeting), with many dimensions like date, client, location etc. I need to insert a meeting topic in the fact sheet. Is it okay, even though this is not a solution (I have not seen some examples). Any ideas or advice from past experiences? Thanks This, as a "dimension dimension": a dimension so much There is no need to create a table for it, a common example would be an invoice number: They are not matrix, but because they are very unique, this 32-bit FK is included in an invoice table with 128-bit CHAR (16) fields With a wrong economy, many records in the form of your facts table. It should be done with caution, because they actually make table rows wide. The junk dimension is usually a better option, if you have more than two dimension dimensions. Of course, if there is one dimension for which you can attach

What is the difference between Computer Science and Information Science? -

I have thrown these two words with the same friends by the people. As much as I have heard, computer science is more mathematically rigorous and its graduates write more code. Does a computer science student differentiate the information science student from? What different career paths are available for each university? In my university, IS is located in the College of Business; And intended as a business-oriented software developer track; Teach people to weigh up business concerns with development concerns. Computer Science (which I have been told in engineering college is unusual) gives more attention to the way to solve problems; And usually will be very much in depth. As a better example, in my university, in the Computer Science course, you can implement a memory manager in C as part of an operating system theory class; An IS Course may be that you can apply a simple inventory manager to VB And of course, what I have heard, IS basically CS, CS dropout for busines

asp.net - Remove Cookie Support -

मेरी साइट में निम्न यूआरएल प्रारूप है: www.mysite.com/display.aspx?ID=128 < P> हालांकि ज्यादातर उपयोगकर्ता यूआरएल को www.mysite.com/Display.aspx?ID=128&AspxAutoDetectCookieSupport=1 के रूप में देख सकते हैं & amp; AspxAutoDetectCookieSupport = 1 से यूआरएल में दिख रहा है। क्या यह web.config में कुकी के साथ कुछ करना है, लेकिन कहां? और क्या होगा अगर मैं इसे निकाल दूंगा? कैसे निकालें? सत्र राज्य और फॉर्म प्रमाणीकरण दोनों को web.config फ़ाइल में स्थापित किया जा सकता है कुकीज़ के बिना काम करें - इसे "कुकसीस कॉन्फ़िगरेशन" कहा जाता है ऐसा होने पर, एएसपी.नेट को कुकियों के विकल्प के रूप में क्वेरी स्ट्रिंग का उपयोग करके कुकीज़ की कमी के लिए क्षतिपूर्ति करने का प्रयास करने के लिए सेट किया जा सकता है। यह आपके अनचाहे क्वेरी स्ट्रिंग पैरामीटर पैदा कर रहा है। आपको "cookieless = autoDetect" या "cookieless = UseUri" के लिए अपने web.config में दिखना चाहिए। सेटिंग को " Cookieless = usecookies "यह सुनिश्चित करेगा कि कुकीज सुविधा का उ

xml - XSLT Transformation with count -

मैं निम्नलिखित को एक्सएसएलटी & lt; ब्लॉगर & gt; & LT; पोस्ट & gt; & LT; पाठ & gt; ... & lt; / पाठ & gt; & Lt; श्रेणियां & gt; इंजीनियरिंग, इंटरनेट, सॉस & lt; / catgories & gt; & Lt; / पोस्ट & gt; & LT; पोस्ट & gt; & LT; पाठ & gt; ... & lt; / पाठ & gt; & Lt; श्रेणियां & gt; इंटरनेट, सॉसेज & lt; / catgories & gt; & Lt; / पोस्ट & gt; & LT; पोस्ट & gt; & LT; पाठ & gt; ... & lt; / पाठ & gt; & LT; श्रेणियों & gt; सॉसेज & lt; / catgories & gt; & Lt; / पोस्ट & gt; & Lt; / ब्लॉगर & gt; सॉसेज (3) इंटरनेट (2) इंजीनियरिंग (1) Div class = "post-text" itemprop = "text"> सबसे पहले, अपना एक्सएमएल बदलें data.xml बनाएँ & lt; ब्लॉगर & gt; & LT; पोस्ट & gt; & LT; पाठ & gt; ... & lt; / पाठ & gt; & LT; श्रेणियों & gt; & LT; श्रेणी & gt; इंजीनियरिंग & lt; /

Jquery Traversing -

I am using cloning method to clone a tr and add it to a table. TR has a text box and linkbutton (admor). When clicking on this link button a new textbox should be shown with a link button and the current link button should be hidden. How will it know that the endory link is from the last line / index Need help, is it possible to know the pointer? TAA Apart from: Last and: First of all, what are all the possibilities we have? If the controls are dynamically generated then how to find, but not one? TIA if ($ ('. Addmore')) parent ('tr'). (': The last')) {Warning ('I am in the last line'); } Believing your add link is a class of addmore .

Retrieve label content in Jquery -

I am using JQuery for my application. In my code, I only want to get the text of 'first name' in the label. I have tried it with $ ("# label" + div_id + ""). .html (); // shows the first name with the span tag. But I just need the first name, how can I do this? The following is my HTML code & lt; Label id = "label1" & gt; First name & lt; Span class = "req" & gt; & Lt; Them & gt; * & Lt; / Em> & Lt; / Span & gt; & Lt; / Labels & gt; General solution to this problem - that is, get instant text, but not a child text - elem.clone (). Children () Remove (). the ending (). Text (); (where elem is $ ("# label" + div_id) ). Similar result is the solution of karim79, but if the other tags are not added to the label, then by the benefit of breaking it

PHP calls to external programs all fail with exit code 127 -

प्रतिध्वनि प्रणाली ("/ usr / bin / whoami", $ ret); प्रतिध्वनि $ ret; अपाचे 2.0.52 पर PHP 4.3.9, CentOS 4.5। सुरक्षित मोड बंद है, मैं कमांड लाइन से अपाचे यूजर अकाउंट के रूप में प्रोग्राम चला सकता हूं, लेकिन PHP से चलने वाले सभी प्रोग्राम 127 कोड से असफल होते हैं। देखें कि / usr / bin / whoami मौजूद है, और किसी के द्वारा निष्पादन योग्य (और पठनीय, मोड xx5 ) है php.ini पर doc_root और user_dir देखें, यदि वे सेट होते हैं तो आप उन्हें निष्पादित कर सकते हैं। / Li> यदि आपका अपाचे या PHP क्रोधित है, तो आपको एप्लिकेशन को चुराने में क्रियान्वित करने की आवश्यकता है। मशीन पर कुछ अन्य सुरक्षा प्रणाली या आरबीएसी चल रहा है, तो देखें / var / log / में dmesg या लॉग फाइलें के बजाय & amp; $ ret का उपयोग करना न भूलें > $ Ret । PHP का exec () और passthru () देखें, अलग-अलग कार्य विभिन्न स्थितियों के लिए काम कर सकते हैं। पता है कि अपाचे के लिए एक अलग php.ini है, और एक भिन्न है सीएलआई उपयोग के लिए एंट एक।

Using JQuery for reading XML through javascript -

I have a JavaScript function code where I want to alert. function msgalert (x, y) {tempstr = x.value if (tempstr.length & gt; y) {warning (c_cknowledgmentationtext); X.value = tempstr.substring (0, Y); }} Now I have an XML with the format: I want JavaScript code so that the message shown in the above alert can be read from the XML key name "c_ acknowledgmentText". I'm trying with the code below, but unable to solve the problem, would you please & lt; Script language = "javascript" type = "text / javascript" & gt; Function msgalert (x, y) {tempstr = x.value if (tempstr.length & gt; y) {$ (document) .ready (function () {$ .ajax ({type: "GET", url: ". ./ (/) "(" key ") each (function () {var title = $ (this) .find ('name)') .text (););});}}); }); }} & Lt; / Script & gt; Something where I need to modify the above function so that I can give it a warning value through XML.

inheritance - C#: Overriding return types -

Can return types be overridden in C #? If so, and if that is not why and what is a recommended way of doing this? My case is that I have an abstract base class and its descendants I would like to do this (not exactly, actually, but as an example!): Public Interface Animal {Expression {get} }} Public Square AnimalBase {Public Virtual Poo Exchumium {get {Poo return (); }}} Public class Dog {// do not override, return normal PU like normal animals} public class Cat {public override radioactive poo Akkrment {Get New Redioaktivpu (back); }}} Radioactive Puzzle is available from the Poo . The reason I know this is that those who cat to access the object, they Akskriment without the use of the property Poo < can / code> to Rediodkiy in pop while for example cat can still be part of a Animals directory, where users They may not have the necessary information or care about their radioactive poo that it is understood ... Where I can see that the compiler does

java - Cause for memory leaks in websphere ValueHandlerPool (Suspected) -

We encounter an outflow error. Tax. Mate's Leak Suspicious Report provides the following information class "com.ibm.rmi.io.ValueHandlerPool", "com.ibm.oti.vm.bootstrapClassLoader @ 0x466578 "Loaded by, there are 68,734,136 (50.25%) bytes. "Com.ibm.oti.vm.bootstrapClassLoader @ 0x466578" Loaded by "java.util.Hashtable $ Entry []" storage is stored in an example. But I am not able to relate to this. There is no clear link. How to get an idea about the analysis? Environment: We use websphere 6.1 on JDK 1.4.2 running on Windows. DB Oracle 10 GR1 Application is a struts-Ejb application. Try the 'drilling down' in the entry [] example This will show you how the entries are. On an unrelated note, the package com.ibm.rmi.io indicates that it may be related to RMI - including EJB.

iphone - create UIImageView with portion of image file -

I am subclassing UIImageView to create a tile-based application. Basically, I have a single I am taking the image file and breaking it into pieces, and then I declare pieces in my tile ( UIImageViews ) so that they can be freely manipulated. What is the best way to capture the part of an image and use it to attract UIImageView ? I thought of overriding the drawRect and using the CGAffineTransform , but it seems that there should be an easy way to do this, possibly a CGRect UIImage is sent to UIImageView , but I do not see the API for this. here we go: UIImage * img = [UIImage imageNamed : @ "MyImage.jpg"]; CGRTEMFframe = CGRAtech (X, Y, Tile Wide, Tile High); CGImageRef imageRef = CIMMage Crete with ImageInRect ([IMG CIMMGE], IMG Frame); UIImage * All Image = [UIImage imageWithCGImage: imageRef]; CGImageRelease (imageRef);

Reading web.config value through javascript -

मेरे पास web.config दिया गया मान है: & lt; app सेटिंग्स & gt; & Lt; add key = "vDirectory" value = "fr" / & gt; & Lt; add key = "BookingSummaryPage" value = "/ pli / forms / bookingsummary.aspx" / & gt; & Lt; / appSettings & gt; अब मैं जावा स्क्रिप्ट के माध्यम से "vDirectory" का मान पढ़ना चाहता हूं। मैं नीचे कोड का उपयोग कर रहा हूं: & lt ; स्क्रिप्ट भाषा = "जावास्क्रिप्ट" प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; फ़ंक्शन परीक्षण () {var t = '& lt;% = कॉन्फ़िगरेशन प्रबंधक। ऐप सेटिंग्स ("vDirectory")। ToString ()% & gt; चेतावनी (टी); } & Lt; / script & gt; & Lt; इनपुट प्रकार = "बटन" मान = "मुझे क्लिक करें" onclick = "test ();" / & Gt; उत्पन्न त्रुटि: त्रुटि 'system.configuration.configurationManager.AppSettings' एक 'संपत्ति' है, लेकिन 'विधि' के रूप में प्रयोग किया जाता

c - How to know which headers are included without looking at the preprocessed code in GCC? -

I have found some large C programs, and I want to know that when I am Compiling the program, which is actually included in the header files ... The easiest solution is to print the preprocessed code, but would you know whether there is a way to compile and also What are the files showing the header included? Use to output dependency and to compile To redirect to a file, use MF - In addition - the MM allows to ignore the system file in the dependency list. GCC ... -M-MF & lt; Output_file & gt; # Dependencies GCC ... -MD-MF & lt; Output_file & gt; # Generate compilations and dependencies

sql - Adding an identity to an existing column -

I need to change the primary key of a table into an identity column, and there are already several rows in the table < / P> I have got a script to clear the ID to ensure that they are starting sequentially on 1, works fine on my test database What is the SQL command to retain the identity property of the column? You have 2 options, < Li> Create a new table with identification; Current table drop create a new column with the ID; Existing column drop approach 1. ( new table ) Here you can maintain existing data values ​​on newly created identity columns. go to identity_insert dbo.Tmp_Names prefix ID (id not integer not recognize NULL (1, 1), name varchar (50) zero) [primary] if exists ( Select * dbo.names from dbo.Tmp_Names (numbers, names), select the name dbo.Names go from TABLOCKX to go to identity_insert dbo.Tmp_Names go off the drop table dbo.Names Exec sp_rename go to 'Tmp_Names',' Name ' approach2 ( new column ) You can

c# - WPF Data Binding : enable/disable a control based on content of var? -

I have a button on my form, which should only be enabled when an item is selected in the previewview (or list TabItem in the scene). When an item is selected, its value is stored in the string member variable. Can I tie the isEnabled property of the button for the contents of the member word? That is, if the member var is not empty, enable the button. Similarly, when the change in the contents of the member var (set or clear), the position of the button should change. Since you are looking to bind the IsEnabled property of the button based on the string Try making a converter. Ie ... & lt; StackPainel & gt; & Lt; StackPanel.Resources & gt; & Lt; Local: SomeStringConverter mystringtoboolconverter / & gt; & Lt; /StackPanel.Resources> & Lt; Button IsEnabled = "{binding element name = mytree, path = selected etam. Header, converter = {static resource mystringtoboolconverter}}" /> & Lt; StackPanel & gt; And converter

winforms - c# GUI layout manager -

Which GUI Layout Managers are recommending these days? I've seen SmartLayout (liked to work together) and devexpress extralayout controls, but left it not sure about one. There are other players on the marked? What experience do you have with these controls? Thank you I have used Ectipro's Dock Manager for years It's really good, and their support is great.

ruby on rails - What are alternatives to find_by_sql for computationaly-heavy queries? -

Our company likes reports that calculate ambiguous metrics - metrics that can not be calculated with ActiveRecord's searchers (except for find_by_sql) and where the ruby ​​of Rs. Based capabilities are still very slow Is there a plugin or gem or db adapter that will calculate large in database layer? What is your solution for creating complex reports? If you want to use your ORM or if you are aware that the complex in ActiveRecord There is a lack of express expression for the questions you may not possibly have decided to switch from ActiveRecord, but it may possibly be possible to check at least.

Suggested way to allow others to plugin to my php script and change variable values? -

People want to use my jazzy plugin, but get a list of images from a database rather than a directory, which The way the plugin works is standard. My junky plugin uses that to distribute the AJAX () function & amp; Return data in a php script The php script pulls the file from the directory with a getdir (), adds those files to an array and specifies that array in a variable. There are people What is a good, safe way to allow a variables to change the value inside my php script? Ideally, I would like to have a method where users can create their own script in a separate document (and they do not need to change my documents). Here is a simple example of my script: HTML document & lt; Script src = "http://ajax.googleapis.com/ajax/ libs / jQuery / 1.3.2 / jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; $ Ajax ({type: "post", url: "example.php", cache: incorrect, data: {foo: "some_directory"

asp.net - Disable Validator but Validator Callout still shows and causes validation -

I am attempting to validate that a certain increase in the product is recorded in the product space text box, The problem is that the increment for each product is different, so I'm required to validate each call as a variable (which I do not think you can do with a custom vendor), And let me confirm it on the client side. With a validity Clolautapender. The best solution I have taken is to trigger a regx verifier that will evaluate incorrectly through my javascript (another verifier ensures a valid number to ensure). Problem with ValidatorCalloutExtender, when I disable the verifier it still marks that it turns white as white as the text white (then its yellow is turned yellow again), even though I have kept the JavaScript alert and I disabled the verifier Anyone know. PS: Everything works well / the validator callout is out of the payer, but I need a callout extension! Authenticator : dim productQtyTxt text box productQtyTxt = CTYPE (e.Item.FindControl ("ProductQ

Is there a way to get a better browser for the Visual Studio (2008) help? -

The help browser for Visual Studio renders a bit of modern tabbed browsing, e.g. Double-clicking to open a document in a new tab is not working. Is there a way to get a better browser for VS help? yes and no No, the help browser coming with Visual Studio is very If you have a specific response, I encourage you to log in through this feedback by connecting it. Yes, you can replace all possible hood and replace the browser properly to all and appropriate sections of the interface To do Although I'm not sure whether these interfaces are public or which interface you have to do either in the case, it is almost certainly not worth the time and effort.

jvm - Java error: java.lang.IllegalArgumentException: Signal already used by VM: INT -

I am checking a Java problem (using IBM JVM 1.4.2 64-bit) on Red Hat Linux . I am thinking that someone has seen this error message first and knows what is the solution to this problem? Source: import sun.misc.Signal; Import Sun.misc.SignalHandler; Expansion of public class signaltast thread {Private stationary signal signal = new signal ("INT"); Private stationary shutdown handler handler = new shutdown handler (); Private Static Class Shutdown Handler SignalHandler {Public Zero Handle (Signal Sig) {}} Public Static Wide Men (Sting [] AGR) Try {{Signal.handle (Signal, Handler); } Hold (Throbable E) {e.printStackTrace (); } Try {Thread Solid (5000); } Hold (exception e) {e.printStackTrace (); } System.exit (0); }} Output: java.lang.IllegalArgumentException & lt; The signal is already used by VM: INT & gt; Java.lang.IllegalArgumentException: The signal is already used by VM: INT at com.ibm.misc.SignalDispatcher.registerSignal (SignalDispatcher.java:145)

c# - Mutable wrapper of value types to pass into iterators -

I am writing an iterator, which needs to be passed around a temporary integer. Public IEnumerable & LT; T & gt; Foo (ref INT value value some) {// stuff yield returns ...; } This makes me net "Error 476 Iterators can not be referee or out parameter." What I need to modify in Iterator is this integer value and it is the caller of the itater in other words, Foo () above what it calls < Wants to know the value of the code> valueThatMeansSomething and Foo () . In fact, I want an integer that is a reference type, not a value type. The only thing I can think is writing a class that contains my integer and allows it to modify me. Public Class ValueWrapper & lt; T & gt; Where T: structure {public value-wafer (t item) {this.Item = item; } Public T Items {Received; Set; }} like this: Manapar & lt; Int & gt; W = new value on the & lt; Int & gt; (0); Fu (W) in Fur (T)} {// do stuff} if (W. item {0} {/ * do stuff * /} Is

c++ - QTabBar icon position -

Is there a way to change the icon or text alignment of a tab in Qt? In particular, I would like the text to appear under the icon by default, the icon sits on the left side of the text, but it is not suitable for all situations (especially when you start styling your tabs with stylesheets) It would seem very strange that this aspect would be so limited when I fully see and feel the rest of the tab. Thanks for any suggestions! The only way I can see that creating a sub-section of QTabBar That implements your painting algorithm. You will then need the QTabWidget sub-category to set your own version of the tab bar, it does not look like a lot of fun for me.

Empty Rows in MySQL SELECT with LEFT JOIN -

मेरे पास तीन तालिकाओं हैं: उपयोगकर्ता , सुविधाएं , और < कोड> कर्मचारी_संकल्प । उपयोगकर्ता में औसत उपयोगकर्ता डेटा है, मेरे मामले में सबसे महत्वपूर्ण फ़ील्ड users.id , प्रयोक्ता। प्रथम , और प्रयोक्ता। अज्ञात । सुविधा में भी उचित मात्रा में डेटा होता है, लेकिन इसमें से कोई भी जरूरी नहीं है facilities.id को छोड़कर इस उदाहरण के लिए। staff_facilties में staff_facilities.id (int, auto_inc, not null) के होते हैं , staff_facilities.users_id (int, not null), और staff_faciltities.facilities_id (int, not null)। (यह एक कौर है!) कर्मचारी_संकल्प अन्य दो तालिकाओं के लिए आईडी का संदर्भ देता है, और हम इस तालिका को उपयोगकर्ताओं की सुविधाओं और सुविधाओं के उपयोगकर्ताओं को देखने के लिए बुला रहे हैं। यह मेरी चुनिंदा क्वेरी PHP में है: का चयन करें users.id, users.first, users.last से staff_facilities कर्मचारियों को छोड़ें staff_facilities.users_id = users.id WHERE staff_facilities यह प्रश्न हमारे विकास सर्वर पर बहुत अच्छा काम करता है, लेकिन जब मैं इसे क्लाइंट के उत

c# - Get a boolean value from DataTable -

How do I get a boolean value in a dataset, I am using Visual Studio 2003, I am trying the following , But it is not working: // If the product is inactive, do not display, and redirect to the main page ((dbDataSet.Tables ["productGeneral"]. Rows [0] ] ["Active"] I also tried, but is not working: if ((dbDataSet.Tables ["productGeneral"]. Rows [0] ["Active "". ToString () == incorrect) The column name is "active"], the value in the column is either true or false, using SQL Server 2000 Please You need to insert a bowl directly, and just Have you tried? if (((bool) dbDataSet.Tables ["productGeneral"]. [0] ["active"] == incorrect) If it is a bool, then you want to directly insert the results into bool. First fails because 0 is an Int32, not a B oolean. They are not comparable in C #, because they are specific types, the second fails because ToString () changes the result to a string, and

sql - Whats the difference between an in-memory table, temp table and a pivot table? -

Regarding the SQL and queries, what is the difference between in-memory table, floating table and a pivot table? A table of contents is a table that automatically It will no longer be required when it is no longer required, usually the creation of the session has ended. In MS SQL, they start with a # (or two hashes) if they are global logical tables, which are shared between multiple sessions. ), And is usually created with a selection in the #TEMPTABLE ... style query. A pivot table is a special type of question where the values ​​of multiple rows Is summarized, one The "axis" and the column on the Q becomes where the summary data becomes rows again, often it happens where you have the dates that are ordered; they can then be "pivoted" so that you have a column for January, February For one, one for march, etc.

c# - Will Visual Studio 2010 Provide out-of-box support for the Ribbon in WPF? -

I do not see it in beta, and I do not want to jump through ridiculous hoops. According to the Ribbon project on Microsoft, the ribbons control will be able to deliver a different deliverability from .NET 4.0 to .

Getting "invalid label" error in JQuery calling a WCF service -

I am using jQuery 1.3.2 and some seem to be working. I am calling for WCF service in another domain, my call is killing my service and bringing back a valid JSON object, but I am receiving this "invalid label" error. var url = "http: //.../GetEmployee? Callback =?"; $ .getJSON (url2, {empolyeeNo: 42}, function (data) {warning ("works!");}); I'm looking into the firebug console: The firebug log limit reached. % S entries are not shown Preferences invalid labels [breaking this error] {"D": "You have sent it 42"} Does anyone know what I wrong Am doing I've been around and around this one person shown to JQuery people. Nobody can know what the problem might be. Full disclosure: App is 3.5. W / WCF server and an ASP.NET MVC application. Thanks, WCF / ASP.NET deliberately gives a JSON string that you can not call on eval, because the eval is unsafe on JSON calls and leaves you open for JSON abduction If you wa

.net - WPF MVVM - Command binding inside of an ItemsControl -

I am currently converting a small WPF project into MVVM. I have a list in the ViewModel of the main window & lt; Custom Object & gt; that my item tool binds a datatomplate to create the UI of each element and uses it my old code used an event handler inside the data template to handle one click event. I want to use some type of command binding to eliminate the event-handler of my code-behind, but my items are the datacentext model object of the items in control, so I can not currently bind to an ICommand from ViewModel. So, I think there are some ways to attack it and I'm not sure that this will be the most "MVVM" way of doing this. Do I bind itemsControl.ItemsSource to a new ViewModel class collection that represents each item? Or is I using UserControls instead of a DataTemplate, and then I can force each UserControl with it's own example of ViewModel, which shows it? Or is there any type of compulsive expression that I can use to see the backend of

c# - How to implement event -

वर्ग फू () {सार्वजनिक सूची & lt; string & gt; SomeCollection; } मुझे इस घटना को कार्यान्वित करने की आवश्यकता है जो संग्रह से कुछ जोड़ा या निकाला जा सकता है। यह कैसे करें? सूची & lt; T & gt; कोई सूचना समर्थन नहीं है आप बाध्यकारी सूची में देख सकते हैं, जिसमें घटनाएं हैं - या संग्रह & lt; T & gt; , जो ओवरराइड विधियों के साथ विरासत में मिल सकती है। यदि आप Foo स्तर पर ईवेंट को बेनकाब करना चाहते हैं, शायद नीचे की तरह कुछ - लेकिन सूची पर इसे छोड़ना आसान हो सकता है: वर्ग फ़ू {सार्वजनिक इवेंट EventHandler ListChanged; निजी रीडोनली बाइंडिंगलिस्ट & lt; स्ट्रिंग & gt; सूची; सार्वजनिक फू () {सूची = नई बाध्यकारी सूची & lt; स्ट्रिंग & gt; (); List.ListChanged + = list_ListChanged; } शून्य सूची_ सूची (ऑब्जेक्ट प्रेषक, ListChangedEventArgs ई) {इवेंटहैंडलर हैंडलर = लिस्ट चेंजेड; अगर (हैंडलर! = नल) हैंडलर (यह, इवेंटएआरजी.एप्टी); } सार्वजनिक IList & lt; स्ट्रिंग & gt; कुछ कलेक्शन {{रिटर्न सूची}}}} प्राप्त करें

c++ - Pre/Post function call implementation -

I was wondering if I could call functions in some way C ++ Along with a wrapper class, and after each cover function call, I should always call the second function. So I do not want to call every one of those postfunctions () functions like this: square fu {f1 (); F2 (); F3 (); . . . Fn (); } Zero Foo :: F1 () {:: f1 (); PostFunction (); } Zero Foo :: F2 () {:: f2 (); PostFunction (); } e.t.c. Instead, I want the post function call to come automatically when I call the FU member function. Is this possible? This will help in maintenance .. There may be a case! Do-Dunn-Dunn! {f1} f1 {f1} (foo): foo (foo) {} // pre-function, if you need it, then zero operators () () {} // main function ~ F1 () {} // Post Function Private: Foo & amp; Foo; } Then you have to make sure every time you want to create a new temporary F1 object to call the function. Reusing it means that pre-post functions are not always said every time. This can also be wrapped like this: zero cal

apache - How do I create subdomain redirects using .htaccess? -

I have a main domain MYDOMAIN.COM I want to make it easy for me to remember Google Apps Email URL, so I want to redirect only to Gmail by using .htaccess to redirect to my Google Apps email urlMINNAACXMTM. How do I do this? A little indirect answer ... You can only gmail Why do not setup DNS? Mydomain.com and direct Google Apps (via the admin panel) to answer that subdomain? Instructions are right in the admin panel, and it is very easy to follow. This is a picture.

create a javascript document Object -

इस सवाल का पहले से ही एक उत्तर है: < / P> 5 जवाब क्या कोई तरीका है या किसी फ़ंक्शन को कॉल करके एक जावास्क्रिप्ट दस्तावेज़ ऑब्जेक्ट को पुन: बनाएँ। कुछ ऐसा & lt; स्क्रिप्ट प्रकार = "javascript / text" & gt; Var document = createDocument ("कुछ एचटीएमएल"); & Lt; / स्क्रिप्ट & gt; मैं ऐसा करना चाहता हूं ताकि मैं इस प्रश्न में इस मुद्दे को हल कर सकूं वेबकिट उस कार्य के लिए निम्नलिखित पद्धति को शामिल / प्रक्षेपित करने वाला पहला था: document.implementation.createHTMLDocument (शीर्षक); फ़ायरफ़ॉक्स, संस्करण 4 से, इस पद्धति को लागू करता है, जबकि पिछले संस्करणों के लिए निम्न का उपयोग करके एक HTML दस्तावेज़ बनाना संभव है: var doc = Document.implementation.createDocument ('', '', document.implementation.createDocumentType ('html', '', '')); जो लगभग <0> (HTML5) वाले दस्तावेज़ के बराबर होना चाहिए। ' आवश्यक सार्वजनिक आईडी / सिस्टम आईडी के साथ बनाओ 'दस्तावेज टाइप करें।

Are Linq to SQL and Linq to Objects queries the same? -

If we exclude the datacontext, then are the L2S and L2O queries similar? The prototype that I am already working on, which shows it, but it is very simple and is surprised if he would ask more advanced questions. Do anyone know? No, they are not the same. Work on the LINQ archive for object queries. Collects the collection through collection and executes the sequence of methods against the objects in the collection (for example, etc.). Work on SQL queries from LINQ. The query is converted to an expression tree by the compiler and that expression tree is translated into SQL and the database is passed. It is common for LINQ to SQL that a method can not be translated into SQL, though that method works perfectly in the object query in LINQ. (In other cases, you can not see the exception, but the query results can vary between the objects from LINQ and the LINQ to the SQL.) For example, LINQ to SQL The simple query will be disturbed, while the object with LINQ will be c

model - Django - how to let one application reference another -

I have two Django apps in my project, called App 1 and App2. App1 is "Home" - the device that shows the text to present users and shows some news, Ep 2 is to display a "content" -pip, which contains only a title and some HTML derived from DB. I want to show App1 to App1 using models from App2 and I can import content from mysite.content.models and Does it work. But if I move my application to another site, then I have to change that site to the name of another site. Can this be done without the supply of the name of the site? TIA :) mysite on python path only Is a directory name, not a hostname. Give it a name which means that your project means and give the application directory name, which means the applications are If you do this, you do not have to rename it. If you go to another site, you only need to make sure that your directory is on the new site on the Python Path.