text
stringlengths
8
267k
meta
dict
Q: How can I recover a class from the DataSet that it was cast to by the Web Services proxy class? Background I have made a Web Service in Visual Studio, and I'm trying to consume it using the automatically generated proxy class. The Web Service returns a class that I have implemented, containing a List. Question The p...
{ "language": "en", "url": "https://stackoverflow.com/questions/369246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can strong naming an assembly be used to verify the assembly author? I have been reading the proper article in MSDN, Strong-Named Assemblies and a related Stack Overflow question, Checking an assembly for a strong name. * *To which extent can a strong-named assembly be verified to avoid tampering? *Is it possibl...
{ "language": "en", "url": "https://stackoverflow.com/questions/369248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: using existing rrule to generate a further set of occurrences I have an rrule instance e.g. r = rrule(WEEKLY, byweekday=SA, count=10, dtstart=parse('20081001')) where dtstart and byweekday may change. If I then want to generate the ten dates that follow on from this rrule, what's the best way of doing it? Can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to document a database (Note: I realize this is close to How do you document your database structure? , but I don't think it's identical.) I've started work at a place with a database with literally hundreds of tables and views, all with cryptic names with very few vowels, and no documentation. They also don't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: What's better for SEO? StackOverflow.com style "domain.com/91512/some-trimmed-text" or "domain.com/91512_some-trimmed-text" Love to hear your opinions and justification? I've heard deep directories are bad, but how does it compare to underscore characters? A: Use dashes - Google regards dashes as separating words, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I programmatically check EFFECTIVE delete (modify) or write permissions in .NET? Sorry in advance for the long question. What I'm really interested in is a way to programmatically check if the executing windows identity has adequate windows privileges to write to a directory (or file) in an ASP.NET web servic...
{ "language": "en", "url": "https://stackoverflow.com/questions/369273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: IE7 having problems when redirected to large excel files We've got a page in our asp.net web system that uses response.redirect to redirect the user directly to an excel file so it will download "automatically" without the user having to to a right click / save as. This works great - except for files over about 100k...
{ "language": "en", "url": "https://stackoverflow.com/questions/369277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to debug installer executable created using installshield universal? I have created a windows executable with some custom actions and some UI stuffs. I am facing a strange behavior with the installable. I tried probing through the code and kracking the installer as much as I can, but I did not find an...
{ "language": "en", "url": "https://stackoverflow.com/questions/369281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Interface Builder tags I'm using interface builder's tag feature to access some UILabels I'm instantiating in a xib file. Since this a UITextViewCell I want to avoid superfluous method calls, but I want to do it right too. Thus when I do: UILabel *label = (UILabel *)[cell viewWithTag:1]; I'm wondering if I sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/369288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: IE7 HTTP Error 400 Why would IE 7 display HTTP Error "Bad request" 400 on the same page that Firefox loads without complaining? A: When you get a message like this turn off friendly HTTP error messages in IE. To do this go to Tools -> Internet Options -> Advanced. Uncheck show friendly HTTP error messages. Once you...
{ "language": "en", "url": "https://stackoverflow.com/questions/369289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to effectively authenticate the user calling a webservice? In a multi-server environment, users will be able to use a page to put, update or delete files on the servers. I was considering using a webservice (on each server) called by the IIS thread to do that work (with an aspx management page). However, for obv...
{ "language": "en", "url": "https://stackoverflow.com/questions/369291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Skunk Works Projects Skunk Works Project: A project carried out by one part of a company without the knowledge of the remainder of the company. Looking for stories about any skunk works projects you've worked on or initiated: * *Was it successful? *Were you found out? *Were you punished or rewarded? *How di...
{ "language": "en", "url": "https://stackoverflow.com/questions/369297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to develop multi-touch applications in Java? Anticipating the day when multi-touch interfaces become more pervasive, are there libraries in Java that can be used for developing touch applications? I'm looking for interfaces similar to MouseListener / MouseMotionListener / MouseWheelListener. A: The MT4j projec...
{ "language": "en", "url": "https://stackoverflow.com/questions/369301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Is there anyone who has managed to compile mod_wsgi for apache on Mac OS X Leopard? I'm working on a Django project that requires debugging on a multithreaded server. I've found mod_wsgi 2.0+ to be the easiest to work with, because of easy workarounds for python module reloading. Problem is can't get it to compile o...
{ "language": "en", "url": "https://stackoverflow.com/questions/369305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Safe storing of auth token using .NET I'm currently working on desktop application which calls third party API. After authorizing against their "web service", a kind of user token is returned which should be stored locally (even if user closes application). So I'm looking for solution to encrypt this token with us...
{ "language": "en", "url": "https://stackoverflow.com/questions/369312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: SQL Rounding Question I have the following values being returned in a column.. 0.250000 and 13.000000. I'd like to round the 0.250000 up to 1 and leave the 13 as is. Any easy way to do this since they both fall within the same column? A: Your DBMS probably has a CEILING function. Try that. A: The ceiling functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/369331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C#: Is it possible to declare a local variable in an anonymous method? Is is possible to have a local variable in an anonymous c# methods, i.e. in the following code I would like to perform the count only once. IQueryable<Enquiry> linq = db.Enquiries; if(...) linq = linq.Where(...); if(...) linq = linq.Where(e => ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Java icon constants - Are static constants ok? I have a number of icons used throughout an application - let's take ok/cancel icons as an example. At the moment they might be a tick and a cross (tick.png, cross.png) but I may want to replace them in future. Also, I would like to keep the resource path in one place. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Filter table list in MS-Access Link Table? WinXP Pro Oracle 10g Instant Client 10.2.0.1 MS Access 2003 When I link a table in MS Access, the pick list that appears shows me every table and view in the system I have access to. This list is quite large. Normally, I really only want to look at the tables that I own. Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/369356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DLGTEMPLATE to CWnd-derived control Is it possible to take a DLGTEMPLATE and use it as a CWnd-derived control for placing in any other CWnd? I have a dialog template that I want to use on one of my CDockablePanes A: Your question isn't clear, please rephrase. If you're asking if it's possible to instantiate a contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/369358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PostgreSQL changing returned rows order I have a table named categories, which contains ID(long), Name(varchar(50)), parentID(long), and shownByDefault(boolean) columns. This table contains 554 records. All the shownByDefaultValues are 'false'. When I execute 'select id, name from categories', pg returns me all th...
{ "language": "en", "url": "https://stackoverflow.com/questions/369362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do you access the high speed SRAM in ARM CPUs from user-mode code on WinCE? When writing embedded ARM code, it's easy to access to the built-in zero wait state memory to accelerate your application. Windows CE doesn't expose this to user-mode applications, but there is probably a way to do it. The internal SRA...
{ "language": "en", "url": "https://stackoverflow.com/questions/369363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Compile swf at runtime via C#? I'd like to know if it's possible to compile an .swf file at runtime via C# (would be called via a Flex Application). I've read some articles about using fsch.exe, but nothing that gave any concrete examples. I'm fairly certain this is possible, so a secondary question is whether it's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Prototype framework / call from button I thought this was pretty straight forward but I don't get the same results as the tutorials I read. I have a button on an html page that calls a function in script tags. I also have a reference to the prototype.js file which I haven't even begun to implement yet. If I leave th...
{ "language": "en", "url": "https://stackoverflow.com/questions/369367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should we be tracking defects in things other than code? At various times in my career I have encouraged staff I worked with and/or managed to track defects in artifacts of the development process other than source code (i.e. requirements, tests, design). Each time the request has been met with astonishment, confusi...
{ "language": "en", "url": "https://stackoverflow.com/questions/369377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Flex: invalidateData I've trouble getting my components to update when the params has changed: package mycompany { import flash.events.Event; import mx.events.SliderEvent; import mx.controls.HSlider; import mx.controls.sliderClasses.Slider; public class FromToSlider extends HSlider { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to get min and max value from a list of Comparables that main contain null values? I am thinking about something like this: public static <T extends Comparable<T>> T minOf(T...ts){ SortedSet<T> set = new TreeSet<T>(Arrays.asList(ts)); return set.first(); } public static <T exten...
{ "language": "en", "url": "https://stackoverflow.com/questions/369383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is there an OpenSource BASIC interpreter in Ruby/Python? I want something simple in order to experiment/hack. I've created a lot interpreters/compilers for c and I just want something simple. A basic BASIC :D If you don't know any (I've done my google search...), yacc/bison is the only way? Thx A: PLY is a great pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/369391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Errors in Windows Forms controls in designer view On occasion, I get the following error in design mode of some user controls in Visual Studio 2008: The file 'UserControl.vb' does not support code parsing or generation because it is not contained within a project that supports code. It doesn't happen on a co...
{ "language": "en", "url": "https://stackoverflow.com/questions/369393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: What are your favorite Eclipse plug-ins? The only plug-ins I use are the ones required to do my job like SoapUI, Maven and SVN. I'm wondering if maybe there are some plug-ins out there that might make my life easier. Are there any Eclipse plug-ins that you find invaluable? A: Mylyn is pretty cool. A: This is v...
{ "language": "en", "url": "https://stackoverflow.com/questions/369406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Newbie to GPU programming: what to learn? I am rendering a certain scene to an off-screen frame buffer (FBO) and then I'm reading the rendered image using glReadPixels() for processing on the CPU. The processing involves some very simple scanning routines and extraction of data. After profiling I realized that mos...
{ "language": "en", "url": "https://stackoverflow.com/questions/369411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python: os.environ.get('SSH_ORIGINAL_COMMAND') returns None Trying to follow a technique found at bzr and gitosis I did the following: added to ~/.ssh/authorized_keys the command="my_parser" parameter which point to a python script file named 'my_parser' and located in /usr/local/bin (file was chmoded as 777) in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/369414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Constrained Sequence to Index Mapping I'm puzzling over how to map a set of sequences to consecutive integers. All the sequences follow this rule: A_0 = 1 A_n >= 1 A_n <= max(A_0 .. A_n-1) + 1 I'm looking for a solution that will be able to, given such a sequence, compute a integer for doing a lookup into a table a...
{ "language": "en", "url": "https://stackoverflow.com/questions/369417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Question about object.method in JavaScript This is a follow-up question to this one. Take a look at these two examples: var number1 = new Number(3.123); number1 = number1.toFixed(2); alert(number1); var number2 = 3.123; number2 = number2.toFixed(2); alert(number2); I realize they both end up with the same value,...
{ "language": "en", "url": "https://stackoverflow.com/questions/369424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Reference 3.5 assembly from 2.0 application? I have an assembly that is targeted for .NET 3.5. I have an application targeted for .NET 2.0 and wonder if I should have any trouble referencing the 3.5 assembly from the 2.0 application. I understand that the IL is supposedly the same, so I'm assuming that it will work,...
{ "language": "en", "url": "https://stackoverflow.com/questions/369425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Smooth spectrum for Mandelbrot Set rendering I'm currently writing a program to generate really enormous (65536x65536 pixels and above) Mandelbrot images, and I'd like to devise a spectrum and coloring scheme that does them justice. The wikipedia featured mandelbrot image seems like an excellent example, especially ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Keeping an floated image inside the div with CSS I'm having this problem, same as ever, but never try to find the right solution code: <div id="ListOfTextAndPhotos"> <div style="border-bottom: solid 1px silver;"> <img src="photo.jpg" style="float: left"> Some text about the photo </d...
{ "language": "en", "url": "https://stackoverflow.com/questions/369448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Java: using a RuntimeException to escape from a Visitor I am being powerfully tempted to use an unchecked exception as a short-circuit control-flow construct in a Java program. I hope somebody here can advise me on a better, cleaner way to handle this problem. The idea is that I want to cut short the recursive explo...
{ "language": "en", "url": "https://stackoverflow.com/questions/369452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I map a hibernate Timestamp to a MySQL BIGINT? I am using Hibernate 3.x, MySQL 4.1.20 with Java 1.6. I am mapping a Hibernate Timestamp to a MySQL TIMESTAMP. So far so good. The problem is that MySQL stores the TIMESTAMP in seconds and discards the milliseconds and I now need millisecond precision. I figure...
{ "language": "en", "url": "https://stackoverflow.com/questions/369460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Force Full Path in the Connection String of Linq DataContext I'm using System.Data.Linq.DataContext file for accessing a mdf Database I want to use the Database from the project directory and not the one created by the debugger in the Debug directory. The problem is when I edit the Connection String and choose the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/369462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best way of synchronizing data between decoupled systems? I have let's say 2 (but they'll become more in the future) fully decoupled systems: system A and system B. Let's say every piece of information on each system has an informationID. There's nothing stopping the informationID to be the same on differ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Scrum Burn Down Charts: Tasks or Stories? There are several ways to do burn down charts in Scrum. Some people suggest using the story points of unfinished stories left as your burn down charts in Scrum. Pro: Only finished stories lower the chart Contra: Chart doesn't move down in the beginning and then rapidly falls...
{ "language": "en", "url": "https://stackoverflow.com/questions/369493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What are the valid characters for macro names? Are C-style macro names subject to the same naming rules as identifiers? After a compiler upgrade, it is now emitting this warning for a legacy application: warning #3649-D: white space is required between the macro name "CHAR_" and its replacement text #define ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: How to prevent IFRAME from redirecting top-level window Some websites have code to "break out" of IFRAME enclosures, meaning that if a page A is loaded as an IFRAME inside an parent page P some Javascript in A redirects the outer window to A. Typically this Javascript looks something like this: <script type="text/ja...
{ "language": "en", "url": "https://stackoverflow.com/questions/369498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "145" }
Q: Microsoft Visual Studio SDK DSL Tools - Any serious takers? We are considering Microsoft DSL toolkit for creating some abstract designers. I already did some POCs, but would like to get some opinions on the same. Any one here to share their experiences working with Microsoft DSL Toolkit and T4? Also, any pointers to...
{ "language": "en", "url": "https://stackoverflow.com/questions/369504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: ./ changes target when i use OpenFileDialog I'm using a streamwriter to log errors the way it has been designed (please dont ask why) is to open a new streamwriter everytime the application has to log a message. It outputs everything to ./Logs/[current-date].txt which usually resolves to "c:\myappfolder\logs[current...
{ "language": "en", "url": "https://stackoverflow.com/questions/369506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Manipulate a file in code (VB.NET) without executing the file's macros I have an Excel file that has a bunch of VBA and macro code in it. When I open the file in Excel I can choose not to 'enable' them - so the values in the fields all stay as they were during the last save. I need to manipulate the values as they...
{ "language": "en", "url": "https://stackoverflow.com/questions/369510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to compare objects by multiple fields Assume you have some objects which have several fields they can be compared by: public class Person { private String firstName; private String lastName; private String age; /* Constructors */ /* Methods */ } So in this example, when you ask if: a.com...
{ "language": "en", "url": "https://stackoverflow.com/questions/369512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "312" }
Q: Sys is undefined - ajax issue in IE 7 only I have a weird issue that only seems to be affecting IE 7. The web site is a 3.5 c# asp.net website that utilizes ajax and the ajax control toolkit deployed to a win 2003 server. Everything appears to be correct in the web.config. In fact, everything works perfectly in IE6 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it better to use NOT or <> when comparing values? Is it better to use NOT or to use <> when comparing values in VBScript? is this: If NOT value1 = value2 Then or this: If value1 <> value2 Then better? EDIT: Here is my counterargument. When looking to logically negate a Boolean value you would use the NOT ope...
{ "language": "en", "url": "https://stackoverflow.com/questions/369519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: How can I start a console application using the 'network service' account? I have a console application that I would like to run as 'NT AUTHORITY\NetworkService', but I can't remember how to do so - the only reason is that I will be hosting my service in a Windows service, but for Kerberos authentication testing I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/369527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Recommendations for IIS book I'm a developer who had handed to him the admin duties for our IIS server. I'm reasonably familiar with IIS in terms of setting up web sites, virtual directories, and such and such, but I figure if I'm going to be administrator the server entirely, I better get up to speed. Any recommend...
{ "language": "en", "url": "https://stackoverflow.com/questions/369531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Source Control for an Academic Research Group? In contrast to most software development organizations, our little research group within a university department consists of a professor and a flow of grad and undergrad students, it's hard to retain any working knowledge beyond the research itself. Our backgrounds var...
{ "language": "en", "url": "https://stackoverflow.com/questions/369538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Validating e-mail with regular expression VB.Net I'm working on a small project in VB.Net where I get a input from a textbox, and need to verify that this is an e-email address. I found this expression "^[_a-z0-9-]+(.[_a-z0-9-]+)@[a-z0-9-]+(.[a-z0-9-]+)(.[a-z]{2,4})$", but i cant find any way to test if it passes. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/369543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What is the best way to learn Expressions Blend 2? What is the best way to quickly get up to speed on Microsoft Expressions Blend 2? Are there some good web sites that can get me started or does someone have a good book that they would recommend? A: Expression Blend is used in creating Sliverlight XAML. I would s...
{ "language": "en", "url": "https://stackoverflow.com/questions/369551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Web-based Game Development: Flex Builder or Flash CS3? I'm researching game development in Flash and Flex. I've downloaded the Flex Builder trial and have worked with older versions of Flash. I see that generally, Flex Builder is a developer's tool, and Flash is a designer's tool. It's not clear to me whether one...
{ "language": "en", "url": "https://stackoverflow.com/questions/369558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Open source expert system does anyone know about a open source expert system? actually, I'm rather interested in calling its inferential engine from C#. A: Both CLIPS and JESS are already mentioned in other answers, so I will supply this link to CLIPS versus JESS: http://www.comp.lancs.ac.uk/~kristof/research/notes...
{ "language": "en", "url": "https://stackoverflow.com/questions/369566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: VS2005: How to not have VS try to parse text file resources as html? I have included a resource in my Visual Studio 2005 solution that was a file on the hard drive. It is a text file, that contains text, and has a .htm extension. For months it worked fine, until I wanted to edit the contents of the text file. Sudden...
{ "language": "en", "url": "https://stackoverflow.com/questions/369570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: LINQ Error Invalid Column Name on Group by sum For some reason, when using two sums on a group by, i run into the error "invalid column name 'id'. When i only do one sum, it works as expected. The following fails and throws the error: from pd in PrDetails.Where(_pd => _pd.PrId == 46) group pd by new { pd.Program...
{ "language": "en", "url": "https://stackoverflow.com/questions/369572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you pass an arbitrary bit of data to a user control in ASP.NET MVC using Html.RenderPartial()? I have a strongly typed user control ("partial") and I'd like to be able to pass it some additional information from its containing view. For example, I have view that's bound to a product class and i have a partia...
{ "language": "en", "url": "https://stackoverflow.com/questions/369573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to databind to a property on a collection behind a collectionviewsource? I currently have a collection with a HasChanges property on it (each object in the collection also has its own HasChanges property) and the collection is the source of my CollectionViewSource. When I try to databind the HasChanges property ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing 'Global' Variables In An ExecuteSQL Task I have an SSIS package that does the following: Selects the connection strings from a table of servers. The connection string is either the name of the server along with the domain (i.e. Dalin.myhouse.com) or is the direct IP to a server. The package iterates throu...
{ "language": "en", "url": "https://stackoverflow.com/questions/369591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WebBrowser.Navigated Only Fires when I MessageBox.Show(); I have a WebBrowser control which is being instantiated dynamically from a background STA thread because the parent thread is a BackgroundWorker and has lots of other things to do. The problem is that the Navigated event never fires, unless I pop a MessageBox...
{ "language": "en", "url": "https://stackoverflow.com/questions/369594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PageMethods with ASP.Net MVC I have found ASP.Net PageMethods very handy and easy to use, but I have just started developing using MVC and am not sure how to use them? What is the equivalent of PageMethods.MyFunction() in MVC where MyFunction is a Controller action? I know I can use the Json function to return a va...
{ "language": "en", "url": "https://stackoverflow.com/questions/369595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Deleting an element from an array in PHP Is there an easy way to delete an element from an array using PHP, such that foreach ($array) no longer includes that element? I thought that setting it to null would do it, but apparently it does not work. A: Edit If you can't take it as given that the object is in that arr...
{ "language": "en", "url": "https://stackoverflow.com/questions/369602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2981" }
Q: changing a class name throughout a development I'm in a situation where I have the class "progress" - trouble is that I'm interested in incorporating some open source that also has the class "progress". I remember very vaguely some reference to an app that's able to inspect the various files in a development for a g...
{ "language": "en", "url": "https://stackoverflow.com/questions/369626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Seeding a random number generator in .NET I have a pseudorandom number generator (PRNG) with nice properties which uses six UInt32s as state. I need to come up with a reasonable way to seed it. Two obvious possibilities are: 1) generate six random numbers using System.Random and use them as seeds; 2) generate two GU...
{ "language": "en", "url": "https://stackoverflow.com/questions/369636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Excel Add-On to display data from (My)SQL Database is there an easy way of importing data from a mysql/odbc datasource into an excel spreadsheet? The user should be able to select some values from drop downs (e..g date range, branch name etc.) and the values from the dropdown should be used to populate (prepared) S...
{ "language": "en", "url": "https://stackoverflow.com/questions/369637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to copy .war to Tomcat's webapps directory using Maven? Is there anything I can add to pom.xml that will copy the generated .war file from the target directory to my Tomcat's webapps directory? A: This is the correct approach : <plugin> <groupId>org.apache.maven.plugins</groupId> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: How to discover the type of the NAT a given interface is behind I would like to discover the type of the NAT (FullCone, Restricted Cone, Port Restricted cone, Symmetric) a given network interface is behind. I've tested different tools (http://freshmeat.net/projects/jstun/, http://code.google.com/p/boogu/) but they...
{ "language": "en", "url": "https://stackoverflow.com/questions/369664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: DB Design: Does having 2 Tables (One is optimized for Read, one for Write) improve performance? I am thinking about a DB Design Problem. For example, I am designing this stackoverflow website where I have a list of Questions. Each Question contains certain meta data that will probably not change. Each Question also ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Looking for XML parser I have been tasked with finding an open source DOM XML parser. The parser must minimally support XPath 1.0. Schema support is desired, but not a deal breaker The files we are parsing will be small so speed and memory consumption are not a large concern. Any OO language (C++, C#, Java, etc....
{ "language": "en", "url": "https://stackoverflow.com/questions/369675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dealing with variable assignments and async requests I'm looking for a reliable design for handling assignments that have asynchronous requests involved. To further clarify, I have a class which handles Data Management. It is a singleton and contains a lot of top level data for me which is used throughout my iPhone ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Example of setting up a name entry box for high score submission on iPhone? Does anyone have an example of setting up a text field where users can enter their name and/or email address to submit it online to a high score database? I would like to have it be similar to the form that pops up when you attempt to down...
{ "language": "en", "url": "https://stackoverflow.com/questions/369680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I see which source safe project is bound to a Visual Studio solution? Is it possible to verify which source safe project is bound to my vs.net solution? When I checkout a file in vs.net, then look up the file in source safe, it seems to be checking out a file from another project. When I look at the directo...
{ "language": "en", "url": "https://stackoverflow.com/questions/369689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get Session start information if Session is turned off in ASP .NET I have an ASP .NET information and I currently have session state turned off so I can't exactly hook into the session start event within the Global.asax. I want to get at this data, when someone comes to a site, and when they would normally start a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/369693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Winforms + MDI children In WinForms, is there a way to specify initial starting locations of MDI Child windows in a somewhat intelligent manner? I can apply a manual position, or have it center parent, but neither of these options take much thought into existing windows. I'd like to know if there is built in way to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Command line to delete all ClearCase view-private files I'm looking for a command line to remove all view-private files and directories from a ClearCase view on Windows. I have Cygwin available as well. The script available at this article is not quite what I want, since I'm working with a large number of files and...
{ "language": "en", "url": "https://stackoverflow.com/questions/369697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Create DataTable with DB table structure What is the best way to create a DataTable with the same structure as a table in my SqlServer database? At present, I am using SqlDataAdapter.Fill() with a query that brings back the columns but no rows. That's works fine, but it seems klutzy. Is there a better way? A: Well...
{ "language": "en", "url": "https://stackoverflow.com/questions/369702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: New Build with MSBuild does not include new class I normally build my solution with MSBuild in order to keep Visual Studio responsive and save a bit of time. Right now, what I run at the command line is very simple: MSBuild.exe /m "C:\MyProject\MyProject.sln" Up until now, this has worked just fine. However, toda...
{ "language": "en", "url": "https://stackoverflow.com/questions/369714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: DB2 - what is NF (New Functionality) mode? I have some questions about customers about NF mode for DB2. Google had very little information about it. I've been able to infer the following but I don't completely trust it... * *NF and CM (compatibility mode) are settings on DB2 v8 on mainframe. *DB2 v8 on z/OS in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Assigning Visible Property of the Button to a Static Method Result I am trying to hide the button based on the user's role using the following code: <asp:Button ID="btndisplayrole" Text="Admin Button" Visible='<%= WebApplication1.SiteHelper.IsUserInRole("Admin") %>' runat="server" OnClick="DisplayRoleClick" /> Bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/369736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I make YUI-tabs right aligned? For the following example: http://developer.yahoo.com/yui/examples/tabview/frommarkup_clean.html I would like to make the tabs right aligned and still retain the current order. I'm certain its something simple - just too close to it to see the solution. A: Off the top my head, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reenable (windows)keys after another program has disabled it Quake3 has disabled the alt and windows keys. Is there any way to reenable them even while quake3 is running? I need those keys even while I have the game open. They way I think it works is that the game registers a hotkey using RegisterHotKey and then set...
{ "language": "en", "url": "https://stackoverflow.com/questions/369748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I do a fuzzy match of company names in MYSQL with PHP for auto-complete? My users will import through cut and paste a large string that will contain company names. I have an existing and growing MYSQL database of companies names, each with a unique company_id. I want to be able to parse through the string an...
{ "language": "en", "url": "https://stackoverflow.com/questions/369755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "58" }
Q: How to trim whitespace from a Bash variable? I have a shell script with this code: var=`hg st -R "$path"` if [ -n "$var" ]; then echo $var fi But the conditional code always executes, because hg st always prints at least one newline character. * *Is there a simple way to strip whitespace from $var (like trim...
{ "language": "en", "url": "https://stackoverflow.com/questions/369758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1262" }
Q: java append to file I googled for this for a while but can't seem to find it and it should be easy. I want to append a CR to then end of an XML file that I am creating with a Transformer. Is there a way to do this> I tried the following but this resulted in a blank file? Transformer xformer = TransformerFactory.new...
{ "language": "en", "url": "https://stackoverflow.com/questions/369760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JQuery table sorter problem I learned that by trying to use the tablesorter plug in from jquery the table needs to use the < thead> and < tbody> tags. I am using an html table, and I use the runat="server" attribute because I need to bind data to the table on the server side. but by using the runat= server attribut...
{ "language": "en", "url": "https://stackoverflow.com/questions/369762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IPv6 decoder for pcapy/impacket I use the pcapy/impacket library to decode network packets in Python. It has an IP decoder which knows about the syntax of IPv4 packets but apparently no IPv6 decoder. Does anyone get one? In a private correspondance, the Impacket maintainers say it may be better to start with Scapy ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Understanding memory management in mingw/g++ I was given an assignment to basically explain this. I have taken a quick look at the compiler documentation, and it seems to be a good place to start although it is quite extensive and I don't have much time. I'd like to know if I'd need to understand the C99 standards b...
{ "language": "en", "url": "https://stackoverflow.com/questions/369771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Union two List in C# I want to union, merge in a List that contains both references, so this is my code, how can I define a list ready for this porpouses? if (e.CommandName == "AddtoSelected") { List<DetalleCita> lstAux = new List<DetalleCita>(); foreach (GridViewRow row in this.dgvEstudios.Rows) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rhino Mocks Exception Expect #1 Actual #0 : Need assistance I've have searched on this and it seems to be a catch all, unfortunately everything I've read doesn't help figure it out. Here is the class: public interface IMockInterface { MockClass MockedMethod(); MockClass MockThis(); } public class MockClass...
{ "language": "en", "url": "https://stackoverflow.com/questions/369777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to SetFocus to a CButton so that the border and focus dotted line are visible? I created a simple dialog-based application, and in the default CDialog added three buttons (by drag-and-dropping them) using the Visual Studio editor. The default OK and Cancel buttons are there too. I want to set the focus to butto...
{ "language": "en", "url": "https://stackoverflow.com/questions/369788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create a form on its own thread and keep it open throughout application lifetime I am creating a little testing component and am running into a problem Basically the component is a decorator on a class that controls all access to the database, it creates a form with a two buttons on it: "Simulate Lost Connect...
{ "language": "en", "url": "https://stackoverflow.com/questions/369790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to deserialize only part of an XML document in C# Here's a fictitious example of the problem I'm trying to solve. If I'm working in C#, and have XML like this: <?xml version="1.0" encoding="utf-8"?> <Cars> <Car> <StockNumber>1020</StockNumber> <Make>Nissan</Make> <Model>Sentra</Model> </Car> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/369792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Program for documenting a C struct? If you have a binary file format (or packet format) which is described as a C structure, are there any programs which will parse the structure and turn it into neat documentation on your protocol? The struct would of course contain arrays, other structures, etc., as necessary to d...
{ "language": "en", "url": "https://stackoverflow.com/questions/369793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Good and full implementation of RSS feeds in ASP.net MVC I've seen a few examples of RSS Feeds in ASP.NET MVC, like this, and some samples in projects (like Oxite), but none of them are complete. Eg. None of them check for the header If-Modified-Since in the request, to save bandwidth. I do not want to reinvent...
{ "language": "en", "url": "https://stackoverflow.com/questions/369794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Control the number of displayed rows in a dropdown Is there a way to control the number of displayed rows in a DropDownList control? I'd like it to only display 10 rows, but it defaults to 30. This causes the list to appear higher than the control instead of below it because of its position on the page. A: You can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/369815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java GUI repaint() problem? I have a JFrame. This JFrame contains a JButton. I click the JButton and 10 JTextFields are created. the problem: I cannot see them until "I force a repaint()" by resizing the window. Only then do I see the JTextFields created. CODE: JPanel points = new JPanel(); //Creating the JTextFiel...
{ "language": "en", "url": "https://stackoverflow.com/questions/369823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Can you use one hundred percent of IO and CPU at the same time? a question that a co-interviewer asked in interviews. I always thought it was a silly question. Assume single processor and not dual core. A: Yes you can if DMA is not available. In that case you could end up using the CPU to move data around from I/O...
{ "language": "en", "url": "https://stackoverflow.com/questions/369827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }