text
stringlengths
8
267k
meta
dict
Q: Impossible? HTML mouseover border-color change with border-collapse? I have wish to have a table where all borders (internal/external) are a single pixel in width, I achieve this by setting the border-collapse style on the table. Then I wish to onmouseover each TD cell, changing the border-color to a different colo...
{ "language": "en", "url": "https://stackoverflow.com/questions/424405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Handling key-press events (F1-F12) using JavaScript and jQuery, cross-browser I want to handle F1-F12 keys using JavaScript and jQuery. I am not sure what pitfalls there are to avoid, and I am not currently able to test implementations in any other browsers than Internet Explorer 8, Google Chrome and Mozilla FireFox...
{ "language": "en", "url": "https://stackoverflow.com/questions/424407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "90" }
Q: How to stop the leading 0's from being stripped off when exporting to excel from a datatable? I am running into the same problem as in this question: How do you prevent leading zeros from being stripped when importing an excel doc using c# But I am not sure if that is the best solution for my scenario. Here is the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the best method for setting up a new .NET project? So I'm newly in charge of projects at my company (We're still only 2 guys, but we're growing) and I want to set up my projects the right way. All my projects are in an SVN repo already, I've got bug tracking software set up, but what I'm looking for is the be...
{ "language": "en", "url": "https://stackoverflow.com/questions/424422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Bash Shell - What is equivalent of DOS shell F8? When working an interactive bash session, one aspect from the Windows shell I miss is the F8 key where you start typing a command, hit F8 and the shell finds the most recent command entered in history that matches what you have typed so far. e.g. me@Ubntu07:~>cd /home...
{ "language": "en", "url": "https://stackoverflow.com/questions/424443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Where can I find information on code blocks? Does anyone know a good website that summarises what you can do with code blocks (i.e. <% <%= <%# etc) in ASP.Net? Thanks. A: Here is a MSDN page: MSDN Embedded Code Blocks <% - any code <%= - shortcut for Response.Write() <%# - is for binding <%-- - i...
{ "language": "en", "url": "https://stackoverflow.com/questions/424450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP Multiple Occurences Of Words Within A String I need to check a string to see if any word in it has multiple occurences. So basically I will accept: "google makes love" but I don't accept: "google makes google love" or "google makes love love google" etc. Any ideas? Really don't know any way to approach this, any...
{ "language": "en", "url": "https://stackoverflow.com/questions/424454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C++ and gnuplot This is my first post and I'm quite a novice on C++ and compiling in general. I'm compiling a program which requires some graphs to be drawn. The program create a .dat file and then i should open gnuplot and write plot '.dat'. That's fine. Is there a way to make gnuplot automatically open and show me...
{ "language": "en", "url": "https://stackoverflow.com/questions/424455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Does anyone have a good analogy for dependency injection? I have read a lot of articles on Dependency Injection as well as watched a lot of videos, but I still can't get my head around it. Does anyone have a good analogy to explain it? I watched the first part of the Autumn of Agile screencast and still was a littl...
{ "language": "en", "url": "https://stackoverflow.com/questions/424457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: PAGE_COUNT not rendered correctly in JasperReports...? I have added the footer Page x of y to my report, but the PAGE_COUNT doesn't seem to work. Maybe the problem occurs because I have many subreports? I get: Page 1 of 1 Page 2 of 0 Page 3 of 0 Page 4 of 0 Any ideas? A: Changing the evaluationTime="Report" sol...
{ "language": "en", "url": "https://stackoverflow.com/questions/424468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Compression issues with JQuery file in YUI Compressor I am trying to minify a few files with YUI compressor. However, I seem to be getting an error on 2 lines of code, which prevents compression. The .js file for jcarouselLite contains 1 error, and my own code contains the other. I have narrowed it down and in both...
{ "language": "en", "url": "https://stackoverflow.com/questions/424469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How do I open a new document in running application without opening a new instance of the application? I have a situation that has been partially covered by other answers at SO, but I cannot find a complete answer. In short, we are trying to use URL's for our specific data types that when double clicked will open u...
{ "language": "en", "url": "https://stackoverflow.com/questions/424503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Any satisfactory approaches to unit testing thread safety in Java? I am looking at improving a package that I believe not to be threadsafe when its input is shared between multiple worker threads. According to TDD principles, I should write some tests that fail in the first instance, and these would certainly be us...
{ "language": "en", "url": "https://stackoverflow.com/questions/424516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: Unit-tests and validation logic I am currently writing some unit tests for a business-logic class that includes validation routines. For example: public User CreateUser(string username, string password, UserDetails details) { ValidateUserDetails(details); ValidateUsername(username); ValidatePassword(pass...
{ "language": "en", "url": "https://stackoverflow.com/questions/424517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How can I recognize the Zulu time zone in Java DateUtils.parseDate? I have dates in the format 2008-12-23T00:00:00Z. This look a lot like a ISO 8601 format with a Zulu (UTC) timezone. I though the following code would parse it (using commons-lang) : String pattern = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.getP...
{ "language": "en", "url": "https://stackoverflow.com/questions/424522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Not allowing javascript function call from the address bar I was working with a online game website. There are some event which call a javascript function and the function have some action with callback. something like this, <input type="button" onclick="changeSomething"/> function changeSomething() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Merge branch with trunk Using TortoiseSVN, I need to take changes I've done in a branch and then merge them with trunk. I am the only developer on this project, so I know trunk hasn't changed. I am learning SVN so that eventually my team can use it. Basically, I want my trunk to look exactly like the branch. In p...
{ "language": "en", "url": "https://stackoverflow.com/questions/424525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "120" }
Q: Differences between CruiseControl (original) and CruiseControl.NET Are there any differences between the original CruiseControl and the .NET port? I've compared the 2, but can't find any big differences except the language it has been developed in. I want to use either one of them for (automated) testing of web appl...
{ "language": "en", "url": "https://stackoverflow.com/questions/424527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SqlClient calls causing "Thread was being aborted at SNINativeMethodWrapper.SNIPacketGetConnection(IntPtr packet)" I would really appreciate any suggestions, no matter how simple or complex, to help me get this issue isolated and resolved. I have a bit of code that generates small report files. For each file in the...
{ "language": "en", "url": "https://stackoverflow.com/questions/424531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Protected Sheets in Excel Service Sharepoint Excel Services does not seem to support protected Sheets. Is there any other way to make some sheets read-only and make it work in Excel Services? A: Expose the values you need as references in another sheet. Publish the other sheet in place of the protected one.
{ "language": "en", "url": "https://stackoverflow.com/questions/424534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When should you enable the RowGuid column property in SQL Server 2005? The MSDN documenation states: Indicates whether SQL Server uses the column as a ROWGUID. You can set this value to Yes only for a unique identity column. This doesn't tell me why I would have this enabled or disabled. A: Setting the column as RO...
{ "language": "en", "url": "https://stackoverflow.com/questions/424544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Force SQL Server column to a specific value Is it possible to force a column in a SQL Server 2005 table to a certain value regardless of the value used in an insert or update statement is? Basically, there is a bug in an application that I don't have access to that is trying to insert a date of 1/1/0001 into a date...
{ "language": "en", "url": "https://stackoverflow.com/questions/424545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Difference between C/C++ Runtime Library and C/C++ Standard Library Can you guys tell me the difference between them? By the way, is there something called C++ library or C library? A: Introduction C/C++ Standard Library is any implementation of all the required set of functionalities needed to accomplish what ISO ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "59" }
Q: Converting letters to their greek equivalent in Javascript I have some JSON data from a web service which gives me data like the following blah blah <greek>a</greek> I need to be able to convert what is inside the greek tags into their symbol equivalent, using javascript. Any ideas? A: If this is for the occasiona...
{ "language": "en", "url": "https://stackoverflow.com/questions/424560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get symbol files for Java.exe/jvm.dll to analyse crash core dump files? I have a Java application running on a Websphere application server. When I analyse the system crash core dump file, I get some info like this: ERROR: Symbol file could not be found. Defaulted to export symbols for J9THR23.dll How ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/424561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I replace an image in a WPF grid with another control depending on the source data? I have a grid laid out like so; +---------+---------+ | Image | Details | | is | pane | | here | for data| | | entry | +---------+---------+ | ListView here to | | select data item | | for top two pan...
{ "language": "en", "url": "https://stackoverflow.com/questions/424562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: sql query - select duplicates within a 12 hour period if i have data as follows A | 01/01/2008 00:00:00 B | 01/01/2008 01:00:00 A | 01/01/2008 11:59:00 C | 02/01/2008 00:00:00 D | 02/01/2008 01:00:00 D | 02/01/2008 20:00:00 I want to only select the records whose identifiers (A, B, C or D) have occured twice within ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it beneficial for a programmer to learn how to build a compiler? There is a lot of variety when it comes to the different types of programmers. In general, is beneficial for a programmer to learn how to build a compiler? In what cases would compiler programming be, or not be, needed? A: I took two compilers ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Winforms WPF interop performance My project requires a background thread to initiate the creation of a WPF control hosted in a Winform. The creation of said control must be performed on the foreground thread, which is very costly and causes the UI to hang for 1 to 2.5 seconds (depending on whether this is the first ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to pass security issues in Vista? I have a vb6 application. I am unable to carry out the following on a Windows Vista machine: * *Register a .DLL from the Users directory *Start another .EXE *Write to a file in the Users directory. How can I overcome these issues? A: * *This is by design. Software is sup...
{ "language": "en", "url": "https://stackoverflow.com/questions/424579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How would you create a safe int sum IList extension? I would like to create a safe sum extension method that would have the same syntax as the normal Sum. This would be the syntax I'd like to use: result = Allocations.SumIntSafe(all => all.Cost); I use the Int.Maxvalue as a penalty value in my operations and two In...
{ "language": "en", "url": "https://stackoverflow.com/questions/424586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the restful approach to compose a group by query consider the following http request: GET /defects?group-by=priority I would like the returned collection(feed) of defects to be grouped by their priority. i.e. the returned feed consists of defects(resources) and group infromation. I thought about something t...
{ "language": "en", "url": "https://stackoverflow.com/questions/424587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do you structure css files for a web project? In my project I have put all my css classes in the style sheets. The structure I am following was Have a global.css file, which will have all the global styles. And then for each .aspx page one style sheet which will be particular for that file. Although I am tal...
{ "language": "en", "url": "https://stackoverflow.com/questions/424588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How would you pitch Usability to your manager? For a little background, I work for a firm that develops web-based enterprise social media platforms. We have a diverse clientele and our mantra is that we bring our clients closer to their clients. Basically, usability should be a very, very important consideration f...
{ "language": "en", "url": "https://stackoverflow.com/questions/424589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the memory overhead of storing data in a .NET DataTable? I'm trying to get a handle on the amount of memory overhead associated with a .NET DataTable, and with individual DataRows within a table. In other words, how much more memory does a data table occupy than what would be needed simply to store a properl...
{ "language": "en", "url": "https://stackoverflow.com/questions/424598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Are CAPTCHAs Accessible? I am writing a website in my spare time for an educational facility and from what I've read on the statistics of this place they seem to have many disabled students studying there. Simply put, I'm setting up an account system where students can log in and receive basic information about thei...
{ "language": "en", "url": "https://stackoverflow.com/questions/424599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: how to plot day-wise chart using Jfreechart I have data for every 15 minutes. I want to plot a graph to display values from 'date1' to 'date2'. The plot should show every 15 minutes value. But display on X-axis should show only dates. A: How to create a sample XYPlot with 15 minute intervals (shown as date) 1) Crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/424603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does jQuery have a built in function to return the rootURL? I typically use the below function to return the root URL if I ever need this, but thought to ask if jQuery had a "one liner" way to do this ... function getRootURL() { var baseURL = location.href; var rootURL = baseURL.subst...
{ "language": "en", "url": "https://stackoverflow.com/questions/424606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: .NET datatable to SQL Server stored procedure as XML Ok. So I am pretty new a this. I have a datatable that I want to pass to a stored procedure for further manipulation. I have read some stuff on the web and it looks like I should be able to convert the datatable to XML and then pass that to the stored procedure. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Collapsible member events in Visual Studio designer How can I get my control members to show their events on the Visual Studio event grid? Visual Studio does this for certain things like the "(DataBindings)" member by putting them in a collapsible section, like so: collapsible events in visual studio http://tseqkw.b...
{ "language": "en", "url": "https://stackoverflow.com/questions/424645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which way to go in Linux (Qt or KDevelop) Which one of the IDE is good in terms of support for debugging, implementation and usabality. Qt or KDevelop? Various duplicated: * *C++ IDE for Linux? *https://stackoverflow.com/questions/86676/is-there-a-good-and-free-ide-for-cc-in-linux *what's the best stable edito...
{ "language": "en", "url": "https://stackoverflow.com/questions/424666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I overload the [] operator in C# I would like to add an operator to a class. I currently have a GetValue() method that I would like to replace with an [] operator. class A { private List<int> values = new List<int>(); public int GetValue(int index) => values[index]; } A: public int this[int key] {...
{ "language": "en", "url": "https://stackoverflow.com/questions/424669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "327" }
Q: App no longer working - any ideas I am out of ideas as to why my app has suddenly stopped working - perhaps the collective mind of the SO community can help... Background: I have a large application that has been working up until recently. Now when ever I try and run it I get the error "The application failed to ini...
{ "language": "en", "url": "https://stackoverflow.com/questions/424673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UI Layer Abstraction I have successfully worked with abstracting data layers and business layers. But recently a colleague mentioned about abstracting UI layer- in between the UI and the business layer. However I cannot get my head around it. I cannot visualize how this UI layer will be different from the business l...
{ "language": "en", "url": "https://stackoverflow.com/questions/424675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Trying to find a simple way to do upload only modified files through FTP Need to find a way to upload files to my server through FTP. But only the ones that have been modified. Is there a simple way of doing that? Command line ftp client or script is preferred. Thanks, Jonas. A: The most reliable way would be t...
{ "language": "en", "url": "https://stackoverflow.com/questions/424680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I add a Microsoft AJAX auto complete textbox to an existing ASP.NET 3.5 SP1 web application project? I played with this years ago when it was "atlas". Now I want to use it I assumed it would be a in the VS toolbox. Now all I can find on the web is total confusion! Thanks. A: Have you downloaded the AJAX Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/424692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use HTML in LifeRay ShoppingItem description? How can I embed HTML into the ShoppingItem database table "description" field in such a way that it will display on screen? It used to work in older versions, but in the current version it mangles/safes it to display the HTML tags, rather than passing them throug...
{ "language": "en", "url": "https://stackoverflow.com/questions/424696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NHibernate : Query by example on primary key produces "WHERE (1=1)" I have an entity Customer public class Customer { public virtual int ID { get; set; } public virtual string Firstname { get; set; } public virtual string Lastname { get; set; } } and my DAL method is : public IList<Customer> GetCust...
{ "language": "en", "url": "https://stackoverflow.com/questions/424699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I get the ASP.NET DataPager control to work in an UpdatePanel? I have a search page with parameters at the top and a search button with results at the bottom. The entire thing is wrapped in an update panel inside the master page. After clicking the search button it shows the first page. However if you clic...
{ "language": "en", "url": "https://stackoverflow.com/questions/424705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET ServerMappath I have a foler called A and inside A, i have 2 folders B and C, B is having a child folder called child B,now i have a program in C .from C I need to get the PHysical path of childB When i am giving Server.MapPath("../B/childB/") It is showing.Error.Can anybody tell me how to solve this ? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using join points call(* *.*(..)), can I expose the arguments to the advice if available? With my aspect, I track the changes on certain collections by advising certain method calls on instances of java.util.Set, notably add(Object) and remove(Object). Since the changes are not reflected in the collection itself, in...
{ "language": "en", "url": "https://stackoverflow.com/questions/424709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Profiling a multi-process program I'd like to profile a program that forks and spawns several child processes. I want to see how much time is spent in some of the functions. What profiler can handle this job? A: Oprofile works well for this. A: I think you can do it with SystemTap - DTrace ideas implementation on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Programmatically Accessing SharePoint Style Library from within C# Firstly, I'm a newbie to C# and SharePoint, (less than a month's experience) so apologies if this is an obvious or easy question but I've been trawling the net for a couple of days now with absolutely no success. I have an xslt file that I have store...
{ "language": "en", "url": "https://stackoverflow.com/questions/424739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Lambda closure or class level variable? Just a general question about what the best practice is: public void Foo() { int x = 5; myControl.Click += (o, e) => { x = 6; }; } Notice, I'm using the x variable inside my lambda event handler. OR: public class Bar { private int x = 5; publi...
{ "language": "en", "url": "https://stackoverflow.com/questions/424743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting SendTimeout in my WCF app.config Little confused looking at my app.config, it looks like this: <system.serviceModel> <servcies> <service> <endpoint address="" binding="basicHttpBinding"> <identity> <dns value="localhost" </identity> <e...
{ "language": "en", "url": "https://stackoverflow.com/questions/424747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What will be the lifespan of the .Net Framework? Will it ever become obsolete? A: Given the amount of legacy COBOL and other code lying around, I'd say nothing ever becomes truly obsolete, although obviously tools and techniques evolve and languages, frameworks and approaches become outdated and less used. Microsof...
{ "language": "en", "url": "https://stackoverflow.com/questions/424760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sorting Report data in a ReportViewer using a BindingSource I'm trying to get ReportViewer to display data from a BindingSource (VB.Net Winforms). I built the report on the underlying dataset. Then I configured the Data Source Instance to the BindingSource. I thought that would apply the sorting, filtering, etc...
{ "language": "en", "url": "https://stackoverflow.com/questions/424764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Crystal Reports: Error on Sum in Formula Field Intro: I have a very complex report. To make it a bit more easy, I build my report this way: In VS.net, I have a class. In the report I made a "Field Definitions Only"-file (ttx) which is exactly the same as the class. In code behind I set the class as the datasource of...
{ "language": "en", "url": "https://stackoverflow.com/questions/424768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Display a map in a Windows Form app I built a Winform app several months ago that schedules appointments for repair techs. I'd like to update the app by adding a map for the customer's address on the customer form, and then print that map on the report the techs take when they leave the office. I've been looking aro...
{ "language": "en", "url": "https://stackoverflow.com/questions/424770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is there a better way to express a parameterless lambda than () =>? The () seems silly. is there a better way? For example: ExternalId.IfNotNullDo(() => ExternalId = ExternalId.Trim()); A: Sort of! There is a new idiom in town, that is nice and may help you in some cases. It is not fully what you want, but sometime...
{ "language": "en", "url": "https://stackoverflow.com/questions/424775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: ASP.NET MVC - Is returning different views from a single controller action a bad idea? I am working on an ASP.NET MVC project were I am using routing to produce friendly URLs and have an issue I am not sure how best to solve. The routing I have setup work like the following {category} {category}/{manufacturer} {cate...
{ "language": "en", "url": "https://stackoverflow.com/questions/424781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Unable to load because it is not located under Appbase I have created an NUnit project (NunitLoginTest.nunit) by selcting my test project in the nunit\bin directory and now I am trying to load that project, but it is giving me the following error. Unable to load Because it is not located under Appbase, could not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to get the currently focused node in a yui TreeView I need to store which node currently has focus in a yui TreeView component. I thought that there would be a method to find which node has focus at any one time but can't seem to find it. Does anyone know if such a method exists or otherwise suggest a way to do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to get the minimum or maximum value from an Array of numbers? Let's say I have an Array of numbers: [2,3,3,4,2,2,5,6,7,2] What is the best way to find the minimum or maximum value in that Array? Right now, to get the maximum, I am looping through the Array, and resetting a variable to the value ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: Same session with multiple SendActivity activities in WF Our workflow in Workflow Foundation used to call ASMX web services using the InvokeWebService activity, which has a property SessionId to correlate multiple activities in the same session (by sending the ASP.NET session cookie on every request). It worked. Now...
{ "language": "en", "url": "https://stackoverflow.com/questions/424806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: String.replace; replace by function result problem I have this piece of code: var myObj = function () { this.complex = function (text) { /* long piece of code */ } this.parse(text) { return text.replace(/valid_pattern/gi, function ($1) { return this.complex($1); } ); } } Of course calling this.complex...
{ "language": "en", "url": "https://stackoverflow.com/questions/424826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detecting whether a file is locked by another process (or indeed the same process) This is how I do it at the moment. I try to open the file with the FileShare set to none. So I want exclusive accesss to the file. If I can't get that then its a good bet somebody else has the file locked. There's got to be a better a...
{ "language": "en", "url": "https://stackoverflow.com/questions/424830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: What were the main disadvantages of CGI-BIN based web development? I was fortunate enough to not do any cgi-bin .cgi based web development. But generally those who have do not seem to 'miss' those days. A project I recently joined has a performance issue when dealing with the pages that need to communicate to a le...
{ "language": "en", "url": "https://stackoverflow.com/questions/424839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Checking for null, which is better? "null ==" or "==null" Dupe: Null Difference A lifetime ago I came across an article that explained that the following were not equal (in c#): if (o == null) {} if (null == o) {} The article explained that the latter was preferred because it resulted in a more accurate test. I've ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Frameworks vs. SDKs What is the difference between a framework and an SDK? Take, for example, the MS platform SDK and the .NET framework. Both have API's, both hide their inner workings, and both provide functionality that may not be quickly/easily accessible otherwise (in other words, they serve a real-world purp...
{ "language": "en", "url": "https://stackoverflow.com/questions/424846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Painting a Canvas in an Applet I currently have a small Java program which I would like to run both on the desktop (ie in a JFrame) and in an applet. Currently all of the drawing and logic are handled by a class extending Canvas. This gives me a very nice main method for the Desktop application: public static void m...
{ "language": "en", "url": "https://stackoverflow.com/questions/424849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to NOT write XML with pretty print from C# DataSet In C# how do you write a DataSet to file without it being written with pretty print? Using C# and .NET 2.0, I've been using dataSet.WriteXml(fileName, XmlWriteMode.IgnoreSchema), which by default is writing the Xml file with pretty print. The company consuming t...
{ "language": "en", "url": "https://stackoverflow.com/questions/424866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Is it possible for native class to consume .NET event? Any idea how to initialize .NET delegate that points to method from 'mixed' class instance? I have 'mixed' C++ class like this: class CppMixClass { public: CppMixClass(void){ dotNETclass->StateChanged += gcnew DotNetClass::ServiceStateEventHandler(&U...
{ "language": "en", "url": "https://stackoverflow.com/questions/424880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Returned AJAX html breaks IE click events I have a table of paged data, along with a dynamically created pager (server-side AJAX call, apply returned HTML to the innerHTML of a div). When I click next page on my pager, an AJAX call is sent to the server to retrieve the next set of data, which is returned as a strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/424886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: GWT vs Flex vs? My company is trying to migrate away from a .NET application to something that is purely web-based, and very "ajaxy". The original .NET app is fairly interactive, roughly equivalent to Google Maps as far as user interaction is concerned (zoom, pan, annotate features on a vector map). Our .NET develo...
{ "language": "en", "url": "https://stackoverflow.com/questions/424895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: How to disable forward class compiler warning (undocumented class) I'm currently writing an iPhone application that uses a UITabBarController with more than 5 Tab Bar Items. Thus, a 'more' tab is automatically generated (like in the YouTube Application). I found out that the corresponding view controller class is UI...
{ "language": "en", "url": "https://stackoverflow.com/questions/424899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where is "int main()" in my Flex application? Well, not literally, of course, but: I'm new to Flex and I'm trying to figure out where to put the code that I want to run when my app starts. In my example, I have a tree control defined in the markup, and I have AS code that can populate it from a local file or a webse...
{ "language": "en", "url": "https://stackoverflow.com/questions/424915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why can't browser send gzip request? If webserver can send gzip response, why can't browser sent gzip request? A: It could, provided it could guarantee that the server would accept it. This might mean using an OPTIONS request. There are a lot of things that web browsers could do (for example, pipelining) that they ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: How to best enforce single-level recursion in a SQL table? Let's say you have a table for branches in your organization. Some of them are "main" branches, and others are satellite offices that roll up to a main branch. Other than this distinction, which only impacts a few things in the system, the branches are all p...
{ "language": "en", "url": "https://stackoverflow.com/questions/424919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to make "destructive" string methods a-la Ruby? In Ruby, methods which change the object have a bang on the end: string.downcase! In c# you have to do: foo = foo.ToLower() Is there a way to make an extension method like: foo.ConvertToLower() that would manipulate foo? (I think the answer is no since s...
{ "language": "en", "url": "https://stackoverflow.com/questions/424920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: M-V-VM - Any Examples of using commands in the ViewModel? I've been developing a very large LOB app using my flavor of M-V-VM which I call M-V-MC (Model-View-ModelController), which is a kind of a combination between M-V-C and M-V-VM. I had posted this answer regarding how views get instantiated in M-V-VM to the que...
{ "language": "en", "url": "https://stackoverflow.com/questions/424927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Loop through input items onchange with jQuery When a select field is changed, I would like to loop through all of the input values in the form it belongs to using jQuery. This doesn't work below, but I can't figure out exactly how to do this. $("select.mod").change(function(){ $(this).parent().get(0).$(":input"...
{ "language": "en", "url": "https://stackoverflow.com/questions/424932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Regex boolean not How do I write a .net regex which will match a string that does NOT start with "Seat" A: Writing a regex for a "does not start with" can be a little tricky. It's often easier to write a regex to detect that a string starts with a substring and not the match instead. For Example: return !Regex.IsM...
{ "language": "en", "url": "https://stackoverflow.com/questions/424938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MATLAB Java referencing problem I have a MATLAB class which contains a reference to a java object classdef MyClass properties j = myJavaClass end methods ... end end and after I use it (using clear, scope exit or explicitly setting myClass = 0; ) the java object is still alive - even after calling Runti...
{ "language": "en", "url": "https://stackoverflow.com/questions/424949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Are single-threaded applications a dead technology? I just bought a new, sub-US$1,000 laptop, one aimed squarely at the consumer, non-developer market and, looking over the specs, was surprised to find that it came standard with a dual-core processor. This led me to the question: with multicore machines becoming the...
{ "language": "en", "url": "https://stackoverflow.com/questions/424952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Use of properties for primitive types I'm having trouble understanding when to use properties in Objective C 2.0. It seems you do not need a property for a primitive type such as: int, bool, float. Is this true? I have seen examples showing properties for these types and other leaving them out. For example, in Apple...
{ "language": "en", "url": "https://stackoverflow.com/questions/424962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: WPF Databinding more complex XML Structure I asked this question already at the Microsoft forums, but no answer until now. I am stuck here. I have a quite nested xml snippet, which i like to bind via hierarchical Data templates. Here is the xml snippet: <project> <products> <product name="Product2" foldername="s...
{ "language": "en", "url": "https://stackoverflow.com/questions/424967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VSS bug on Vista? I have a VS2005 solution which uses Visual SourceSafe 6.0 source control. I am using Vista Ultimate 32 bit. I keep getting this error when I close a file, and seeming more often when the file is not actually under source control (e.g. afxwin.h or something like that). Does not happen 100% of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/424978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: When I extend an MX class in Flex, how do I reference it in the MXML? Meaning, if I have: <mx:Tree> <!-- ... --> </mx:Tree> and I want to change some of the control's behaviour or add functionality, by doing (in AS): class ChristmasTree extends mx.controls.Tree { // ... } how do I change the MXML so that m...
{ "language": "en", "url": "https://stackoverflow.com/questions/424982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: VSTO AddIn for Word Only I've written a VSTO addin for Word 2003 which is working correctly. The only problem is that the addin displays a commandbar which is also appearing when I create a new email in Outlook. How can I prevent the commandbar addin from displaying in the context of Outlook and only in Word? A: Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/424991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set up windows authentication just for a single route in ASP.NET MVC on iis6? I'm developing a web application and I need to mix Forms & Windows authentication together. The approach which I selected is this: authentication method on all the web site has to be forms auth. There is a form page (~/home/Login) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/424992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to remove private members from Content Assist in Eclipse I'm in Eclipse writing Java. I come from Visual Studio with Resharper writing C#. When Content Assist comes up, I see all the private members of a class, even though I'm not editing that class. Is there a way I can turn that off? It's really dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/424997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I decode this text? I have a friend who has code like this in his wordpress files: Blockquote \x66\x75\x6e\x63\x74\x69 Blockquote And so on... How do I decode this? Is there an online tool to do it? A: The text is an ASCII representation of some hexidecimal characters, how you would decode it would de...
{ "language": "en", "url": "https://stackoverflow.com/questions/425009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.NET: WCF and Could not load file or assembly 'App_Web_hamznvwf I have recently begun working with AJAX-Enabled WCF, and have been plagued with this .NET caching issue - Could not load file or assembly App__Web__hamznvwf I was having issues with this 4 to 5 times a day on my server (Win 2003) - see first post So ...
{ "language": "en", "url": "https://stackoverflow.com/questions/425015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Debugging w/ Attach to Process Starts ASP.NET Dev Server I'm developing an ASP.NET site off of my Windows XP IIS Installation, and whenever I tell visual studio to attach-to-process to the aspnet_wp.exe it starts a new instance of asp.net development server. Is there a way to make it not start asp.net development se...
{ "language": "en", "url": "https://stackoverflow.com/questions/425016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Starter guide for Apache ServiceMix What is the definitive guide to start with Apache ServiceMix? The howto's and guides on the website are way too complicate for a clean start. A: here are a few quick notes on getting a development environment going and an intro to Servicemix4 here... http://benoday.blogspot.com/2...
{ "language": "en", "url": "https://stackoverflow.com/questions/425017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: SQL Distinct by ID and Latest By Date I have the following SQL Statement. I need to select the latest record for each System.Id using the System.RevisedDate SELECT [System.Id],[System.RevisedDate], [System.Title], [System.State], [System.Reason], [System.CreatedDate], [System.WorkItemType], [System.TeamProject],...
{ "language": "en", "url": "https://stackoverflow.com/questions/425020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TOAD vs AquaFold - Connecting to Oracle does anyone have any experience using both of these products and willing to share some pros and cons of each? I love TOAD but I'm moving to Mac, so I'll have to give it away. I can always run TOAD in a VM, but at the same time I'd like to try something new and native to Mac O...
{ "language": "en", "url": "https://stackoverflow.com/questions/425025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Oracle TNS names not showing when adding new connection to SQL Developer I'm trying to connect to an oracle database with SQL Developer. I've installed the .Net oracle drivers and placed the tnsnames.ora file at C:\Oracle\product\11.1.0\client_1\Network\Admin I'm using the following format in tnsnames.ora: dev = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/425029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "101" }
Q: Is there a such thing as a DV emulator? Does software exist that would emulate a DV camcorder for the purposes of development? (So that you could test an application that can capture video from and control a miniDV camcorder, without needing to own a miniDV camcorder.) Googling showed that Apple's Firewire SDK has s...
{ "language": "en", "url": "https://stackoverflow.com/questions/425035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }