text
stringlengths
8
267k
meta
dict
Q: How to modify PropertyGrid at runtime (add/remove property and dynamic types/enums) How do you modify a propertygrid at runtime in every way? I want to be able to add and remove properties and add "dynamic types", what I mean with that is a type that result in a runtime generated dropdown in the propertygrid using a...
{ "language": "en", "url": "https://stackoverflow.com/questions/313822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: segmentation fault using OMP all! Typing from Italy This little piece of code works if the matrix size is less then 800 and fails with a segmentation fault for higher sizes.... I have tried it with gcc 4.3.2 compiler in linux and macosx and VisualStudio compiler in windows. Seemsthe problem is in the stack size........
{ "language": "en", "url": "https://stackoverflow.com/questions/313824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Bad request when client call a webservice that also calls another webservice I have a client application that calls a function1 on webservice1 on server1 in the local network. The webservice1 then calls another webservice2 on an remote server2. If open Internet Explorer on server1 and point it to the function1 on we...
{ "language": "en", "url": "https://stackoverflow.com/questions/313830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using powershell, how do I grant "Log on as service" to an account? I'm trying to use powershell to configure the account credentials, but I need to grant the account "Log on as a service" right in order for it to work. How can I do this in powershell? A: This is how I solved it: Based on: this article You can dow...
{ "language": "en", "url": "https://stackoverflow.com/questions/313831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: How to find and remove unused Delphi packages from a project How to find and remove unused Delphi runtime packages from a project that uses packages? I have a Delphi project that is made up of several packages, in the requires part of the packages there are several Borland/3rd party packages listed (rtl.dcp, vcl.dcp...
{ "language": "en", "url": "https://stackoverflow.com/questions/313832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the best way to write event log entries? I recently had a problem during the deployment of a windows service. Four computers did not cause any problems, but on the fifth any attempt to start the service failed due to an exception. The exception stack trace is written to the event log, so I though it should b...
{ "language": "en", "url": "https://stackoverflow.com/questions/313839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Do I ever really need to use the Global Assembly Cache (GAC)? I've been building .NET web applications for many years now, and I never use the GAC? What am I missing? Or am I better off staying away from it? A: The GAC is only useful if you register libraries which you're going to reuse. It is in no way obligator...
{ "language": "en", "url": "https://stackoverflow.com/questions/313842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: regex to match non-whitespace OR space prefixed with '\\' I have a space delimited list of files names, where spaces in the file names are prefixed by '\' e.g. "first\ file second\ file" How can I get my regex to match each file name? A: (\S|(?<=\\) )+ Explanation: You are looking for either non white-space chara...
{ "language": "en", "url": "https://stackoverflow.com/questions/313848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is SSO (single-sign-on)? I understand SSO as the one time login for all the applications connected. I would like to know more about SSO and how exactly it is achieved. A: Single Sign-on allows the end-user to login to a single portal and access multiple applications seamlessly, reducing multiple login screens ...
{ "language": "en", "url": "https://stackoverflow.com/questions/313853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Reading the local password policy programmatically Are there Windows API functions that allows reading what the current password policy is? For instance, minimum length, complexity etc. If not reading, is there a way to verify a password against the policy programmatically? A: See Security Watch Windows Domain Pas...
{ "language": "en", "url": "https://stackoverflow.com/questions/313859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Java RMI tracing Is there a tool which traces & logs all RMI activity of a Java application? A: There are the JDK RMI debug/logging options and I also found this javaworld article on RMI debugging - hope they help.
{ "language": "en", "url": "https://stackoverflow.com/questions/313864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Can I automate creating a .NET web application in IIS? I need to deploy a web application on several laptops (although it is a web application, it is intended to run via localhost only - thus the need to deploy on several different machines). Normally I would go to IIS and right click a directory to create a web app...
{ "language": "en", "url": "https://stackoverflow.com/questions/313877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SRV record lookup with PHP If you type nslookup -type=SRV _xmpp-server._tcp.gmail.com (or use the dig command in OSX) you get some SRV records relating to google chat I would like to replicate this functionality in PHP, does anyone have any good ideas how to do this? I would like to avoid using exec() as this does ...
{ "language": "en", "url": "https://stackoverflow.com/questions/313880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can you invoke an instantiated object's class constructor explicity in C++? After creating a instance of a class, can we invoke the constructor explicitly? For example class A{ A(int a) { } } A instance; instance.A(2); Can we do this? A: No Calling instance.A() or A(1) is seens as casting 'function-...
{ "language": "en", "url": "https://stackoverflow.com/questions/313882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: WPF: Spilt GridView header into two rows where the bottom row is seperated into two colums I´m trying to separate a gridViewColumn into two rows. Im using default style for the listView. Its no problem to separate the column header into two rows, but it seems like the content is placed over the original style with t...
{ "language": "en", "url": "https://stackoverflow.com/questions/313889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Isolation level of automated BDD scenarios? What isolation level should you be aiming for when automating your scenarios? Should they be completely isolated, as with proper unit tests (ie using mocks etc), or are they more akin to integration tests? A: Scenarios are typically on the level of integration tests. Idea...
{ "language": "en", "url": "https://stackoverflow.com/questions/313891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to measure time taken by a function to execute I need to get execution time in milliseconds. I originally asked this question back in 2008. The accepted answer then was to use new Date().getTime() However, we can all agree now that using the standard performance.now() API is more appropriate. I am therefore ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/313893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1677" }
Q: Why does regex "[^<]*<\\?" exhibit exponential time when the text doesn't have a "<"? Using ICU 4.0 regex library, I find that the following regex is exhibiting exponential time: actual: "[^<]*<\?" C code: "[^<]*<\\?" Aim: find "<?" where there is no other "<" before it When running this regex on plain text with no...
{ "language": "en", "url": "https://stackoverflow.com/questions/313900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I add an attribute to a function to prevent reentry? At the moment, I have some functions which look like this: private bool inFunction1 = false; public void function1() { if (inFunction1) return; inFunction1 = true; // do stuff which might cause function1 to get called ... inFunction1 = fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/313910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Custom Cursor in a Swing JDialog I have a Java Swing application, developed on Mac OS X 10.5 using Java 1.5. I'm trying to make a custom cursor appear when the user moves the mouse over some text in a dialog. The cursor never changes, though. When I don't use a JFrame instead of a JDialog, the cursor does change. B...
{ "language": "en", "url": "https://stackoverflow.com/questions/313916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Working out the previous and next index in an array I've got a 1-based array of four items which I need to traverse. For a given index in the array, I need to work out the index of the next item, and the index of the previous item. This sounds simple but the array needs to wrap around. So when you are at the beginni...
{ "language": "en", "url": "https://stackoverflow.com/questions/313917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: De Serializing a list of strings without creating a new class? I have an XML configuration file with a collection of strings like so: <SomeSetting>value</SomeSetting> <SomeOtherSetting>value</SomeOtherSetting> <TypesOfThings> <Thing>Type 1</Thing> <Thing>Type 2</Thing> <Thing>Type 3</Thing> </TypesOfThings> T...
{ "language": "en", "url": "https://stackoverflow.com/questions/313918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Only getting one element returned, OO PHP class Score { var $score; var $name; var $dept; var $date; function Score($score, $name, $dept, $date) { $this->scores = ($score); $this->name = ($name); $this->dept = ($dept); $this->date = ($date); } functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/313921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Project management to go with GitHub (EDIT: This question is now outdated for my particular issue, as Google Code supports git now and I've converted Protocol Buffers to Mercurial anyway. However, it's still of general interest, IMO.) My C# Protocol Buffers Port uses github for its source control, and I'm beginning ...
{ "language": "en", "url": "https://stackoverflow.com/questions/313924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: Is converting my Apps to .Net a really good idea? All my applications are developed in Native Code. I am hesitant to move to .Net because of all the negatives that I hear, such as: * *Slow response time *Lock-In into Windows *Dependance on huge .Net run-time that makes installation a pain and slow as well. et...
{ "language": "en", "url": "https://stackoverflow.com/questions/313931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why SQL Server go slow when using variables? I have a sql query that runs super fast, around one second, when not using variables, like: WHERE id BETWEEN 5461094 and 5461097 But when I have: declare @firstId int declare @lastId int set @firstId = 5461094 set @lastId = 5461097 ... WHERE id BETWEEN @firstId and...
{ "language": "en", "url": "https://stackoverflow.com/questions/313935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Subversion Hook I am working in a project where there are configuration files, one in number for each of the environments where the application would be deployed. When a developer modifies one of these files, the developer should not be allowed to check-in the file individually, but check-in all the files together o...
{ "language": "en", "url": "https://stackoverflow.com/questions/313941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: PHP/MySQL: Retrieving the last *full* weeks entries I'm currently using the following SQL for retrieving the last seven days worth of entries from a table: purchased >= date_sub(now() ,interval 7 day) However, I need to change this so it retrieves the last full weeks worth of entries (midnight Saturday to midnight ...
{ "language": "en", "url": "https://stackoverflow.com/questions/313962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MouseWheel not working when published movie has wmode="transparent"? I'm experiencing a bug with a published flash movie. When I embed the movie in an HTML page (with SWFObject 2.1), and assing it the wmode param value of 'transparent', all my functions based on the MouseWheel event stop working. The movie is based ...
{ "language": "en", "url": "https://stackoverflow.com/questions/313966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Add select attribute to Html.DropDownList using JQuery I have the the following html elements: <tr> <td> <label for="casenumber">Case:</label></td> <td> <%=Html.TextBox("casenumber", "", new Dictionary<string, object> { {"id", "casenumberID"} })%> </td> </tr> <tr> <td><label for="fogbugzU...
{ "language": "en", "url": "https://stackoverflow.com/questions/313969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to convert an instance of std::string to lower case I want to convert a std::string to lowercase. I am aware of the function tolower(). However, in the past I have had issues with this function and it is hardly ideal anyway as using it with a std::string would require iterating over each character. Is there an a...
{ "language": "en", "url": "https://stackoverflow.com/questions/313970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "970" }
Q: Flatten PDFs in PHP? I wondered if it was possible to flatten PDFs using PHP? I use fpdf to create and collate from a collection of PDFs however when PHP has processed it some information is missing such as the comments. I get sent several thousand PDFs every month that go on the company's website. I do need to disp...
{ "language": "en", "url": "https://stackoverflow.com/questions/313973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: C#.NET Importing a registry hive and parsing its contents I have been given a .Hive file from a registry which i have to parse and use the contents as part of a html report(from this i assume i have to convert to text somehow). The whole thing must be done within the program so i cant just convert the hive file and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/313991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: tb_event_death when single stepping in dbx When I am single stepping through one thread of a multi threaded program, the debugger gets interrupted with: 0x(some hex ref) : tdb_event_death : ret dbx: thread has exited -- next aborted My guess is a thread somewhere in the program I am debugging has stopped, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/313992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Classic ASP: Can the "Application" global object cause dead lock? In classic ASP there is a global object called "Application" that is accessed simultaniously by all sessions. As the "Application" object is a shared resource, can it cause dead locks? EDIT: If not, why does it has lock and unlock methods for? Referen...
{ "language": "en", "url": "https://stackoverflow.com/questions/313998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Programmatically using a string as object name when instantiating an object This is a contrived example, but lets say I have declared objects: CustomObj fooObj; CustomObj barObj; CustomObj bazObj; And I have an string array: string[] stringarray = new string[] {"foo","bar","baz"}; How can I programmatically access...
{ "language": "en", "url": "https://stackoverflow.com/questions/314008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Returning an Iterator I have a function which searches an STL container then returns the iterator when it finds the position, however I am getting some funny error messages, can tell me what I am doing wrong? Function: std::vector< CClass >::iterator CClass::SearchFunction( const std::string& strField ) { ... re...
{ "language": "en", "url": "https://stackoverflow.com/questions/314012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unit testing fake repository, how can I test the GetById method without first adding an entity? My understanding is that you have to write unit tests that isolate functionality. So given a repository class that has this method: Entity GetById(Guid id) and a fake implementation (using a Dictionary for storage), how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Windows Programming: How to put a file that is frequently accessed in the OS cache? Windows Programming: How to put a file that is frequently accessed in the OS cache? A: Disclaimer : I dont work all that much under Windows In the general case, you shouldnt mess with your OS cache. It should be smart enough to cach...
{ "language": "en", "url": "https://stackoverflow.com/questions/314029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WindowsForms designer and GenericForm Why doesn't the designer work if you inherit from an own written genericform? Suppose I've got the following genericform public class GenericForm<T> : System.Windows.Forms.Form { public T Test { get; set; } } When I go to the designer I get errors. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/314033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Adding a Web Domain on Windows Server 2008 I recently purchased a Windows Server 2008 server, Our company will be using it as a Web Server. I have set the web site up in IIS 7.0 and I can accsess it by typing http://10.1.1.8 on the computers within the network. When I try to accsess it through the net on other comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/314039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to retrieve cartridges ink level programmatically (Epson StatusMonitor + Mac OS X)? I'm looking for a way to query the ink level for my Epson DX 4050 on Mac OS X. There is some UI called EPSON StatusMonitor to display cartridges levels graphically, but I'd like to get it from the command-line so it can feed a ro...
{ "language": "en", "url": "https://stackoverflow.com/questions/314054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Change ConnectionString in VS2005 (C#) I know there is some similar issue. But, still the question is not answered! I need to modify the connection string not add a new one. A: This will help you out! /// <summary> /// Add a connection string to the connection /// strings section and store i...
{ "language": "en", "url": "https://stackoverflow.com/questions/314055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Optional Parameter in MVEL Functions Is there a way to get MVEL 2.0 ( http://mvel.codehaus.org/ ) to work with functions with optional parameters? I would like to be able to eval this: trunc('blahblah',2) but also trunc('blahblah',2,'[...]'); Now i have tried: def trunc(param1,param2,param3) { ... impl ... } That g...
{ "language": "en", "url": "https://stackoverflow.com/questions/314058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: De/Serialize directly To/From XML Linq Is there any way to de/serialize an object without round-tripping a XmlDocument/temp string? I am looking for something like the following: class Program { static void Main(string[] args) { XDocument doc = new XDocument(); MyClass c = new MyClass(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Fetch data from Other Websites Even before telling my question, will tell you that this is a very vague question. But please let me know if you have any similar ideas. I am actually trying to write a website of my own locally using ASP.Net. I actually wanted to try and simulate a website with trading and stock deta...
{ "language": "en", "url": "https://stackoverflow.com/questions/314068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .NET/IIS friendly in-memory antivirus scanning I'm looking for a solution that would let me scan files on the fly. It would need to integrate nicely with either with IIS(6.0 or 7.0) or ASP.NET. I spent some time trying to find something on the Internet but unfortunately all I've found is a COM based solution that st...
{ "language": "en", "url": "https://stackoverflow.com/questions/314070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Not getting the object in the jsp send from the struts action class Hello can anybody solve this please I'm creating the object in the action class public CgUsers getUserdetail(){ CgUsers user = userManager.getUser(id); return user; } And I'm trying to use that object in the jsp page c:fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/314076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reading Values from Textboxes in a .Net Deployment Project I have a custom installer class that fires OnAfterInstall, how can I read values that were entered by the user in the pervious installation screens? The values are entered in textboxes. Also how can I force the installation to fail in my custom installer cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/314081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom Rails authentication / authorization I know questions of this kind have been asked before, but my situation differs a little. On my rails app I have to validate the user login against an existing repository and then control authorization to given modules. So, I don't want the solution I go for to generate a m...
{ "language": "en", "url": "https://stackoverflow.com/questions/314085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Make Visual Studio understand CamelCase when hitting Ctrl and cursor keys Is there a way that I can configure Visual Studio 2008 to understand CamelCase? Specifically, I'd like to be able to get Ctrl + right or left cursor to take me to a subsection of a variable or type name. i.e., if my cursor was at the start of...
{ "language": "en", "url": "https://stackoverflow.com/questions/314095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "156" }
Q: Update without locking inside a transaction Is the following scenario possible in SQL Server using a single active connection? Inside a READCOMMITED transaction I need to update one table without locking it. For example each time I execute a statement I increase a field in that table. This operation doesn't need to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why VS2008 debugging stops after one page cycle? I would really appreciate some thoughts on the following issue. When I attached to the w3wp.exe process. * *It starts to load the symbols. *Then the debugger stops before ever hitting a breakpoint. If I restart the w3wp process and refresh “Attach to process” I...
{ "language": "en", "url": "https://stackoverflow.com/questions/314099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Something better than .ToArray() to force enumeration of LINQ output I'm working with LINQ to objects and have a function where in some cases I need to modify the underlying collection before calling Aggregate(...) and then return it to its original state before the funciton returns the results of Aggregate(...). My...
{ "language": "en", "url": "https://stackoverflow.com/questions/314100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Difference between Root Namespace and Assembly Name What's the difference between the two? A: Assuming that you are talking about .NET (with relation to Visual Studio) then the root namespace is what each class you create in a visual studio project will become part of. It is also the base for any sub-namespaces tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/314101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How can I make this java generic cast? How can I make this java generic cast ? public interface IField { } class Field implements IField { // package private class } public class Form { private List<Field> fields; public List<IField> getFields() { return this.fields; } } The return statement thro...
{ "language": "en", "url": "https://stackoverflow.com/questions/314108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to host multiple ASP.NET websites on one shared hosting account? With PHP, I can make numerous PHP websites locally and then upload each of them to its own sub-directory of my PHP hosting service. However, with ASP.NET, it seems that I can only upload my ASP.NET to the root of my hosting service. If I upload to...
{ "language": "en", "url": "https://stackoverflow.com/questions/314109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you internationalise text in the database? Having a fully internationalised application is a necessity if you want to sell worldwide. In Java we're using resource bundles and that solves things for static text codeside. But what do you do about text that is stored in the database? Starting with static definit...
{ "language": "en", "url": "https://stackoverflow.com/questions/314110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Which event raise on cell value change in Infragistics UltraGrid? I am using Infragistics UltraGrid in a Windows Forms application. I need an event which is raised on cell value change. I've tried many events like AfterCellActivate, AfterCellUpdate but was unable to find the right one. A: AfterCellUpdate is what ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What tools does your team use for writing user manuals? Basic requests are: * *human readable / text format (for easy version control) *online (for collaboration) *easy formatting (markdown ok, html is too much) *strict formatting (so authors don't invent new types of titles, bullets etc.) *exportable to PDF,...
{ "language": "en", "url": "https://stackoverflow.com/questions/314117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Is it possible to use Netbeans for working on VB6 projects? I have to work on several VB6 legacy projects and despite some good VB6 plugins (CodeSMART for example) I hate the IDE more and more, especially now where I have the opportunity to work with Java/Netbeans on a new project. Unfortunatly it will stay that way...
{ "language": "en", "url": "https://stackoverflow.com/questions/314128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there some way to commit a file "partially" in TortoiseSVN? I'd like to commit just a part of a file using TortoiseSVN, is there some way to do that? I'll give an example to make it clearer why I want to do that. I have a file with some defines that are replaced in the build process, something like this: #define ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Webapp development tools for Blackberry I am looking for a good Environment (GUI based Editor) for blackberry webapps. e.g., is there a Eclipse plugin out there ? A: In my opinion, and experience, using a GUI based editor for any kind of web development is a Very Bad Idea. Get to know HTML and CSS, write your own J...
{ "language": "en", "url": "https://stackoverflow.com/questions/314134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to change data for one column in a database? UPDATE: I discovered that I was calling the permalink from another table, with the old values. How can I take the data from the permalinks table and change only the permalinks column in the other table? New id=7005 permalink=beef-ground-85%25-lean-meat-15%25-fat-...
{ "language": "en", "url": "https://stackoverflow.com/questions/314139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to declare/define a class with template template parameters without using an extra template parameter Consider the following use of template template parameters... #include <iostream> template <typename X> class A { X _t; public: A(X t) :_t(t) { } X GetValue() { return _t...
{ "language": "en", "url": "https://stackoverflow.com/questions/314152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Google Maps GeoCoding always uses browser language I am using the Google AJAX API loader and want to get all the information in German so I am loading the maps API like this google.load("maps", "2", {language : "de"}); I have tried deu, ger, de, de_DE and even en and ja_JPbut no success. For those who don't underst...
{ "language": "en", "url": "https://stackoverflow.com/questions/314158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IE positions left sidebar below content I am not familiar with this website but I am desperately seeking help with the website I am building. I'm sorry if I'm not in the right place or asking my question incorrectly, so please tell me if I do something wrong! I have built a simple website, consisting of four pages (...
{ "language": "en", "url": "https://stackoverflow.com/questions/314164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to share a record in MS Dynamics CRM using workflow I would like to do the following: when a Sales person assigns a custom entity (let's call it 'Primary Expertise') to an Opportunity in MS CRM 4.0, the system would share the Opportunity with the user that is defined as the Owner of the associated 'Primary Exper...
{ "language": "en", "url": "https://stackoverflow.com/questions/314165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Accessing UserControls in ControlTemplates (Silverlight) I'm trying to create a pimped-out version of the slider that has a user control in the "thumb"-part (meaning: the moving thingy on the slider) that reacts to the slider's movements. Basically my current demo / development version is just a UserControl with 5 v...
{ "language": "en", "url": "https://stackoverflow.com/questions/314171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Image processing: smart solution for converting superixel (128x128 pixel) coordinates needed A cancer CT picture is stored inside a unsigned short array (1-dimensional). I have the location information of the cancer region inside the picture, but the coordinates (x,y) are in superpixel (128x128 unsigned short). My t...
{ "language": "en", "url": "https://stackoverflow.com/questions/314176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generate HTML-Map from image Is there a way of automatically generating a HTML-Map compatible list of coordinates of polygon-like objects (e.g. countries on a map) with very distinctive borders? Example image: Map of CEE countries http://www.bankaustria.at/landkarten/CEE_2007_w524.jpg Final output: <map id ="ceemap"...
{ "language": "en", "url": "https://stackoverflow.com/questions/314181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Converting winform from XP to Vista - Properties.Settings I'm upgrading an app with many different settings files from XP to Vista and changing location of the files to use the Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) line rather than write to application path. There are values used in m...
{ "language": "en", "url": "https://stackoverflow.com/questions/314184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Querying for N records associated with each record referenced by set of record keys Here's a simplified version of my scenario: * *I have a table named Project that I reference via an 'id' field. *I have a table named Photo that has a field named 'project_id' which I use to relate multiple photos to a single pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/314187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use reference to dynamically created control in Word VBA I am writing a form in Word 2003 to collect multiple responses to a single question. I have a macro on a button press which duplicates the various input fields (drop-down boxes, radio buttons etc.) ready for a new response. However, I need to change the text o...
{ "language": "en", "url": "https://stackoverflow.com/questions/314189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Code editor with autocomplete I need to create a code editor for my own simple language: className.MethodName(parameterName = 2, ... ) I've created the appropriate grammar and autogenerate parser using ANTLR tool. Now I would like to have an autocomplete for class, method, variables and parameter names. This list sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/314199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Overloading methods by return type in java Can I collapse those two "getFields" methods into one using generics (the second method is intended to package private access) or should I rename the second one into something ugly like "getFieldPackagePrivate"? public interface IField { } class Field implements IField ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Checking network status in C# How do I check that I have an open network connection and can contact a specific ip address in c#? I have seen example in VB.Net but they all use the 'My' structure. Thank you. A: First suggestion (IP connection) You can try to connect to the IP address using something like: IPEndPoin...
{ "language": "en", "url": "https://stackoverflow.com/questions/314213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Synchronization of Iframes I have multiple iframes which are displaying same collection of data (help in asp.net Cache). After the modifies the data on one of the frames, I would like all of the others to reflect the update without the need for explicit postback on each one of them. So the question is: What is the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET inline scripting I have a DateTime object that I need to print in a custom gridlike control. The type of the data I want to print is a date in the format dd-mm-yyyy. This value can be either filled or blank. If it's filled it will be parsed into a DateTime and then printed as the default ToString. For each r...
{ "language": "en", "url": "https://stackoverflow.com/questions/314232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Are there problems developing Django on Jython? The background I'm building a fair-sized web application with a friend in my own time, and we've decided to go with the Django framework on Python. Django provides us with a lot of features we're going to need, so please don't suggest alternative frameworks. The onl...
{ "language": "en", "url": "https://stackoverflow.com/questions/314234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: What OOP coding practices should you always make time for? I tend to do a lot of projects on short deadlines and with lots of code that will never be used again, so there's always pressure/temptation to cut corners. One rule I always stick to is encapsulation/loose coupling, so I have lots of small classes rather th...
{ "language": "en", "url": "https://stackoverflow.com/questions/314241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to suppress XML tag for list property Is it possible to avoid list property tags when serializing? //[Serializable()] - removed, unnecessary public class Foo { protected List<FooBar> fooBars = new List<FooBar>(); public virtual List<FooBar> FooBars { get { return fooBars; } set { fooB...
{ "language": "en", "url": "https://stackoverflow.com/questions/314242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: vbscript to export an access query to a tab delimited file not working I have this code: db = "C:\Dokumente und Einstellungen\hom\Anwendungsdaten\BayWotch4\Neuer Ordner\baywotch.db5" TextExportFile = "C:\Dokumente und Einstellungen\hom\Anwendungsdaten\BayWotch4\Neuer Ordner\Exp.txt" Set cn = CreateObject("ADODB.Con...
{ "language": "en", "url": "https://stackoverflow.com/questions/314245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I grab an image from my EAGLLayer ? I'm looking for way to grab the content of my opengl (as UIImage) and then save it into a file. I'm now giving glReadPixels a try though I'm not sure I'm doing the right thing as of what kind of malloc I should be doing. I gather that on OSX it's GL_BGRA but on the iPhone t...
{ "language": "en", "url": "https://stackoverflow.com/questions/314254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I create a Cocoa window programmatically? My Cocoa app needs some small dynamically generated windows. How can I programmatically create Cocoa windows at runtime? This is my non-working attempt so far. I see no result whatsoever. NSRect frame = NSMakeRect(0, 0, 200, 200); NSUInteger styleMask = NSBorderles...
{ "language": "en", "url": "https://stackoverflow.com/questions/314256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: How do I upload a document to SharePoint with Java? I'm creating some big files (DB exports) with Java and I need to put them somewhere on our SharePoint server. Right now, I'm doing this with IE but I'd like to automate this step, too. I searched the web and I found some hints to use SOAP but I don't really see to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How can I speed up the compile / publish time of Flash IDE projects I'm sick of waiting hours for Flash to publish. .NET / VisualStudio projects are WAAAAY faster - is that only compiling the classes that have changed? Update: Does the Flash IDE re-encode all your sounds and images every time you publish? Can't it c...
{ "language": "en", "url": "https://stackoverflow.com/questions/314264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How best to communicate between AppDomains? I have an application that needs to send a moderately high volume of messages between a number of AppDomains. I know that I could implement this using remoting, but I have also noticed that there are cross-domain delegates. Has anyone looked at this kind of problem? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: SQLClientInfoException / Linux I am running a java program that sets up a database connection to an SQL database. It works fine on Mac OS X, but when I try to run the same code on Linux, I get a Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/SQLClientInfoException. I am using jdk-1.6.0_02 - if I...
{ "language": "en", "url": "https://stackoverflow.com/questions/314275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Microsoft Access Append Querydef for Memo Field I am getting an vba error 3271; Invalid property value. This happens when trying to append a memo field in a querydef. Any ideas on how to get around this? Example: public sub TestMemoField Dim qdf As QueryDef Set qdf = CurrentDb.QueryDefs("AppendRecord") ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I set the program name for sybase connections in jdbc? I can do it in C, and I can do it in perl, but I don't see how to set the program name on sybase connections using jdbc? A: I eventually found it here: http://www.sybase.com/detail?id=1009812 "APPLICATIONNAME" is a property you can pass in the list of p...
{ "language": "en", "url": "https://stackoverflow.com/questions/314280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best practices for maintaining shared hosting websites with ASP.NET and SQL Server? I've been doing PHP/MySQL websites with shared hosting providers for the last couple years. The day-to-day process is basically: * *develop in Eclipse, one website per folder *upload via FileZilla, one website per folder *use PH...
{ "language": "en", "url": "https://stackoverflow.com/questions/314290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to (simply) generate POST http request from java to do the file upload I would like to upload files from java application/applet using POST http event. I would like to avoid to use any library not included in SE, unless there is no other (feasible) option. So far I come up only with very simple solution. - Cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/314300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to "pause" refresh of page when drawing HTML table dynamically I am creating a large table dynamically using Javascript. I have realised the time taken to add a new row grows exponentially as the number of rows increase. I suspect the Page is getting refreshed in each loop per row (I am also adding input element...
{ "language": "en", "url": "https://stackoverflow.com/questions/314301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Programmatically marking an Oracle BPEL task complete I am using Oracle BPEL Process manager and have a task assigned to a group of users. I try to mark it approved using Java class oracle.bpel.services.workflow.task.ITaskService.updateTaskOutcome(). This works if the task is assigned to an individual user, but if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I speed up a joined update in SQL? My statement seems to run indefinitely I have two tables: a source table and a target table. The target table will have a subset of the columns of the source table. I need to update a single column in the target table by joining with the source table based on another colu...
{ "language": "en", "url": "https://stackoverflow.com/questions/314307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: lazily compile JasperReports .jrxml to .jasper I use Jasper reports with the JasperReportsMultiFormatView class provided by the Spring framework. This class takes care of compiling the source .jrxml files to their compiled .jasper format when the Spring application context is created. However, this compilation proce...
{ "language": "en", "url": "https://stackoverflow.com/questions/314313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Efficiently moving large sets of data between SQL Server tables? I have a rather large (many gigabytes) table of data in SQL Server that I wish to move to a table in another database on the same server. The tables are the same layout. What would be the most effecient way of going about doing this? This is a one off ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Why would I write a fake class and unit test it? I understand the need to test a class that has logic (for instance, one that can calculate discounts), where you can test the actual class. But I just started writing unit tests for a project that will act as a repository (get objects from a database). I find myself ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: NSTableView - NSButtonCell Data Source type? I've got a table with checkbox-style cells, and I can't figure out how to get these buttons to take on the titles that they're supposed to. Should the data source be an array of strings? An array of dictionaries (string/boolean)? An array of NSButtonCells? None of these s...
{ "language": "en", "url": "https://stackoverflow.com/questions/314318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }