text
stringlengths
8
267k
meta
dict
Q: what is the difference between OLE DB and ODBC data sources? I was reading a MS Excel help article about pivotcache and wonder what they mean by OLE DB and ODBC sources ...You should use the CommandText property instead of the SQL property, which now exists primarily for compatibility with earlier versions of...
{ "language": "en", "url": "https://stackoverflow.com/questions/103167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "194" }
Q: Figuring out the right language for the job: branching out from C# I work in a Microsoft environment, so I can use my C# hammer on any nails I come across. That being said, what languages (compiled, interpreted, scripting, functional, any types!) complement knowing C#, and for what purposes? For example, I've moved ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Enumerating Certificate Fields in C# How do you enumerate the fields of a certificate help in a store. Specifically, I am trying to enumerate the fields of personal certificates issued to the logged on user. A: See http://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509store.aspx ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where can I find Microsoft assemblies that are not already in Visual Studio? I figured someone can answer the question generally but if anyone wants to get specific I am trying to use: using System.Web.Security.SingleSignOn; using System.Web.Security.SingleSignOn.Authorization; I've googled my brains out and this is...
{ "language": "en", "url": "https://stackoverflow.com/questions/103178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I set an Application's Icon Globally in Swing? I know I can specify one for each form, or for the root form and then it'll cascade through to all of the children forms, but I'd like to have a way of overriding the default Java Coffee Cup for all forms even those I might forget. Any suggestions? A: You can ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/103179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Best way to prevent duplicate use of credit cards We have a system where we want to prevent the same credit card number being registered for two different accounts. As we don't store the credit card number internally - just the last four digits and expiration date - we cannot simply compare credit card numbers and e...
{ "language": "en", "url": "https://stackoverflow.com/questions/103184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Is there a macro recorder for Eclipse? Is there a good Eclipse plugin for recording and playing back macros? I've tried this one, but it didn't do me any good- it seemed like it wasn't ready for prime time. I know about editor templates, but I'm looking for something that I can use to record my keystrokes and then a...
{ "language": "en", "url": "https://stackoverflow.com/questions/103202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "115" }
Q: How would you implement a secure static login credentials system in Java? We recently had a security audit and it exposed several weaknesses in the systems that are in place here. One of the tasks that resulted from it is that we need to update our partner credentials system make it more secure. The "old" way of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Finding First Row in a RDLC Table I have a table in a RDLC report which is utilized as a subreport, and the first column of this table is a static string. Does anyone know how I can determine if a row is the first in the table. I tried using "=First("My String")" but it didn't work. A: Looking at the link supplied...
{ "language": "en", "url": "https://stackoverflow.com/questions/103240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VB6 / Crystal Report 8.5 error: A string is required here I recently inherited an old visual basic 6/ crystal reports project which connects to a sql server database. The error message I get (Error# -2147191803 A String is required here) when I attempt to run the project seems to be narrowed down to the .Printout ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does Weblogic 9.x support the 2.4 Servlet standard? Seems like a simple enough question but I can't seem to find the answer. And hey, dead simple questions like this with dead simple answers is what Joel and Jeff want SO to be all about, right? A: http://e-docs.bea.com/wls/docs92/compatibility/compatibility.html B...
{ "language": "en", "url": "https://stackoverflow.com/questions/103271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best way to make a mobile friendly site? Speaking entirely in technology-free terms, what is the best way to make a mobile friendly site? That is, I want to make a site that will work on a regular computer but also have mobile versions of the pages. Should I rewrite each page? The pages will probably h...
{ "language": "en", "url": "https://stackoverflow.com/questions/103273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Portable way to catch signals and report problem to the user If by some miracle a segfault occurs in our program, I want to catch the SIGSEGV and let the user (possibly a GUI client) know with a single return code that a serious problem has occurred. At the same time I would like to display information on the comma...
{ "language": "en", "url": "https://stackoverflow.com/questions/103280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What happens if MySQL connections continually aren't closed on PHP pages? At the beginning of each PHP page I open up the connection to MySQL, use it throughout the page and close it at the end of the page. However, I often redirect in the middle of the page to another page and so in those cases the connection does ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to convert a unmanaged double to a managed string? From managed C++, I am calling an unmanaged C++ method which returns a double. How can I convert this double into a managed string? A: I assume something like (gcnew System::Double(d))->ToString() A: C++ is definitely not my strongest skillset. Misread the q...
{ "language": "en", "url": "https://stackoverflow.com/questions/103298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to test for the EOF flag in R? How can I test for the EOF flag in R? For example: f <- file(fname, "rb") while (???) { a <- readBin(f, "int", n=1) } A: The readLines function will return a zero-length value when it reaches the EOF. A: Try checking the length of data returned by readBin: while (length(a <...
{ "language": "en", "url": "https://stackoverflow.com/questions/103312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: In bash, environmental variables not tab-expanding correctly In bash, environmental variables will tab-expand correctly when placed after an echo command, for example: echo $HOME But after cd or cat, bash places a \ before the $ sign, like so: cd \$HOME If I use a variable as the second argument to a command, it w...
{ "language": "en", "url": "https://stackoverflow.com/questions/103316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What is the correct XPath for choosing attributes that contain "foo"? Given this XML, what XPath returns all elements whose prop attribute contains Foo (the first three nodes): <bla> <a prop="Foo1"/> <a prop="Foo2"/> <a prop="3Foo"/> <a prop="Bar"/> </bla> A: Have you tried something like: //a[contains(@prop, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "215" }
Q: How do you glue Lua to C++ code? Do you use Luabind, toLua++, or some other library (if so, which one) or none at all? For each approach, what are the pro's and con's? A: I can't really agree with the 'roll your own' vote, binding basic types and static C functions to Lua is trivial, yes, but the picture changes th...
{ "language": "en", "url": "https://stackoverflow.com/questions/103347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: C++ strings: UTF-8 or 16-bit encoding? I'm still trying to decide whether my (home) project should use UTF-8 strings (implemented in terms of std::string with additional UTF-8-specific functions when necessary) or some 16-bit string (implemented as std::wstring). The project is a programming language and environment...
{ "language": "en", "url": "https://stackoverflow.com/questions/103358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How well does the Android Phone Emulator reflect the performance? I've been playing around with OpenGL ES development on Android. OpenGL ES applications seem to run slowly in the Emulator on my development machine. Does this reflect likely performance of actual hardware? I'm concerned about spending too much time de...
{ "language": "en", "url": "https://stackoverflow.com/questions/103366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Managed C++ Method naming I'm using managed c++ to implement a method that returns a string. I declare the method in my header file using the following signature: String^ GetWindowText() However, when I'm using this method from C#, the signature is: string GetWindowTextW(); How do I get rid of the extra "W" at the...
{ "language": "en", "url": "https://stackoverflow.com/questions/103382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Oracle Natural Joins and Count(1) Does anyone know why in Oracle 11g when you do a Count(1) with more than one natural join it does a cartesian join and throws the count way off? Such as SELECT Count(1) FROM record NATURAL join address NATURAL join person WHERE status=1 AND code = 1 AND state = 'TN' This pulls bac...
{ "language": "en", "url": "https://stackoverflow.com/questions/103389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Setting the SVN "execute" bit in a Subversion repository using TortoiseSVN or command line SVN I've got an open-source app that is hosted at code.google.com. It is cross platform ( Linux / Windows / Mac ). I uploaded the code initially from a WinXP machine using TortoiseSVN and it seems that none of the "configure" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: How can you have SharePoint Link Lists default to opening in a new window? In SharePoint, it is easy to set up a List webpart consisting of Links to other documents, folders, sites, etc. Unfortunately, when clicking these links, the default behavior is for the page to open in the current browser window. That is, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/103402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Why Am I Getting Link Errors When Calling Function in Math.h? When attempting to call functions in math.h, I'm getting link errors like the following undefined reference to sqrt But I'm doing a #include <math.h> I'm using gcc and compiling as follows: gcc -Wall -D_GNU_SOURCE blah.c -o blah Why can't the linker f...
{ "language": "en", "url": "https://stackoverflow.com/questions/103407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I flip a sprite/texture in OpenGLES? I have a sprite loaded as a texture and I need to animate it, allowing it to "face" left or right -- essentially sometimes I need to "flip" it. I know that OpenGL has a gltranslate which repositions an object, and glrotate which rotates it. Is there a method that simpl...
{ "language": "en", "url": "https://stackoverflow.com/questions/103421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Simple way to parse a person's name into its component parts? A lot of contact management programs do this - you type in a name (e.g., "John W. Smith") and it automatically breaks it up internally into: First name: John Middle name: W. Last name: Smith Likewise, it figures out things like "Mrs. Jane W. Smith" and "D...
{ "language": "en", "url": "https://stackoverflow.com/questions/103422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: What are the best SQL Server performance optimization techniques? I've always taken the approach of first deploying the database with a minimal set of indexes and then adding/changing indexes as performance dictates. This approach works reasonably well. However, it still doesn't tell me where I could improve perform...
{ "language": "en", "url": "https://stackoverflow.com/questions/103423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Displaying Window on Logon Screen Using C# in Windows XP I am trying to create a service with C# that launches a process that can be displayed on the Windows XP Logon screen. I found some code that is doing this in C++. The C++ code is for a service that creates another process with STARTUPINFO.lpDesktop set to "Wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/103427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: LSL communications Years ago I created a programming collaboratory in Diversity University MOO -- a room written in MOOcode that used TCP/IP to communicate with a perl server back at my campus to compile and execute C, Perl, Bash and other programs and return results to the MOO collaboratory -- all for demonstrating...
{ "language": "en", "url": "https://stackoverflow.com/questions/103439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Identify the host from a Windows user mode dump file Is there an easy way of finding out the host name of a machine that generated a user mode dump file via WinDbg? Or at least any piece of identifying information to try and confirm that two dump files came from the same system. A: You can do so by analyzing the u...
{ "language": "en", "url": "https://stackoverflow.com/questions/103453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the best way to determine the name of your machine in a .NET app? I need to get the name of the machine my .NET app is running on. What is the best way to do this? A: Whilst others have already said that the System.Environment.MachineName returns you the name of the machine, beware... That property is only ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Adding .net Webservice references I'm getting near completely different objects from the same WSDL file when I try to Add a Web Reference depending if I am using Express or Pro version of the vs2008 .NET IDE. 1) Why is this happening? I'd expect the WSDL's to act the same across platforms--clearly they are not! 2) H...
{ "language": "en", "url": "https://stackoverflow.com/questions/103474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iPhone programming - impressions, opinions? I've been programming in C,C++,C# and a few other languages for many years, mainly for Windows and Linux but also embedded platforms. Recently started to do some iPhone programming as a side project so I'm using Apple platforms for the first time since my Apple II days. I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/103480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Building an HTML table on the fly using jQuery Below is the code I use to build an HTML table on the fly (using JSON data received from the server). I display an animated pleasewait (.gif) graphic while the data is loading. However, the graphic freezes while the JavaScript function is building the table. At first, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/103489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Best way of restarting a jetty instance I'm using start.jar and stop.jar to stop and start my jetty instance. I restart by calling stop.jar, then start.jar. The problem is, if I don't sleep long enough between stop.jar and start.jar I start getting these random ClassNotFoundExceptions and the application doesn't wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/103508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why use static_cast(x) instead of (int)x? I've heard that the static_cast function should be preferred to C-style or simple function-style casting. Is this true? Why? A: * *Allows casts to be found easily in your code using grep or similar tools. *Makes it explicit what kind of cast you are doing, and enga...
{ "language": "en", "url": "https://stackoverflow.com/questions/103512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "791" }
Q: What's the right way to dynamically choose menu items for a context menu in WinForms? I'm trying to make a context menu for a control that is "linked" to a main menu item. There are two fixed menu items that are always there and an arbitrary number of additional menu items that might need to be on the menu. I've tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/103514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Excel Addin Access Violation Using c#, VS2005, and .NET 2.0. (XP 32 bit) This is a Winforms app that gets called by a VBA addin (.xla) via Interop libraries. This app has been around for a while and works fine when the assembly is compiled and executed anywhere other than my dev machine. On dev it crashes hard (in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Junit output and OutOfMemoryError I'm running some JUnit tests on my applications. Every test has a for loop calling respective method 10000 times. The tested methods produce a lot of log. These logs are also automatically collected by JUnit as test output. This situation takes to OutOfMemoryError because the strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/103519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: The essential steps in verifying a file upload What would you say are the essential steps in verifying a file upload? I'd tend to check the MIME type, give it a new (random) name, make sure its got an allowed file extension, and then I'd check the contents of the file. How do you go about it? A: Check (in this orde...
{ "language": "en", "url": "https://stackoverflow.com/questions/103522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a list of AJAX JSF Libraries available? I'm looking for an alternative to www.jsfmatrix.net to get a better idea of what JSF libraries are out there and to avoid having to write my own grid/table components. Or are these 27 the best the world has to offer (really only 3 are worth their salt.) A: have you l...
{ "language": "en", "url": "https://stackoverflow.com/questions/103523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Handling different ConnectionStates before opening SqlConnection If you need to open a SqlConnection before issuing queries, can you simply handle all non-Open ConnectionStates in the same way? For example: if (connection.State != ConnectionState.Open) { connection.Open(); } I read somewhere th...
{ "language": "en", "url": "https://stackoverflow.com/questions/103532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I create a zoom effect in OpenGLES on the iPhone? I have an OpenGL ES game that I am hacking together. One part of it involves looking at a large "map-like" area and then double-tapping on one part to "zoom into" it. How would you use OpenGL ES to provide this effect (given that it may need to zoom in on d...
{ "language": "en", "url": "https://stackoverflow.com/questions/103537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Locking File using Apache Server and TortoiseSVN I am seeting up Apache server with TortoiseSVN for local source code repository. Currently on trial purpose I am setting only two users. Is it possible for administrator to set up some thing so that file get compulsory locked once its checkout (copy to working directo...
{ "language": "en", "url": "https://stackoverflow.com/questions/103548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to render unicode characters in the correct font? (C#/WinForms) My application correctly handles different kind of character sets, but only internally - when it comes to displaying text in standard WinForms labels und textboxes, it seems to have problems with chinese characters. The problem seems to be the font ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Rhino mocks ordered reply, throw exception problem I'm trying to implement some retry logic if there is an exception in my code. I've written the code and now I'm trying to get Rhino Mocks to simulate the scenario. The jist of the code is the following: class Program { static void Main(string[] args) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Invalid postback or callback argument I have an ASP.net application that works fine in the development environment but in the production environment throws the following exception when clicking a link that performs a postback. Any ideas? Invalid postback or callback argument. Event validation is enabled using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can FxCop/StyleCop be limited to only analyze selected methods from with Visual Studio? I am taking on a maintenance team and would like to introduce tools like FxCop and StyleCop to help improve the code and introduce the developers to better programming techniques and standards. Since we are maintaining code and n...
{ "language": "en", "url": "https://stackoverflow.com/questions/103561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: The performance impact of using instanceof in Java I am working on an application and one design approach involves extremely heavy use of the instanceof operator. While I know that OO design generally tries to avoid using instanceof, that is a different story and this question is purely related to performance. I was...
{ "language": "en", "url": "https://stackoverflow.com/questions/103564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "347" }
Q: Visual Studio 2008 saving files gets slow I've looked for some other articles on this problem and even tried some of the ideas in this thread; however, nothing has solved the issue yet. So, on to the issue. Something happens when working in Visual Studio (usually C#) that causes the IDE to become a bit wonky when s...
{ "language": "en", "url": "https://stackoverflow.com/questions/103569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: WPF Validation Not Firing on First LostFocus of the TextBox I am trying to validate the WPF form against an object. The validation fires when I type something in the textbox lose focus come back to the textbox and then erase whatever I have written. But if I just load the WPF application and tab off the textbox with...
{ "language": "en", "url": "https://stackoverflow.com/questions/103575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: What's wrong with my XPath/XML? I'm trying a very basic XPath on this xml (same as below), and it doesn't find anything. I'm trying both .NET and this website, and XPaths such as //PropertyGroup, /PropertyGroup and //MSBuildCommunityTasksPath are simply not working for me (they compiled but return zero results). Sou...
{ "language": "en", "url": "https://stackoverflow.com/questions/103576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Exceptions: Is this a good practice? This is written in PHP, but it's really language agnostic. try { try { $issue = new DM_Issue($core->db->escape_string($_GET['issue'])); } catch(DM_Exception $e) { throw new Error_Page($tpl, ERR_NOT_FOUND, $e->getMessage()); } } catch(Error_...
{ "language": "en", "url": "https://stackoverflow.com/questions/103583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using php, how to insert text without overwriting to the beginning of a text file I have: <?php $file=fopen(date("Y-m-d").".txt","r+") or exit("Unable to open file!"); if ($_POST["lastname"] <> "") { fwrite($file,$_POST["lastname"]."\n"); } fclose($file); ?> but it overwrites the beginning of the file. How ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Why was the arguments.callee.caller property deprecated in JavaScript? Why was the arguments.callee.caller property deprecated in JavaScript? It was added and then deprecated in JavaScript, but it was omitted altogether by ECMAScript. Some browser (Mozilla, IE) have always supported it and don't have any plans on t...
{ "language": "en", "url": "https://stackoverflow.com/questions/103598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "221" }
Q: What are you using for Distributed Caching in web farms running ASP.NET? I am curious as to what others are using in this situation. I know a couple of the options that are out there like a memcached port or ScaleOutSoftware. The memcached ports don't seem to be actively worked on (correct me if I'm wrong). Scale...
{ "language": "en", "url": "https://stackoverflow.com/questions/103601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Salesforce.com - Why uploading of Apex class is not working? I have an Apex class (controller) originally developed under Developer Edition and need to upload it to production which is Enterprise Edition. The upload fails with following message classes/RenewalController.cls(RenewalController):An error occurred on yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/103616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Tools to view/solve Windows XP memory fragmentation We have a java program that requires a large amount of heap space - we start it with (among other command line arguments) the argument -Xmx1500m, which specifies a maximum heap space of 1500 MB. When starting this program on a Windows XP box that has been freshly r...
{ "language": "en", "url": "https://stackoverflow.com/questions/103622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: jQuery Menu and ASP.NET Sitemap Is it possible to use an ASP.NET web.sitemap with a jQuery Superfish menu? If not, are there any standards based browser agnostic plugins available that work with the web.sitemap file? A: Yes, it is totally possible. I have used it with the ASP:Menu control and jQuery 1.2.6 with th...
{ "language": "en", "url": "https://stackoverflow.com/questions/103630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Pascal's Theorem for non-unique sets? Pascal's rule on counting the subset's of a set works great, when the set contains unique entities. Is there a modification to this rule for when the set contains duplicate items? For instance, when I try to find the count of the combinations of the letters A,B,C,D, it's easy to...
{ "language": "en", "url": "https://stackoverflow.com/questions/103633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why don't languages raise errors on integer overflow by default? In several modern programming languages (including C++, Java, and C#), the language allows integer overflow to occur at runtime without raising any kind of error condition. For example, consider this (contrived) C# method, which does not account for th...
{ "language": "en", "url": "https://stackoverflow.com/questions/103654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: What makes you a C programming expert? I attended a job fair yesterday and a developer asked me how I would rank my proficiency in C. I then realized that this is incredibly arbitrary and almost impossible to nail down, so my question is what knowledge makes you an expert in programming C? Edit: or what would the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/103669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: What's the best database access pattern for testability? I've read about and dabbled with some including active record, repository, data transfer objects. Which is best? A: 'Best' questions are not really valid. The world is filled with combination and variations. You should start with the question that you have...
{ "language": "en", "url": "https://stackoverflow.com/questions/103676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Machine.Migrations mature enough to be used? Ok thanks for the 1st guy I found the code. Machine.Migrations: I mean, the data schema/data migration framework. I mean, the one mentioned here: http://blog.eleutian.com/2008/04/25/AFirstLookAtMachineMigrations.aspx Ok so somebody had used it? I think I would like to hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/103677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is a javascript hash table implementation that avoids object namespace collisions? First off: I'm using a rather obscure implementation of javascript embedded as a scripting engine for Adobe InDesign CS3. This implementation sometimes diverges from "standard" javascript, hence my problem. I'm using John Resig's...
{ "language": "en", "url": "https://stackoverflow.com/questions/103679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ReportViewer displaying black background in Print Layout mode In my ReportViewer control, when I click on Print Layout, the background turns black on the report. This must be a bug. Is there a workaround? A: Microsoft was already aware of this issue, its KB is located here. You can solve the problem by installing C...
{ "language": "en", "url": "https://stackoverflow.com/questions/103688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: PHP/JS - Create thumbnails on the fly or store as files For an image hosting web application: For my stored images, is it feasible to create thumbnails on the fly using PHP (or whatever), or should I save 1 or more different sized thumbnails to disk and just load those? Any help is appreciated. A: I use phpThumb, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/103707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Disappearing checkbox label in ASP.Net 3.5 DetailsView control I have a web form with a button and a DetailsView control on it. In the button's click event I change the DetailsView control to insert mode so I can add records: DetailsView1.ChangeMode(DetailsViewMode.Insert) Everything works fine, except for a checkbo...
{ "language": "en", "url": "https://stackoverflow.com/questions/103708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to get FlexBuilder 3 to treat a project as an Application and a LIbrary? My team builds reusable libraries for other (internal) software development teams. We use FlexBuilder 3 as our development environment. Our SCM standards state that these projects must include test harnesses and a unit test runn...
{ "language": "en", "url": "https://stackoverflow.com/questions/103723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to programmatically determine if a font file has a specific Unicode Glyph? I'm working on a project that generates PDFs that can contain fairly complex math and science formulas. The text is rendered in Times New Roman, which has pretty good Unicode coverage, but not complete. We have a system in pla...
{ "language": "en", "url": "https://stackoverflow.com/questions/103725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: How to think in data stores instead of databases? As an example, Google App Engine uses Google Datastore, not a standard database, to store data. Does anybody have any tips for using Google Datastore instead of databases? It seems I've trained my mind to think 100% in object relationships that map directly to tabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/103727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "185" }
Q: How do I persist the value of a label through a response.redirect? Here's the situation: I have a label's text set, immediately followed by a response.redirect() call as follows (this is just an example, but I believe it describes my situation accurately): aspx: <asp:Label runat="server" Text="default text" /> Code...
{ "language": "en", "url": "https://stackoverflow.com/questions/103765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best way to store changes to database records that require approval before being visible? I need to store user entered changes to a particular table, but not show those changes until they have been viewed and approved by an administrative user. While those changes are still in a pending state, I would s...
{ "language": "en", "url": "https://stackoverflow.com/questions/103766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: What are the (dis)advantages of using Cassini instead of IIS? I've found that on some occasions I can edit the source while debugging. Are there any other advantages of using the Visual Studio built-in webserver instead of a virtual directory in IIS? I'm using Windows XP on my development environment, and a local in...
{ "language": "en", "url": "https://stackoverflow.com/questions/103785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: How do you add a button to the email message window toolbar in Lotus Notes 8.5+? A coworker has been struggling with this problem. The desired result is an installable plugin for Notes that will add a button emails with attachments that will let users save the attachment to a document management system. Finding docu...
{ "language": "en", "url": "https://stackoverflow.com/questions/103791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: T-SQL: How do I get the rows from one table whose values completely match up with values in another table? Given the following: declare @a table ( pkid int, value int ) declare @b table ( otherID int, value int ) insert into @a values (1, 1000) insert into @a values (1, 1001) insert into @a values...
{ "language": "en", "url": "https://stackoverflow.com/questions/103829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is GnuPG compatible with McAfee eBusiness Server 7.1? Right now, we're using PGP command line 9.0. Does anybody know if GnuPG will work? It'd be a lot cheaper. EDIT: Theoretically, GnuPG/PGP/McAfee eBusiness Server should be able to interoperate. In practice, you pretty much just have to test to see. We did not ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/103831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How do I run a batch file on startup for a Win x64 machine? I know you can use autoexnt to run a batch file on startup for Windows XP, but that only seems to work for 32-bit machines. I'm running Windows XP x64 on a box, and I need to have a script run on startup (without anyone's logging in). Any ides? Thanks for...
{ "language": "en", "url": "https://stackoverflow.com/questions/103842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: TIGER shapefiles - using and interpreting I know of the US GIS TIGER file format from years ago, but have never used it. I'm very shortly going to need to very quickly implement simple geocoding and vector graphics of roads and other features. * *Where do I go for information - are there tutorials, example querie...
{ "language": "en", "url": "https://stackoverflow.com/questions/103843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I merge a 2D array in Python into one string with List Comprehension? List Comprehension for me seems to be like the opaque block of granite that regular expressions are for me. I need pointers. Say, I have a 2D list: li = [[0,1,2],[3,4,5],[6,7,8]] I would like to merge this either into one long list li2 = [...
{ "language": "en", "url": "https://stackoverflow.com/questions/103844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Communicating between Java and Flash without a Flash-specific server I have Java and Flash client applications. What is the best way for the two to communicate without special Flash-specific servers such as BlazeDS or Red5? I am looking for a light client-only solution. A: Well, you can make http requests from flas...
{ "language": "en", "url": "https://stackoverflow.com/questions/103861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does Authorize.Net Silent Post work? Authorize.net offers a "Silent POST" feature for their Automated Recurring Billing. It's supposed to POST data to a url of your choosing, telling you whether they were able to charge the customer, how much, etc. The problem is, it isn't very well documented. * *Is there an...
{ "language": "en", "url": "https://stackoverflow.com/questions/103892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Automate a Ruby Gem install that has input I am trying to install the ibm_db gem so that I can access DB2 from Ruby. When I try: sudo gem install ibm_db I get the following request for clarification: Select which gem to install for your platform (i486-linux) 1. ibm_db 0.10.0 (ruby) 2. ibm_db 0.10.0 (mswin32) 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/103918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you implement a function which returns the URL of last visited page I want to store the current URL in a session variable to reference the previous visited page. If I store every URL (via a before_filter on ApplicationController), also actions which end in a redirect (create, update, etc) are considered as la...
{ "language": "en", "url": "https://stackoverflow.com/questions/103919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ResultSet not closed when connection closed? I've been doing code review (mostly using tools like FindBugs) of one of our pet projects and FindBugs marked following code as erroneous (pseudocode): Connection conn = dataSource.getConnection(); try{ PreparedStatement stmt = conn.prepareStatement(); //initiali...
{ "language": "en", "url": "https://stackoverflow.com/questions/103938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Flex: Custom Item Renderer For Combobox controls truncates text I've implemented a custom item renderer that I'm using with a combobox on a flex project I'm working on. It displays and icon and some text for each item. The only problem is that when the text is long the width of the menu is not being adjusted properl...
{ "language": "en", "url": "https://stackoverflow.com/questions/103945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SSRS - ReportViewer LocalReport Set SubReport parameter value How can you programmatically set the parameters for a subreport? For the top-level report, you can do the following: reportViewer.LocalReport.SetParameters ( new Microsoft.Reporting.WebForms.ReportParameter[] { new Microsoft.Reporting.We...
{ "language": "en", "url": "https://stackoverflow.com/questions/103976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Specifying location of new inlineshape in Word VBA? I'm working on a document "wizard" for the company that I work for. It's a .dot file with a header consisting of some text and some form fields, and a lot of VBA code. The body of the document is pulled in as an OLE object from a separate .doc file. Currently, this...
{ "language": "en", "url": "https://stackoverflow.com/questions/103980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: looking for a tuple matching algorithm I need to implement an in-memory tuple-of-strings matching feature in C. There will be large list of tuples associated with different actions and a high volume of events to be matched against the list. List of tuples: ("one", "four") ("one") ("three") ("four", "five") ("six") ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How can I get full string value of variable in VC6 watch window? I'm wanting to get the full value of a char[] variable in the VC6 watch window, but it only shows a truncated version. I can copy the value from a debug memory window, but that contains mixed lines of hex and string values. Surely there is a better wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/104009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Localize Strings in Javascript I'm currently using .resx files to manage my server side resources for .NET. the application that I am dealing with also allows developers to plugin JavaScript into various event handlers for client side validation, etc.. What is the best way for me to localize my JavaScript messages a...
{ "language": "en", "url": "https://stackoverflow.com/questions/104022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: How to list the contents of a package using YUM? I know how to use rpm to list the contents of a package (rpm -qpil package.rpm). However, this requires knowing the location of the .rpm file on the filesystem. A more elegant solution would be to use the package manager, which in my case is YUM. How can YUM be used t...
{ "language": "en", "url": "https://stackoverflow.com/questions/104055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "347" }
Q: SQL Server 2005 - clicking on job->Properties yields "New Job" window Recently, I've started having a problem with my SQL Server 2005 client running on Windows XP where right-clicking on any job and selecting Properties instead brings me to the New Job window. Also, if I select "View History", I get the history for...
{ "language": "en", "url": "https://stackoverflow.com/questions/104057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: System.Convert.ToInt vs (int) I noticed in another post, someone had done something like: double d = 3.1415; int i = Convert.ToInt32(Math.Floor(d)); Why did they use the convert function, rather than: double d = 3.1415; int i = (int)d; which has an implicit floor and convert. Also, more concerning, I noticed in so...
{ "language": "en", "url": "https://stackoverflow.com/questions/104063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How do I troubleshoot performance problems with an Oracle SQL statement I have two insert statements, almost exactly the same, which run in two different schemas on the same Oracle instance. What the insert statement looks like doesn't matter - I'm looking for a troubleshooting strategy here. Both schemas have 99% t...
{ "language": "en", "url": "https://stackoverflow.com/questions/104066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How Do VB.NET Optional Parameters work 'Under the hood'? Are they CLS-Compliant? Let's say we have the following method declaration: Public Function MyMethod(ByVal param1 As Integer, _ Optional ByVal param2 As Integer = 0, _ Optional ByVal param3 As Integer = 1) As Integer Return param1 + param2 + para...
{ "language": "en", "url": "https://stackoverflow.com/questions/104068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it possible to tell if a user has viewed a portion of the page? As the title says on a website is it possible to tell if a user has viewed a portion of the page? A: Will moving that portion to a separate iframe work? then if they scroll to the bottom, issue a get request for a small image file..forgot the name o...
{ "language": "en", "url": "https://stackoverflow.com/questions/104076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Polymorphic Models in Ruby on Rails? For a project I'm working on, the store has two types of products - a real product and a group of products. For this discussion, let's call them "1 T shirt" and "a box of T shirts". For one t-shirt, I need to store the normal attributes - price, sku, size, color, description, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/104086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }