text
string
meta
dict
Q: Get FontWeight/FontStyle/TextDecorations from WPF RichTextBox How can I detect the current text formatting at the cursor position in a WPF RichTextBox? A: The author of this thread also asked about TextDecorations where you did not provide sample code and its different to use. I post this as a further solution: var...
{ "language": "en", "url": "https://stackoverflow.com/questions/202434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What are the best practices in your tests? I would like to know what are your practices when you test your classes. For example, I like to use inheritance, with my fixtures. Given two classes BaseClass, SubClass, I make two other classes BaseClassFixture and SubClassFixture (SubClassFixture is a sub class of BaseCla...
{ "language": "en", "url": "https://stackoverflow.com/questions/202437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How hard is it to incorporate full text search with SQL Server? I am building a C#/ASP.NET app with an SQL backend. I am on deadline and finishing up my pages, out of left field one of my designers incorporated a full text search on one of my pages. My "searches" up until this point have been filters, being able to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: What are the ways to minimize page wait from external javascript callouts? What tricks can be used to stop javascript callouts to various online services from slowing down page loading? The obvious solution is to do all the javascript calls at the bottom of the page, but some calls need to happen at the top and in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/202442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: user_dump_dest is there harm in putting this on a NAS Is it correct to say that typically user_dump_dest is on a local drive? If so, are there issues with mounting a NAS volume to both Unix and Windows and pointing user_dump_dest at that? If so, what are they? Are any issues worth not doing this in prod? A: I've ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is gcnew? I stumbled across this code and am too proud to go and ask the author what it means. Hashtable^ tempHash = gcnew Hashtable(iterators_); IDictionaryEnumerator^ enumerator = tempHash->GetEnumerator(); What is gcnew and how important is it to use that instead of simply new? (I'm also stumped by the car...
{ "language": "en", "url": "https://stackoverflow.com/questions/202459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: What does the caret (‘^’) mean in C++/CLI? I just came across this code and a few Google searches turn up no explanation of this mysterious (to me) syntax. Hashtable^ tempHash = gcnew Hashtable(iterators_); IDictionaryEnumerator^ enumerator = tempHash->GetEnumerator(); What the heck does the caret mean? (The gcnew...
{ "language": "en", "url": "https://stackoverflow.com/questions/202463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "250" }
Q: How to calculate CRC_B in C# How to calculate CRC_B encoding in C# as described in ISO 14443? Here is some background info: CRC_B encoding This annex is provided for explanatory purposes and indicates the bit patterns that will exist in the physical layer. It is included for the purpose of checking an ISO/IEC ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does Windows Powershell have a Try/Catch or other error handling mechanism? In a script, when a command-let or other executable statement errors out, is there a try/catch type of mechanism to recover from these errors? I haven't run across one in the documentation. A: You use a Trap [exception-type] {} block before...
{ "language": "en", "url": "https://stackoverflow.com/questions/202470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Is it possible to design NSCell subclasses in Interface Builder? I'm trying to subclass NSCell for use in a NSTableView. The cell I want to create is fairly complicated so it would be very useful if I could design it in Interface Builder and then load the NSCell from a nib. Is this possible? How do I do it? A: As K...
{ "language": "en", "url": "https://stackoverflow.com/questions/202471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How to use HttpWebRequest (.NET) asynchronously? How can I use HttpWebRequest (.NET, C#) asynchronously? A: public static async Task<byte[]> GetBytesAsync(string url) { var request = (HttpWebRequest)WebRequest.Create(url); using (var response = await request.GetResponseAsync()) using (var content = new ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "161" }
Q: Automatically increment "minimum required version" in a ClickOnce deployment? Is there a way to automatically increment the "minimum required version" fields in a ClickOnce deployment to always equal the current build number? Basically, I always want my deployment to be automatically updated at launch. I suspect I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/202491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Appropriate Tomcat 5.5 start-up parameters to tune JVM for extremely high demand, large heap web application? We have recently migrated a large, high demand web application to Tomcat 5.5 from Tomcat 4 and have noticed some peculiar slowdown behavior that appears to be related to JVM pauses. In order to run our appl...
{ "language": "en", "url": "https://stackoverflow.com/questions/202502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I send text to a dom object with jQuery? Rather than population said DOM object with an external page such as HTML CFM or PHP, what if I simply want to send text? I've tried: $("#myDOMObject").val("some text"); No errors, but the object value doesn't update either. A: What element is "myDOMObject"? If it's a...
{ "language": "en", "url": "https://stackoverflow.com/questions/202508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using jQuery for AJAX with ASP.NET Webforms Anyone know of a link to a good article/tutorial for getting started using jQuery for AJAX calls rather than ASP.NET AJAX? I'm trying to avoid using UpdatePanels entirely in this app, which I haven't been able to accomplish in the past. A: The most complete article I've e...
{ "language": "en", "url": "https://stackoverflow.com/questions/202538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Calling a C# web service from with PHP with a long parameter We have a customer that is trying to call our web service written in C# from PHP code. The web service call takes a long as parameter. This call works fine for other customers calling from C# or Java but this customer is getting an error back from the call...
{ "language": "en", "url": "https://stackoverflow.com/questions/202540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OutgoingWebResponseContext does not display non-english characters We have implmented a REST-style get service Using WCF in .Net 3.5. This service retrieves research documents. The string 'synopsis' indicated in the code bolow contains non-english characteres which the browser deliveres as "????????". private void ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight 2 RTW Crashes IE7 Has anyone had this problem. You install Silverlight 2 RTW, and open your old project. Everything loads fine in the designer. You have to change a few properties of your DataGrid because "DisplayMemberBinding" was changed to "Binding". Press F5, and receive a Win32 exception in IEXP...
{ "language": "en", "url": "https://stackoverflow.com/questions/202544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I find out the browser's proxy settings? I am writing a command-line tool for Windows that uses libcurl to download files from the internet. Obviously, the downloading doesn't work when the user is behind a proxy server, because the proxy needs to be configured. I want to keep my tool as simple as possible ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/202547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Parsing iCal/vCal/Google calendar files in C++ Can anyone recommend a ready-to-use class/library compatible with C/C++/MFC/ATL that would parse iCal/vCal/Google calendar files (with recurrences)? It can be free or commercial. A: there is a parser in PHP for iCal, you can downloaded and check the code to suit your l...
{ "language": "en", "url": "https://stackoverflow.com/questions/202549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visual Studio unit tests throw MissingMethodException when assembly is in GAC? My application contains a piece of code that executes inside of Component Services, so we need to register our business rules layer (and its dependencies) in the GAC. One of those dependencies is FooCore.dll, which contains classes and se...
{ "language": "en", "url": "https://stackoverflow.com/questions/202551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you get a pointer to the .text section? How do you get a pointer to the .text section of memory for a program from within that program? I also need the length of the section to do a "Flash to Memory" compare as part of a continuous selftest that runs in the background. The toolset automatically generates the...
{ "language": "en", "url": "https://stackoverflow.com/questions/202552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What is the best absolute width for a webpage? Assuming a fluid layout is not an option (since that is a different discussion all together), what is the recommended width for a site layout? What are the pros and cons of different sizes? A: I've always kept with 960px as it's viewable on 1024x768, and is cleanly div...
{ "language": "en", "url": "https://stackoverflow.com/questions/202557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: When should I write Static Methods? So I understand what a static method or field is, I am just wondering when to use them. That is, when writing code what design lends itself to using static methods and fields. One common pattern is to use static methods as a static factory, but this could just as easily be done b...
{ "language": "en", "url": "https://stackoverflow.com/questions/202560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Web Browser in a fullscreen Direct3D application I need to have a working web browser in a fullscreen Direct3D application. For example, Valve's Source-based games (sort of) do it in the MotD window when you join a server. Any tips on where to look? A: Second Life uses ubrowser (http://ubrowser.com/) to embed a b...
{ "language": "en", "url": "https://stackoverflow.com/questions/202567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Perl & mod_fcgid- how can I be sure it's working? I have a couple Perl scripts I'm taking public soon, and I want to make sure they'll run under mod_fcgid in order to keep the server load as low as possible. Previously, I've only ever run scripts that test FastCGI (ie, while ( my $q = new CGI::Fast ) { $count++; ec...
{ "language": "en", "url": "https://stackoverflow.com/questions/202578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best free Java .class viewer? I've used DJ Java Decompiler, which has a handy GUI, but it seems as if the latest version is only a trial and forces you to purchase the software after some period of days (I recall using an earlier free version about a year ago at a previous job). I'm aware of Jad and Jadclipse, but w...
{ "language": "en", "url": "https://stackoverflow.com/questions/202586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Is it possible to override a .NET client's default timeout on a call to a webservice? I'd like the web service proxy class to wait more than 2 minutes A: Two things to think about - yes, TheSoftwareJedi is correct about setting the Timeout property on the proxy - easy enough. The default value for that is 100s. Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/202588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Normalizing search text to full text search and where conditions What you want is for users to just type in their search criteria just like they would in Google. Some words, maybe some quoted phrases, maybe a few operators, and have it just work. A .Net solution is available here: http://ewbi.blogs.com/develops/2007...
{ "language": "en", "url": "https://stackoverflow.com/questions/202602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Repeat String - Javascript What is the best or most concise method for returning a string repeated an arbitrary amount of times? The following is my best shot so far: function repeat(s, n){ var a = []; while(a.length < n){ a.push(s); } return a.join(''); } A: Use Array(N+1).join("string_to_...
{ "language": "en", "url": "https://stackoverflow.com/questions/202605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "275" }
Q: What is the syntax to use a Select statement inside a PL/SQL Trigger? This is what I currently have: CREATE OR REPLACE TRIGGER MYTRIGGER AFTER INSERT ON SOMETABLE FOR EACH ROW DECLARE v_emplid varchar2(10); BEGIN SELECT personnum into v_emplid FROM PERSON WHERE PERSONID = :new.EMPLOYEEID; dbms_outpu...
{ "language": "en", "url": "https://stackoverflow.com/questions/202609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I reuse a command in bash with different parameters? I have two scripts that often need to be run with the same parameter: $ populate.ksh 9241 && check.ksh 9241 When I need to change the parameter (9241 in this example), I can go back and edit the line in history. But since I need to change the number in tw...
{ "language": "en", "url": "https://stackoverflow.com/questions/202610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Does Oracle support full text search? Is there an Oracle equivalent to MS SQL's full text search service? If so, has anyone implemented it and had good / bad experiences? A: In addition to what Justin said, you can find more information about Oracle Text here. A: Oracle Text is the equivalent functionality. I've h...
{ "language": "en", "url": "https://stackoverflow.com/questions/202623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: How do I detect a null reference in C#? How do I determine if an object reference is null in C# w/o throwing an exception if it is null? i.e. If I have a class reference being passed in and I don't know if it is null or not. A: What Robert said, but for that particular case I like to express it with a guard clause ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Performance of using static methods vs instantiating the class containing the methods I'm working on a project in C#. The previous programmer didn't know object oriented programming, so most of the code is in huge files (we're talking around 4-5000 lines) spread over tens and sometimes hundreds of methods, but only ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Is there an API for vista to detect if the desktop is running full screen? e.g, Is the user playing a movie full screen, or looking at powerpoint in full screen mode? I could have sworn I saw a IsFullScreenInteractive API before, but can't find it now A: Here's how I've solved this problem: using System; using Syst...
{ "language": "en", "url": "https://stackoverflow.com/questions/202644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.NET compression From an earlier post about trying to improve my sites performance I have been looking at HTTP compression. I have read about setting it up in IIS but it seems to be a global thing for all IIS application pools I may not be allowed to do this as there is another site running on it as well. I then ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What causes error 4063 - Database ...databasename... has not been opened yet I have an scheduled agent that is trying to access a database on another server. When it runs I get an error 4063 - Database ...databasename... has not been opened yet. The servers is listed in the ACL as manager. What are some other possi...
{ "language": "en", "url": "https://stackoverflow.com/questions/202660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "Object variable or With block variable not set" when attempting to create COM object I have a VB6 dll that is trying to create a COM object using the following line of code: Set CreateObj = CreateObject("OPSValuer.OPSValue") However this fails with the error "Object variable or With block variable not set". I can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VB6, File Doesn't Exist, How do I handle Gracefully? I am testing an application that checks if a file exists across a network. In my testing, I am purposefully pulling the network plug so the file will not be found. The problem is this causes my app to go unresponsive for at least 15 seconds. I have used both the F...
{ "language": "en", "url": "https://stackoverflow.com/questions/202663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Windows Forms Layout Engines Does anyone have or know best practices for implementing a custom layout engine in WinForms? I've seen the windowsclient.net link, but it's a bit dated (Sept 2001). A: When I tried to do custom layout engine in WinForms, I was blocked by the fact that IArrangedElement interface is inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/202669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I set a different data directory for Internet Explorer? In Google Chrome, I can provide the command-line argument --user-data-dir="..." to have Chrome use a different directory for state like cookies, cache, and so forth. This makes it possible to trivially load web pages from a "fresh" browser and simulate mul...
{ "language": "en", "url": "https://stackoverflow.com/questions/202677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Converting from Eclipse PDT to Vim I truly love VIM - it's one of only a handful of applications I've every come across that make you feel warm and fuzzy inside. However, for PHP development, I still use PDT Eclipse although I would love to switch. The reason I can't quite at the moment is the CTRL+SPACE code-ass...
{ "language": "en", "url": "https://stackoverflow.com/questions/202685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What is .net dynamic data and why would I use it? What is .net dynamic data and why would I use it? A: From ScottGu's Blog a great article on how to use Dynamic Data. One of the cool new features is something we call "ASP.NET Dynamic Data Support". In a nutshell this enables you to really quickly build data driv...
{ "language": "en", "url": "https://stackoverflow.com/questions/202697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the best way to clone a business object in Silverlight? What is the best way to create a clone of a DTO? There is not an ICloneable interface or a BinaryFormatter class in Silverlight. Is reflection the only way? A: Here is the code we came up with for cloning. This works in Silverlight 2 & 3. Public Sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/202699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to make a Delphi TSpeedButton stay pressed if it's the only one in the group I'm not sure why the TSpeedButton has this property but when a TSpeedButton is the only button of a given groupindex, it doesn't stay pressed, whether or not "AllowAllUp" is pressed. Maybe a Jedi control would suffice, but hopefully th...
{ "language": "en", "url": "https://stackoverflow.com/questions/202702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Is gtk+ responsible for the awkward look of most linux applications? Now, I know this is completely subjective, so please don't flame me. I've never been entirely satisfied with linux whenever I decided to install a distro like Ubuntu, Fedora etc. because of their awkward positioning and spacing of widgets. Have a l...
{ "language": "en", "url": "https://stackoverflow.com/questions/202706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Huge (20 digits) Primary keys and SQLite If I try to insert data with a 20 digit primary key into a SQLite database I get an error with the second insert statement because it "is not unique". If I select the values I can see from the SQLite commandprompt that the primary key is written in scientific notation. The c...
{ "language": "en", "url": "https://stackoverflow.com/questions/202714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Random Page_Load calls on back button in ASP.NET I'm hoping someone has seen this before because I can't for the life of me find the problem. I'm trying to do the old "fix the back button" thing in an application and I think i have a pretty decent approach, the problem is that it relies on the application not calli...
{ "language": "en", "url": "https://stackoverflow.com/questions/202717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can the result of a function call be used as a default parameter value? Is there a good method for writing C / C++ function headers with default parameters that are function calls? I have some header with the function: int foo(int x, int y = 0); I am working in a large code base where many functions call this func...
{ "language": "en", "url": "https://stackoverflow.com/questions/202718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Coding in Other (Spoken) Languages This is something I've always wondered, and I can't find any mention of it anywhere online. When a shop from, say Japan, writes code, would I be able to read it in English? Or do languages, like C, PHP, anything, have Japanese translations that they write? I guess what I'm asking i...
{ "language": "en", "url": "https://stackoverflow.com/questions/202723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "109" }
Q: How do I add custom properties to an AD group in Windows? I'd like to know how to script this. Also, is there an out of the box GUI tool that will let me do this? A: Are you referring to the CustomField attributes that exchange adds when you extend the AD Schema? If so, then you could use ADSIEdit. If you want to...
{ "language": "en", "url": "https://stackoverflow.com/questions/202736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a way to set timeouts in tomcat? Can I set timeouts for JSP pages in tomcat either on a per page or server level? A: In the Tomcat server.xml file, the Connector element also has a connectionTimeout attribute in milliseconds. Example: <Connector URIEncoding="UTF-8" acceptCount="100" connectionT...
{ "language": "en", "url": "https://stackoverflow.com/questions/202740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there a human readable programming language? I mean, is there a coded language with human style coding? For example: Create an object called MyVar and initialize it to 10; Take MyVar and call MyMethod() with parameters. . . I know it's not so useful, but it can be interesting to create such a grammar. A: Inform...
{ "language": "en", "url": "https://stackoverflow.com/questions/202750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: Design problem: shared, synchronized, data access in application... the best approach? I have a web application (asp.net) where work items are submitted and allocated to users according to their workload. A user's workload is calculated using an algorithm based on the number of items currently allocated to the user ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CAML query items with the given URLs In SP2007/MOSS I need to run a CAML query against a single list like so: <Where> <Or> <Eq> <FieldRef Name='URL' /> <Value Type='URL'>/path/item1.aspx</Value> </Eq> <Eq> <FieldRef Name='URL' /> <Value Type...
{ "language": "en", "url": "https://stackoverflow.com/questions/202752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Crystal reports 11 : blank field bombs the report I'm creating a invoice crystal report for sage mas 500 AR module. In it, I'm attempting to add the tarinvoice.balance field with the following formula: if {tarPrintInvcHdrWrk.Posted} = 1 then ToText({tarInvoice.Balance}) I'm assuming that when the {tarPrintInv...
{ "language": "en", "url": "https://stackoverflow.com/questions/202777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Merge tools that ignores $Id lines I need to merge a forked project. Unfortunately, the CVS $Id lines are different so the merge tools I tried report that all the files are different (and 95% of them have only this line different) Is there a merge tool that can be configured to ignore line comparison results based ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: DOCTYPE RSS & HTML entities I have an "ldquo", "rdquo" and several other entities under my RSS feed. Seems like if I add <!DOCTYPE rss [ <!ENTITY % HTMLspec PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent"> %HTMLspec; below the xml tag and above the rss ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/202790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a performance hit for using UIImage in CALayer? I'm using a whole bunch of CALayers, creating a tile-based image not unlike GoogleMaps (different versions of the same image with more/less detail). The code I'm using to do this is: UIImage* image = [self loadImage:obj.fileName zoomLevel:obj.zoomLevel]; [CATr...
{ "language": "en", "url": "https://stackoverflow.com/questions/202792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Use maven2 for build-automation and continuous integration of an eclipse rcp project? My company starts a new project next week. We have planned to develop the application with eclipse rcp. The build process should be fully automated, so we're prepared to set up a continuous integration environment (e.g. Continuum)....
{ "language": "en", "url": "https://stackoverflow.com/questions/202793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Searching for marked (selected) text in Emacs I use emacs for viewing and editing code and other text files. I wanted to know if there is a way to search forward or backward for text which is marked in the current buffer. Similar to what I can do in notepad or wordpad. As in can I mark some text in the buffer and do...
{ "language": "en", "url": "https://stackoverflow.com/questions/202803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: How can I check WCF address access and avoid AddressAccessDeniedException? Is there a way in the .NET framework to validate that a process has access to a specific WCF address namespace without attempting to call ServiceHost.Open and capturing the resulting AddressAccessDeniedException? Right now if that exception i...
{ "language": "en", "url": "https://stackoverflow.com/questions/202807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding values to a C# array Probably a really simple one this - I'm starting out with C# and need to add values to an array, for example: int[] terms; for(int runs = 0; runs < 400; runs++) { terms[] = runs; } For those who have used PHP, here's what I'm trying to do in C#: $arr = array(); for ($i = 0; $i < 10;...
{ "language": "en", "url": "https://stackoverflow.com/questions/202813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "684" }
Q: How do I evaluate dependency properties in silverlight/WPF from S.O.S.? This question is fairly straightforward -- I am trying to debug a memory leak in a silverlight application using s.o.s. I was able to get some good info using !gcroot to determine what objects have open references to the one that should be gett...
{ "language": "en", "url": "https://stackoverflow.com/questions/202816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Open Source .Net Reporting Tool I am looking for a reporting service/tool for visual Studio. My only restraint is my web server is off limits to me as far as installing ANYTHING. So I need something I can just include in my project. My users need to be able to export a report to PDF and without being able to use C...
{ "language": "en", "url": "https://stackoverflow.com/questions/202817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: What is an example of a non-relational database? Where/how are they used? I have been working with relational databases for sometime, but it only recently occurred to me that there must be other types of databases that are non-relational. What are some examples of non-relational databases, and where/how are they use...
{ "language": "en", "url": "https://stackoverflow.com/questions/202819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Starting/Stopping a service on Windows 2008 Server from the command line - access denied I am trying to start a service from the command line using "net start SERVICENAME" and I get an access denied error. I am an administrator on this server since I am in a domain group that are admins on the server. I can start/st...
{ "language": "en", "url": "https://stackoverflow.com/questions/202824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Integrate WPF and Windows Forms I am learning WPF and was wondering if there is a way to show a WPF Window from an existing C# WinForm without 'hosting' WinForm in WPF? I tried using myWPFWindow.show() on button click event for displaying the Window. The window is getting displayed but the textboxes displayed in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using telnet in a C Program I am working on a robot automation project and I have run into a road block. To control the robot, one needs to connect with it wirelessly via telnet and send commands through the tcp/ip protocol. (ex. The 'Mabc' command moves it forward based on the left wheel speed (a), the right wheel ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Flash AS2.0 - Increase Label's Font Size I know this sounds like a really obvious question, but it's proving harder to figure out than I thought. I'm developing in Flash 8/ActionScript 2.0. I have a label component, and I'm dynamically assigning it text from an xml document. For example: label.text = "<b>" + xml_nod...
{ "language": "en", "url": "https://stackoverflow.com/questions/202860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mcrypt and IIS - module does not load in PHP I have Windows 2003 Standard, IIS 6, PHP, MySQL and amy trying to get mcrypt working so I can use phpMyAdmin. I have uncommended php_mcrypt.dll in php.ini and this file is in my extensions folder (c:\php). I have downloaded libmcrypt.dll to c:\php, c:\php\ext, c:\windows,...
{ "language": "en", "url": "https://stackoverflow.com/questions/202867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Are code generators bad? I use MyGeneration along with nHibernate to create the basic POCO objects and XML mapping files. I have heard some people say they think code generators are not a good idea. What is the current best thinking? Is it just that code generation is bad when it generates thousands of lines of not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Rails text_field with no method associated i'm having a problem to create a text_field without a method association. Maybe i even don't need it :-) I have two radio_buttons associated to the same method: <%= radio_button :comment, :author, "anonymous" %> Anonymous <br> <%= radio_button :comment, :author, "real_name"...
{ "language": "en", "url": "https://stackoverflow.com/questions/202907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hierarchical data in Linq - options and performance I have some hierarchical data - each entry has an id and a (nullable) parent entry id. I want to retrieve all entries in the tree under a given entry. This is in a SQL Server 2005 database. I am querying it with LINQ to SQL in C# 3.5. LINQ to SQL does not support C...
{ "language": "en", "url": "https://stackoverflow.com/questions/202912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Embedding Powershell CTP 2 in C# I have an application that has Powershell 1 embedded into it, but we need to be able to use Powershell STAThreaded which is available in Powershell 2 CTP. Currently, System.Management.Automation is at 1.0.0.0. Does anyone know how to get Visual Studio to use the newer dll? A: I'll l...
{ "language": "en", "url": "https://stackoverflow.com/questions/202913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Start Storyboard within another Storyboards Timeline I have a storyboard(1) that does some basic animations in 2 seconds. I want the storyboard(1) to do all the property animations I have set it up to do (this all works fine). But at 3 seconds into the storyboard(1) I want to begin storyboard(2) and exit storyboar...
{ "language": "en", "url": "https://stackoverflow.com/questions/202914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is it possible to read only the first line of a file with Actionscript? I've got a PHP-based site where we allow users to upload a comma-separated text file of data to be imported by some server side scripts. However, sometimes we need to adjust the column order of the data that is uploaded, and it would be immensel...
{ "language": "en", "url": "https://stackoverflow.com/questions/202922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unit tests framework for databases I´m looking for a unit tests framework for database development. I´m currently developing for SQL Server 2000, 2005 and 2008. Do you know of any good frameworks with similar functionality as JUnit and NUnit? Perhaps it´s better to ask, what do you use to unit test your stored proc...
{ "language": "en", "url": "https://stackoverflow.com/questions/202940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: MS Access query design hangs on connection to SQL Server Microsoft Access is a slick way to access data in a MS SQL Server backend database, but I've always had problems accessing (so to speak) large tables of data, especially when trying to toggle between results and design mode in Access. Access gives me a number ...
{ "language": "en", "url": "https://stackoverflow.com/questions/202944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Missing ComponentOne licenses.licx file I'm working on an application that makes extensive use of ComponentOne's C1FlexGrid. Of the dozens we use, three are missing their licenses.licx file and cause the demo splash screen to pop up while I'm starting the application. Is there any way to determine which forms are ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/202946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Microsoft Async RPC crash in Vista I am working on a program that makes RPC calls where the client and the server are running on the same machine. I want the client have a timeout on its calls to the server because we ran into problems of it becoming unresponsive waiting on the server. In order to solve this problem...
{ "language": "en", "url": "https://stackoverflow.com/questions/202951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I connect to a MSSQL database using Perl's DBI module in Windows? How do I connect to a MSSQL database using Perl's DBI module in Windows? A: Couldn't find this anywhere reliable. Use Perl code similar to use DBI; my $dbs = "dbi:ODBC:DRIVER={SQL Server};SERVER={ServerName}"; my ($username, $password) = ('use...
{ "language": "en", "url": "https://stackoverflow.com/questions/202962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Formula or API for calulating desktop icon spacing on Windows XP I've built a simple application that applies grid-lines to an image or just simple colors for use as desktop wallpaper. The idea is that the desktop icons can be arranged within the grid. The problem is that depending on more things than I understand t...
{ "language": "en", "url": "https://stackoverflow.com/questions/202971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is your version control and deployment workflow with Rails? Especially when considering a fresh Rails project, what does your version control and deployment workflow look like? What tools do you use? I'm interested in answers for Mac, *nix and Windows work machines. Assume a *nix server. I'll edit for clarity i...
{ "language": "en", "url": "https://stackoverflow.com/questions/202974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Is there really no way to follow up dataset parent relation in xaml binding? Suppose I have a dataset with those two immortal tables: Employee & Order Emp -> ID, Name Ord -> Something, Anotherthing, EmpID And relation Rel: Ord (EmpID) -> Emp (ID) It works great in standard master/detail scenario (show employees...
{ "language": "en", "url": "https://stackoverflow.com/questions/202990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Formatted input box in VB.NET Is there a control or method to accept formatted input in VB.NET? i.e. It accepts input in a given format ##/##/## or similar? A: You want the MaskedTextBox control, I believe. A: sure there is :) and a pretty good/nice one, for asp.net and for winforms A: Something like this? http:/...
{ "language": "en", "url": "https://stackoverflow.com/questions/202999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you deploy a web app to the desktop? I generally build web based applications. But, there is sometimes a need to distribute these applications to various platforms and have them act more like regular applications than web apps. A quick solution might be to create an icon that opens the browser with no menu,...
{ "language": "en", "url": "https://stackoverflow.com/questions/203007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Log4j usage - how to customize the event ID when logging to Windows Event Log? I'm adding windows event logging functionality to an existing Java application and I'd like to utilize event ids(our admin is using them already). Is there a way to specify the event ID when logging with NTEventLogAppender? A: From my re...
{ "language": "en", "url": "https://stackoverflow.com/questions/203013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Counting instances of a class in the AppDomain I wonder if there is a way to either programatically or using a third party tool (profiler?) get an overview of how many instances of a class are currently active in the AppDomain (including or excluding derived classes), and even better, where they are allocated (not s...
{ "language": "en", "url": "https://stackoverflow.com/questions/203018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I intercept the HTML from a ViewResult, modify it and serve it up? I'm writing a simple CMS. I want to be able to load a View, having it included inside a master page, and then scan the HTML so that I can replace some custom tags (like {{blog}} with my own blog output) and then serve it up to the browser. Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/203022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: XHTML in Crystal Reports It is possible to display XHTML fully in Crystal Reports? I have a field which I set to display with HTML tags, but it ignores many of the tags I need, such as *. It would be nice if the font was set by the XHTML as well. If not, is there a reporting tool with the features of Crystal Repor...
{ "language": "en", "url": "https://stackoverflow.com/questions/203025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to list files in Java, sorted by Date Modified? I want to get a list of files in a directory, but I want to sort it such that the oldest files are first. My solution was to call File.listFiles and just resort the list based on File.lastModified, but I was wondering if there was a better way. Edit: My curre...
{ "language": "en", "url": "https://stackoverflow.com/questions/203030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "266" }
Q: File security attributes getting screwed up on file copy I've a windows service that updates our product. It copies the product files into a temp directory, usually "C:\Windows\Temp", patches the binaries, and then uses MoveFileEx to copy the files back to the install directory on a reboot, usually "C:\Program Files...
{ "language": "en", "url": "https://stackoverflow.com/questions/203036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Anybody know why SQL Server 2005 throws "'SQLOLEDB' failed with no error message available, result code: E_FAIL(0x80004005). "? We've got a web system running SQL Server 2005 for the back end, and ASP.Net for the front end (using .net 2.0). Every now and then, the system barfs out the error in the title: 'SQLOLEDB' ...
{ "language": "en", "url": "https://stackoverflow.com/questions/203040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way of doing an SVn checkout/update on a web hosting package I want to deploy my site on my web hosting package by doing a checkout through subversion. I do not have SSH access to my hosting package, which is just a basic LAMP web hosting package, but I do know that there is an SVN client installed on the web s...
{ "language": "en", "url": "https://stackoverflow.com/questions/203050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Saving the time the user is logged on In the application I am developing I have to store the time some particular users remain logged into the application, unfortunately, in web applications, there are several ways the user can log off. * *User clicks log off. *User session expires. *User closes the window. *U...
{ "language": "en", "url": "https://stackoverflow.com/questions/203054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I overcome the "error C2100: illegal indirection" when accessing the contents of a void* in VS2008 I have a C application that I've created in VS2008. I am creating a mock creation function that overrides function references in a struct. However if I try and do this in a straight forward fashion with somethi...
{ "language": "en", "url": "https://stackoverflow.com/questions/203058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to run a program in 32-bit mode on Vista 64? I am building an app that talks to an Access database via OleDB/Jet. There is only a 32-bit Jet provider, no 64-bit provider, so the app needs to be running in 32-bit mode. My dev box is Vista 64, so I set the project to build for x86 instead of any cpu. That gets my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/203061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XMLSocket working in firefox but not IE I'm helping a customer who has a problem with a flash app. The flash app uses an XMLSocket to connect to a service running on localhost. It works fine under firefox. It uses the following line to setup the security policy: System.security.loadPolicyFile("xmlsocket://localhost...
{ "language": "en", "url": "https://stackoverflow.com/questions/203068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }