text
stringlengths
8
267k
meta
dict
Q: VS2008 Setup Project - Overwrite Newer Version VS2008 setup projects provide the option to halt installation if a newer version is detected by setting "DetectNewerInstalledVersion". Is there a way to remove a newer version if it exists ie similar to "RemovePreviousVersions" options? A: I personally have wished for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Permission Denied Error XMLHttpRequest <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Calling a Web Service Using XmlHttpRequest</title> <script type="text/javascript"...
{ "language": "en", "url": "https://stackoverflow.com/questions/355299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VS2008 Setup Project - No Repair Option Is there anyway to disable the repair option so that if a user runs the msi again it automatically uninstalls without prompting for Repair/Remove options? Edit: This is for a controlled corporate environment and has been passed down as a requirement. A: After reading your edi...
{ "language": "en", "url": "https://stackoverflow.com/questions/355305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why can't my Java program read Perl's STDERR? We have a Perl program to validate XML which is invoked from a Java program. It is not able to write to standard error and hanging in the print location. Perl is writing to STDERR and a java program is reading the STDERR using getErrorStream() function. But the Perl pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/355311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: In objective-c, how can I tell the difference between a Class and an instance of a class? Let's say I have a generic pointer in objective-c. This pointer could either be a Class object, or it could be an instance of that class. Is there any way to tell the difference between the two? Example: id pointerA = [someCla...
{ "language": "en", "url": "https://stackoverflow.com/questions/355312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I hide an element when printing a web page? I have a link on my webpage to print the webpage. However, the link is also visible in the printout itself. Is there javascript or HTML code which would hide the link button when I click the print link? Example: "Good Evening" Print (click Here To Print) I want t...
{ "language": "en", "url": "https://stackoverflow.com/questions/355313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "550" }
Q: 301 redirect * *How do i redirect a url to domain . eg. http://www.mydomain.com/index.php=HairThing --> http://www.mydomain.com *How do i redirect a non-www to www WITHOUT a slash at end ? eg http://mydomain.com ---> http://www.mydomain.com A: See also: Hidden features of mod_rewrite #1 RewriteRule /index.php=H...
{ "language": "en", "url": "https://stackoverflow.com/questions/355318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Thread-safety and concurrent modification of a table in SQLite3 Does thread-safety of SQLite3 mean different threads can modify the same table of a database concurrently? A: No - SQLite does not support concurrent write access to the same database file. SQLite will simply block one of the transactions until the oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/355327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Get statistics on a C# WAP Project for client communication I have a client that thought a highly dynamic ASP.NET application was a very simple sytem, yet to implement it in the manner in which they needed for future grown it has grown to well over 100 different code files. I am looking for a way, most likely with s...
{ "language": "en", "url": "https://stackoverflow.com/questions/355333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert VB.NET --> C# Projects Can anyone recommend a good application that could be used to convert VB.NET projects to C#, without having to do too much manual work? We've used Reflector to do small libraries manually, but some of the larger projects will be too slow and complex to do this manually. A: Tangible So...
{ "language": "en", "url": "https://stackoverflow.com/questions/355340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Acessing a url from windows application Does anyone know how to acess a url from a windows application?. I have an address http://serverport/Page.I want to acess this page from my windows application. Regards, Harsh Suman A: It's not clear what you want to do with the page. If you want to display it on the form, yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/355343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting svn:ignore flag using svnkit I am using SVNKit in my application. I have a scenario wherein certain files should be ignored when doing svn operations. i.e. I need to set the svn:ignore property for certain patterns. How do I do that using SVNKit? A: You could use the ISVNOptions class. It has a addIgnorePat...
{ "language": "en", "url": "https://stackoverflow.com/questions/355355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can't connect to Default Web Site in IIS 6.0 I can't connect to the default web site in IIS 6.0 using localhost or 127.0.0.1 or by server name. When I telnet to port 80 with one of these names, there's no connection. However other web sites are running and I can telnet using any of the ip addresses. I can ping to lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/355358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What does "spurious failure" on AtomicInteger weakCompareAndSet mean? The Java AtomicInteger class has a method - boolean weakCompareAndSet(int expect,int update) Its documnentation says: May fail spuriously. What does 'failing spuriously' here mean? A: It means it might return false (and will not set the new va...
{ "language": "en", "url": "https://stackoverflow.com/questions/355365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Page Layout Issues Please let me know why there is lot of white space below the page content and also why horizontal scroll bar is displayed. Attaching link to zip folder below. Unzip and open index.html. link text A: First lead: The rule div#content almost works in IE, and does put extra width in FireFox: The extr...
{ "language": "en", "url": "https://stackoverflow.com/questions/355386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I efficiently segment 2D images into regions/blobs of similar values? How do I segment a 2D image into blobs of similar values efficiently? The given input is a n array of integer, which includes hue for non-gray pixels and brightness of gray pixels. I am writing a virtual mobile robot using Java, and I am us...
{ "language": "en", "url": "https://stackoverflow.com/questions/355398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IIS7 startup site I have a Windows 2008 Server with IIS7 on it and a web page running under the name, let's say myApplication. I have a domain name that points to the IP of my server, let's say myApplication.com. In order to access my application I have to enter http://myApplication.com/myApplication. If I write h...
{ "language": "en", "url": "https://stackoverflow.com/questions/355402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Concepts that surprised you when you read SICP? SICP - "Structure and Interpretation of Computer Programs" Explanation for the same would be nice Can some one explain about Metalinguistic Abstraction A: I didn't read that book yet, I have only looked at the video courses, but it taught me a lot. Functions as first...
{ "language": "en", "url": "https://stackoverflow.com/questions/355406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Silverlight,asynchronous,lazy loading what's the best way? I started to use silverlight/flex and immediately bumped into the asynchronous service calling. I'm used to solving the data access problems in an OO-way with one server fetch mechanism or another. I have the following trivial code example: public double Com...
{ "language": "en", "url": "https://stackoverflow.com/questions/355408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows process structure: How to store user information? I want to store some information in the EPROCESS structure of the process in windows NT kernel. My aim is that when winlogon is called I want to assign a unique value to the next process based on which user logs in. But I do not know where to store this uniqu...
{ "language": "en", "url": "https://stackoverflow.com/questions/355418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set WPF's Grid.RowDefinitions via Style I'm using a couple of Grids to format multiple GridViewColumn.CellTemplates: <ListView SharedSizeScope="true"> <ListView.View> <GridView> <GridViewColumn> <GridViewColumn.CellTemplate> <DataTemplate> <Grid> <Grid.R...
{ "language": "en", "url": "https://stackoverflow.com/questions/355420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Date arithmetic in cmd scripting I need to write a script to change a filename from aDate.txt to bDate.txt where: * *aDate is the current system date in yyyymmdd format and *bDate is the current system date - 1 in yyyymmdd format. I currently have: set yy=%date:~6,2% set mm=%date:~3,2% set dd=%date:~0,2% if "...
{ "language": "en", "url": "https://stackoverflow.com/questions/355425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to pass parameters to a Web Method? How to pass parameters to [WebMethod] in Asp.Net(C#) ? Can some one please explain the same with the help of an example? A: After you add the web reference you must create an instance of the class that contains the webmethod, then you pass parameters the exact same way as an...
{ "language": "en", "url": "https://stackoverflow.com/questions/355429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: "wget --domains" not helping.. what am I doing wrong? I'm attempting to use wget to recursively grab only the .jpg files from a particular website, with a view to creating an amusing screensaver for myself. Not such a lofty goal really. The problem is that the pictures are hosted elsewhere (mfrost.typepad.com), not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: OpenOffice command line PDF creation I have some documentation written in OpenOffice, and I would like to include some of it as PDF files in the final build deliveries. I would like to do this with the automated build script. Is there a way to create a PDF file from OpenOffice with a command line command? A: As of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Singleton shared data source in Objective-C Hey folks - I'm writing a pretty simple iPhone application. The data comes from a plist file (NSDictionary basically), that I'm trying to load into a singleton class and use across my various view controllers to access the data. Here's the implementation for my singleton ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to get the pid of a process which has sent a SIGABRT signal to another process which has exited dumping core how to get the pid of a process which has sent a SIGABRT signal to another process which has exited dumping core A: In short, by installing a signal handler for SIGABRT. More specifically, if you specify...
{ "language": "en", "url": "https://stackoverflow.com/questions/355451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I print source line number in Perl? Is it possible to get the current source line number in Perl? The equivalent in C++ is __LINE__. A: Note there's a gotcha with $ perl -e'warn("foo")' foo at -e line 1. If it ends with a newline it won't print the line number $ perl -e'warn("foo\n")' foo This is document...
{ "language": "en", "url": "https://stackoverflow.com/questions/355456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Javascript button click + reveal I have a big red button and I'm trying to use javascript to perform the following: - * *OnMouseDown change image so the button looks depressed *OnMouseUp return to the initial image AND reveal a hidden div I can get the onMouse Down and onMouseUp image changes part to work. I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/355459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the typical use cases of Genetic Programming? Today I read this blog entry by Roger Alsing about how to paint a replica of the Mona Lisa using only 50 semi transparent polygons. I'm fascinated with the results for that particular case, so I was wondering (and this is my question): how does genetic programmi...
{ "language": "en", "url": "https://stackoverflow.com/questions/355460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: generic type dependency injection: How to inject T I want to handle different types of docs the same way in my application Therefore: I have a generic interface like this. public interface IDocHandler<T>where T: class { T Document { get;set;} void Load(T doc); void Load(string PathToDoc); void Execute(); void E...
{ "language": "en", "url": "https://stackoverflow.com/questions/355473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Url rewrite with mod_jk In a php application, I use the following rewrite rule: RewriteRule ^test-([0-9]+)\.html$ test.php?id=$1 After I access this by this rule: http://localhost/testphp/test-1.html I get the expected page and the url in browser stays in the same: http://localhost/testphp/test-1.html But if I conf...
{ "language": "en", "url": "https://stackoverflow.com/questions/355475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In Silverlight why are some properties prefixed with x e.g x:name and some are not? In Silverlight (and I guess WPF) why are the properties x:name x:fieldmodifier x:uid the only ones with the prefix x. I understand the x prefix is used to refer to the XML namespace but there are a number of other properties that do...
{ "language": "en", "url": "https://stackoverflow.com/questions/355477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can you Bind to the timeInterval attribute of an NSDatePicker? I've got a Core Data application that has an Event class, which has a start date and a finish date. It's trivial to bind these to a pair of NSDatePicker widgets, but I wanted to make it work with the NSRangeDateMode available in Leopard. The NSDatePicke...
{ "language": "en", "url": "https://stackoverflow.com/questions/355486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to read TermainsServices IADsTSUserEx Property from LDAP in C#? I have read the following properties from AD, TerminalServicesProfilePath TerminalServicesHomeDirectory TerminalServicesHomeDrive I've tried DirectoryEntry and DirectorySearcher. But they does not include the properties. I found some example in vbs...
{ "language": "en", "url": "https://stackoverflow.com/questions/355492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Multiple windows or "pages" in an application I am a newbie in Mac application development. I want to write a GUI application in Cocoa using Interface Builder. I want multiple screens i.e. when one button on a screen is clicked, another screen should be displayed. How can I activate a new screen at button click even...
{ "language": "en", "url": "https://stackoverflow.com/questions/355498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Event log messages get overrriden by another event log I create event logs for asp.net projects error logging. I do it by adding a key in regedit, and then a sub-key. Sometimes, I create a new key and sub-key, and instead of getting a new, empty event log, I see in the event viewer that it's showing me the logs from...
{ "language": "en", "url": "https://stackoverflow.com/questions/355500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filling In The Blanks On A SQL Query Sorry about the vague subject but I couldn't think what to put. Here's my problem, I'm doing a query on a table that returns me a count of items related to a day. I want to make sure that if I do a query on the DB, I always get a set number of rows. For example, imagine I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Get current request's credentials for using in WebRequest When accessing my site, the user has to enter his credentials. They are basically plain directory access credentials. At a certain point I check if a certain file they want to download exists by calling WebRequest req = HttpWebRequest.Create(checkUri.Absolute...
{ "language": "en", "url": "https://stackoverflow.com/questions/355516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: access query: how to query to get calculated values? HI, I have a large table from which i can query to get the following table type no of times type occurs 101 450 102 562 103 245 also i can get another table code no of times code occurs 0 1222 1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using git/mercurial on projects with continuous refactoring? I am trying to understand if I really have any case for using git/mercurial. The projects I work are java and c# projects, usually with 5-20 people working towards a common goal (the "release"). Most of the developers are professional developers who refac...
{ "language": "en", "url": "https://stackoverflow.com/questions/355531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Easiest way to merge partitions under debian (unix)? I have two unix partitions under debian which I would like to merge (disk space problems :/). What would be the easiest way to do it? I think it would be best to tar or copy files from one partition to the other, delete one and resize the other. I will use parted ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UTF 8 from Oracle tables The client has asked for a number of tables to be extracted into csv's, all done no problem. They've just asked we make sure the files are always in UTF 8 format. How do I check this is actually the case. Or even better force it to be so, is it something i can set in a procedure before runn...
{ "language": "en", "url": "https://stackoverflow.com/questions/355538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: A get() like method for checking for Python attributes If I had a dictionary dict and I wanted to check for dict['key'] I could either do so in a try block (bleh!) or use the get() method, with False as a default value. I'd like to do the same thing for object.attribute. That is, I already have object to return Fals...
{ "language": "en", "url": "https://stackoverflow.com/questions/355539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: Rails: Blocking an user using routes.rb I have a special url which I would want only few people to have access to. I have a list of super users stored as an array in the app.yml. How can I use this array in :requirements section of a specific route in the routes.rb file to allow only those super users access to this...
{ "language": "en", "url": "https://stackoverflow.com/questions/355540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sorting an Array of Objects in PHP In a Specific Order I have two arrays in PHP. The first array ($author_array) is comprised of user_ids in a particular order, like so: (8, 1, 6) The second array ($user_results) is comprised of an array of objects like so: Array ( [0] => stdClass Object ( [I...
{ "language": "en", "url": "https://stackoverflow.com/questions/355550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to sort the data in alphanumeric values I have these values: d1, d45, d79, d33, d100 I want to sort these variables in ascending order from my table. What is the query to get the output as: d1 d33 d45 d79 d100 A: What you want is called a "natural sort". For Microsoft SQL Server 2005, see this question. For ot...
{ "language": "en", "url": "https://stackoverflow.com/questions/355560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best tactics for managing end of project with large Team Our current project has a large team, and we have come near the end of the project Like most end of projects, dozens of dependencies are popping up - everyone is waiting on someone else to complete a task. What is the best strategy for dealing with this. I hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/355565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: xsl:include of another xslt file from Win32 resources I'm using xslt transformer in my C++ Win32 application and several xsl files that have a common part that I would like to separate into another xsl file. All xsl files are stored as resources. The only way I encountered for xsl:include is using res:// protocol th...
{ "language": "en", "url": "https://stackoverflow.com/questions/355572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does TcpListener.AcceptTcpClient throw uncritical exceptions? In my application, I currently stop listening when AcceptTcpClient (or EndAcceptTcpClient) throws an exception. Typically exceptions are thrown when I stop the listener (socket error 10004) or when I disconnect the network adapter. try { while (true) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WCF: How to get Binding object from configuration I would like to get Binding object from web.config or app.config. So, this code works: wcfTestClient = new TestServiceClient("my_endpoint", Url + "/TestService.svc"); but I would like to do the following: Binding binding = DoSomething(); wcfTestClient = new TestServ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: My exe runs fine by itself, but does nothing when loaded by a service Simple exe for a tray icon, that works fine independently I call it using a windows service, and it seems to run(in task manager) but it dosnt seem to exec any code. ie no tray icon etc. A: On Vista and Windows 2008, services run in a different s...
{ "language": "en", "url": "https://stackoverflow.com/questions/355579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Virtual Directory in ASP.NET project In our web application we have a directory which resides outside of the project. On IIS that's no problem to do, but can I do that also in my project in Visual Studio? Edit: My project is running on File System, and not on Local IIS A: If you click File|Open|Website and then c...
{ "language": "en", "url": "https://stackoverflow.com/questions/355600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Locking out a user in an ASP .Net Custom Membership Provider I've had to create a custom membership provider for my current ASP .Net project in order to fit in with our database schema, and am having problems configuring it to lockout a user if they get their password wrong three times, as is supported by the standa...
{ "language": "en", "url": "https://stackoverflow.com/questions/355602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Delphi app calling cobol app -> error We need to get data out of an older accounting system. We have received a dll that gives us access to the data we need. It includes a type library that we have imported. If we run our test application from the same directory as the accounting system, everything works fine. If we...
{ "language": "en", "url": "https://stackoverflow.com/questions/355613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: DataTable containing inputText: is it possible with JSF Custom Component i'm new to JSF and for the application i'm woriking on i've to do a multiple field input form. In few words the user should have an inputText when he inputs his data and an "add" button which add a new input text in order to input another data....
{ "language": "en", "url": "https://stackoverflow.com/questions/355614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: .NET: Replacing ImageMagick with WPF-objects We've all seen cool WPF demo-applications with rich media. My question is if WPF-objects can replace some basic functionality in ImageMagick. Basic functions like resizing images, cropping and so on. The results from .NET 2.0's System.Graphics-namespace's resizing is just...
{ "language": "en", "url": "https://stackoverflow.com/questions/355616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Posting feeds in facebook, can't use the API I'm getting a - Call to undefined method when I try to use feed API functions like registerBundleTemplates and feed_publishUserAction. Google has led me to believe that I need to call a function called useBetaApiServer, but I can't find any example on how to call it wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/355617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where to put the doxygen comment blocks for an internal library - in H or in CPP files? The common sense tells that the Doxygen comment blocks have to be put in the header files where the classes, structs, enums, functions, declarations are. I agree that this is a sound argument for a libraries that are mean to be d...
{ "language": "en", "url": "https://stackoverflow.com/questions/355619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "113" }
Q: Codenamed Products and Visual Studio Are there any practices regarding using codenames of products in Visual Studio projects and solutions? In that typically, namespaces, assembly names, binary outputs, et al need to be renamed once a product name is chosen: is there any way to deal with this? A: In one place I wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/355620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hierarchical Data Structure Design (Nested Sets) I'm working on a design for a hierarchical database structure which models a catalogue containing products (this is similar to this question). The database platform is SQL Server 2005 and the catalogue is quite large (750,000 products, 8,500 catalogue sections over 4 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Multiple password forms + password completion On a website I'm working we have an onsite login and a private login, the problem I'm having is that Firefox doesn't seem to be able to differentiate between these login forms. Does anybody know how I can make clear that these are different logins? I already tried giving...
{ "language": "en", "url": "https://stackoverflow.com/questions/355632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are some good examples of Mixins and or Traits? I was reading up on Ruby, and learned about its mixins pattern, but couldn't think of many useful mixin functionality (because I'm not used to thinking that way most likely). So I was wondering what would be good examples of useful Mixin functionality? Thanks Edit...
{ "language": "en", "url": "https://stackoverflow.com/questions/355633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How can a value be passed directly from a windows application into a field in an open web page? I have a problem that I feel is best implimented in a stand alone windows application, but needs to pass data to a web page that is already open. Is it possible to pass the data directly to the web page? If so, what is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/355636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery toggle event is messing with checkbox value I'm using Jquery's toggle event to do some stuff when a user clicks a checkbox, like this: $('input#myId').toggle( function(){ //do stuff }, function(){ //do other stuff } ); The problem is that the checkbox isn't being ticked when I click on the checkbox. (A...
{ "language": "en", "url": "https://stackoverflow.com/questions/355638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: C++ HTML template framework, templatizing library, HTML generator library I am looking for template/generator libraries for C++ that are similar to eg. Ruby's Erb, Haml, PHP's Smarty, etc. It would be great if I it would sport some basic features like loops, if/else, int conversion to strings, etc. Parameter passing...
{ "language": "en", "url": "https://stackoverflow.com/questions/355650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: Is returning early from a function more elegant than an if statement? Myself and a colleague have a dispute about which of the following is more elegant. I won't say who's who, so it is impartial. Which is more elegant? public function set hitZone(target:DisplayObject):void { if(_hitZone != targe...
{ "language": "en", "url": "https://stackoverflow.com/questions/355670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How do I get dynamically added ASP.NET buttons to fire events? This is probably a simple question but I am not an ASP.NET developer and I am quite stuck. I have a simple search routine that returns between zero and several hundred results. Each of these must be added to the page as a button and I want to set the tex...
{ "language": "en", "url": "https://stackoverflow.com/questions/355673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Localization in Visual Studio 2008 I am trying to localize a desktop app (C#) in VS2008. I have mastered localizing the forms for multiple languages and I also have a project resource file for general strings but I cannot fathom out how to create multiple language versions of this file! It doesn't seem to be docume...
{ "language": "en", "url": "https://stackoverflow.com/questions/355685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to check a procedure/view/table exists or not before dropping it in db2 9.1? How do we write below pseudo code in db2, If (Proc exists) Drop Proc Create Proc Else Create Proc One solution I found, after googling is to ignore the return codes. Do we have a more elegant way to do this? Thanks Update: With t...
{ "language": "en", "url": "https://stackoverflow.com/questions/355687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Symbian C++ STOMP library I want my S60 Application to utilize the Stomp protocol. Although it would be fairly simple to implement myself (but nothing is ever as simple as I hope with Symbian) - I am wondering if anyone has any experience in this already. It seems a Stomp library exists in almost every other languag...
{ "language": "en", "url": "https://stackoverflow.com/questions/355690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to remove duplicate XML nodes using XSLT I've got an extremely long XML file, like <Root> <ele1> <child1>context1</child1> <child2>test1</child2> <child1>context1</child1> </ele1> <ele2> <child1>context2</child1> <child2>test2</child2> <child1>context2</child1> </...
{ "language": "en", "url": "https://stackoverflow.com/questions/355691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: A Service Loaded exe can't 'System.Diagnostics.Process.Start' a URL? I have a simple Tray icon program that opens a site using System.Diagnostics.Process.Start("URL") And it works fine independently, however when a service loads it, it gives a file not found exception when trying to open the URL, and after testing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Multiple rows per record in JSF? having a myfaces datatable, is is possible to have 2 rows for each record? my simple one-row table looks like the following: <h:dataTable id="somelist" value="#{MyBean.somelist}" var="item"> <h:column> <f:facet name="header"> <h:outputText value="ID"/> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET MVC public alternative to UrlHelper.GenerateUrl I want to embed a link to a controller action in my page so I can use it from javascript. Something like var pollAction = '/Mycontroller/CheckStatus' Now I am happy to hardcode it, but it would be really nice if there were a method I could use to create the UR...
{ "language": "en", "url": "https://stackoverflow.com/questions/355700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Regular Expression to match an ssh connection string I'm trying in vain to write a regular expression to match valid ssh connection strings. I really only need to recognise strings of the format: * *user@hostname:/some/path but it would be nice to also match an implicit home directory: * *user@hostname: I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/355723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Embedding a DOS console in a windows form Is it possible to embed a DOS console in a Windows Form or User Control in C# 2.0? We have a legacy DOS product that my Windows app has to interact with, and it's been requested that an instance of the legacy product should run within the Windows application. At the moment, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to embed Powershell window into another wpf window or windows form? Is it possible to embed powershell app into another wpf window or windows formm? Or even a DOS propmpt shell? Malcolm A: Take a look at: http://code.msdn.microsoft.com/PowerShellTunnel
{ "language": "en", "url": "https://stackoverflow.com/questions/355727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: The best way to store class instances to a file/database What is the best way to store instances of a class to file/database? We have a base class called Command and loads of derived classes. Users create instances of these classes by adding commands to a graphical designer where they can configure them. (Set the pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/355730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using subclassing to replace a Java class that doesn't implement an interface For example, java.io.File is just a concrete class. My replacement for it supports resolving Windows shortcuts. I need to preprocess constructor parameters to resolve possible .lnk files because the FileSystem object that does normalizing/...
{ "language": "en", "url": "https://stackoverflow.com/questions/355732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Apache rotate Access and Error logs Windows How can I rotate the Apache Access and Error logs on a Window 2000 box? I include my batch file below as an answer. Is there a way of doing this directly via the Apache config file? I'm currently using the following customlog command to generate daily logs. CustomLog '|" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Writing data into a database using a fully REST web service How would one create a REST web service to write a row into a databse table. Use the follwoing scenario: The table is called Customer - the data to be inserted into the row would be the name, addresss, telephone number, email. I think its impossible...
{ "language": "en", "url": "https://stackoverflow.com/questions/355738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Save a deque in a text file I am writing a crawler in Python, in order to make Ctrl+C not to cause my crawler to start over in next run, I need to save the processing deque in a text file (one item per line) and update it every iteration, the update operation needs to be super fast. In order not to reinvent the whee...
{ "language": "en", "url": "https://stackoverflow.com/questions/355739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Access VBA: Suppressed Runtime Errors While I'm developing my MS Access application, I open it with shift click. When an Error occurs, that is not trapped (by ON ERROR ...), a message box pops up informing me about the error. This is a good thing. When a user open my application, he does't shift click, and an approp...
{ "language": "en", "url": "https://stackoverflow.com/questions/355746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I merge/compare files ignoring order? I have two properties files that are not the same and I need to find the differences. The second file is sorted by key. Is there a tool that can help me with it? From what I've seen every merge tool cares very much about the order. A: I've done it in bash on Linux by sor...
{ "language": "en", "url": "https://stackoverflow.com/questions/355763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating Flash application using WebOrb Ruby/Rails Ok, this may seem like a stupid question (for Flash Developers) but I really can't figure this out. So, I want to create somekind of an API for Flash/Flex applications so a user can use my lib in order to connect to my WebOrb Rails server. I don't have any problem w...
{ "language": "en", "url": "https://stackoverflow.com/questions/355765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to write a recursive method in JavaScript using window.setTimeout()? I'm writing a JavaSCript class that has a method that recursively calls itself. Scheduler.prototype.updateTimer = function () { document.write( this._currentTime ); this._currentTime -= 1000; // recursively calls itself this._up...
{ "language": "en", "url": "https://stackoverflow.com/questions/355775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: One large xslt over smaller more granular ones We have one large xslt that renders a whole shop area including products, manifacturers and does filtering based on price and cateogry on top of that. I'm using sitecore as a CMS and I'm having problems with caching. I have about 9000 items and some pages take as much a...
{ "language": "en", "url": "https://stackoverflow.com/questions/355783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.NET Imagemap blocked by Kaspersky anti-virus software Has anyone experienced problems with Kaspersky anti-virus stopping browsers from displaying imagemaps created in an ASP.NET app? And if so, is there a way round this? Many thanks, Nick A: Try turning off the firewall. Generally its the firewall which create...
{ "language": "en", "url": "https://stackoverflow.com/questions/355785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What do you call an object level equivalent of Mixin/Traits system, is there a Pattern name for it? I previously asked about what Mixins were, and have begun to get the gist of what the pattern means. But it got me wondering if there is a common pattern name for doing something like Mixins at an Object level as oppo...
{ "language": "en", "url": "https://stackoverflow.com/questions/355786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to access properties from the same class, via accessors or directly? This is something I'm not much consistent about and always curious about what other people do. How do you access internal properties (private or public)? For example you've got this property : Private _Name As String Public P...
{ "language": "en", "url": "https://stackoverflow.com/questions/355787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to figure out which timezone a (ASP.NET / MonoRail) website user is in? So, I'm setting a cookie that should expire. However, I want this to work around the world. So I need to adjust my expiry date for the user's timezone. So, I need to find out the user's timezone, server-side. Is there a way to do this in...
{ "language": "en", "url": "https://stackoverflow.com/questions/355795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you explain OO to new programmers? My relative is studying programming and has a hard time understanding classes. He has trouble understanding for example that you need to instantiate it, that methods cannot access variables in other methods and if you change a variable in one instance of a class it doesn't c...
{ "language": "en", "url": "https://stackoverflow.com/questions/355796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: What's the best way to log debug info in an iphone app? Is there some standard way or has anyone written something that allows you to log a message and have it be displayed either in a small scrolling section on the iphone screen or in a separate window in the iphone simulator? Update: For noobs like me and don't kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/355802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Abstracting UI data formatting I've got some entities which have decimal properties on them. These entities' properties are displayed in multiple places throughout my UI. Currently I'm finding myself doing: litWeight.Text = person.Weight.ToString("0.00"); all over the place. Now I know for a fact that in several in...
{ "language": "en", "url": "https://stackoverflow.com/questions/355813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# mutex - error calling from ASP.NET and console application I am using a global named mutex for file access synchronization between an ASP.NET application and a console application. While running the ASP.NET application, the console application fails to acquire mutex - as expected. While running the console applic...
{ "language": "en", "url": "https://stackoverflow.com/questions/355816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Get Row Count InvalidCast Exception from ScalarQuery ScalarQuery<int> query = new ScalarQuery<int>(typeof(Role), "select count(role.RoleId) from Role as role"); return query.Execute(); It fails with the invalidcast exception but succeeds when count is replaced with max. A: Edit: Some dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/355818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Caching HTML output with PHP I would like to create a cache for my php pages on my site. I did find too many solutions but what I want is a script which can generate an HTML page from my database ex: I have a page for categories which grabs all the categories from the DB, so the script should be able to generate an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/355830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Converting a dataset to JSON using .NET 3.5 in C# I have been searching for a simple way to convert a dataset from a PostgreSQL database to JSON for use in a project that I am building. This is my first time using JSON, and I have found it really tricky to find a simple way of doing this. I have been using a StringB...
{ "language": "en", "url": "https://stackoverflow.com/questions/355833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SharePoint A-Z groupby in CAML I'm using the content query web part and have exported it to a webpart file to allow me to change the queryoverride and groupby elements. I want to group the results alphabetically, so I thought that I can maybe use a function to grab the first letter of the title of the list items and...
{ "language": "en", "url": "https://stackoverflow.com/questions/355835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }