text
stringlengths
8
267k
meta
dict
Q: What’s in your PowerShell `profile.ps1` file? What essential things (functions, aliases, start up scripts) do you have in your profile? A: # ---------------------------------------------------------- # msdn search for win32 APIs. # ---------------------------------------------------------- function Search-MSDNWin3...
{ "language": "en", "url": "https://stackoverflow.com/questions/138144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "91" }
Q: Is ncurses available for windows? Are there any ncurses libraries in C/C++ for Windows that emulate ncurses in native resizable Win32 windows (not in console mode)? A: There's an ongoing effort for a PDCurses port: http://www.mail-archive.com/pdcurses-l@lightlink.com/msg00129.html http://www.projectpluto.com/win32a...
{ "language": "en", "url": "https://stackoverflow.com/questions/138153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: Java - Console-like web applet Hey, I've been developing an application in the windows console with Java, and want to put it online in all of its console-graphics-glory. Is there a simple web applet API I can use to port my app over? I'm just using basic System.out and System.in functionality, but I'm happy to rebui...
{ "language": "en", "url": "https://stackoverflow.com/questions/138157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: PHP alias @ function I'm new to PHP and I'm confused seeing some examples calling a function with a @ prefix like @mysql_ping(). What is it for? Googling / searching is not much of a help since @ gets discarded and 'alias' is not good enough keyword. A: It suppresses the output of error messages. Contrary to anothe...
{ "language": "en", "url": "https://stackoverflow.com/questions/138159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Wildcards in a Windows hosts file I want to setup my local development machine so that any requests for *.local are redirected to localhost. The idea is that as I develop multiple sites, I can just add vhosts to Apache called site1.local, site2.local etc, and have them all resolve to localhost, while Apache serves a...
{ "language": "en", "url": "https://stackoverflow.com/questions/138162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "321" }
Q: How would you go about auto-detecting Textile versus Markdown? I'm considering supporting both Textile and Markdown on a current project. I would prefer not forcing users to choose one or the other. Is there a way to auto-detect which the user is using? How would you go about this? I'd like to find / develop both a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: DotNetNuke vulnerabilities Anyone familiar with specific security issues in the current version of DotNetNuke? (I've already checked out their site, securityfocus, etc...) I've reopened the question, since my client developed their system using DotNetNuke - hence it is a programming question. I just need to know som...
{ "language": "en", "url": "https://stackoverflow.com/questions/138175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Moving from ints to GUIDs as primary keys I use several referenced tables with integer primary keys. Now I want to change ints to GUIDs leaving all references intact. What is the easiest way to do it? Thank you! Addition I do understand the process in general, so I need more detailed advices, for example, how to fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/138177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: In Visual Studio, when would I want to use the Test View? For managing unit tests in Visual Studio, I use the Test List Editor. There's also a Test View which looks similar but more limited. When would I want to use the Test View as opposed to the Test List Editor or any of the other test windows? A: For me the tes...
{ "language": "en", "url": "https://stackoverflow.com/questions/138178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Patch flex framework to show preloader instantly? In the Flex framework a custom preloader can be used while the site is loading. In the Adobe docs it specifies that 'the progress bar [preloader] is displayed if less than half of the application is downloaded after 700 milliseconds of downloading.' However I ALWAYS ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to generate a PDF from an embedded report definition without server or UI? Is it possible for a stand alone executable to generate a report and output it as PDF (or one of the other export options available from the report viewer) without displaying the ReportViewer control? The report definition should be embe...
{ "language": "en", "url": "https://stackoverflow.com/questions/138203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Squid Programming Does anybody know a good tutorial about Squid plug-in development? A: There is one in the squid documentation. IIRC it's fairly straightforward - squid forks a process and passes data down a pipe to the process. A somewhat out-of-date but still relevant programmer's guide can be found Here. A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: difference in speed between char and integer arrays? currently I'm dealing with a video processing software in which the picture data (8bit signed and unsigned) is stored in arrays of 16-aligned integers allocated as __declspec(align(16)) int *pData = (__declspec(align(16)) int *)_mm_malloc(width*height*sizeof(int),...
{ "language": "en", "url": "https://stackoverflow.com/questions/138245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to read the RGB value of a given pixel in Python? If I open an image with open("image.jpg"), how can I get the RGB values of a pixel assuming I have the coordinates of the pixel? Then, how can I do the reverse of this? Starting with a blank graphic, 'write' a pixel with a certain RGB value? I would prefer if I d...
{ "language": "en", "url": "https://stackoverflow.com/questions/138250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "184" }
Q: Calling WMPLib.mediaCollection methods from ASP.NET on IIS return empty lists I am trying to access a Windows Media Player library from ASP.NET. The following code: WMPLib.WindowsMediaPlayer mplayer = new WMPLib.WindowsMediaPlayer(); WMPLib.IWMPStringCollection list = mplayer.mediaCollection.getAttributeStringCollec...
{ "language": "en", "url": "https://stackoverflow.com/questions/138251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How would I go about taking a snapshot of a process to preserve its state for future investigation? Is this possible? Whether this is possible I don't know, but it would mighty useful! I have a process that fails periodically (running in Windows 2000). I then have just one chance to react to it before having to rest...
{ "language": "en", "url": "https://stackoverflow.com/questions/138255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Select Query in SQL + All the values in columns I am having a table Table1 with columns id1, id2, id3 all the columns are nullable I may enter null or value to all columns in rows. My question is I need to select the rows whose all the column values should not be null. Thanks There are totally around 300 columns in...
{ "language": "en", "url": "https://stackoverflow.com/questions/138261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What are hashtables and hashmaps and their typical use cases? I have recently run across these terms few times but I am quite confused how they work and when they are usualy implemented? A: Well, think of it this way. If you use an array, a simple index-based data structure, and fill it up with random stuff, findin...
{ "language": "en", "url": "https://stackoverflow.com/questions/138273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Is the hash of a GUID unique? I create a GUID (as a string) and get the hash of it. Can I consider this hash to be unique? A: In a word, no. Let's assume that your hash has fewer bits than the GUID, by the pigeon hole principle, there must exist more than one mapping of some GUID -> hash simply because there are fe...
{ "language": "en", "url": "https://stackoverflow.com/questions/138279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How can I improve CVS performance in a multi-site scenario? I am currently working in a project with developers working on three sites. One of the sites is in Delhi, India while the other two are in Europe. The communication between the European offices and the office in Delhi has poor bandwidth and quite bad latenc...
{ "language": "en", "url": "https://stackoverflow.com/questions/138280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: For your semantic web type application, do you use RDF or a proprietary model for the internal representation? If you've worked on a project that stores data for use with the semantic web, do you use RDF or even OWL as the internal data format or do you have your own data model/ontology that you map to RDF for inter...
{ "language": "en", "url": "https://stackoverflow.com/questions/138292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Delphi 2009 and Informix dbExpress with Windows 2003 I have simple application that uses dbExpress to connect Informix database. If I compile it with TurboDelphi it works on both WinXP and Win2003. When I use new Deplhi 2009 my app works ok on WinXP but do not start on Win2003. No MessageBox with error, only info in...
{ "language": "en", "url": "https://stackoverflow.com/questions/138298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can use SQLBulkCopy on a table with a GUID primary key and default newsequentialid()? When using SQLBulkCopy on a table with a GUID primary key and default newsequentialid() e.g CREATE TABLE [dbo].[MyTable]( [MyPrimaryKey] [uniqueidentifier] NOT NULL CONSTRAINT [MyConstraint] DEFAULT (newsequentialid()), [Statu...
{ "language": "en", "url": "https://stackoverflow.com/questions/138302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Config Files for Biztalk Host Processes A single Biztalk Server can have multiple Host processes. Is it possible to create an application config file for each host process? For example I would like to use Unity or log4net or whatever which needs such a configuration file. Edit: Thanks at David Hall. To elaborate a b...
{ "language": "en", "url": "https://stackoverflow.com/questions/138308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it possible to manipulate an SVG document embedded in an HTML doc with JavaScript? I have made a SVG image, or more like mini application, for viewing graphs of data. I want to include this in a HTML page, and call methods on the SVG image. Example: <object id="img" data="image.svg" width="500" height="300"/> <sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/138309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How do I turn off CSRF protection in a rails app? The CSRF prevention built in to Rails is causing some problems for some automated load testing we are doing, and I want to turn it off for the duration of the process. How do I do this? A: I love simple questions with clear answers. #I go in application.rb self.allo...
{ "language": "en", "url": "https://stackoverflow.com/questions/138311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How to extract img src, title and alt from html using php? I would like to create a page where all images which reside on my website are listed with title and alternative representation. I already wrote me a little program to find and load all HTML files, but now I am stuck at how to extract src, title and alt from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "164" }
Q: linux to compile multiple java file here is my directory structure. /user/a /user/b /user/b inside folder a,b,c there is a file person.java (it is the Same file, just a one line modification. now, on my shell, im on my /user/ directory and i try to do javac */person.java the shell returns the following error, p...
{ "language": "en", "url": "https://stackoverflow.com/questions/138318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I use ClearCase to "add to source control ..." recursively? I unpacked a zip-file delivery into a clearcase view. Now I want to add the complete file tree to the repository. The GUI only provides an "Add to source control ..." for individual files/directories. Do you know how to recursively add the whole tre...
{ "language": "en", "url": "https://stackoverflow.com/questions/138321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: Any decent text diff/merge engine for .NET? Requirements: * *free, preferably open-source *implemented in one of the .NET managed langs Google found these: * *A Generic, Reusable Diff Algorithm on codeproject *An O(ND) Difference Algorithm for C# *Diff/Merge/Patch Library for C#/.NET by Joshua Tauberer ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "114" }
Q: Starting to learn Windbg After being troubled by an issue that I simply did not have the knowledge to debug, I've just decided that I have to learn how to use Windbg. My only problem: I have no clue where to start :-( I'm not really a WinApi-Guy, having use languages that abstract the Windows Api away from me usuall...
{ "language": "en", "url": "https://stackoverflow.com/questions/138334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Aborting an ASP.NET Web Service asynchronous call I have a web service which takes quite some time to complete execution, and i am calling this web service asynchronously. I also want to implement an Abort functionality which will abort the web service method. Currently, i am observing that even if I dispose the req...
{ "language": "en", "url": "https://stackoverflow.com/questions/138346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Playground Projects When I am unsure about some thing for a project, I usually use a small separate project and make it my playground for things need to be tested. How do you do that ? A: This depends on what I want to try out. For simple algorithmic stuff, I have a console application that consists of many classes...
{ "language": "en", "url": "https://stackoverflow.com/questions/138348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamic radio button creation In wxPython, if I create a list of radio buttons and place the list initially, is it possible to change the contents in that list later? For example, I have a panel that uses a boxSizer to place the widgets initially. One of those widgets is a list of radio buttons (I have also tried a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Calling .NET assembly from Java: JVM crashes I have a third party .NET Assembly and a large Java application. I need to call mothods provided by the .NET class library from the Java application. The assembly is not COM-enabled. I have searched the net and so far i have the following: C# code (cslib.cs): using System...
{ "language": "en", "url": "https://stackoverflow.com/questions/138355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How much faster is C++ than C#? Or is it now the other way around? From what I've heard there are some areas in which C# proves to be faster than C++, but I've never had the guts to test it by myself. Thought any of you could explain these differences in detail or point me to the right place for information on this....
{ "language": "en", "url": "https://stackoverflow.com/questions/138361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "308" }
Q: Class structure pattern question. What should I choose? What are (if any)the implied assumptions or restrictions and the differences of designing like: A) this: class SampleClass1 { IWorker workerA; IWorker workerB; void setWorkerA(IWorker w); void setWorkerB(IWorker w); WorkResult doWork(); } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I close a connection early? I'm attempting to do an AJAX call (via JQuery) that will initiate a fairly long process. I'd like the script to simply send a response indicating that the process has started, but JQuery won't return the response until the PHP script is done running. I've tried this with a "close" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "108" }
Q: SHGetFolderPath() 32 bit vs 64 bit What happens if I use SHGetFolderPath api call in a 32 bit system with CSIDL_PROGRAM_FILESx86 folder id instead of the CSIDL_PROGRAM_FILES id? Theoretically CSIDL_PROGRAM_FILESx86 should map to C:\program files (x86) in a 64 bit system but what does it map to in a 32 bit system whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/138379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the equivalents of colored grep? Sometimes coloring a logfile or other gives a good overview when looking for stuff and behaviors I just saw that grep have a coloring feature grep -C 99999 --color <regexp> <filename> What other methods are there? A: There are many programs that support coloring like Color...
{ "language": "en", "url": "https://stackoverflow.com/questions/138383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Simple toggle function with IE6 I'm facing a problem with IE6. I took the toggle function from this website but when I apply it to my page I get the error (only in IE6): Could not get the display property. Invalid argument. I can get the display property, but the error is thrown when I want to set to the new va...
{ "language": "en", "url": "https://stackoverflow.com/questions/138392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can you run a version 3 .Net binary on a version 2 CLR install? We're considering writing the next version of out project in using .Net 3, but are wondering if we can take the hit on forcing end users to install the .net framework version 3. A: If you want to ensure you are only using .NET 2.0 compatible functional...
{ "language": "en", "url": "https://stackoverflow.com/questions/138393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to programmatically unplug & replug an arbitrary USB device? I'm trying to fix a non-responsive USB device that's masquerading as a virtual COM port. Manual replugging works, but there may be up to 12 of these units. Is there an API command to do the programmatic equivalent of the unplug/replug cycle? A: What a...
{ "language": "en", "url": "https://stackoverflow.com/questions/138394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: ToolTipping a Drop Down list I have a drop down list in a GridView. The data inside the drop down list has variable length but the drop down list is of a fixed size. How can a tooltip be displayed over each item without selecting any item from the drop down list? I have googled but come across samples where the tool...
{ "language": "en", "url": "https://stackoverflow.com/questions/138408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Catching a tab close event in web browser? Is there any way of knowing if the user closes a tab in a web browser? Specifically IE7, but also FireFox and others as well. I would like to be able to handle this situation from our asp code if the current tab containing our web site closes. A: onbeforeunload also gets c...
{ "language": "en", "url": "https://stackoverflow.com/questions/138411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to sort columns in an ASP.NET GridView if using a custom DataSource? I can't get my GridView to enable a user to sort a column of data when I'm using a custom SqlDataSource. I have a GridView in which the code in the ASP reference to it in the HTML is minimal: <asp:GridView id="grid" runat="server" AutoGenerateC...
{ "language": "en", "url": "https://stackoverflow.com/questions/138412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: SQL Compact select top 1 While porting an application from SQL 2005 to SQL Server Compact Edition, I found that I need to port this command: SELECT TOP 1 Id FROM tblJob WHERE Holder_Id IS NULL But SQL Server Compact Edition doesn't support the TOP keyword. How can I port this command? A: SELECT TOP(1) Id FROM tbl...
{ "language": "en", "url": "https://stackoverflow.com/questions/138419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Landscape printing from HTML I have a HTML report, which needs to be printed landscape because of the many columns. It there a way to do this, without the user having to change the document settings? And what are the options amongst browsers. A: You might be able to use the CSS 2 @page rule which allows you to set ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "295" }
Q: How to determine from within Java which .NET framework is installed From within my Java program I want to determine which .NET Framework is installed on the system. What is the best (and easiest) way to do this? Answer Thanks scubabbl! It worked to check the directory System.getenv( "WINDIR" ) + "\\Microsoft.NET\\Fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/138425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's the best way to detect web applications attacks? What is the best way to survey and detect bad users behavior or attacks like deny of services or exploits on my web app ? I know server's statistics (like Awstats) are very useful for that kind of purpose, specially to see 3XX, 4XX and 5XX errors (here's an Aws...
{ "language": "en", "url": "https://stackoverflow.com/questions/138432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to figure out the current Biztalk Host Process I would like to know at runtime in which of several possible host processes my current code is executing. The host processes have configured names at the Biztalk management level, but I need to know which process I'm in from inside the code. I didn't find any suppo...
{ "language": "en", "url": "https://stackoverflow.com/questions/138441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Reporting services - Out of Memory Exception I am having some 10 lac records in my single SQL Table. I need to load this much record in my record. I need to know whether this will load. when i tried loading to report its showing out of memory exception. A: Reporting Services (and Cognos, Business Objects, and o...
{ "language": "en", "url": "https://stackoverflow.com/questions/138444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any way to create a stand-alone ButtonSpec in Krypton Toolkit? I need to create a button that has the same style as ButtonSpec with its type set to Context, is there any way to create a ButtonSpec that isn't directly attached to another control, or have I missed a simple style option on another control? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/138448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to convert a Unicode character to its ASCII equivalent Here's the problem: In C# I'm getting information from a legacy ACCESS database. .NET converts the content of the database (in the case of this problem a string) to Unicode before handing the content to me. How do I convert this Unicode string back to it's A...
{ "language": "en", "url": "https://stackoverflow.com/questions/138449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Javascript: How to reload entire frameset onload() event including frame where Javascript is called Is there a way to reload an entire frameset using Javascript onload() event? function logout() { /* ... */ // reload entire frame top.location.reload(); } <body onload="logout()"> This cause all frames t...
{ "language": "en", "url": "https://stackoverflow.com/questions/138457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: merge custom skin & custom class into SWC If I have an *.as file that is my custom component, a SWC class that contains the custom components skins and a css file that tells the custom class how it should look (references the SWC skin file), how do I set up a library project (using flexbuilder 3) to generate a singl...
{ "language": "en", "url": "https://stackoverflow.com/questions/138458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get address of current page in Internet Explorer from toolbar I'm trying to wrap my head around creating a toolbar (a tool band in a rebar) in MFC for Internet Explorer using COM. Is it possible to get the address of the currently viewed page (i.e., https://stackoverflow.com/questions/ask in my case :-) ) from the t...
{ "language": "en", "url": "https://stackoverflow.com/questions/138466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using own exceptions in wse, not only SoapException Is it possible to send my own developed exceptions over Soap to a client using http.sys?? A: To the best of my knowledge unfortunately the answer is no. You cannot build your own custom exceptions on the server side and expect to use them on the client side throug...
{ "language": "en", "url": "https://stackoverflow.com/questions/138477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to do a SQL NOT NULL with a DateTime? How does one handle a DateTime with a NOT NULL? I want to do something like this: SELECT * FROM someTable WHERE thisDateTime IS NOT NULL But how? A: erm it does work? I've just tested it? /****** Object: Table [dbo].[DateTest] Script Date: 09/26/2008 10:44:21 ******/ S...
{ "language": "en", "url": "https://stackoverflow.com/questions/138493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Generating a report by date range in rails How would you go about producing reports by user selected date ranges in a rails app? What are the best date range pickers? edit in response to patrick : I am looking for a bit of both widget and active record advice but what I am really curious about is how to restfully ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Iterate all files in a directory using a 'for' loop How can I iterate over each file in a directory using a for loop? And how could I tell if a certain entry is a directory or if it's just a file? A: Here's my go with comments in the code. I'm just brushing up by biatch skills so forgive any blatant errors. I tried...
{ "language": "en", "url": "https://stackoverflow.com/questions/138497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "435" }
Q: Sorting nvarchar column as integer I have mixed data i nvarchar column (words and numbers). Which is fastest way to sort data in this column in Numeric Order. Result example: * *1 *2 *3 *... *10 *11 *... *aaaa *aaab *b *ba *ba *... A: If you left pad your numbers with 0's and sort on that, you will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Pure Python XSLT library Is there an XSLT library that is pure Python? Installing libxml2+libxslt or any similar C libraries is a problem on some of the platforms I need to support. I really only need basic XSLT support, and speed is not a major issue. A: I don't think you can do it in cpython: there are no pure py...
{ "language": "en", "url": "https://stackoverflow.com/questions/138502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Easiest and quickest way of Web enabling old VBA apps Given an small Excel VBA app (single form, small amount of records saved in single worksheet) that runs quite happily locally on the workstation, what would be the easiest and quickest way of providing the same app on the web? Re-writing the app is an option but...
{ "language": "en", "url": "https://stackoverflow.com/questions/138506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MVC, where do the classes go? My understanding of the MVC is as follows (incase it's horribly wrong, I am afterall new to it) * *Models are the things that interface with the database *Views are the design/layout of the page *Controllers are where everything starts and are essentially the page logic I'm using...
{ "language": "en", "url": "https://stackoverflow.com/questions/138508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What are Java command line options to set to allow JVM to be remotely debugged? I know there's some JAVA_OPTS to set to remotely debug a Java program. What are they and what do they mean ? A: java java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8001,suspend=y -jar target/cxf-boot-simple-0.0.1-SNAPSHOT.j...
{ "language": "en", "url": "https://stackoverflow.com/questions/138511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "380" }
Q: How can I set the ValidationGroup dynamically I have a ASP.NET 2.0 webpage with 2 UserControls (.ascx). Each UserControl contains a bunch of validators. Placing a ValidationSummary on the page will display all validation errors, of both UserControl's. Placing a ValidationSummary in each UserControl will display all ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Text diff visualization control for WinForms or WPF In continuation of the my previous question, are the any good controls for text diffs visualization? Something like StackOverflow's revision diff viewer but for WinForms or WPF Requirements: * *free, preferably open-source *based on WPF or WinForms No apps pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/138515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Is it feasible to compile Python to machine code? How feasible would it be to compile Python (possibly via an intermediate C representation) into machine code? Presumably it would need to link to a Python runtime library, and any parts of the Python standard library which were Python themselves would need to be comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/138521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "151" }
Q: Java Swing: Ctrl+F1 does not work globally, but each other key combination I have a swing gui with a tabbed pane in the north. Several key events are added to its input map: InputMap paneInputMap = pane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); paneInputMap.put( KeyStroke.getKeyStroke( KeyEvent.VK_...
{ "language": "en", "url": "https://stackoverflow.com/questions/138533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can't view full-text catalogs in SQL Server 2008 with Advanced Services I'm using SQL Server 2008 with Advanced Services on my Vista Home Premium. I'd installed Full-text searching during installation, The SQL Full-text Filter Daemon Launcher is running thorough an admin user account. When I go to a database through...
{ "language": "en", "url": "https://stackoverflow.com/questions/138547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to register file types/extensions with a WiX installer? I didn't find an explicit answer to this question in the WiX Documentation (or Google, for that matter). Of course I could just write the appropriate registry keys in HKCR, but it makes me feel dirty and I'd expect this to be a standard task which should ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/138550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Can Regex be used for this particular string manipulation? I need to replace character (say) x with character (say) P in a string, but only if it is contained in a quoted substring. An example makes it clearer: axbx'cxdxe'fxgh'ixj'k -> axbx'cPdPe'fxgh'iPj'k Let's assume, for the sake of simplicity, that quotes alw...
{ "language": "en", "url": "https://stackoverflow.com/questions/138552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to convert HTML to XHTML? I need to convert HTML documents into valid XML, preferably XHTML. What's the best way to do this? Does anybody know a toolkit/library/sample/...whatever that helps me to get that task done? To be a bit more clear here, my application has to do the conversion automatically at runtime. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/138555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: VB FFT - stuck understanding relationship of results to frequency Trying to understand an fft (Fast Fourier Transform) routine I'm using (stealing)(recycling) Input is an array of 512 data points which are a sample waveform. Test data is generated into this array. fft transforms this array into frequency domain. Tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/138558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: PHP Class Database Connection Scope Issue For a new project that I'm doing in PHP I've created an SQLMethods class to connect to the database and perform queries. Tonight was the first night that I actually got to test it (I wrote it a week or so ago and forgot about it) and an unexpected error occured: When it was ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Compress Script Resources of ASP.Net How do you compress Script Resources of ASP.Net? I saw a file there reached up to 255 KB! I tried finding solutions, but so far it only talks about scripting dynamic and static files. I checked the compression temp folder of IIS and found no compressed scripted resource there. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/138570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Permission in Visual Studio 2008 reports I have successfully added a custom assembly, added it to the report using AddTrustedCodeModuleInCurrentAppDomain. I am executing the report in the current appdomain. When I try to access SQL I get reporting services System.Data.SqlClient.SqlClientPermission failed. I have tri...
{ "language": "en", "url": "https://stackoverflow.com/questions/138573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I create database tables from XSD files? I have a set of XSDs from which I generate data access classes, stored procedures and more. What I don't have is a way to generate database table from these - is there a tool that will generate the DDL statements for me? This is not the same as Create DB table from da...
{ "language": "en", "url": "https://stackoverflow.com/questions/138575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Saving 'tree /f /a" results to a textfile with unicode support I'm trying to use the tree command in a windows commandline to generate a text file listing the contents of a directory but when I pipe the output the unicode characters get stuffed up. Here is the command I am using: tree /f /a > output.txt The results...
{ "language": "en", "url": "https://stackoverflow.com/questions/138576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: Initializing a static std::map in C++ What is the right way of initializing a static map? Do we need a static function that will initialize it? A: This is similar to PierreBdR, without copying the map. #include <map> using namespace std; bool create_map(map<int,int> &m) { m[1] = 2; m[3] = 4; m[5] = 6; re...
{ "language": "en", "url": "https://stackoverflow.com/questions/138600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "516" }
Q: Simple ColdFusion script works in IE but not Firefox? I have a very simple bit of script that changes the status of an item in a MySql database - it works fine in IE7, but if I try it in Firefox, it looks like it's worked, but hasn't... Which is extremely odd. The code is very simple - first I get the details of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/138607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Sql Server 2005 efficiency savings? Are there good efficiency savings using Sql Server 2005 over Sql Server 2000? Or does it just have more services etc Has anyone seen their system work any quicker after making the upgrade? A: The surrounding tools such as Analysis Services were substantially rewritten and can get...
{ "language": "en", "url": "https://stackoverflow.com/questions/138608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to add custom item to system menu in C++? I need to enumerate all running applications. In particular, all top windows. And for every window I need to add my custom item to the system menu of that window. How can I accomplish that in C++? Update. I would be more than happy to have a solution for Windows, MacOS, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to create a GET request with parameters, using JSF and navigation-rules? Is there a way to create an html link using h:outputLink, other JSF tag or code to create a non faces request (HTTP GET) with request parameters? For example I have the following navigation-rule <navigation-rule> <navigation-case> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: LabVIEW Objects I have a base class object array into which I have typecasted many different child class objects and am passing it to a sub vi. Is there any way by which I can find out the original type of the object of each individual elements in the array? Thanks ... A: For posterity, this was crossposted to the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Hibernate global filtration criteria Is there a way to add a single criteria on a session factory(configuration) level which will apply to all entities retrieved with a Session ? We have a requirement to not delete any rows from our database but "mark" deleted entities as such so that they will not participate in an...
{ "language": "en", "url": "https://stackoverflow.com/questions/138631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: can I expose a class from another .net namespace as a class in my namespace? Can I expose a class from another .net namespace as a class in my namespace? I use a class - antlr.collections.AST - as the return type for a function belonging to a class in my namespace; as a result, the user has to have using antlr.coll...
{ "language": "en", "url": "https://stackoverflow.com/questions/138638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Feature branches in CVS? I'm duty-bound by policy to use CVS in this certain project, so even though I'd really to switch to something else, like Git, I cannot. So, my real question goes like this: We have a convention that we create a new branch in CVS every time we make a release (we also tag, but that is besides ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I redirect a page after successful validation with form_remote_for()? I'm using form_remote_for() to do validation on a form's data so that my rails app can show the user errors without reloading the page. I'm having troubles redirecting the page if there are no errors. Here is my code: def create # Validat...
{ "language": "en", "url": "https://stackoverflow.com/questions/138643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I determine if a JavaScript variable is defined in a page? How can i check in JavaScript if a variable is defined in a page? Suppose I want to check if a variable named "x" is defined in a page, if I do if(x != null), it gives me an error. A: To avoid accidental assignment, I make a habit of reversing the o...
{ "language": "en", "url": "https://stackoverflow.com/questions/138669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "118" }
Q: How unique is the php session id How unique is the php session id? I got the impression from various things that I've read that I should not rely on two users never getting the same sessionid. Isn't it a GUID? A: It's not very unique as shipped. In the default configuration it's the result of a hash of various thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/138670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: Vim extension (via Python)? is it possible to extend vim functionality via custom extension (preferably, written in Python)? What I need ideally is custom command when in command mode. E.g. ESC :do_this :do_that A: Yes it is. There are several extensions on http://www.vim.org/scripts/index.php It can be done with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is there a way to have managed processes in Perl (i.e. a threads replacement that actually works)? I have a multithreded application in perl for which I have to rely on several non-thread safe modules, so I have been using fork()ed processes with kill() signals as a message passing interface. The problem is that the...
{ "language": "en", "url": "https://stackoverflow.com/questions/138696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Any way to automatically wrap comments at column 80 in Visual Studio 2008? ..or display where column 80 is? Is there any way to automatically wrap comments at the 80-column boundary as you type them? ..or failing that, any way to display a faint line at the coulmn 80 boundary to make wrapping them manually a little ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Security implications of disabling the Common Name check for HTTPS I'm going over some client code I've inherited for doing secure communication over HTTPS, and it seems that it's not checking the common name in the server certificate (eg. 'CN = "example.com"' against the actual URL that's being requested. This is p...
{ "language": "en", "url": "https://stackoverflow.com/questions/138705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Debugging with Oracle's utl_smtp A client of mine uses Oracle 9i's utl_smtp to send mails out notifications to managers when their employees have made travel requests and they woul like quite a few changes made to the mailouts done. We're having a lot of problems getting utl_smtp to talk to any smtp server on our n...
{ "language": "en", "url": "https://stackoverflow.com/questions/138747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Installer gives 2732 error :Directory Manager not initialized I have an msi installer which was working fine. I added an external merge module. There were some directory merge errors during compilation. I removed the directories causing the error from the directory table of the merge module. I am getting the error: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/138758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Web Applications & Desktop Applications I am a programmer who writes a lot of code for desktop applications, now started considering cross-platform apps as an issue but at work I write C# apps and I come from C++ and CS background and of course, I wrote several things in QT/C++. But now I am kinda confused about web...
{ "language": "en", "url": "https://stackoverflow.com/questions/138761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I "smoothly" format HttpHandler URI? I'm just meddling in the ways of the RESTful web service in C# using ASP.Net 2.0 and have managed (via a class library, a reference to dll produced by the former and some adjustment of my web.config) to coax out a URI format like so: http: //localhost/DevelopmentProject/t...
{ "language": "en", "url": "https://stackoverflow.com/questions/138771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }