text
stringlengths
8
267k
meta
dict
Q: Stored procedures reverse engineering We're having problem with a huge number of legacy stored procedures at work. Do you guys recommend any tool the can help better understand those procedures? Some kind of reverse engineering that indentifies inter-procedure dependencies and/or procedure vs. tables dependencies. C...
{ "language": "en", "url": "https://stackoverflow.com/questions/69923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Get the current mouse coordinates I have an iMac, and I want to be able to turn off the monitor when I go to sleep,. Alas, the iMac has no switch for this. I do not want to put the iMac into sleep mode, i want to write a "expose" like application or service, which when the mouse is put into the upper left hand cor...
{ "language": "en", "url": "https://stackoverflow.com/questions/69926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way for a Swing GUI to communicate with domain logic? I have some domain logic implemented in a number of POJOs. I want to write a Swing user interface to allow the user to initiate and see the results of various domain actions. What's the best pattern/framework/library for communications between the UI and the...
{ "language": "en", "url": "https://stackoverflow.com/questions/69927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: WPF: Org Chart TreeView Conditional Formatting The company has the traditional complex organizational structure, defining the amount of levels using the letter 'n' rather than an actual number. I will try and express the structure I'm trying to achieve in mono-spaced font: Alice ,--------|-------,------,...
{ "language": "en", "url": "https://stackoverflow.com/questions/69928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hidden Markov Models I want to get started on HMM's, but don't know how to go about it. Can people here, give me some basic pointers, where to look? More than just the theory, I like to do a lot of hands-on. So, would prefer resources, where I can write small code snippets to check my learning, rather than just dry ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Set 4 Space Indent in Emacs in Text Mode I've been unsuccessful in getting Emacs to switch from 8 space tabs to 4 space tabs when pressing the TAB in buffers with the major mode text-mode. I've added the following to my .emacs: (setq-default indent-tabs-mode nil) (setq-default tab-width 4) ;;; And I have tried (set...
{ "language": "en", "url": "https://stackoverflow.com/questions/69934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "177" }
Q: PostgreSQL DbLink Compilation on Solaris 10 After successfully building dblink on solaris 10 using Sun C 5.9 SunOS_sparc 2007/05/03 and gmake. I ran gmake installcheck and got the following output: ========== running regression test queries ========== test dblink ... FAILED ===================...
{ "language": "en", "url": "https://stackoverflow.com/questions/69959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I implement a web user authentication system in python without POST? My university doesn't support the POST cgi method (I know, it's crazy), and I was hoping to be able to have a system where a user can have a username and password and log in securely. Is this even possible? If it's not, how would you do it with...
{ "language": "en", "url": "https://stackoverflow.com/questions/69979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Writing a Firefox plugin for parsing a custom client-side language I had an idea for a client-side language other than JavaScript, and I'd like to look into developing a Firefox plugin that would treat includes of this new language in a page, like <script type="newscript" src="path/script.ns" />, just as if it were ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Tabs and spaces in vim How do I prevent vim from replacing spaces with tabs when autoindent is on? An example: if I have two tabs and 7 spaces in the beginning of the line, and tabstop=3, and I press Enter, the next line has four tabs and 1 space in the beginning, but I don't want that... A: It is perhaps a good id...
{ "language": "en", "url": "https://stackoverflow.com/questions/69998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "75" }
Q: Using Lisp in C# As a lot of people pointed out in this question, Lisp is mostly used as a learning experience. Nevertheless, it would be great if I could somehow use my Lisp algorithms and combine them with my C# programs. In college my profs never could tell me how to use my Lisp routines in a program (no, not wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/70004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to Detect if I'm Compiling Code with a particular Visual Studio version? Is there any way to know if I'm compiling under a specific Microsoft Visual Studio version? A: By using the _MSC_VER macro. A: _MSC_VER and possibly _MSC_FULL_VER is what you need. You can also examine visualc.hpp in any recent boost inst...
{ "language": "en", "url": "https://stackoverflow.com/questions/70013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "277" }
Q: Is there a cross-language TDD solution? I want to write a simple colour management framework in C#, Java and AS3. I only want to write the unit tests once though, rather than recreating the unit tests in JUnit, FlexUnit and say NUnit. I have in mind the idea of say an xml file that defines manipulations of "instanc...
{ "language": "en", "url": "https://stackoverflow.com/questions/70053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: When should you use java stored procedures with an Oracle database ... what are the drawbacks? PL/SQL is not my native tongue. Oracle supports writing stored procedures in Java. What are the advantages of doing this over writing the stored procedures in PL/SQL A: The main advantage is access to the API's and langua...
{ "language": "en", "url": "https://stackoverflow.com/questions/70072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Ruby exception inheritance with dynamically generated classes I'm new to Ruby, so I'm having some trouble understanding this weird exception problem I'm having. I'm using the ruby-aaws gem to access Amazon ECS: http://www.caliban.org/ruby/ruby-aws/. This defines a class Amazon::AWS:Error: module Amazon module AWS ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Visually customize autocomplete in Wicket How can I visually customize autocomplete fields in Wicket (change colors, fonts, etc.)? A: You can use CSS to modify the look of this component. For the Ajax auto-complete component in 1.3 the element you want to override is div.wicket-aa, so for example you might do: div...
{ "language": "en", "url": "https://stackoverflow.com/questions/70090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I programmatically convert mp3 to an itunes-playable aac/m4a file? I've been looking for a way to convert an mp3 to aac programmatically or via the command line with no luck. Ideally, I'd have a snippet of code that I could call from my rails app that converts an mp3 to an aac. I installed ffmpeg and libfaa...
{ "language": "en", "url": "https://stackoverflow.com/questions/70096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it bad to load many managed DLL's without using any types in them? Background: At my company we are developing a bunch applications that are using the same core dll's. These dll's are using Spring.net's IoC-container to wire things up (auto-wiring). All applications are using the same spring configuration file, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/70098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: DropDownList doesn't postback on SelectedIndexChanged I'm writing an ASP.Net webform with some DropDownList controls on it. Then user changes selected item in one of dropdowns, ASP.Net doesn't seem to handle SelectedIndexChanged event until form is submitted with a 'Submit' button click. How do I make my dropdowns h...
{ "language": "en", "url": "https://stackoverflow.com/questions/70109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Re-using soft deleted records If I have a table structure that is: code, description, isdeleted where code is the primary key. The user creates a record, then later on deletes it. Because I am using soft deletes the isdeleted will be set to true. Then in my queries I would be doing a select with the where clause a...
{ "language": "en", "url": "https://stackoverflow.com/questions/70123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What do the flags in a Maildir message filename mean? I'm cleaning up some old Maildir folders, and finding messages with names like: 1095812260.M625118P61205V0300FF04I002DC537_0.redoak.cise.ufl.edu,S=2576:2,ST They don't show up in my IMAP client, so I presume there's some semaphore indicating the message already g...
{ "language": "en", "url": "https://stackoverflow.com/questions/70140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Merge multiple xslt stylesheets I have a xslt stylesheet with multiple xsl:imports and I want to merge them all into the one xslt file. It is a limitation of the system we are using where it passes around the xsl stylesheet as a string object stored in memory. This is transmitted to remote machine where it performs ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What attributes help runtime .Net performance? I am looking for attributes I can use to ensure the best runtime performance for my .Net application by giving hints to the loader, JIT compiler or ngen. For example we have DebuggableAttribute which should be set to not debug and not disable optimization for optimal pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/70150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Whats the best way to store and retrive postal addresses using a sql server database and the .NET framework? I'm looking for a common pattern that will store and access global addresses in database. Components or other technologies can be used. The following criteria must be adheard to... * *Every line of the add...
{ "language": "en", "url": "https://stackoverflow.com/questions/70153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to read values from numbers written as words? As we all know numbers can be written either in numerics, or called by their names. While there are a lot of examples to be found that convert 123 into one hundred twenty three, I could not find good examples of how to convert it the other way around. Some of the cav...
{ "language": "en", "url": "https://stackoverflow.com/questions/70161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: How to highlight source code in HTML? I want to highlight C/C++/Java/C# etc source codes in my website. How can I do this? Is it a CPU intensive job to highlight the source code? A: Personally, I prefer offline tools: I don't see the point of parsing the code (particularly large ones) over and over, for each served...
{ "language": "en", "url": "https://stackoverflow.com/questions/70169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: In a client-server application: How to send to the DB the user's application password? I have an Java desktop application which connects directly with the DB (an Oracle). The application has multiple user accounts. What is the correct method to send the user's password (not DB password) over the network? I don't wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/70170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Visual Basic 6.0 to VB.NET declaration How do I declare "as any" in VB.NET, or what is the equivalent? A: The closest you can get is: Dim var as Object It's not exactly the same as VB6's as Any (which stores values in a Variant) but you can store variables of any type as Object, albeit boxed. A: VB.NET does not su...
{ "language": "en", "url": "https://stackoverflow.com/questions/70197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the purpose of META-INF? In Java, you often see a META-INF folder containing some meta files. What is the purpose of this folder and what can I put there? A: Generally speaking, you should not put anything into META-INF yourself. Instead, you should rely upon whatever you use to package up your JAR. This i...
{ "language": "en", "url": "https://stackoverflow.com/questions/70216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "349" }
Q: Multithreading or green threading in actionscript? I was wondering if there are any code or class libraries out there on how to implement multithreading or "green threading" in ActionScript. As you've might seen, Scott Peterson is developing some kind of toolset, but I haven't found any more info on this other than ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Compiling gdb for armv6 I am trying to build gdb for armv6 architecture. I will be compiling this package on a Fedora Linux-Intel x86 box. I read the process of installing the gdb, like * *Download the source pachage *run configure -host *make But I got lost in the process because I was not able to make out wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/70258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Silverlight 2 Drag and Drop tutorials I'm wondering if people can suggest the best tutorial that will walk me through the best way to do Drag and Drop with control collision detection etc, using MS Silverlight V2. I've done the Jesse Liberty tutorials at Silverlight.net, and they were a good introduction, but I'm lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/70269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Single Form Hide on Startup I have an application with one form in it, and on the Load method I need to hide the form. The form will display itself when it has a need to (think along the lines of a outlook 2003 style popup), but I can' figure out how to hide the form on load without something messy. Any suggestions...
{ "language": "en", "url": "https://stackoverflow.com/questions/70272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "81" }
Q: When should you use standard html tags/inputs and when should you use the asp.net controls? As I put together each asp.net page It's clear that most of the time I could use the standard HTML tags just as easily as the web forms controls. When this is the case what is the lure of the webforms controls? A: HTML cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/70292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you implement GetHashCode for structure with two string, when both strings are interchangeable I have a structure in C#: public struct UserInfo { public string str1 { get; set; } public string str2 { get; set; } } The only rule is that UserInfo(str1="AA", str2="BB")...
{ "language": "en", "url": "https://stackoverflow.com/questions/70303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: What is the best way to integrate TFS version control Working on implementing TFS throughout our organization. It is easy to integrate with .NET projects and any platform that uses Eclipse or a derivative of Eclipse for editing. What's the best way to use TFS version control with Xcode (now that I find out we need ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: rake db:migrate doesn't detect new migration? Experienced with Rails / ActiveRecord 2.1.1 * *You create a first version with (for example) ruby script\generate scaffold product title:string description:text image_url:string *This create (for example) a migration file called 20080910122415_create_products.rb *Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/70318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Java inner class and static nested class What is the main difference between an inner class and a static nested class in Java? Does design / implementation play a role in choosing one of these? A: Ummm… An inner class is a nested class… Do you mean anonymous class and inner class? Edit: If you actually meant inner ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2040" }
Q: Zlib-compatible compression streams? Are System.IO.Compression.GZipStream or System.IO.Compression.Deflate compatible with zlib compression? A: I've used GZipStream to compress the output from the .NET XmlSerializer and it has worked perfectly fine to decompress the result with gunzip (in cygwin), winzip and anothe...
{ "language": "en", "url": "https://stackoverflow.com/questions/70347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: ASP.NET Custom Control Styling I am in the process of beginning work on several ASP.NET custom controls. I was wondering if I could get some input on your guys/girls thoughts on how you apply styling to your controls. I would rather push it so CSS, so for the few controls I have done in the past, I have simply stuck...
{ "language": "en", "url": "https://stackoverflow.com/questions/70361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: cvs error on checkin When trying to commit to a cvs branch after adding a new file I get this error Assertion failed: key != NULL, file hash.c, line 317 Any idea how to fix it so I can check my code in? Both server and client are Linux and there are pre-commits involved. A: sleep-er writes: Not sure what the iss...
{ "language": "en", "url": "https://stackoverflow.com/questions/70366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Asp.net MVC routing ambiguous, two paths for same page I'm trying out ASP.NET MVC routing and have of course stumbled across a problem. I have a section, /Admin/Pages/, and this is also accessible through /Pages/, which it shouldn't. What could I be missing? The routing code in global.asax: public static void Regist...
{ "language": "en", "url": "https://stackoverflow.com/questions/70371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Remove VSMacros80 directory Is there any way to prevent Visual Studio from creating a VSMacros80 folder in my default project directory? A: Sorry, I was wrong. This directory will allways be created. You can only set it's path in the Options/Projects and Solutions/General screen in the Projects location. But be car...
{ "language": "en", "url": "https://stackoverflow.com/questions/70377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Icons on menus of MFC Feature Pack classes There are three places where menus show up in the new MFC functionality (Feature Pack): * *In menu bars (CMFCMenuBar) *In popup menus (CMFCPopupMenu) *In the 'dropdown menu' version of CMFCButton I want to put icons (high-color and with transparancy) in the menus in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the Simplest Tomcat/Apache Connector (Windows)? I have apache 2.2 and tomcat 5.5 running on a Windows XP machine. Which tomcat/apache connector is the easiest to set up and is well documented? A: mod_proxy_ajp would be the easiest to use if you are using Apache 2.2. It is part of the Apache distribution so...
{ "language": "en", "url": "https://stackoverflow.com/questions/70389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a distributed VCS that can manage large files? Is there a distributed version control system (git, bazaar, mercurial, darcs etc.) that can handle files larger than available RAM? I need to be able to commit large binary files (i.e. datasets, source video/images, archives), but I don't need to be able to dif...
{ "language": "en", "url": "https://stackoverflow.com/questions/70392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How should Rails models containing database and non-database datasources be broken up? So I'm working on a Rails app to get the feeling for the whole thing. I've got a Product model that's a standard ActiveRecord model. However, I also want to get some additional product info from Amazon ECS. So my complete model ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/70397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is quicksort better than mergesort? I was asked this question during an interview. They're both O(nlogn) and yet most people use Quicksort instead of Mergesort. Why is that? A: Actually, QuickSort is O(n2). Its average case running time is O(nlog(n)), but its worst-case is O(n2), which occurs when you run it o...
{ "language": "en", "url": "https://stackoverflow.com/questions/70402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "405" }
Q: Does C# have a String Tokenizer like Java's? I'm doing simple string input parsing and I am in need of a string tokenizer. I am new to C# but have programmed Java, and it seems natural that C# should have a string tokenizer. Does it? Where is it? How do I use it? A: I think the nearest in the .NET Framework is st...
{ "language": "en", "url": "https://stackoverflow.com/questions/70405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: Intermittent error when attempting to control another database I have the following code: Dim obj As New Access.Application obj.OpenCurrentDatabase (CurrentProject.Path & "\Working.mdb") obj.Run "Routine" obj.CloseCurrentDatabase Set obj = Nothing The problem I'm experimenting is a pop-up that tells me Access can't...
{ "language": "en", "url": "https://stackoverflow.com/questions/70417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Which ruby interpreter are you looking forward to? There are multiple Ruby implementations in the works right now. Which are you looking forward to and why? Do you actively use a non-MRI implementation in production? Some of the options include: * *Ruby MRI (original 1.8 branch) *YARV (official 1.9) *JRuby *Rub...
{ "language": "en", "url": "https://stackoverflow.com/questions/70446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is it worth encrypting email addresses in the database? I'm already using salted hashing to store passwords in my database, which means that I should be immune to rainbow table attacks. I had a thought, though: what if someone does get hold of my database? It contains the users' email addresses. I can't really hash ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: Which Scripting language is best? For writing scripts for process automisation in Linux platform, which scripting language will be better? Shell script, Perl or Python or is there anything else? I am new to all of them. So, am just thinking to which one to go for? A: When choosing a scripting language to help autom...
{ "language": "en", "url": "https://stackoverflow.com/questions/70453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Cross-server SQL I want to port data from one server's database to another server's database. The databases are both on a different mssql 2005 server. Replication is probably not an option since the destination database is generated from scratch on a [time interval] basis. Preferebly I would do something like insert...
{ "language": "en", "url": "https://stackoverflow.com/questions/70455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Can we achieve 100% decoupling? Can we achieve 100% decoupling between components of a system or different systems that communicate with each other? I don't think its possible. If two systems communicate with each other then there should be some degree of coupling between them. Am I right? A: If components are 100%...
{ "language": "en", "url": "https://stackoverflow.com/questions/70460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: (no) Properties in Java? So, I have willfully kept myself a Java n00b until recently, and my first real exposure brought about a minor shock: Java does not have C# style properties! Ok, I can live with that. However, I can also swear that I have seen property getter/setter code in Java in one codebase, but I cannot ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: How do you unit-test code that interacts with and instantiates third-party COM objects? One of the biggest issues currently holding me back from diving full steam into unit testing is that a really large percentage of the code I write is heavily dependent on third-party COM objects from different sources that also t...
{ "language": "en", "url": "https://stackoverflow.com/questions/70482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Mono's DateTime Serialization if you uses Mono Remoting on Linux, what's your work-around for DateTime marshalling incompatibility between Mono and .NET Remoting? i'm using WinForms on Windows using .NET 2.0 runtime, using Remoting on Linux using Mono. i cannot yet use Mono runtime on both ends as Mono's DataGridVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/70487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Exposing nested arrays to COM from .NET I have a method in .NET (C#) which returns string[][]. When using RegAsm or TlbExp (from the .NET 2.0 SDK) to create a COM type library for the containing assembly, I get the following warning: WARNING: There is no marshaling support for nested arrays. This warning results i...
{ "language": "en", "url": "https://stackoverflow.com/questions/70501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the easiest way to wrap a raw .aac file into a .m4a container This question is overflow from the following question: How do I programmatically convert mp3 to an itunes-playable aac/m4a file? Anyway, I learned how to create an aac file and then i found out that an aac is not just an m4a file with a different ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: What is the correct way of getting the start and end date of a ISO week number in TSQL? I have the ISO week and year but how do I correctly convert that into two dates representing the start and end of that week? A: There are a couple of strategies to do that: * *Start of week function *End of week function A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/70516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How does a Rails developer talk to Flex front ends? I'm looking at Rails development as a backend to a Flex application and am trying to figure out the communication layer between the Rails app and the Flash Player. All of the things I am finding suggest using SOAP web services to communicate. However, Flash suppor...
{ "language": "en", "url": "https://stackoverflow.com/questions/70524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why are Python's 'private' methods not actually private? Python gives us the ability to create 'private' methods and variables within a class by prepending double underscores to the name, like this: __myPrivateMethod(). How, then, can one explain this >>>> class MyClass: ... def myPublicMethod(self): ... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "810" }
Q: Counting occurrences in Vim without marking the buffer changed In order to know how many times a pattern exists in current buffer, I do: :%s/pattern-here/pattern-here/g It gives the number of occurrences of the pattern, but is obviously cumbersome and also has the side-effect of setting the 'changed' status. Is the...
{ "language": "en", "url": "https://stackoverflow.com/questions/70529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "119" }
Q: Cheat single inheritance in Java? I have heard there is a way to cheat single inheritance and implement multiple inheritance in Java. Does anyone know how to implement this(with out using interface)? Just out of curiosity ;-) A: SingleMultiple inheritance is not supported by Java, instead it has got interfaces to s...
{ "language": "en", "url": "https://stackoverflow.com/questions/70537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to conduct blackbox testing on an AJAX application? What's the best, crossplatform way to perform blackbox tests on AJAX web applications? Ideally, the solution should have the following attributes: * *Able to integrate into a continuous integration build loop *Cross platform so I you can run it on Windows l...
{ "language": "en", "url": "https://stackoverflow.com/questions/70554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I compare phrases for similarity? When entering a question, stackoverflow presents you with a list of questions that it thinks likely to cover the same topic. I have seen similar features on other sites or in other programs, too (Help file systems, for example), but I've never programmed something like this m...
{ "language": "en", "url": "https://stackoverflow.com/questions/70560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What's the best online source to learn Perl? I am new to any scripting language. But, still I worked on scripting a bit like tailoring other scripts to work for my purpose. For me, what is the best online resource to learn Perl? A: The perldoc documentation is the best source for understanding how to use the langua...
{ "language": "en", "url": "https://stackoverflow.com/questions/70573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Virtual Constructors Is there any need of Virtual Constructors? If so can any one post a scenario? A: If you are talking about virtual destructors in C++ (there isn't any such thing as virtual constructors) then they should always be used if you are using your child classes polymorphically. class A { ~A(); } cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/70575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best online resource to learn Python? I am new to any scripting language. But, Still I worked on scripting a bit like tailoring other scripts to work for my purpose. For me, What is the best online resource to learn Python? [Response Summary:] Some Online Resources: http://docs.python.org/tut/tut.html - Beginners ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: What are valid values for the id attribute in HTML? When creating the id attributes for HTML elements, what rules are there for the value? A: No spaces, and it must begin with at least a character from a to z and 0 to 9. A: HTML5: Permitted Values for ID & Class Attributes As of HTML5, the only restrictions on the...
{ "language": "en", "url": "https://stackoverflow.com/questions/70579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2251" }
Q: Logging image downloads I'm trying to find a way of finding out who is downloading what image from an image gallery. Users can download using a button beside the thumbnail or right click and use the "save link as" Is it possible to relate a user session or ID to a "save link as" action from all browsers using either...
{ "language": "en", "url": "https://stackoverflow.com/questions/70600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the minimum client footprint required to connect C# to an Oracle database? I have successfully connected to an Oracle database (10g) from C# (Visual Studio 2008) by downloading and installing the client administration tools and Visual Studio 2008 on my laptop. The installation footprint for Oracle Client too...
{ "language": "en", "url": "https://stackoverflow.com/questions/70602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "71" }
Q: What must I know to use GNU Screen properly? I've just introduced a friend to GNU Screen and they're having a hard time getting used to it. That makes me think about the essential things he needs to know about the excellent Screen utility, the same things that you'd think worthwhile to teach someone, a beginner, fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/70614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "109" }
Q: Refactoring two basic classes How would you refactor these two classes to abstract out the similarities? An abstract class? Simple inheritance? What would the refactored class(es) look like? public class LanguageCode { /// <summary> /// Get the lowercase two-character ISO 639-1 language code. /// </summa...
{ "language": "en", "url": "https://stackoverflow.com/questions/70625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting Excel Number Format via xlcFormatNumber in an xll I'm trying to set the number format of a cell but the call to xlcFormatNumber fails leaving the cell number format as "General". I can successfully set the value of the cell using xlSet. XLOPER xRet; XLOPER xRef; //try to set the format of cell A1 xRef.xlty...
{ "language": "en", "url": "https://stackoverflow.com/questions/70643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Python Authentication API I'm looking for a python library that will help me to create an authentication method for a desktop app I'm writing. I have found several method in web framework such as django or turbogears. I just want a kind of username-password association stored into a local file. I can write it by mys...
{ "language": "en", "url": "https://stackoverflow.com/questions/70653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is GNU Screen? What is GNU Screen? A: What is GNU Screen? Great! Erm, a slightly more useful answer: it allows you to run multiple console applications, or commands, in one terminal. Kind of like a tabbed terminal emulator. In fact, that's exactly what it is (just not done with the regular GUI toolkits) Why ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: VMWare Server: Best way to backup images What is the best way to backup VMWare Servers (1.0.x)? The virtual machines in question are our development environment, and run isololated from the main network (so you can't just copy data from virtual to real servers). The image files are normally in use and locked when t...
{ "language": "en", "url": "https://stackoverflow.com/questions/70668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Python Psycopg error and connection handling (v MySQLdb) Is there a way to make psycopg and postgres deal with errors without having to reestablish the connection, like MySQLdb? The commented version of the below works with MySQLdb, the comments make it work with Psycopg2: results = {'felicitas': 3, 'volumes': 8, '...
{ "language": "en", "url": "https://stackoverflow.com/questions/70681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the VTable Layout and VTable Pointer Location in C++ Objects in GCC 3.x and 4.x? I am looking for details of the VTable structure, order and contents, and the location of the vtable pointers within objects. Ideally, this will cover single inheritance, multiple inheritance, and virtual inheritance. Reference...
{ "language": "en", "url": "https://stackoverflow.com/questions/70682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Getting Generated HTML in a WCF service In the WCF application that I am working on, I need to access the generated source of a particular webpage (after all the AJAX calls on the page are made). I have tried using System.Net.WebRequest but it just brings me back the original source of the page. Is there a way to ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/70685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is an efficient way to implement a singleton pattern in Java? What is an efficient way to implement a singleton design pattern in Java? A: Thread safe in Java 5+: class Foo { private static volatile Bar bar = null; public static Bar getBar() { if (bar == null) { synchronized(Foo.cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/70689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "849" }
Q: Task Scheduler Problem Starting MSSQLSERVER I am trying to create a Task Scheduler task to start my SQL Server 2005 instance every morning, because something stops it every night. This is a temporary solution until I can diagnose the stoppage. I created a task to run under my admin user, and to start the program, c...
{ "language": "en", "url": "https://stackoverflow.com/questions/70694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to write a linter? In my day job I, and others on my team write a lot of hardware models in Verilog-AMS, a language supported primarily by commercial vendors and a few opensource simulator projects. One thing that would make supporting each others code more helpful would be a LINTER that would check our code fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/70705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Oracle Client Upgrade from 9 to 10 Last Friday where I work, an oracle client was upgarded and our IIS server from version 9 to version 10. Now that its on version 10, we are seeing a lot of connections being open up to the database. It is opening up so many connections that we cannot log onto the database using too...
{ "language": "en", "url": "https://stackoverflow.com/questions/70721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Packaging up Tomcat In my job we have to deploy an application on various environments. It's a standard WAR file which needs a bit of configuration, deployed on Tomcat 6. Is there any way of creating a 'deployment package' with Tomcat so that you just extract it and it sets up Tomcat as well as your application? I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/70724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you keep search engines from indexing text ads? Is there any way to keep search engines from indexing text ads? These are basically stylized links. I have thought about generating images with text or using javascript to write them into a DIV. What is the best and most accepted way? A: One way is to use iF...
{ "language": "en", "url": "https://stackoverflow.com/questions/70728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Implements several interfaces with conflict in signatures Lasty, I tried to implements an hybrid structure in Java, something that looks like: public class MapOfSet<K, V extends HasKey<K>> implements Set<V>, Map<K, Set<V>> Where HasKey is the following interface: public interface HasKey<K> { public K getKey(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I list Oracle Apps profile options in PL/SQL? I administrate several Oracle Apps environment, and currently check profile options in lots of environments by loading up forms in each environment, and manually checking each variable, which requires a lot of time. Is there a snippet of code which will list profi...
{ "language": "en", "url": "https://stackoverflow.com/questions/70742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open-source radix/mtrie implementation in C? I intend to use RADIX / MTRIE as my preferred data-structure for a routing implementation. Is there a decent open source implementation available (apart from freebsd-net) which I can use for my purpose, or do I need to write one myself? A: There is a radix-tree implemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/70753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Do you use the Inductive User Interface pattern in Windows Forms? And if you do, can you give some background information on the implementation and the reasons for implementing this pattern? The pattern is described in more detail in these articles: * *Microsoft Inductive User Interface Guidelines *IUIs and Web-...
{ "language": "en", "url": "https://stackoverflow.com/questions/70755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the difference between precedence, associativity, and order? This confusion arises as most people are trained to evaluate arithmetic expressions as per PEDMAS or BODMAS rule whereas arithmetic expressions in programming languages like C# do not work in the same way. What are your takes on it? A: Precedence ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Does anyone know of a way of hiding a column in an asp.net listview? I know you can put <% if %> statements in the ItemTemplate to hide controls but the column is still there. You cannot put <% %> statements into the LayoutTemplate which is where the column headings are declared, hence the problem. Does anyone know ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What is the license for unlicensed material? Suppose I've found a “text” somewhere in open access (say, on public network share). I have no means to contact the author, I even don't know who is the author. What can I legally do with such “text”? Update: I am not going to publish that “text”, but rather learn from it...
{ "language": "en", "url": "https://stackoverflow.com/questions/70762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: pthread_cond_wait versus semaphore What are the pros / cons of using pthread_cond_wait or using a semaphore ? I am waiting for a state change like this : pthread_mutex_lock(&cam->video_lock); while(cam->status == WAIT_DISPLAY) { pthread_cond_wait(&cam->video_cond, &cam->video_lock); } pthread_mutex_unlock(&cam->...
{ "language": "en", "url": "https://stackoverflow.com/questions/70773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: How do I quickly do something in Rmagick to test it work I need to be able to quickly convert an image (inside a rails controller) so that the hosting company using managing our application can quickly test at any time to ensure that rmagick is not only successfully installed, but can be called throgh the rails stia...
{ "language": "en", "url": "https://stackoverflow.com/questions/70779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What do you think of Model-driven Software Development? I'm really interested to hear what you think about Model-driven Software Development for Java and/or .NET. Does it save time? Does it improve quality? A: MDA is a bit of an overloaded concept. Sometimes it means turning UML or another type of diagrams in to ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/70781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to get a http file metadata? How to get a file's creation date or file size, for example this Hello.jpg at http://www.mywebsite.com/now/Hello.jpg(note: This URL does not exist)? The purpose of this question is to make my application re-download the files from the any website when it has detected that the website...
{ "language": "en", "url": "https://stackoverflow.com/questions/70782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to use Ext JS as part of Java / Spring / Hibernate based web application? We want to try Ext JS on new project. Is there any well-known best practice for integrating Ext JS with server side Java (Spring/Hibernate/JS) application? Is DWR a good choice for that? A: My team has been using Ext with...
{ "language": "en", "url": "https://stackoverflow.com/questions/70785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }