Posts

Showing posts from January, 2013

inheritance - ASP.NET BasePage Class Page_Load not Fired on Postback -

मेरे पास निम्न बेसपेज वर्ग हैं ... पब्लिक क्लास बेसपेज इनहेरिट्स सिस्टम। वेब । यूआई.पृष्ठ निजी लिटरेफ्ट के रूप में शाब्दिक संरक्षित एसआरएस के रूप में सत्र संरक्षित उप पृष्ठ_लोड (ऑब्जेक्ट के रूप में वही प्रेषक, सिस्टम के रूप में ई-एजेंट एवेन्टएआरजी) हैंडल करता है I.Load SO = Session.Item ("SO") यदि ऐसा है तो सत्र कुछ भी नहीं है। () Response.Redirect ( "~ / timeout.htm") अंत तो litError = Page.FindControl ( "litError") litError isnot कुछ भी नहीं है तो फिर litError.Visible = झूठी समाप्ति End Sub संरक्षित हैं तो (स्ट्रिंग के रूप में ByVal संदेश) उप ShowMessage दिखाएँ (उपरोक्त संदेश, "संदेश") अंत उप-संरक्षित उप शो त्रुटि (वायु संदेश के रूप में स्ट्रिंग) दिखाना (संदेश, "त्रुटि संदेश") अंत उप-संरक्षित उप दिखाना सफलता (द्वारा वाइल्ड संदेश स्ट्रिंग के रूप में) दिखाएँ (संदेश, "सफलता संदेश") अंत उप निजी उप शो (स्ट्रिंग के रूप में वाल्ट मेसेज, बाय सील सीएस sClass स्ट्रिंग के रूप में) यदि litError isnot कुछ भी नहीं है तो फिर litErro...

project management - How to measure software development performance? -

I am overseeing some methods to measure the performance of the software development team. Is it a good idea to use build tools? We use Hudson as an automated build tool. I wonder if I can get information from Hudson's report and get it from the progress of every programmer. "post-text" itemprop = "text"> Use not only the construction tool to measure the performance of each individual programmer, you can measure the team completely, you can Can measure the progress of each programmer, but you can not measure your display with such tools. Some modules are more complex than others, some programmers work with other projects , e.t.c. There is not a recommended way to do this, and it will encourage the programmer to write sloping code so that it seems that he has done the most.

c# - ASP.Net Version/Build Number -

I have an asp.net (.net 3.5 / c #) and I display a version number / build number and date Want to do What is the best way to control it and can the auto be inconvenienced in the number of builds? What is the standard for version numbers? Build number? How do I access VS 2008 How do I get the data and assign a string value so that I can show it in the footer of the webpage? If you are using a web application project - you can do so ... assembly web = assembly load ("App_Code"); AssemblyName WebName = web.GetName (); String myVersion = webName.Version.ToString (); If you are using a web site project - almost the same ... assembly web = assembly.get accessionAsampampton (); AssemblyName WebName = web.GetName (); String myVersion = webName.Version.ToString ();

ASP.NET vs Infopath for forms -

We use Infopath at work, often for form design and then we integrate it into MOSS 2007. I still do not know what benefits to designing a form in Infopheet, as opposed to creating a webpage (like ASP.Net / C #) for the same purpose is? Thank you I used InfoPath in MOSS for only one or two things I have found that InfoPath is a bit more integrated into more than one in an attempt to use Net Web Forms from a data retrieval / modification approach in MOSS and It is being said that, in fact, we are doing everything in SharePoint which is not easily done in any web portal. Net webforms have been done through. From the point of view of a flexibility, I think that if you have more options with Net Framework, then what you get in Infinity, especially if we have to use a number of forms which is an embedded SharePoint web app. Like it interacts with each other. / P>

Selenium: Unable to connect to the remote server -

I am trying to run a simple test with Selenium that someone in QA setup for me has gone this test first Is, and passed, but now I'm getting an error message. I do not know what this means, but I do not think this is a problem with my code, I think there is a problem with Selenium. This error is: failed: System.Net.WebException: unable to connect to remote server ---- & gt; System.Net.Sockets.SocketException: No connection can be made because the target machine has actively denied it [IP ADDRESS] What does this mean? "Remote server" is actually my god-box, so I do not think why it can not connect. I have disabled my firewall and there is still nothing. Am I missing something? Is there a config file that I need to setup? Ensure that you have running Selenium RC I am using a simple batch file Sillium.bat is what is called: java -jar c: \ selenium \ selenium-server.jar -multiwindow (- Multipindo prevents code from breaking your test)

bash - Touch files from Z->A with a delay -

I have to touch several files in one directory in reverse alphabetical order, with 1 second delay, the name of these files is empty There are places I have tried to do this: LS | Sort-R | Tr '\ 012' '000' | Xargs-0 touch and this: #! / Bin / bash $ i (ls -r) for; Touch "$ i" has slept But first it makes it very fast and I do not get what I want (to display files in my device), and The second place does not handle the vacancy. Any thoughts? EDIT: Sorry, I forgot to add that it would be better to make it as fast as possible, wait 1 second between the files, and I have 60+ files, I have 1 minute Sorry to not wait for more than trouble. read will be read in one line at a time: LS-R | While reading FILE; Alternatively, you can mess with the $ IFS variable so that only new lines can separate items in . I do not have the syntax, spaces or tabs in the list: $ for FILE in $ (ls -r) = $ '\ n'; Touch "$ FILE" sleep 1 ...

controls - How do you fix the height and width of a winforms label to accept variable length text -

I have created a wizard form and some help text will appear in each page of the form. I either 1. Label control is needed where I can fix the height and width of the label, so it does not grow for long, rather my fixed width and Wrap the text within the height. But the labels do not have resize handles and seem to adjust the content automatically. OR 2. A text box control (I can set the height and width if I can already set the multilineer) but the user is able to edit the text box Should not be really ... the text box should not be able to focus at all. (Like a label) Can anyone tell me how to do one or the other. Seth B Speeden For label, you label false autosize property For the textbox, set the enabled asset to false

c# - Using statment and Entity Framework Entities -

When there are entities linked to my head then I'm having trouble and tracked changes and when they are not I'm sorry if this is already asked. Say I have a code like this: Public MyNetty Getty () {(var ctx = New MyObjectContext) {return ctx.MyEntitySet.First (); }} Then I call it var result = GetEntity (); Should the context be linked or different? I was under the impression that when the objectcontact was settled, the unit changed, or the context is never being settled. If you type that code while ctx has been settled , Because you have not separated the unit from ctx , you can not attach it to any other reference, basically it remains from a backpointer unit to ctx , which is happening Prevents from I think you can say that this is 'psuedo-enclosed'. Hope this helps Program Manager Entity Framework Team

c# - Command line automation – expect equivalent -

is a command line tool for which we need to write automated tests. Our test framework has been written in C # and I was looking for .NET libraries which would ask me to automate (I know that I can use the process class; redirecting to io; verifying, but I wheel if possible). Ideally I'm looking for something like a library. Any suggestions? I know this is an old question, but no answer has been given. IMO, every time I have done this (i.e. redirect process of process class, sdio, ster, etc and parsing output) every time the wheel has to be replaced again. Thought, I have reused an abstract base class for this purpose. Perhaps someone else is aware of the library to do this, but I do not. However, I will give a warning that I have seen such cases where redirecting to IO is not always correctly in NetSetwork (depending on how the program writes stedio or stadder, if you Whether or not you are hiding the window, if you are multi-threading, and some other situations) tha...

What are the differences between Access and Oracle? -

I want to know what the differences between access and oracle are. Interoperability: Access is a small database system that will allow you to create a small-to-medium size database. With minimum security features, Oracle can be integrated with NT security, which gives tight control over who can not and do not allow your data. Difference: The access is very slow on the network because all processing is done on the client machine, whereas with large DBMSs like Oracle (or SQL Server), you can only query one query (like "SELECT * FROM CUSTIDS WHERE CUSTID = 23 ";), and only the necessary results are returned if you run it in a network with access, all records will be sent to the network, the client will leave the machine to select the necessary records . Interstate three: If you try to connect more, access actually slows down on the basis of 10 users (based on DB size and how it is being used) Where Oracle can accept hundreds of thousands / simultaneous connections (de...

c# - Calculate days remaining to a birthday? -

I have a date time with a person's birthday, I have this object on the person's year, month and birthday , Created in the following manner: datetime date = new date time (year, month, day); I would like to know how many days will be left before this person's next birthday. What is the best way to do this in C # (I'm new in language)? // is the birthdate date time in which the date of birthdays is date = date time. today; Date Time Next = New Date Time (Today's Year, Birthday Birthday, Birthday.); If (Next & lt; today) Next = Next Add Year (1); Int numdays = (next - today). day; This trivial algorithm fails if birthday is February 29. This is optional (which is basically similar to the answer given by Apple Nielsen: Date Time Today = Date Time Today Today Date Time Next Birthday Added Year (Today Year Year Birthday Year); If Next (Lieutenant; Today) Next = Next Add Add Year (1); Int numbers = (Next - Today). Day;

c++ - MFC LoadString in dll fails -

I have a stable task that loads in DLL which loads the string from the resource using LoadString (). When I call this function from that DLL, everything works properly but when I call this function with other modules (ActiveX control), the error string ERROR_RESOURCE_NAME_NOT_FOUND with LoadString fails. I tried with AFX_MANAGE_STATE macro but it does not help Does anyone know what can be the problem here and what is the solution? If the string is in processing, for different DLLs you can use it to work from other modules Have to handle. Try setting up resource operations using the method.

How can I target .Net 4.0 Beta using NAnt? -

I am Microsoft. I want to start testing my project using the .NET 4.0 beta version which has already been released. I know that Nant needs to update the nant.exe.config file to add the "Net-4.0" target structure, does anyone know what the necessary changes are? If you want to use nant to create project targeting .NET 4.0, then you NAnt.exe.config Need to modify and add the Net4.0 target structure. & lt; startup & gt; section. / P>

taskmanager - How to interpret Windows Task Manager? -

I run Windows 7 RC1, which uses the same WTM from Vista. Memory - Committed Size Memory Set - Storage - Personal Work Set Memory - Committed Size Can anyone tell me what they are? By using the type of memory usage : There are two main types of memory usage: Work sets and personal work sets The Private Work Set is the amount of memory used by a process that can not be shared between other processes, while in the work set Other processes include memory shared. It may seem confusing, so try to simplify it a bit. Let's excuse the two children who are coloring, and both of the children have their own crayons 5. They decide to share some of their crayons so they can choose more colors. When each child was asked how many crayons they used, then both said that they used 7 crayons because they shared each their crayons. The issue of that metaphor is that one can make a total of 14 crayons if they did not know that both the kids were sharing, but in reality only ...

Committing specific parts of a file in Git -

संभव डुप्लिकेट: मैंने एक फाइल में कई बदलाव किए हैं और इसे जीआईटी इंडेक्स में भी जोड़ दिया है। फ़ाइल को लिखते समय मुझे एहसास हुआ कि मेरे पास वास्तव में कुछ बदलाव हैं, जिन्हें अन्य फाइलों के साथ अलग-अलग कॉमिट में जाना चाहिए। क्या गिट में केवल इस फाइल के विशिष्ट भागों को कम करने का कोई तरीका है? उपयोग करें: git add -i फ़ाइलों को अंतःक्रियात्मक रूप से जोड़ने के लिए इससे आप उन फ़ाइलों के केवल कुछ हिस्सों में कदम रख सकेंगे जिन्हें आप करना चाहते हैं , और।

oracle - Reserved words in NHibernate -

I need to reference a column called boundary in the legacy Oracle database and for SQLite in- Memory also uses the database. I have read to use the brackets in mapping files to complete it; range which works fine in SQLite, but resolves the "border" in the Oracle and Barf on the query. Is this feature implemented correctly for Oracle or am I missing something? Cheers, Rob UPDATE It seems that the column was not made with quotes around it, but NHibernate It recognizes it as a reserve and in Oracle you use double quotation marks in the context of names as reserved words: "post-text" itemprop = "text" > : SQL & gt; Creating a table (number number); Make a table A (number number) ^ ORA-00904 :: Invalid identifier "NUMBER" is a reserved word, however, you can: SQL & gt; Create a table ("number" number); Table sql and gt; Choose "number" from one; Number ----------

oncomplete event for dojo.place -

I have many AJAX calls with content included by doj.place. I have new content in the dojo widget, so after the content "kept" I have to execute dojo.parser.parse (). The problem is that I can not get it to execute. If I put the code on the next line, then I get executed soon. I've put a set in the interval command, but this is a nonsense solution. Incomplete event at Dojo. Support to anyone has really been appreciated. dojo.place () is synchronous, hence the issue is calling the parser immediately after the call It should not be that the problem is that you are calling the parser before your XHR is completed.

nhibernate - How to map IDictionary that has a IList value? -

NHibernate का उपयोग कर, मैं कैसे निम्न परिदृश्य को मैप कर सकता हूं: सार्वजनिक वर्ग उपयोगकर्ता {सार्वजनिक वर्चुअल आईडीकेर & lt; प्रोजेक्ट, आईएलआईआईएसटीटी & lt; भूमिका & gt; & gt; परियोजना समझौते {प्राप्त करें; सेट; }} डेटाबेस में मेरे पास उपयोगकर्ता , परियोजना और भूमिका और एक चौथा किसी भी मदद की सराहना की जाएगी। आप कर सकते हैं ' टी - मैं कहना चाहूंगा कि मैंने अभी तक & lt; map /> के सभी विकल्पों को कवर नहीं किया है, यहां तक ​​कि अधिक विकल्प (हालांकि, IDictionary & lt; K, IList & lt; V >> ऐसा कुछ ऐसा नहीं है जो मानचित्रित करने के लिए संभवतः समस्याग्रस्त एसक्यूएल स्टेटमेंट के लिए आवश्यक है)। आपको कुछ मध्यस्थ इकाई / घटक की आवश्यकता होगी मुझे उपयोगकर्ता, प्रोजेक्ट और भूमिका के बीच नारी संघ को तोड़ने के लिए प्रोजेक्ट एसेटिनेमेंट इकाई होगी - समय के रूप में संभवतः अतिरिक्त विशेषताओं को बढ़ाना होगा (कहें कि आप समय के साथ कार्य में परिवर्तनों को ट्रैक करना चाहते हैं, इसलिए यह हो जाता है StartDate और समाप्ति तिथि गुण)। ऐसा कु...

.net - Datagridview on RowLeave not assigning proper values to booleans -

Text after "div class =" itemprop = "text"> I have a DataViewGrid that is populated with a DataTable in a query for a DB. If the Row_Leave is trying to capture the event, then I could update it properly, I can not capture the latest value in boolean columns. I just update a text field, when I use the underlying data source I have entered the latest value I, if I buy using boolean, I get the previous value I'll reach the rows like this:. if (allCorrect) {if ((DataRowView) dgView.Rows [e.RowIndex] .DataBoundItem) .IsNew {this.InsertEntry (DataRow) ((DataRowView) dgView.Rows [E.RowIndex] .DataBoundItem) .row); } Else {this.UpdateEntry ((DataRow) ((DataRowView) dgView.Rows [e.RowIndex] .DataBoundItem) .row); }} (A fairly complex way to reach the underlying row, but works just like reaching the DGV's data source, so this is not the problem.) Any ideas? Edit : I restricted this issue to a proper event call. It seems that Row Lev is Endel Th...

data structures - Multi-key dictionaries (of another kind) in C#? -

Building on is a simple solution for multi-key dictionary where individually a key What can be used to identify the value? Meaning Multiculturalism & lt; Vaccine1, vaccine2, tblue & gt; Foo; Foo.Add (key1, key2, value); MyValue = foo [key1]; // value == myValue foo.Remove (key2); MyValue = foo [key1]; // invalid, exception or redundant seems to extend a better implementation . Multi-Chie Generic Dictionary Class for C # MultiKeyDictionary is a C # class that provides Microsoft Generic Dictionary Object in .NET 2.0 and above is. This allows the developer to make general dictionaries and to refine the list of values ​​through two keys, which is provided by the Microsoft implementation of the generic dictionary & lt; ...> You can see my article on CodeProject (here), although this code is more up-to-date and bug-free.

Sharepoint - How to agregate Announcements from sub-sites onto main site -

I am new to SharePoint (WSS 3.0) and I am working to create a company intranet. I There will be multiple sub-sites on this site - each owned by a different department. Each sub-site will have an 'announcements' webpage on their top-level page. What I want to do to announce the most recent from all those sub-sites and to display them is the main top level site - the idea is that every person in the company should see at the top level at each level You can. My question is, what is the best way to do this? And someone has a link that can tell me in the right direction. Many thanks. If you have a MOS, then you should use Content Query Web Part here. You can get it by doing this. The third option is to create a custom code to do this, but since you mentioned that you are new to SharePoint, I will give advice about it since then, The power built in can not be compared. You should consider the security here if a userA is not allowed to read the declarations from...

php - How can I insert a post into wordpress and associate it with a category? -

I have content from other places that I would like to include in Wordpress as a post and then affiliate to an existing category I am It is very easy to insert a new post in the wp_posts table, but I can not seem to know how to create a query to enter a new post and associate the post with the category at the same time . Use this query: Include wp_posts (post_title, post_content, post_name, post_date, post_date_gmt, post_modified, post_modified_gmt, post_author, post_status) value ('title', 'text', '(_id_of_above_post), 1) / Code> , now (), now (), now (), now (), 1, 'publish') / div>

c# - When to handle the exception? -

I am writing an app that I can work with several steps. I have some code that is given below and I want to know that it is a normal way of handling exceptions. This code will probably never be seen by someone else, but this can happen, so I would like to know that I'm handling exceptions as anyone would expect. IEnumerable & lt; Work & gt; Work; Try for forhave (various tasks in the task) {try to work (loading libraries, connecting, logging arc, etc.) {Boiler Plate Prep). Step (Try {step.Execute ()}} Hold (Exception Pre) {LogStepError (Phase, Ex); Throw;}} // Notify the Part The task is completed successfully, complete the task} Catch (Exception } {LogTaskFailure}} Finally {// close connection, etc}} Interface iTeskest {execute zero} () {}} I also wanted to add that the task Steps are implementing the iTscope interface, so implementing execution is not my own (Ach In this example, it is in this example but can apply any interface). My code only increases the libra...

graphics - Need C# function to convert grayscale TIFF to black & white (monochrome/1BPP) TIFF -

I need a C # function that will take the [byte] of an 8 bit grayscale TIFF, and a byte [] Will return a 1-bit (black and white) TIFF I'm fairly new to working with TIFFs, but the general idea is to give them grayscale or color black and white / monochrome / binary image formats. If we receive images through a WCF as a byte [], then we need to turn this conversion to black & amp; To make them white, they have a component that sends in the further process. For reference, in our test client, we create bytes in this way: [ filestream fs = new filestream ("test1.tif", open flamemode, file accessed. Read); This.image = new byte [fs.Length]; Fs.Read (this.image, 0, System.Convert.ToInt32 (fs.Length)); Fs.Close (); -------- UPDATE --------- I think there can be more than 1 good answer here, But we used code from CodeProject site to accept the following method in byte to overload the convert function [] as well as bitmap: public static byte [] Conver...

database - Automatically deploying changes to a web application -

What is the best way to automatically implement changes in database-driven web applications? Website (DLS, ASPX, CSS files, etc.) Database schema (adding tables, columns, etc.) Database data (table content) ) Reporting Services Report I have seen many different products, but this is not everything. Yes, a powerful method Posted on: Note Also , You may need to upload a schema file for schema stuff, and then there is a process on that server that a new schema file was uploaded and it was applied to new database lines, can do. Another idea is that you can run the SQL database as a webservice and you can talk it directly with your Porsche script.

iphone - Custom Cell from Nib UITableView -

I am trying different ways with no success of changing the following code ... I have a nib file which works properly if I set all the cells on it but I only need one of the switch statements for custom STATE Nib file. Any ideas? - (UITableViewCell *) TableView: (UITableView *) table view cellheroutoutpath: (NSIndexPath *) Index pathway {NSUntengar line = [index line]; NSInteger section = [index section]; UITableViewCell * cell; Switch (section) {case 0: cell = [tableView dequeueReusableCellWithIdentifier: @ "any-cell"]; Cell = [[[UITableViewCell alloc] initWithFrame: CGRectZero reuseIdentifier: @ "any cell"] autorelease]; Cell.text = [Shows ObjectsOutIndex: Line]; break; Case 1: Cell = [Tableview Décures reusable cell death identifier: @ "any cell"]; Cell = [[[UITableViewCell alloc] initWithFrame: CGRectZero reuseIdentifier: @ "any cell"] autorelease]; Cell.text = [Shows ObjectsOutIndex: Line]; break; Default: cell = [Tableview DeWewer r...

Library/Framework for Parsing Output from Commandline (C#)? -

मेरे आवेदन की आवश्यकता है: एक बाहरी कमांड लाइन अनुप्रयोग चलाएं निष्पादन के दौरान मानक आउटपुट / त्रुटि प्राप्त करें आउटपुट / त्रुटि से डेटा पार्स करें और इसे मुख्य ऐप में स्थिति प्रदर्शन के लिए उपयोग करें हालांकि यह नहीं है ऐसा करने के लिए कड़ी मेहनत, मुझे लगता है यह एक बहुत ही सामान्य कार्य है, और मैं सोच रहा था कि क्या कोई लाइब्रेरी या फ्रेमवर्क सी # में इस कार्य को सरल बनाते हैं। संपादित करें: यहां एक "मोनो। ऑप्शन से प्रेरित" उदाहरण है, जिस प्रकार की चीज़ मैं देख रहा हूं: ProcessWithParser proc = new ProcessWithParser (filename, arguments); Proc.AddWatch ("प्रतिशत = ??", v = & gt; यह.परेंट = कन्वर्ट.ToInt32 (v)); proc.Start (); उपरोक्त "अवधारणा" में, यह उत्पादन में "प्रतिशत =" का पता लगाता है, स्ट्रिंग के रूप में अगले दो अक्षरों को पढ़ता है, और एक स्ट्रिंग के रूप में इस स्ट्रिंग का उपयोग करके प्रतिनिधि को कॉल करता है। प्रक्रिया का पुनर्निर्देशन। RegEx और धाराओं का उपयोग करने से यह काफी आसान है, साथ ही साथ पार्स करता है।...

asp.net - Storing multiple values in cookies -

I have a very large website that uses a lot of cookies almost 14 different cookies I have every item There are 14 different cookies for when a user engages the site, 14 cookies in their browser. I do not want this. I need a cookie for my site, which will have 14 items and I can add, edit and delete them. I tried many ways but I am not able to do this. I have to put some run-time cookies, save the user name in the cookie as well. After logging in user I want to save my personal site address in it. Eventually, I want both the username and the individual site address. I want to save the user before and after the name of the user, when the user goes to his personal site, then I will save time to run the name of the private site. Is there any idea how can I do this? Matthew defeated me, but yes, see ... A single cookie with multiple keys / values ​​for typing and reading, this will look like this: http cookie cookie = new HTTP cookie ("MyBugCooki"); Cookie value....

javascript - GreaseMonkey Script -

Then I have this page with html code and I want to replace greasemonkey with another HTML code What i have. How can this be done? By example I have & Lt; P & gt; Olivira da Serra & lt; / P & gt; & Lt; P & gt; Olivira da Serra & lt; / P & gt; & Lt; P & gt; Olivira da Serra & lt; / P & gt; & Lt; P & gt; Olivira da Serra & lt; / P & gt; & Lt; P & gt; Lagarta maritima & lt; / P & gt; & Lt; / Body & gt; & Lt; / Html & gt; And I want to change it: & Lt; TD & gt; & Nbsp; & Lt; / TD & gt; & Lt; Td title = "online" align = "center" bgcolor = "# ff8288" & gt; H & lt; / Td> & Lt; Td title = "offline" align = "center" bg color = "# 88ff88" & gt; 1 & lt; / Td> & Lt; TD & gt; & Nbsp; & Lt; / TD & gt; & Lt; / Body & gt; & Lt; / Html & gt; H...

design - Preferred way to "move" an object between lists -

मेरे पास दो अलग-अलग संस्थाओं की सूची है: वर्ग EntityCollection: IList & lt; Entity & gt; {// ...} EntityCollection Foo; EntityCollection बार; मैं किसी ऑब्जेक्ट को Qux को स्थानांतरित करने के लिए एक क्रियान्वयन करना चाहता हूं जो कि सूची फू टू बार पर है। EntityCollection पर MoveTo उदाहरण विधि के रूप में : सार्वजनिक शून्य हटो (EntityCollection, इकाई इकाई); // क्लाइंट कोड Foo.MoveTo (बार, Qux); MoveFrom उदाहरण कोड के रूप में EntityCollection : सार्वजनिक शून्य मूवफ्रम (EntityCollection, इकाई इकाई); // क्लाइंट कोड Bar.MoveFrom (Foo, Qux); एक स्थिर मूव करें विधि पर EntityCollection : सार्वजनिक स्थैतिक शून्य हटो (इकाई इकाई, EntityCollection, EntityCollection से); // क्लाइंट कोड EntityCollection.Move (Qux, Foo, बार); दोनों के संग्रह वाले वर्ग पर मूव करें उदाहरण विधि के रूप में: सार्वजनिक शून्य स्थानांतरित करें (निकाय इकाई, EntityCollection, EntityCollection से); // क्लाइंट कोड धारक.मुख्य (क्यूक्स, फ़ू, बार); वैकल्पिक रूप से, और ...

Exception while using AS in C# -

लिखते समय var ई = element.Next HTMLElement के रूप में सिलाई; मुझे एक अवैध कास्ट अपवाद मिलता है मैंने सोचा के रूप में अपवाद अपवाद रोकता है और रिक्त देता है? क्योंकि वही जो मुझे चाहिए था / excepted या तो मुझे बताएं कि मुझे अपवाद के बजाय ई-मेल कैसे मिलता है? या क्यों मुझे इस अपवाद के रूप में खोजशब्द के रूप में इस्तेमाल किया गया है? -एडिट- सही यह तत्व था। अगला सिपाही अपवाद फेंकने यह कितना अजीब है कि जब मैंने इसे अभी तक डालने की कोशिश की थी, मुझे यकीन नहीं है कि कैसे एक दूसरे भाई बहन मौजूद है या नहीं। अगली भाषा में त्रुटि नीचे है संदेश "'COM। ऑब्जेक्ट' प्रकार 'COM। ऑब्जेक्ट' टाइप करने में असमर्थ 'इंटरफ़ेस टाइप' आईएचटीएमएललेमेंट ''। यह ऑपरेशन विफल रहा क्योंकि QueryInterface कॉल को COM घटक पर कॉल करने के लिए IID '{3050F1FF-98B5-11CF-BB82-00AA00BDCE0B}' के साथ अंतरफलक निम्न त्रुटि के कारण विफल हुआ: ऐसा कोई इंटरफ़ेस समर्थित नहीं है (HRESULT से अपवाद: 0x80004002 (E_NOINTERFACE))। " स्ट्रिंग क्या आप वाकई यह विशेष बयान हैं जो फ...

git: can I subtree merge just a subpath of a repository? -

I have Remotes Foo and Bar Fu is a web application that has many directories, related to / public which contains mixed files and other directories. The front end of the bar libraries, such as, should go to / public / bar> FU. Foo does not have any files. This will be a piece of cake in which the subdomules or subtree merge will be. However ... Bar tree is a mess, it has all pre-production files like PDS and FLA, and its only useful part is its / www / tools . So, what do I want to do, merge into the / www / tools of the bar in / public / bar>, and the rest of the show (I think it is very similar to how you have merged with a project that basically merge into your sub-section. , Do not know.) I have successfully done this using the following commands (for your scenario Is rewritten). $ / G> $ git Remote Bar / path / to / bar $ git merge -s our - no-commit bar / master $ git read-tree - prefix = public / bar-u bar / master: Www / tools / Great Warn...

How to handle localization/string values in an ASP.NET Web MVC project? -

I am trying to put all of my strings in the resource file, whatever I can do to all my Windows and Web form applications Do for me Good works for changing string values ​​for labels and / or moving apps. I tried to add string values ​​to my web MVC project, but this is the resource file in the view from inline code. Is this possible? Is there a better way? Where is your resource file? You have a few things that you have to do. You must set up a custom device on the resource file "" PublicResXFileCodeGenerator ", instead of just" ResXFileCodeGenerator ". The square is created as a public square instead of an internal class. Ensure that you are importing the namespace in your view. For example, if you want to enter the property folder If you are using it in your rez files, then However, you can use " properties.Resource1. Myststring "... you either just" the resource 1. Myststring "or" MvcApplication1...

c# - Is there a way to paint semi transparently on a PictureBox? -

मैं PictureBox नियंत्रण के लिए एक पारदर्शी पृष्ठभूमि का उपयोग करता हूं। लेकिन मैं भी एक% 50 अस्पष्टता नीला FillRectangle के साथ पेंट करने में सक्षम होना चाहते हैं। .NET WinForm स्वयं को पारदर्शिता का समर्थन नहीं करता, लेकिन GDI + के रूप में सामान्य रेंडरिंग के रूप में किया जाता है यदि आप किसी पिक्चरबॉक्सेज़ (या किसी अन्य चीज़ पर) प्रदान कर रहे हैं और आंशिक अपारदर्शिता के साथ कुछ रेंडर करना चाहते हैं, तो एक अल्फा मूल्य के साथ एक रंग कम बनाओ तो 255 (अपारदर्शी) और इसका उपयोग ब्रश या पेन बनाने के लिए करें। उदाहरण के लिए: रंग c = Color.FromArgb (128, रंग.ब्लू); (ब्रश बी = नया सॉलिडब्रश (सी)) का इस्तेमाल करते हुए (ई.ग्राफिक्स। फ़िलरेक्टेंगल (बी, 0, 0, 50, 50); }

Javascript regex to detected possible credit card numbers -

I have no end to trouble with a set of regex or regex. Finds what I want to do: Find the narrow run of the length 13 through 19 Length 13 to 19 Find points of interspersed points interspersed with the lower position Li> Find the difference points with a dash of 13 to 19 Basic business The need to warn a user that they may have entered a credit card number in a text field and they do not (Although only a warning, not a difficult error) Text field can span several lines, can be up to 8k, a CC # can be embedded anywhere (unlike many lines ), Can be more than 1 cc # (though prescence I need at least 1. I do not need a real value). There is no need to validate the check digit. Length can be examined externally ... that is, I am happy with the loop through the set of matches, leave any whites / dashes and then compare the length. But ... javascript regex is defeating every effort (not just right "head space"), so I thought I would ask here :) Thank you! ...

Is Microsoft CCR gaining any traction? -

Microsoft's concurrency and coordination runtime was literally a project saved which was leading in key issues with deadlock . Since then, I think I use it more often, which requires the result of asynchronous coding that runs lightly and faster than before. I can honestly say that he has changed the way he thinks about multithread / multicore dev. Regardless of his personal love for CCR, there is very little discussion around it on the web and wondering if anyone could offer any reason for it. Is there a better option, or is there a lack of promotion from MS, or are people happy with the existing tools? I think most people are waiting for .NET 4.0 in parallel extensions . I know that this is not the same thing, but at the moment there is still much better than what is in the structure - and although continuity does not work the same way, at least they are there): I suspect that parallel extensions have to work more than CCR - although I am sure the CCR work has also ins...

Using ruby and nokogiri to parsing HTML using HTML comments as markers -

How can I use Ruby to extract information from a table containing these lines? Is it possible to find out the comments that use the nose? & lt ;! - Start Topic Entry 4134 - & gt; & Lt; TR & gt; & Lt; Td align = "center" square = "line2" & gt; & Lt; Image src = 'style_images / ip.boardpr / f_norm.gif' border = '0' alt = 'new post' / & gt; & Lt; / Td> & Lt; Td align = "center" width = "3%" square = "line1" & gt; & Amp; Nbsp; & Lt; / Td> & Lt; Td square = "row2" & gt; & Lt; Table class = 'ipbtable' cellspacing = "0" & ​​gt; & Lt; TR & gt; & Lt; Td valign = "middle" & gt; & Lt; Alink href = 'http: //www.xxx.com/index.php? Shotekak = 4134 & amp; See = Similar '& gt; & Lt; Image src = 'style_images / ip.boardpr / newpost.gif' border = '0' alt = ...

How to automatically print a form when a new item is posted to a list in SharePoint? -

How to print a form automatically when a new item is posted to a list in SharePoint? I created a list in SP, which includes custom entry and form edited and a workflow that adds them whenever a new item is posted, the entry form is required to be used, But when I click submit, I do not need a workflow to post items only in the list, but a 'print form' is also generated which is either saved or stolen Can. Keeping in mind the event, by adding an item, you can call your printing code from within this event. And will employ the functionality through one.

asp.net mvc - How to Handle Variable Number of Parameters in Route Method -

I want to use the same post verb method for several numbers of input fields. How can I capture all the parameters passed in the MVC engine (in addition to the method parameter)? For example, this list of both values ​​should be controlled by the method below 1, A, A 1, b , A, A, A, A [AcceptVerbs (HttpVerbs.Post)] Create Public ActionResult (Ent ID) In DB Post Store For Every Variable}} You can request. Forms Archive. foreach (the farming field in request) {string name = field; String Value = Request Farm [field]; // ...}

CGPath Animation -

I need some sample code, where I can animate a curve / arc path, which is animated Need to draw a full circle? strong> update : To better address this problem, simply create a circular path and animate the strokeindex property of the cache player from 0.08 to 1.0f Take a look at this answer from the wet: Original Answer : You can use a CAKeyframeAnimation and create a core graphics path. This code animates a layer in a parabolic pattern, but you can customize it to attract a circle. - (CAAnimation *) path animation; {CGMutablePathRef path = CGPathCreateMutable (); CGPathMoveToPoint (path, zero, 50.0,120.0); CGPathAddCurveToPoint (path, NULL, 50.0,275.0, 150.0275.0, 150.0120.0); CGPathAddCurveToPoint (path, NULL, 150.0275.0, 250.0.275.0, 250.0.120.0); CGPathAddCurveToPoint (path, NULL, 250.0,275.0, 350.0.275.0, 350.0.120.0); CGPathAddCurveToPoint (path, NULL, 350.0,275.0, 450.0275.0, 450.0120.0); CAKeyframeAnimation * Animation = [CAKeyframeAnimation with animatio...

iphone - can anyone send me some good links on cocoa touch framework? -

I'm new to iPhone application development so that I want to learn the Cocoa Touch Framework. I eBook Tutorials and Videos This would be very useful to me Finding some good resources to find the outline of my Can help. 1) View the links on this website:. 2) Reference code and all code samples on iPhone Dev Center. 3) Go through Stanford's iPhone Course. After doing the above steps (and many coding of oneself), the skill will rock on \ \ / /

.net - How to inject an object into a WCF validator class -

After the use of dependency injection for "text" itemprop = "text"> , there are WCF , so that someone can do this: public class devlidator: user name passwordwidit {personal readonly IService service; [Injection] Public divider (IService service) {this.service = service; } Public override zero valid (string username, string password) {service.login (userName, password); }} Edit - I tried to apply the recommendation of the Deemptree in my custom behavior extension, because my verifier is defined in app.config. Unfortunately I get a MethodMissingException since WCF wants my validator for a default constructor: System.MissingMethodException:. A default creator is defined for this object RuntimeTypeHandle.CreateInstance code> Here is my behavior class: public class dependencydescriptionAssociation: transaction extensionextensionImagement, IServiceBehavior {Public voidDispatchBehaviorDescription, ServiceHostBase serviceHostBase} {serviceHos...

debugging - Delphi and code completion during debug -

The code is not complete when I run / debug my project, using code closing during debug / run Is it possible to do? code completion 'handle' such as ctrl + debugging click and mouse-hover-over 'variable inspection Tool ', but ctrl + space still works. I think that (at least I'm still using Delphi 7.) Delphi 7 also allows many examples to open, and I know that the automatic update of the editor works fine, so that you can debug an example, and to edit (A E with the closing). You only need to stop debugging in one instance so that you can compile / create with others.

Add a image to Header of Flex Panel component -

I want to change the header's default title with my image in the Flex panel. I really do not think it is possible with the built in panel. My recommendation is to either build your own container which allows you to make an image in the header (very complex) or to create an overall component in which there is an image for its title and to add content to a Regions like & Lt; Mx: canvas & gt; & Lt ;! - add content here - & gt; & Lt; / Mx: canvas & gt; & Lt; / Mx: VBox & gt;

How SEO friendly is Unicode URL? -

In the form of a title, how are SEO friendly URLs containing URC characters? Edit : To clarify, I had the meaning of valid UNICOD with URLs, non-ASCII characters. All URLs can be displayed as Unicode Unicode only U-100000 to U + 10 Defines the code-point of FFFF, which allows you to define any character. If you mean "UE + 007F" then they should be as good as anything else, as long as the word is correct. However, for most users it will not be so easy that if this is a concern, and may not be supported by all internet browsers / libraries / proxies, then I try to run clearly.

windows - Is KillTimer necessary? -

I use the SetTimer API and I see a lot of code like this: Case WM_DESTROY: // Kill timer KillTimer (HWD, IDT_TIMER); PostQuitMessage (0); break; Do I have to call Kili-Timer or will the system automatically free up on exit from the system? Do you forget to call the Kilometer for leaking resources? I understand that if the timer is not needed it can be destroyed by kilometer but it is necessary to manually destroy it. Destroy timer window (HWD) set with HWNDS. Otherwise, you will not have to clean your timer while leaving the window. But there is a good practice of all your resources related to the window when the window is closed.

Java Logger - "No line break" and "explicit class logging" problem -

I am currently struggling with two problems about java.util.logging.Logger: 1) I want to There should be a (feature) method like "notification () / fine ()" methods, only that method should not include a line break after the output (such as functionality like System.out.print and println). I have already overridden the format () method - will it be denoted to add "no-linebreak-flag" to the log record and to analyze it in format, or it will be very slow (because I use real-time applications ". So what would be the right way to get sthg? 2) Currently I have a factory class that creates the desired logger (I end up between file logging and console logging ) - But I can not really find out how to log in detail the package / classes ("module") and who does not. Or I want to check the debug flag in each category and then either Logger (debug == true) or not? I would like to have all the necessary settings through the source code and if possible, do no...

onclick - Why does my jQuery click handler appear to run multiple times for some of its targets? -

मैं आवेदन करता हूँ: $ ("newcontentLink")। क्लिक करें (फ़ंक्शन () {$ ("# परीक्षा")। अनुलग्नक ("1");}); इस पर: & lt; span id = "सामग्री" & gt; & Lt; इनपुट वर्ग = "newContentLink" प्रकार = "सबमिट करें" style = "width: 100%;" मान = "एक नई सामग्री बनाएं" / & gt; & Lt; span id = "content1" class = "सामग्री अध्ययन" & gt; & Lt; / span & gt; & Lt; इनपुट वर्ग = "newContentLink" प्रकार = "सबमिट करें" style = "width: 100%;" मान = "एक नई सामग्री बनाएं" / & gt; & Lt; span id = "content3" class = "सामग्री अध्ययन" & gt; & Lt; / span & gt; & Lt; इनपुट वर्ग = "newContentLink" प्रकार = "सबमिट करें" style = "width: 100%;" मान = "एक नई सामग्री बनाएं" / & gt; & Lt; span id = "content4" class = "सामग्री श्रेणी" ...

php - How do I show this mysql error on screen -

The current function to run mysql query in PHP and error on the screen is when I have it only with query and error message session Trying to show a user $ _ session ['auto_id'] == 1 and regular users will just see a good message saying that there is an error In the second example I tried to do this, but I'm not sure that the right inside code By parsing or die ( "") Works: & lt ;? PHP function editable ($ sql) {$ result = mysql_query ($ sql) or die ("& span style = 'font-SIZE: 11px; font-color: # 000000; font-family = Tahoma;' gt; Lt; center & gt; has an internal error. Please error@friendproject.com< br & gt; & lt; br & gt; "$ sql." & Lt; br & gt; & lt; br & gt; Mysql_error (error). '' & Lt; / center & gt; & lt; / fONT & gt; "); Return result;}? does not work: & lt ;? PHP function execution ($ sql) {$ result = mysql_query ($ sql) or die ("...

MySQL maximum memory usage -

I would like to know how it is possible to determine the upper limit on the amount of memory that Linux uses on a Linux server. Now, MySQL will continue to take the memory with every new query so that it ultimately falls out of memory is there a way to set a limit so that this amount can not be used by MySQL ? MySQL maximum memory usage depends on very hardware, your settings and Database itself Hardware Hardware is a clear part. Do not trust those monthly or weekly newspapers, more RAM carriers, fast disc ftw though MySQL is not on linear scale - not even on Oracle hardware. This is a little less than that. The bottom line is: There is no general rule of thumb to recommend for your MySQL setup, it depends on all current usage or estimates. Settings & amp; Database MySQL provides switches to customize countless variables and its behavior. If you run into problems, you really need to sit down and read the f'ing manual. For the database - Some importa...

database - What's a "single sign on" table used for and why is this column list necessary? -

I was looking at a schema and was trying to figure out how to use this table Make the "code" "single_sign_OnS" "token" is not VARCHAR (64), "IP" VARARAR (32) No, zero, "expired", not DATETIME, "one_time" VARCHAR (64), "created" DATETIME, "updated_at" DATETIME, "user_id" integer, primary key ("token"); What is "single sign on" and why did the author of this table include these columns for this purpose? This is a holder for the user's sign-on session. I believe that when a user signs in to verify that his session is still active, and allows access to various servers / sites without entering a second time. I'm assuming earlier on login, the user's session will be known to be new, so that the user will be inquired for credentials. Then a line has been entered in this table, containing the user id, the IP address, the date of creation, and a token. This tok...

winforms - How to add help to windows forms -

I have a fairly simple Windows application that I want to add 'help' The mind I was in was a simple one page html page that describes some details about the application. I think I need to add any browser to the application to show the HTML page. Am I missing other options? In search of suggestions You can put HTML help pages on the disk next to your application. To display the help page, launch it and take care of it with the default browser: string appPath = Assembly.GetEntryAssembly (). place; String filename = path. Combine (path gate directory name (epapath), "help HTM"); Process.Start (file name);

plot - How to use ezplot in MATLAB? -

I want to use ezplot in MATLAB, and because the function I want is one I can divide large numbers into small tasks. I give an example of a small number of terms and it can be generalized for a large number of words to plot the function: y2 + xy + xy3 + x + 1 = I write in MATLAB in the following: I enter y1 = x + 1 x = [0: 1: 5] y1 = x + 1 ezplot ('y ^ 2 + x * y + x * y ^ 3 + y1') But there is an error Please tell me that I How can I fix this error. Is it possible to use this feature (split the equation or work into multiple words)? Your error x + 1 to y1 Trying to change with Symbolic expression requires the work of only 2 symbolic variables. However, your call contains 3 symbolic variables ( x , y and y1 ), Ezplot : ezplot ('y ^ 2 + x * y + x * y ^ 3 + y1'); If you use your basic equation, then everything should work fine: ezplot ('y ^ 2 + x * y + X * y ^ 3 + x + 1 '); Edit: If you were curious ... If you want to...

PHP eval error when assigning value to variable -

My CMS (modules are not meant for convenience) which allows people to view pages, comments, forum posts, blog posts, etc ...): if (isset $ _GET ["m"])) {// Is the module present and active, and is this a function called the view? If (isset ($ modules_exists [$ _ GET ["m"]]) & amp; amp; amp; method_exists ($ _GET ["m"], "see")) / / yop {// load view (Should be an array) eval ("$ modules_view =". $ _ Get ["m"]. :: :: view (); "); if (! Is_array ($ module_view)) // is not an array :( {error :: e500module ($ _gET ["m"], $ _SERVER ["REQUEST_URI"]);}} else // If not, display error {Now I get these errors when parsing the page: notice: undefined variable: c: \ wamp \ www \ system \ start.php in module_view parse error on line 34 : Parse error C: \ wamp \ www \ system \ start.php (34): eval () line '1 code on notice: undefined variable: in module_view C: \ wamp \ www \ system \ start.php on line ...

How come alert breaks javascript execution? -

How is it possible that the alert function calls the behavior of the JS script? Something like this: function add_token (item) {var li_data = $ .data (item.get (0), "tokeninput"); but it works: function add_token (item) {warning ('a'); Var li_data = $ .data (item.get (0), "tokeninput"); Not - I get an error in firebug: li_data is undefined jquery.tokeninput.js Line 336 (adding the alert call is the only change) (As You can see that I am playing with the full jQuery plugin -) Now there is something that can bug me, can anyone explain to me how is this possible? Update: I tried to use Chrome instead of Firefox, and this is not seeing a special problem now? Should it be considered a bug in FF or is there anything else about it, which I do not know? Pure speculation, but the fact is that it is a complete thing for me to wonder If that is the fact that keeping in mind the alertness is to screw anything, is there a wrong event which is f...

.net - What is Aliases for in reference properties in Visual Studio? -

Expand in the Visual Studio in your C # project reference folder. Then see the properties of any reference. You will see the property of surnames there. The value of the property in the project is "global". Can anyone tell me that this property is for whom and how can I use it? Thank you. This is an estimate but it is similar to this part of the code. MyNameSpace = MyCompany.MyProject.MyLibrary; It is the idea that name space name is to avoid conflict. "Global" is used to separate your assembly from the same namespace to the structure. Say your console also has a console class & amp; Your css file contains references to your library and mscorlib.dll. And, if you If you want to use Net Frame Console class, you can type global :: system.Console.WriteLine ("Hello"); You can also do this in the following situations, following. using myConsole = MyLibrary.Console; Using FwkConsole = global :: system.Console; Friends, if I hav...

What versions of IIS are available as 64 bit? -

Especially curious if IIS is a 64 bit version of 5.1, but I'm guessing IIS 6+ is 64 bit only . IIS 7.5 for Windows Server 2008 and Windows Server 2008 R2 for IIS 7.5 are the latest.

multithreading - Managing a view while another process runs on iPhone -

I have a problem here, I allow the user to upload some video to the server, but I do have some If someone tries to make some code then I am using difficulties in managing a problem, to clarify my progress, I know why the problem is happening and I find a way around it Something looks like this (in a UIViewController - (Zero) UploadMonini {UIActivityView Predictor = New ... [self.view addSubview: indicator] [Uploader UploadMemi: data]} This code does not work, the uploader will lock the controller And the indicator will not allow the timer to come on screen, I was waiting a few seconds before calling on the uploader's work but I took another approach. Start a new thread for the Viewer Uploader Had to do and had a protocol in which the uploader was As soon as Junk uploads, UIViewController (or some representative) indicates its progress, and when it ends uploading some kind of - (zero) uploadsMohini {UIActivityView pointer = new. .. [self.view addSubview: pointer] ...

How do I open a new console window for a Visual C++ console application? -

मुझे क्या करना है, ऐसा कुछ है: कंसोल window1.print ("1 "); ConsoleWindow2.Print ( "2"); जब मैं प्रोग्राम चलाता हूं, तो दो कन्सोल विंडो पॉप अप हो जाती हैं और एक को 1 के साथ प्रिंट किया जाता है और दूसरा 2 से प्रिंट हो जाता है। क्या ऐसा करने का एक आसान तरीका है? एक तरह से मैं देख रहा हूं, कंसोल लिखने के लिए जो exe को दिए गए तर्क प्रिंट करता है, और एक अन्य अनुप्रयोग लिखता है जो अलग-अलग तर्कों के साथ कॉल करता है , मैंने कोशिश नहीं की लेकिन आप दो WIN32 फ़ंक्शंस द्वारा दो खोल सकते हैं, देखें

iphone - The correct NSPredicate format for one-to-many relationship in Core Data -

I have another object model A and B with one-to-many relationship. Special task for this, I want to get all the items which a relationship is to B with a property matches "string". I had tried @ "all bObjects.bProperty match 'string'" , and in that one objc_exception_throw reason: [NSSQLGenerator generSQLStatementForFetchRequest: ignoreInheritance: countOnly:] What seems to be a problem? Can anyone advise me on the right format format? You do not use the MATCHES operator when getting core data from SQL Stores "itemprop =" text "> text after

ruby on rails - printing a picture twice on the same page -

I want to print a picture from my web page so that the photo is previewed and printed twice on the same page Can go Fig. 1 A4 was printed 2 or 4 times on the same A4. Is it possible with FF and IE browser interfaces? Thanks, Yuval I do not know why? Better to brush on print stylesheets to hide non-relevant items on the page.

Subsonic BatchQuery.Queue causing 'Can't decide which property to consider the key...' exception -

I'm just starting with the subscore 3.0 activation and trying to implement the batch query in one I am I am using a batch so that I will ask a user and a list of user orders in one shot. System.InvalidOperationException: This is fixed when I call the batchability .ui () method, by adding my "selection user" query, the subsonic throws the following exception: Can not say which property to consider the key - you can create an ID called 'id' or mark a mark with the subsonic mirror The code is as follows: var db = new MyDB (); Var user goes in User = db.Users // UID by UID, where u.uid == 1 select U; Var Provider = Provider Factory.GetProvider (); Var batch = new batch suit (provider); Batch.Queue (userQuery); // Exception here // and add the "Select user order" query here ... First things first - why this error? My subsonic user object knows about PK. The "UID" database has PK and the generated code shows this. And I thought th...

c# - formatting datetime column in a DataSet -

I have a dataset that reads the Excel file and has a population. Dataset stores data from Excel Dataset has to be dated in 2 \ 2 \ 2009 12:00:00 AM but I need to change the data format 2 \ 2 \ 200 I want to change the format of all the data in that specific column. Here's a way: foreach (DataRow in line yourDataTable ) {DateTimeDT = DateTime.Pres (line ["date"] .toastring ()); Line ["date"] = dt.ToShortDateString (); } It is assuming that the "Date" column is already a text field rather than a date time field.

php - Is it possible to make an object return false by default? -

I tried to ask this before, and messed up the question, so I will try again. Is it possible to lie false to an object return when the event is kept in the statement? What do I need: $ dog = new DogObject (); If ($ dog) {return "this is bad;" } And {return "Excellent! $ Dog was false!" } Is this possible? It is not absolutely necessary, but will save me some lines of code. Thanks! No, PHP has no support for operator overloading. Maybe they'll add it to the future version.

asp.net - Tools to organize Dataset designer? -

Is there any address for good tools / plugins in organizing dataset designer in Visual Studio 2008? This symmetry is a big mess without the relationship of Adapters right now - it would be great if a device is available that can organize it, just like the way it is done in the 'Diagram' panel of SQL Server Management Studio. Cheers, WT I'm not sure that you know it, but When you add a new dataset to Visual Studio, you can use the TableAdapter's Configure option. Using it, you can see a query designer who helps you as you wish. If it is not so, then I remember that using something like this is to use Altwara. It can help you: or this:

f# - How to define -1 as a uint64 in a match clause? -

Let's match myuint64 = 10uL myuint64. -1 -> () | _ -> () How can I define given -1 as a uint64 value? If F # will convert it to you then then 1 UL will work. If not, you can specify it as 0xFFFFFFFFFFFFFFFFUL and can add a comment to remember that it is -1. Currently F # equipment is not installed so I can not verify it.

unit testing - Running multiple test data on same set of test cases -

I am new to eclipse I am using Genuine 4. And I have written a set up method in my class which spreads the testcases where something starts up. I have a set of testcases in the same class. I have test data in the live form and connected to the work place. I am currently able to run all test cases for a test data. Somehow I want to set the control back () to take second test data and run all test cases. Is this possible? If yes, can anyone send some code snippets? Thanks in advance Thanks for the reply, but where should I put such code, even if it should be kept in the set up method and how to set up test data Will you? You must use a runner with parameters This allows you to run the same test with multiple test data gives. As the following indicates that the test will run four times, the parameter "number" will be changed into the value in the array every time. @RunWith (value = Parameterized.class) Public class StackTest {Stack & lt; Integer & gt; Pil...

google app engine - Bulk upload data into data store for GAE Java project -

I want to populate the data store. Still, the instructions for popularizing all data and data stores are related to Python projects. Is there a way to upload bulk data using AppEngine Java tool? (At the moment the data is in CSV format, but I can reformat the data as needed.) This would be especially useful if this eclipse can be done within the IDE. Thank you. I have the same problem as you have discussed with this one that there is no equivalent tool available for Java I do not even know that although it seems that using the Python tool does not stop you from anything, so that you can populate the datastore and then access that data normally through your Java code, although it assumes that You are comfortable with Python, which can be the problem.

How do I override rails naming conventions? -

I have a model called "clothes", which I want to be alone (a piece of cloth). By default, the rail says that plural clothing is. Ok or wrong, I think it would be more readable if the plural "cloth" is How can I override the plural naming convention? Can I correct it in the model, so I have to do it more? How will it change how the routes are controlled (I am comfortable using architecture)? I'm not a ROR specialist, but one got referenced from the site you got from config / initializers / Inflections.rb can add the Infusion Rule to the file: # Add new filters rule by using the following form ActiveSupport :: Inflector. Perform the interfaces. Infal | Inflect.irregular 'cloth', 'cloth' end

c - How to send optional arguments to another function/method? -

I have a named initializer with optional arguments (similar to the following code), and I want to make an autorelge method by calling I am this Is there any way to do this? @Interface MyObject: NSObject - (id) initWithArgs: (id) firstArg, ...; + (Id) objectWithArgs: (id) firstArg, ...; @end @implementation MyObject - (id) initWithArgs: (id) firstArg, ... {ifF! FirstArg ||! [Super init]) {return nil} va_list argList; Va_start (argist, first light); Id currentObject = firstArg; Do {NSLog (@ "% @", current object); } While ((currentObject = va_arg (argList, id)) = zero; Va_end (argList); Self return; } + (Id) objectWithArgs: (ID) firstArg, ... {// Return [[MyObject alloc] initWithArgs: firstArg, ...] autorelease]; } @end You can not do this See. The closest thing is that you can create two versions of your functions, which takes the verge ( ... ), and which takes a va_list to make the Vergars version duplicate To avoid code, the va_list version can pass through...

Find with php specific parameters in XML -

Hello I have to follow the problem. I have an eXml file and I know that "uniquename 2 = value". I should remove the value of the URL. & lt; Set uniquename = "value1" & gt; & Lt; Items & gt; & Lt; Items & gt; & Lt; Units & gt; ... & lt; / Units & gt; & Lt; / Item & gt; & Lt; Items & gt; & Lt; Units & gt; ... & lt; Url & gt; Http: //www.something< / Url & gt; ... & lt; / Units & gt; & Lt; / Item & gt; & Lt; / Item & gt; & Lt; / Set & gt; & Lt; Set uniquename = "value2" & gt; & Lt; Items & gt; & Lt; Items & gt; & Lt; Units & gt; ... & lt; / Units & gt; & Lt; / Item & gt; & Lt; Items & gt; & Lt; Units & gt; ... & lt; Url & gt; Http: //www.something2< / Url & gt; ... & lt; / Units & gt; & Lt; / Item & gt; & Lt; / Item & gt; & Lt; / Set ...

Some questions about Objective-C, Cocoa and Xcode -

ऑब्जेक्ट के साथ एक NSMutableArray सरणी को प्रारंभ करते समय, आखिर में शून्य क्यों डाल दिया? उदा। NSMutableArray * फलों = [[एनएमयूटीएबलएआरआरएआरओएल] initWithObjects: सेब, वाइटेलॉन, शून्य]; फ़ंक्शन वेरिएबल भरने के लिए ऑटो पूर्ण का उपयोग करते समय Xcode में। अगले वेरिएबल पर जाने के लिए शॉर्टकट कुंजी क्या है? उदाहरण: फल * फल 3 = [[गीत आलोक] initWithName: (NSString *) n विवरण :( NSString *) d मैं initWithName फ़ंक्शन को टाइप कर रहा हूं और यह स्वतः पूर्ण होता है। इसलिए, मैं इसे समाप्त करने के बाद n पर पहुंचने के लिए तुरंत टैब दबाता हूं, मुझे d कैसे मिलता है? अगर मेरे पास फलों के ऑब्जेक्ट्स के साथ फल फॉरेस्ट है, तो प्रश्न 1. फलों का ऑब्जेक्ट एक NSObject subclass है I @प्रॉपर्टी घोषणापत्र में "कॉपी" क्यों है जब मुझे पता है कि डिफ़ॉल्ट फल ऑब्जेक्ट से अपनी ही मेमोरी स्पेस में रह जाएगा। चूंकि मैं एक फल सूचक बना रहा हूँ फल * सेब = [[फ्लाइट एलोक] .... NSString * a = @ "सभी को नमस्कार"; क्या @ "" करता है? क्या ऐसा कुछ कर...