text
stringlengths
8
267k
meta
dict
Q: Simple Java MIDI example not producing any sound This simple code is not producing any sound on a couple of machines that I've used to test it. I'm running the code from within Eclipse, but I've also tried using the command line to no avail. public static void main(String[] args) { try { Synthesizer sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/380103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to check if the user and password works without making a connection to a database How do I check if a user/password pair works without actually making a connection to the database? The DBMS in question is MySQL. That was my original question. Since most people get this question wrong, then I should rephrase it a...
{ "language": "en", "url": "https://stackoverflow.com/questions/380114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I get the native "look and feel" using WPF? I've just started developing a WPF application. This is not my first WPF app, but it will be the first that needs some polish. I know quite a bit about the "plumbing" of WPF such as binding, etc., but very little about how to polish it up. I don't need a snazzy UI. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What extra steps do you take when creating MSI installers for Vista? I have a very simple Setup project that copies three dlls into the GAC. That's all it has to do. It works fine in XP, but on a Vista machine, it errors out stating that it cannot write to the file and to check permissions. I'm sure this has to do w...
{ "language": "en", "url": "https://stackoverflow.com/questions/380124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MSSQL -- Create View with PK My create view code like this create VIEW [dbo].[vw_test] AS SELECT 'B' AS rtype, ID FROM TB_A UNION ALL SELECT 'V' AS rtype, ID FROM TB_B GO How to create a PK with. I need to do full-text search. Tks A: Normally, you could create a unique clustered index on a view, but not an...
{ "language": "en", "url": "https://stackoverflow.com/questions/380128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Programatically execute a SPAN's Class from DOM Element? This is a .NET program, and I am accessing the HTMLElements individually. There are pieces of markup that have a "More..." / "Less..." in a SPAN tag, that when Clicked will show more/less of the preceding content, A code snippet: <dd> Product Manager, Busine...
{ "language": "en", "url": "https://stackoverflow.com/questions/380130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which iPhone "Active SDK" version should I use? The current (as of Dec 2008) iPhone SDK allows me to pick between 3 versions when I want to build an app: 2.0, 2.1, 2.2. -- I'll ignore 2.1 below. My assumptions: * *2.2 has more API functions available than 2.0, *2.2 has fixed bugs since 2.0, *2.2 is backward-com...
{ "language": "en", "url": "https://stackoverflow.com/questions/380138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I convert docx or wordml xml files to xsl-fo? I've been looking for a method to convert docx or wordml xml to xsl-fo. I read this post: What is the best XSLT engine for Perl? but I'm having exceptional problems getting apache-fop going. I was able to download the bins and run it locally but the formatting wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/380139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cocoa, Stomp, ActiveMQ, iPhone, SSL, & AsyncSocket Help Needed Well, maybe not with all 4 things, but here's my situation: I have an ActiveMQ backend (running on my desktop Mac). It's a stock Apache ActiveMQ server I have which I am basically using as an echo server to tail the logs and debug my client. The client i...
{ "language": "en", "url": "https://stackoverflow.com/questions/380145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: error LNK2001 and error LNK2019 (C++) -- Requesting some learning about these errors Alright, so I just finished my last compiler error (so I thought) and these errors came up: 1>GameEngine.obj : error LNK2001: unresolved external symbol "public: static double WeaponsDB::PI" (?PI@WeaponsDB@@2NA) 1>Component.obj : er...
{ "language": "en", "url": "https://stackoverflow.com/questions/380153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Advice on separating projects in .NET I’m looking for some advice on separating projects in .NET. I’m building a large windows form app (80 tables) and I’ve only got a couple of projects. They’re becoming quite big. I noticed the problem when I saw the list of references the other day. This is the first time I’ve cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/380162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the Main Job of Logical Link Layer in Layer 2 I am curious to know what Logical Link Layer does. What is its main significance? Is it part of Software? I am looking for some details of LLC. A: The LLC sublayer is primarily concerned with: * Multiplexing protocols transmitted over the MAC layer (when trans...
{ "language": "en", "url": "https://stackoverflow.com/questions/380163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I calculate the inverse of a matrix? Can somebody show me how to calculate the inverse of a matrix? I'm using VC++ 6.0 A: MFC is not a tool for numerical methods. Calculating the inverse of an nxn matrix is simple. I'll give you the algorithm: /* I took this from my implementation of CMatrix * It works...
{ "language": "en", "url": "https://stackoverflow.com/questions/380165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Limiting number of users accessing asp.net website What is the best way to limit the number of (concurrent) users accessing a web application that any one can introduce for selling website/application to client and how to increase the number of users accessing it remotely? A: If you use the in-process session state...
{ "language": "en", "url": "https://stackoverflow.com/questions/380167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: regular expression for finding parts of a string within another I have two strings: the first's value is "catdog" and the second's is "got". I'm trying to find a regex that tells me if the letters for "got" are in "catdog". I'm particularly looking to avoid the case where there are duplicate letters. For example, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Reading syslog output on a Mac I have a program that was written for linux and I am trying to build and run it on my MacOS 10.5 machine. The program builds and runs without problem, however it makes many calls to syslog. I know that syslogd is running on my mac, however I can't seem to find where my syslog calls are...
{ "language": "en", "url": "https://stackoverflow.com/questions/380172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: Next and Previous links using Linq to SQL I need to add "Next" and "Previous" links to a Web page displaying messages in date order. A SQL table holds the MessageNumber, Subject and Date. Currently I am using a stored procedure that uses the ROW_NUMBER function: with MessageList AS ( select msg_num, row_number() ove...
{ "language": "en", "url": "https://stackoverflow.com/questions/380182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wrapping text around a div with CSS I am trying to get a text to wrap around a div in my XHTML. My XHTML looks like so.... <div id="cont-content"> <p>content</p> <p>more content</p> <div id="content-sidebar"> BLALALALALLAAL </div> </div> And my CSS looks like... #content-sidebar { display: block; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: How to pass a function as a parameter in C#? Is it possible to pass a function as a parameter in C#? I can do it using the Func or Action classes, but this forces me to declare the entire function signature at once. When I try to use Delegate, I get a compile error saying it can't convert a method group to a Delegat...
{ "language": "en", "url": "https://stackoverflow.com/questions/380198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: Are there Perl modules that can't be used in CGI? I had a recent problem where Tie::File proved the best answer I could work with for a Perl program. I'm at a point where I'm ready to work with CGI, and I need to ask: are there Perl modules that can't be used in CGI, especially that Tie::File? If there are any compl...
{ "language": "en", "url": "https://stackoverflow.com/questions/380203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WPF problems refreshing textblock bound to console.stdout I am building a small wpf app in C#. When a button gets clicked a third party dll function constructs a tree like object. This object is bound to a treeview. This works fine but takes a bit of time to load. As the dll function constructs the object it prin...
{ "language": "en", "url": "https://stackoverflow.com/questions/380215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Correct way to maximize form in delphi (without caption) I have a form without caption, using on double click to maximize : Code looks like this: procedure xxxxxx; begin if Form1.WindowState=wsNormal then begin Form1.WindowState:=wsMaximized; Form1.SetBounds(0,0,screen.Width,screen.Height...
{ "language": "en", "url": "https://stackoverflow.com/questions/380217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to hide controller name in Url? How to hide controller name in Url? I use the ASP.NET MVC. The original url is: http://www.sample.com/Users.mvc/UserDetail/9615 The "Users" is controller name, the "UserDetail" is action name, and the "9615" is UserId. How can I hide the controller name and action name in the url...
{ "language": "en", "url": "https://stackoverflow.com/questions/380221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Select based on Link Field I feel like an idiot asking this... Table 1: users id serial person integer username char(32) Table 2:persons id serial name char(16) Can I run a query that returns the name field in persons by providing the username in users? users 1 | 1 | larry123 persons 1 | larry 2 | curly SQ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to validate_presence_of with boolean logic? Suppose I am entering validation code into my model of multi-language publication database. The database needs either an English or a Japanese title for a particular journal. So I need to validate_presence_of at least one of the two. Right now I can easily check that b...
{ "language": "en", "url": "https://stackoverflow.com/questions/380227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What exactly IS a unit test? Same as title! EDIT: Almost exactly the same as, and would be contextually equal to What is unit testing? A: Copy and Paste: Unit testing From Wikipedia, the free encyclopedia (Redirected from Unit test) Jump to: navigation, search In computer programming, unit testing is a me...
{ "language": "en", "url": "https://stackoverflow.com/questions/380237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set selected index of dropdown to 0 when text of textbox is changed? I am using a dropdown to populate a textbox. But if preferred value is not present in dropdown then user directaly enter value in that textbox. If user selects value from dropdown first and then he don't want that value and he types another...
{ "language": "en", "url": "https://stackoverflow.com/questions/380240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Dynamic Floating window by javascript I want to build a dynamic floating window with close button at corner. Is it possible, and also i want to add some content dynamically into that window. Please help me.. It should be in javascript.. Better without AJAX.. Thanks in Advance A: What you are looking for is called ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Serial port communication in VC++ when reading data through serial port VARIANT data; BSTR k; if(m_mscom.GetCommEvent() == 2) { data = m_mscom.GetInput(); k = data.bstrVal; } What is BSTR k; and what do you mean k=data.bstrVal? What is bstrVal? A: BSTR and VARIANT are data types used in COM. Act...
{ "language": "en", "url": "https://stackoverflow.com/questions/380257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should I put forum threads into my sitemap? I have a website about to launch with a forum facility. Should I put each thread into my sitemap.xml file, or will Google just find the links to each thread via the forum itself? Don't worry: it doesn't require registration to read the forum. If yes, how best to keep it up...
{ "language": "en", "url": "https://stackoverflow.com/questions/380258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Most Important Features for a CMS Suppose someone is building you a CMS (Content Management System) from scratch. What are the most important features to include and why? A: Not mentioned already: A CMS system should easily integrate into an existing software infrastucture, so interoparability is a strong requirem...
{ "language": "en", "url": "https://stackoverflow.com/questions/380259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: asp.net mvc - static constructor i want ask some question about asp.net mvc * *Is static constructor will init every user request? *Is static data share for every user? A: This answer is completely generic and not only for ASP.NET MVC. * *Static constructors will run at most once per application domain. It'...
{ "language": "en", "url": "https://stackoverflow.com/questions/380267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C#'s edge over VB What in C#.NET makes it more suitable for some projects than VB.NET? Performance?, Capabilities?, Libraries/Components?, Reputation?, Reliability? Maintainability?, Ease? Basically anything C# can do, that is impossible using VB, or vice versa. Things you just have to consider when choosing C#/VB ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to play .mp3 files from VB6 without using an installed player? I'd like to play mp3 files (b/c they compress smaller than .wav's) from a vb6 app but without needing any other player installed. Any suggestions? A: The easiest way to play an MP3 in VB6 is using the MCI in windowsmultimedia (winmm) functions. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/380287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best online resource for 3D rendering in JavaScript? First a little intro: Last year i wrote this http://dragan.yourtree.org/code/canvas-3d-graph/ Now, i want to make complete rewrite of it, because that old version have some limitations, for example: sometimes it happens that bars are not visible, becau...
{ "language": "en", "url": "https://stackoverflow.com/questions/380316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Mercurial API for Java? Is there a plain API to access Mercurial repositories from Java? There are plugins for Netbeans and Eclipse, but unlike their Subversion counterparts, they do not use a common lower-level library but bring their own wrappers to call out to the Mercurial binary. Calling the binary would be oka...
{ "language": "en", "url": "https://stackoverflow.com/questions/380321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Editing the LINQ to SQL object model Im using vs2008 and Im also using the autogenerated object model / entity classes from linq to sql (.dbml). Is it possible / recommended to change the autogenerated .cs file. Eg change the behaviour of Equals (in the partical class Courses)? I do know that Equals should be reflex...
{ "language": "en", "url": "https://stackoverflow.com/questions/380324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET: Permission/authentication architecture I am looking into building an authentication in my ASP.NET application with the following requirements. * *A user has exactly one Role (i.e. Admin, SalesManager, Sales, ....) *A role has a set of permissions to CRUD access a subset of existing objects. I.e. "Sales ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Determining the length of a user's visit based on SQL timestamps I am divided between using a C# implementation and a pure SQL 2005/2008 implementation. I need to determine the length of usage based on timestamps of their last actions. My table contains "friendID" (uniqueIdentifier) and "lastAction" datetime. Her...
{ "language": "en", "url": "https://stackoverflow.com/questions/380338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how reliable would it be to download over a 100,000 files via wget from a bash file over ssh? I have a bash file that contains wget commands to download over 100,000 files totaling around 20gb of data. The bash file looks something like: wget http://something.com/path/to/file.data wget http://something.com/path/to/f...
{ "language": "en", "url": "https://stackoverflow.com/questions/380341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to add lines to a vim register without overwriting it I'd like to yank a line in a register: "{register}y but without overwriting what was previously in the register. I often need to copy non-contiguous lines in a register, and I'd like to use sometimes the registers like a stack. Example: line1 line2 line3 I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/380379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "97" }
Q: How to force a redraw of my application's entry in the taskbar? I have a Windows form application written in C#. I update the title of the form frequently, but there's a substantial lag between the title changing and the title dislayed in the taskbar being updated. What's a clean way to force an update / redraw o...
{ "language": "en", "url": "https://stackoverflow.com/questions/380380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What can cause the failure of an SSRS Report on the Reportserver on Rendering? Details are as follows: Environment: SSRS 2008 Server, SQL Server 2008 for database, Report Developed in SQL Server Business Intelligence Devlopment Studio - Reporting Project Error Messages: "An error occurred during client rendering." ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.Net: Is it possible to cache the js-proxies generated by scriptmanager? We have the following code: <asp:ScriptManager runat="server"> ... <Services> <asp:ServiceReference Path="~/JSONServices/ProfileService.svc" /> </Services> ... This results in a Javascript proxy ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sys.ArgumentUndefinedException: Value cannot be undefined I am developing some ajax stuff on asp.net mvc framework beta. but,I got exception as following. Anyone has problem like me? Sys.ArgumentUndefinedException: Value cannot be undefined. and my source code is like this. <asp:Content ID="indexContent" ContentPla...
{ "language": "en", "url": "https://stackoverflow.com/questions/380389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there an attribute to skip empty arrays in the xml-serialization of c#? Is there an attribute to skip empty arrays in the xml-serialization of c#? This would increase human-readability of the xml-output. A: Well, you could perhaps add a ShouldSerializeFoo() method: using System; using System.ComponentModel; usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/380398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How can I refactor this piece of Ruby code to remove duplication? I do not have problem as such but I am quite new to Ruby. I have the following 3 repeatable bits of code in one method and I would like to know how a true Rubyist would first of all remove the duplication and secondly make it more reusable. Here is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/380403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does Java code with an inner class generates a third SomeClass$1.class file? If I have an inner class, like this: public class Test { public class Inner { // code ... } public static void main(String[] args) { // code ... } } When I compile it, I expect it should generat...
{ "language": "en", "url": "https://stackoverflow.com/questions/380406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Difference between classpath and endorsed directory Does anyone know what the difference is between adding an appropriate JAR-file (eg. Apache XALAN) to a JRE's endorsed directory and adding it to the application's classpath? Is it possible to take a jar-file that can be added to the endorsed lib and instead add it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do I find out which version control system my working copy is from? If you have some directories from different version control systems (cvs, svn...), how do you find out what type of repository each came from? A: "svn info" is the command you want. /some/random/directory/in/project/space/ $ svn info Path: . U...
{ "language": "en", "url": "https://stackoverflow.com/questions/380414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Application to query a database and send results as file via HTTPS I've currently got a tool which allows me to configure a database connection (using JDBC) and specify a set of queries to run against the database. This is scheduled to run at a specific time of day (using cron or windows scheduler currently). The to...
{ "language": "en", "url": "https://stackoverflow.com/questions/380415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I respond to mouse clicks on sprites in PyGame? What is the canonical way of making your sprites respond to mouse clicks in PyGame ? Here's something simple, in my event loop: for event in pygame.event.get(): if event.type == pygame.QUIT: exit_game() [...] elif ( event.type == pygame.MOU...
{ "language": "en", "url": "https://stackoverflow.com/questions/380420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Rails active_resource require JS to do delete by link_to? When I use link_to :method=>:delete, what rails has generated is a javascript click, which is not nice if you do come across situation your client just have javascript disabled. That seems a bad idea to me. Any chance to get around this? A: What it generates...
{ "language": "en", "url": "https://stackoverflow.com/questions/380423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# compile numerical expression Assume I allow the user to input a arbitrary numerical expression that allows usage of the explicit set of functions and predefined variables. Interpreting this is pretty straight forward but what if performance is a critical factor? I need a way to compile (in runtime) a string with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Visual Studio 2005 (C++) default warning level I'm working on a new development in C++, using MS Visual Studio 2005. For this, I need to add several new projects to my solution. I always set my warning level to 4, and turn on "treat warnings as errors" (project -> properties -> c++ -> general). Is there a way for me...
{ "language": "en", "url": "https://stackoverflow.com/questions/380427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Do different tabs in browser result in different sessions for server? If I open a connection to the server from firefox browser, and then I open a new tab within the same instance of browser to make a connection to the server, is it considered one session to server or considered as two diff sessions? A: It's the sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/380430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the Zipper data structure and should I be using it? The question is simple: I cannot understand the Zipper data structure. My question is related to its uses with a Tree. I want to understand how can I change the tree node using zipper. And how not to copy the whole tree (or the most part of it). Please, cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/380438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: What is the point of pointer types in C++? Let's say I have some pointers called: char * pChar; int * pInt; I know they both simply hold memory addresses that point to some other location, and that the types declare how big the memory location is pointed to by the particular pointer. So for example, a char might be...
{ "language": "en", "url": "https://stackoverflow.com/questions/380442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to do iis 7.0 CLEAN reinstall on vista? I need to reinstall IIS 7.0 on Vista due to some unsolved configuration issues. I thought it was easy: I uninstalled all IIS-related stuff in Programs/Features, restarted system, installed all IIS modules again (installation cd wasn't needed) and hmm.. everything looks the...
{ "language": "en", "url": "https://stackoverflow.com/questions/380444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I loop through items in a list box and then remove those item? I'm getting the error below when trying to loop through a listbox and then remove the item. List that this enumerator is bound to has been modified. An enumerator can only be used if the list does not change. foreach (string s in listBox1.Items)...
{ "language": "en", "url": "https://stackoverflow.com/questions/380451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Determine what filesystem a partition is of How does operating system know what filesystem a partition is using? In other words, how are FAT16/32, NTFS, ext2/3 etc. distinguished from each other? A: If you're using Win32 APIs on Windows, then you can call GetVolumeInformation (http://msdn.microsoft.com/en-us/libra...
{ "language": "en", "url": "https://stackoverflow.com/questions/380454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Looking for a clear definition of what a "tokenizer", "parser" and "lexers" are and how they are related to each other and used? I am looking for a clear definition of what a "tokenizer", "parser" and "lexer" are and how they are related to each other (e.g., does a parser use a tokenizer or vice versa)? I need to cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/380455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "185" }
Q: Marking-up argument names in comments of functions One of the most common dilemmas I have when commenting code is how to mark-up argument names. I'll explain what I mean: def foo(vector, widht, n=0): """ Transmogrify vector to fit into width. No more than n elements will be transmogrified at a time """ N...
{ "language": "en", "url": "https://stackoverflow.com/questions/380458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to focus on JTextField within a table I'm writing a search & replace function in a kind of spreadsheet program. What I want is that if you search for a string, the program shows a table with the element that has been found. So far so good, but I cannot get the element to obtain the focus, with the cursor in it s...
{ "language": "en", "url": "https://stackoverflow.com/questions/380482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Speeding up text output on Windows, for a console We have an application that has one or more text console windows that all essentially represent serial ports (text input and output, character by character). These windows have turned into a major performance problem in the way they are currently code... we manage ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom background for UINavigationBar in landscape mode I am adding a custom background for my UINavigationBar. It works fine as long as the phone is in portrait mode. As soon as I switch to landscape mode, half the bar appears blue (the default navbar color) and half of it has my image How can I stretch the image f...
{ "language": "en", "url": "https://stackoverflow.com/questions/380507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Run-Time Check Failure #0 vb.net callback from C dll I'm writing Add-inn Application A in VB.Net and DLL B in C language. Application A pass callback method to dll B. When certain event occur the dll invoke the callback from A. Whole works fine on my PC but when I move it to Notebook I get an error: Run-Time Check ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Finding references to an object Is there any way to find all references to an object while debugging? A: Not without using the profiling/debugger API, as far as I'm aware. (Even with the API, I don't know how to do it.) A: If you're willing to dig into WinDbg it is fairly easy to find references to a specific obje...
{ "language": "en", "url": "https://stackoverflow.com/questions/380512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Multiple Inheritance #include<iostream> using namespace std; class A { int a; int b; public: void eat() { cout<<"A::eat()"<<endl; } }; class B: public A { public: void eat() { cout<<"B::eat()"<<endl; } }; class C: public A { public: void eat() { cout...
{ "language": "en", "url": "https://stackoverflow.com/questions/380529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Improper Text data when export as Binary - Textmode I am generating a file which contains data like this. 78,45,New things,200, Number of columns,2.00,5 When I open the file in textpad with the textformat binary type. 0: FF FE 33 00 36 00 2C 80 00 20 30 10 4F 7.8.4.5,4.5, In the data part it has (.) between two su...
{ "language": "en", "url": "https://stackoverflow.com/questions/380532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to connect to a Oracle Database from Web Services Published on IIS The situation is this: 1. Oracle database 10g on one server. Configured to accept connections. 2. Web service on different server (IIS), connecting to the database. This doesn't work. 3. Same web services running on the VS 2005 web server, work w...
{ "language": "en", "url": "https://stackoverflow.com/questions/380540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what do the sql server icons mean? I'm using SQL Server 2008 Management studio viewing a 2005 server and have just added 2 users. For some reason they both have slightly different icons and I'm not sure why. Anyone have a definitive list of the icons and their meaning or a link to microsoft's doc on it as I can't f...
{ "language": "en", "url": "https://stackoverflow.com/questions/380544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I refer to APP_Data from another project I have the following project solution: * *There is a ASP.NET MVC Web Application where I have a SQL database (mdf file) in the App_Data directory. *There is a class library where I have some migrations from migratordotnet. In my build file I have to specify where t...
{ "language": "en", "url": "https://stackoverflow.com/questions/380549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using .NET class from native C++ using C++/CLI as a 'middleware' I have to use a class/assembly made in C# .NET from native C++ application. I suppose I need to make a wrapper class in C++/CLI, that would expose native methods in header files, but use .NET class as needed. Thing that's unclear to me is how to conve...
{ "language": "en", "url": "https://stackoverflow.com/questions/380559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Eager loading of lazy loaded entities in nHibernate using ActiveRecord I'm working on a project that has a rich object model with various sets of aggregate roots. We're using the Castle stack (Monorail through to nHibernate with ActiveRecord). We have marked the aggregate roots as lazy [ActiveRecord(Lazy = true)] a...
{ "language": "en", "url": "https://stackoverflow.com/questions/380568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to use PhotoLibrary without jailbreak This is nice thing you have done. Could you please explain: How to use PhotoLibrary's CameraController without jailbreak. Actually I 've downloaded class-dump and tried dumping PhotoLibrary but did not work out well. It is giving: /* * Generated by class-dump 3.1.2. *...
{ "language": "en", "url": "https://stackoverflow.com/questions/380570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: One page of entire site has invisible elements untill resized or scrolled in IE One of my pages of my site is behaving really weird in IE6. One element is ignoring its background color and border. The other element is invisible (textcolor same as foreground color?) The elements are not always showing this behaviour,...
{ "language": "en", "url": "https://stackoverflow.com/questions/380574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Storing a static (class) attribute in a relational database Suppose you store instances of a class in a relational table. How would you go about persisting a static attribute of that class? For example: class WebSiteUser { private static $common_homepage_content; private $username; private $password_hash...
{ "language": "en", "url": "https://stackoverflow.com/questions/380588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: multimap in .NET I need an equivalent to c++'s std::multimap<K, V, Comp, Alloc> in C-sharp. Does it exist in the standard library? A: Because it's almost christmas :) ////////////////////////////////////////////////////////////////////// // Algorithmia is (c) 2008 Solutions Design. All rights reserved. // http://ww...
{ "language": "en", "url": "https://stackoverflow.com/questions/380595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: How do I get the full XML or HTML content of an element using ElementTree? That is, all text and subtags, without the tag of an element itself? Having <p>blah <b>bleh</b> blih</p> I want blah <b>bleh</b> blih element.text returns "blah " and etree.tostring(element) returns: <p>blah <b>bleh</b> blih</p> A: This ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: C# .NET Convert a JPEG Image into a Bitmap structure I have a JPEG "image" (actually a BLOB in a database) which I want to import/convert into a "Bitmap" structure in memory. The reason is that I use a third party library which is unable to work with JPEG images and I need to pass an uncompressed bitmap (as a pointe...
{ "language": "en", "url": "https://stackoverflow.com/questions/380604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Debug a start page in vs2008 with query string as startup parameter? Does anyone know how to set up a default querystring to an asp.net webform which is set up as a start up page? A: You can set the start page for your project. In the solution explorer right click on your web projects node and select properties. F...
{ "language": "en", "url": "https://stackoverflow.com/questions/380607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C#/.Net 2.0: Problem with the Repeater control and Checkboxes when inside a User Control! I have a repeater control with a check box, if I check the box then my delete functionality will delete an item in the underlying table. When I test the delete functionality on an aspx page with a code behind page, everything w...
{ "language": "en", "url": "https://stackoverflow.com/questions/380608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to provide a legally sound license, or "terms of use", for a web application I am looking for information about providing a license, or "terms of use", for a web application. The Wikipedia article is very limited, and it seems that unlike "downloadable" software (or perhaps "installable" software, for lack of a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to get browser type and version from within an applet? Is is possible to query the current browser from within an applet? I would like to know if the current browser is IE6 or IE7. A: Here's something for ya: http://www.rgagnon.com/javadetails/java-0160.html A: User-Agent detection code is quite old (stops at...
{ "language": "en", "url": "https://stackoverflow.com/questions/380612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use 3rd dimension in MDX query (ON PAGES syntax) I have a problems with 3rd dimension in MDX Query (on MS SQL Server 2005). I can use 3rd dimension in Visual Basic (I have a cube there, using browser I can make 3 dim. queries -- owing to ON PAGES). I snooped it via MS SQL Profiler (it records databases querie...
{ "language": "en", "url": "https://stackoverflow.com/questions/380616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to convert ISO 8601 date (string) to Date? I am parsing XML file. In this file there is one tag containing date string "2008-11-10T05:51:33Z" and I want convert this string in to java.util.Date object. How can this be done? A: Use java.text.DateFormat - or more likely, SimpleDateFormat. Alternatively, go for Jo...
{ "language": "en", "url": "https://stackoverflow.com/questions/380626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Surprising SQL speed increase I’ve just found out that the execution plan performance between the following two select statements are massively different: select * from your_large_table where LEFT(some_string_field, 4) = '2505' select * from your_large_table where some_string_field like '2505%' The execution plans...
{ "language": "en", "url": "https://stackoverflow.com/questions/380628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: What exactly happens while you assign a reference to an element in Array in Java? I am doing the following statements in Java, Obj t[] = new Obj[10]; Obj a = new Obj("a"); t[0] = a; a = new Obj("b"); t[1] = a; Why in java, when i access t[0] , it returns me "a", rather than "b"? Is this because of the GC? and can...
{ "language": "en", "url": "https://stackoverflow.com/questions/380632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Creating xml from with java I need your expertise once again. I have a java class that searches a directory for xml files (displays the files it finds in the eclipse console window), applies the specified xslt to these and sends the output to a directory. What I want to do now is create an xml containing the file na...
{ "language": "en", "url": "https://stackoverflow.com/questions/380639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get the url of the page which is currently loading in the iframe I have an requirement that, in my application on clicking an button I have to load one more application with the same template which I was using for my application. So, on clicking the button in my application I have used one intermediate page i...
{ "language": "en", "url": "https://stackoverflow.com/questions/380653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need to know what the connection string in my web.config file should be set to for SQL server 2005 I have created an asp.net website that connects to a SQL server database. Currently on my development machine I have the connection set to a SQL server express database with the file residing in the App_Data file of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/380658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RegEx and matching codes right to left Stuggling a little bit with the RegEx, I've got 4 codes in a string CODE4:CODE3:CODE2:CODE1 each code is optional apart from CODE1 So I could have ab:bc:de:fg or bc::fg of ab:::fg In each case of the above CODE1 = fg dnd for the dear life of me I can't work out the RegEX Would...
{ "language": "en", "url": "https://stackoverflow.com/questions/380660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: System.Web.Cache, Session level or Application level Random quick question. The System.Web.Cache class, at what level is the information stored? On a per session level or whole application level? Thanks A: AFAIK at the application level. http://msdn.microsoft.com/en-us/library/system.web.caching.cache.aspx From th...
{ "language": "en", "url": "https://stackoverflow.com/questions/380662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is an empty interface used for I am looking at nServiceBus and came over this interface namespace NServiceBus { public interface IMessage { } } What is the use of an empty interface? A: Usually it's to signal usage of a class. You can implement IMessage to signal that your class is a message. Othe...
{ "language": "en", "url": "https://stackoverflow.com/questions/380665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: What is the format of a Borland 5.0 project file? I have an old Borland project which I would like to port to Visual Studio 2008. Is there a way to dump, in a human-readable format, the source file, compile options and dependency information from a .ide file? I'd like something a bit more comprehensive than the 'Gen...
{ "language": "en", "url": "https://stackoverflow.com/questions/380673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set icc color profile in Java and change colorspace First, I would like to say I'm not an image processing specialist. I would like to convert image colorspace from one to another, and change icc color profile at the same time. I managed to do it using JMagick (the ImageMagick Java port), but no way in pure J...
{ "language": "en", "url": "https://stackoverflow.com/questions/380678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: oracle materialized view refresh time anyone able to tell me how often a materialized view is set to refresh with the following setting plz? REFRESH FORCE ON DEMAND START WITH sysdate+0 NEXT (round(sysdate) + 1/24) + 1 i think i read it as every hour but i'm not sure A: SQL> alter session set nls_date_format = 'yyy...
{ "language": "en", "url": "https://stackoverflow.com/questions/380694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Shortest method to convert an array to a string in c#/LINQ Closed as exact duplicate of this question. I have an array/list of elements. I want to convert it to a string, separated by a custom delimitator. For example: [1,2,3,4,5] => "1,2,3,4,5" What's the shortest/esiest way to do this in c#? I have always done th...
{ "language": "en", "url": "https://stackoverflow.com/questions/380708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "58" }
Q: help me refactor iteration over a generic collection I am working with a generic data structure, say MyGeneric<Type>. There is a case where I have to iterate over all the values it holds The code I am trying to do. for ( all the keys in myGeneric ) { // do lot of stuff here } Now the generic can hold base typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/380709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }