text
stringlengths
8
267k
meta
dict
Q: How do I change the owner of a subscription in SQL Server Reporting Services The previous DBA here set up some SQL Server Reporting Services Reports to run automatically and email the report to users. When he left his accaount was disabled and now they don't work. The status on the subscription reads: Failure send...
{ "language": "en", "url": "https://stackoverflow.com/questions/437836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: the level of a treeview in WPF? In a WinForms application, the level of a treeview is given by node.level What is the corresponding command in WPF? A: Given the Question:- so when I click a node, how do I know which level it is? is there workaround? Here's a possible workaround:- If you have a reference to a Cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/437840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: HTML Tool to determine where style is coming from I have an ASP.NET page where I need to figure out where the style for a textbox is coming from. There are several style sheets defined for the page and I want to be able to use some sort of tool / editor that will tell me what styles were used and from what file(s) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can you require multiple types at once? Basically I want to do this: public interface A { void a(); } public interface B { void b(); } public class SomeClass { public SomeClass(<A&B> e) { // Note the type here e.a(); e.b(); } } What I did on the commented line is obviously illegal. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/437854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best way to handle recursion in smarty? I found a couple of ways to handle recursion in Smarty, mostly based on including templates into themselves, which seems like ridiculous waste of resources. I found one solution, by Messju over at Smarty that seemed to be just right - but it is not supported and fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/437862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Deriving a crypto key from a password I am trying to generate a key using the .net 2.0 PasswordDeriveBytes class. PasswordDeriveBytes pdb = new PasswordDeriveBytes("blahblahblah",null); byte[] iv = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }; byte[] key = pdb.CryptDeriveKey("TripleDES", "SHA1", 128, iv); The code t...
{ "language": "en", "url": "https://stackoverflow.com/questions/437864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where is the right place parametric type checking in dynamic languages? Consider the following. (in pseudocode). Class { hello world public constructor(hello, world) { if (hello is not String) { throw Exception() } if (world is not Array) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to open a launch NSWindow in Cocoa on a button click I have an NSWindow that I defined in interface builder. I want to make it so that when the user clicks a button, it opens a new instance that NSWindow. Do I have to subclass NSWindow or something? A: Put the window in its own nib file, then load the nib file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: nginx rewrite question I need to do a rewrite with nginx from /blah/.../3275 to /id/3275 if the second file exists, otherwise I want to hand it off to apache. Here is my (feeble) attempt (...) represents irrelevant stuff if ($request_filename ~^/.../([0-9]+)/$) { if (-d /id/$1) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiprocessor Programming Course Feedback I am planning to attend a one week course on this subject. I am primarily involved in Java projects and have decent knowledge of C and C++ too. And, I am interested in learning more on concurrent programming and would like to get feedback on this course. Has someone read th...
{ "language": "en", "url": "https://stackoverflow.com/questions/437878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the C# equivalent of NaN or IsNumeric? What is the most efficient way of testing an input string whether it contains a numeric value (or conversely Not A Number)? I guess I can use Double.Parse or a regex (see below) but I was wondering if there is some built in way to do this, such as javascript's NaN() or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "105" }
Q: Ajaxform in jQuery I am using ajaxForm. Now I have encountered a problem. My idea is when the user enters the username, if any wrong username, it should report a message to the user. My code is working fine, but the problem is that after the report Message shown to the user, the submit button becomes inactive. So, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/437895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are unit testing and integration testing, and what other types of testing should I know about? I've seen other people mention several types of testing on Stack Overflow. The ones I can recall are unit testing and integration testing. Especially unit testing is mentioned a lot. What exactly is unit testing? Wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/437897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: Transposing a table with SQL I have a SQL table like so PV Area CouterParty 851 M010 Name1 561 M011 Name2 869 M012 Name3 ... And I need to transpost it, using T-SQL (not reporting services or anything else), so that it looks like this: CounterParty M010 M011 M012 .... Name1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to use asp.net dynamic data with Entity framework in another dll how can i use asp.net dynamic data using EF in another dll and i dont want to put connection string in web.config or any config file. I have this code in Global.asax model.RegisterContext(() => new MyObjectContext("entityconnectionString"), new Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/437908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I use a table other than "Users" for CakePHP's AuthComponent? CakePHP's AuthComponent assumes you have a Users table that contains a username and password. I'd like to find a way to override the default tablename from Users to Accounts. Background Information: The way I have designed my database is to have a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Filtering file names: getting *.abc without *.abcd, or *.abcde, and so on Directory.GetFiles(LocalFilePath, searchPattern); MSDN Notes: When using the asterisk wildcard character in a searchPattern, such as ".txt", the matching behavior when the extension is exactly three characters long is different than when the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Index a sum column Is creating an index for a column that is being summed is faster than no index? A: If you want to make the summation faster, you can pre-materialized the result. On Oracle, use Materialized Views, on MS SQL use Indexed Views. On your specific question "Is creating an index for a column that is b...
{ "language": "en", "url": "https://stackoverflow.com/questions/437915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Force calling the base method from outside a derived class I have two classes: public class MyBase { public virtual void DoMe() { } } public class MyDerived:MyBase { public override void DoMe() { throw new NotImplementedException(); } } And I have the following code to instantiate...
{ "language": "en", "url": "https://stackoverflow.com/questions/437926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I do this ASP WebDAV FBA Authentication example in PHP? I need to have PHP authenticate to an exchange server. Once able to succesfully connect to it, I'll need to write webdav requests in the PHP so I can extract data from the exchange server and use it in a web application. It would be somewhat simple excep...
{ "language": "en", "url": "https://stackoverflow.com/questions/437927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DirectX Version on Windows XP SP3 What is the version of DirectX that is installed by default with Windows XP SP3? Google did not yield convincing results on this. A: I've found a useful page in MSDN that confirms the version of DirectX included with each Windows OS and Service Pack release. It seems that the last ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to measure # of lines of code in project? How can I measure number of lines of code in my PHP web development projects? Edit: I'm interested in windows tools only A: phploc No experience if it runs on Windows, tho, but searching on the web showed some results of people getting it to work on Windows.. A: Check ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Creating and extracting files from zip archives Is there a library for crating/extracting zip files in php? The ZipArchive class works erratically, and this is mentioned on php.net : (for every function I checked) ZipArchive::addEmptyDir (No version information available, might be only in CVS) A: Check PEAR Archive...
{ "language": "en", "url": "https://stackoverflow.com/questions/437952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Submitting form elements with the same name I have a form which allows the user to create extra "rows" using JQuery (using .clone) so that they can decide how many of the same information they need to submit. My issue is that I cannot work out how to access these form items within my controller. the form that is bei...
{ "language": "en", "url": "https://stackoverflow.com/questions/437955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How can I exclude $(this) from a jQuery selector? I have something like this: <div class="content"> <a href="#">A</a> </div> <div class="content"> <a href="#">B</a> </div> <div class="content"> <a href="#">C</a> </div> When one of these links is clicked, I want to perform the .hide() function on the lin...
{ "language": "en", "url": "https://stackoverflow.com/questions/437958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "223" }
Q: is_numeric or a numeric preg_match? I read on a forum that you can't completely trust is_numeric(). It lets through "0xFF" for example which is an allowed hexadecimal... So my question is can you trick is_numeric? Will I need to use a regex to do it correctly? A: One can also check using ctype_digit() to check if i...
{ "language": "en", "url": "https://stackoverflow.com/questions/437962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Windows Shell Integration using .NET What's the easiest/best way to register your program in explorers right-click menu using .NET and C#? i.e. I would like to be able to right-click on an item in windows explorer and get a "Edit with MyProgram" This is the closest thing to a tutorial I could find but it mostly just...
{ "language": "en", "url": "https://stackoverflow.com/questions/437972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the difference between a keyboard accelerator and a shortcut key? What is the difference between a keyboard accelerator and a shortcut key? A: John - I don't believe that is correct. MSDN defines menus as having: 'Menu access keys' - the underlined letters in the menu item name. 'Menu shortcut keys' - the k...
{ "language": "en", "url": "https://stackoverflow.com/questions/437975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Dates - Databases, Display and Localization What are some Date (& Time) format best practices when wanting to adhere to localization in a new application. For example, what format do you use to write dates to the database. How do you display the following to the user using their own locale settings once the date...
{ "language": "en", "url": "https://stackoverflow.com/questions/437981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dynamic control in c# I want to create a kind of 4 x 3 matrix with textboxes and checkboxes. Whether the element is checkbox or textbox depends upon the values in database.I want it to be dynamic. What is the best way to start? // something like this but I need to fill in each elements of the matrix... private vo...
{ "language": "en", "url": "https://stackoverflow.com/questions/437994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WCF and embedded systems I am working on a project that involves an embedded system which runs a non-microsoft OS with a C program for the application and am developing .NET software for its end user applications. For remote configuring with the .NET software (which can go across firewalls), I am considering using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Environment overrides for Linux linker/loader Earlier today I asked a question about environ, and one of the more interesting replies suggested that I could gather information using LD_DEBUG. Now I've known about some linker/loader environment variables (such as LD_PRELOAD) for awhile, but this one was new to me. Go...
{ "language": "en", "url": "https://stackoverflow.com/questions/438003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: boost source code Is there any way to get the boost libraries source code? I have browsed the SVN repository and I could see only HPP files. No source files are available there. I would like to look into the source code for "shared_ptr". Can anyone guide me? Also from where can I download BCP utility? A: All source...
{ "language": "en", "url": "https://stackoverflow.com/questions/438005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: STL __merge_without_buffer algorithm? Where can I get a decent high-level description of the algorithm used in __merge_without_buffer() in the C++ STL? I'm trying to reimplement this code in the D programming language, with some enhancements. I can't seem to grok what it's doing at the algorithmic level from just ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Response Writer in jsf ResponseWriter writer=context.getResponseWriter(); I want to know about startElement, endElement, and writeAttribute methods on ResponseWriter. A: JSF output is HTML/XML and a ResponseWriter makes it easier to generate it correctly. Say you wanted to render some text in a <span> tag. <span>...
{ "language": "en", "url": "https://stackoverflow.com/questions/438026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How Do I get the "friendly" name of serial port in Mono and keep it cross platform I asked this question: Serial Port (rs232) in Mono for multiple platforms and this one is related: How do I get the friendly name of a COM port in Windows? But I want to be able to get the "friendly" name on Windows- and possibly also...
{ "language": "en", "url": "https://stackoverflow.com/questions/438029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Showing help for a command-line utility I have a command-line utility that gets quite a bit of downloads from my site. I'm trying to show the usage when a user uses the /? or /help parameters. I have a function called ShowUsage() that has nicely formatted text on the parameters available. I see that ShowUsage() gets...
{ "language": "en", "url": "https://stackoverflow.com/questions/438034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP/mysql array search algorithm I'd like to be able to use php search an array (or better yet, a column of a mysql table) for a particular string. However, my goal is for it to return the string it finds and the number of matching characters (in the right order) or some other way to see how reasonable the search re...
{ "language": "en", "url": "https://stackoverflow.com/questions/438044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: iPhone "slide to unlock" animation Any ideas as to how Apple implemented the "slide to unlock" (also, "slide to power off" is another identical example) animation? I thought about some sort of animating mask - but masking is not available on the iPhone OS for performance reasons. Is there some private API effect (li...
{ "language": "en", "url": "https://stackoverflow.com/questions/438046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "75" }
Q: Use C++ class from C# Alright so I have this C++ image capturing class. I was wondering if I could get some help..I know basic C++ (I have done one intro to c and one intro to c++ class) and I have NO idea how to do this: I need to use this class (ie create a new c++ project in my solution) and use c# to reference ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL select records that sums I am using MySQL and PHP. I have a table that contains the columns id and quantity. I would like to retrieve the id of the row that is the last to sum quantity as it reaches the number 40 at sum. To be more specific. I have 3 rows in the database. One with quantity 10, one with quantit...
{ "language": "en", "url": "https://stackoverflow.com/questions/438062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best way to get started in modern game programming and application programming? I want to get started game programming in C/C++, or C# with DirectX or OpenGL. I'm not really sure what I want to get started, but a smallish project like a simple engine would be nice to get started with. Additionally, I woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/438067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Create SubSet of a dataSet ASP.Net I have a dataset which is having some 28 columns Now I want to make another dataSet that will contain two dataTable having 14 columns in each table from the previous dataset. Help needed. A: I will asumme you have some data in it. Create to Datatables one with the first 14 columns...
{ "language": "en", "url": "https://stackoverflow.com/questions/438074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: automatic incrementing filename I have a filename that has the following format: timestamp-username-1 This file is constantly etting written to, but before it gets too large I want to create a new file. timestamp-username-2 How can I acheive this with using least amount of memory (ie, no or little variables) here is...
{ "language": "en", "url": "https://stackoverflow.com/questions/438087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to open a "nul" file? I need to create a new process with redirected standard error stream to some file. The code from which child process is being created has no console available, so there are cases when GetStdHandle(any) will return 0. Child process will try to duplicate all of its standard IO handles for som...
{ "language": "en", "url": "https://stackoverflow.com/questions/438092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Custom Windows Workflow activity that executes an asynchronous operation - redone using generic service I am writing a custom Windows Workflow Foundation activity, that starts some process asynchronously, and then should wake up when an async event arrives. All the samples I’ve found (e.g. this one by Kirk Evans) i...
{ "language": "en", "url": "https://stackoverflow.com/questions/438095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Excel, OleDb, and Leading zeros I have a process that using OleDb reads data from an excel file into a DataSet. Everything was working well until I started to see data with leading 0's in it. The text is formatted as General or Text. I have set IMEX=1 in the OleDb connection, yet I still get a null value in the da...
{ "language": "en", "url": "https://stackoverflow.com/questions/438099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: $data findAll query in CakePHP checking values from second table I have been stumped by CakePHP in how to query the DB in CakePHP and return things to $data only when the $data query table [id] has a matching [sub_id] in a second table a standard query: $data = $this->Table1->findAll(array("Table1.deleted" => "0"), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set default home page in JavaScript How do I create a link to set the user's home page to my URL? A: As some people have already answered, it used to be possible in internet explorer (prior to IE 7 I believe, could be wrong though) using something similar to document.setHomePage('www.example.com'); I don't think a...
{ "language": "en", "url": "https://stackoverflow.com/questions/438108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rails testing with out-of-process database access? I'm building a Rails application that requires some models to interact with some necessary Java libraries. To do this, I want to use Rails on on MRI - not JRuby or RBJ. The Java code only needs read access to the database tables managed by the Rails app. One way to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.Net Gridview, How to activate Edit Mode based on ID (DataKey) I have a page, lets call it SourceTypes.aspx, that has a a GridView that is displaying a list of Source Types. Part of the GridView is a DataKey, SourceTypeID. If source TypeID is passed to the page via a query sting, how to I put the Gridview into Ed...
{ "language": "en", "url": "https://stackoverflow.com/questions/438116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can download via FTP all files with a current date in their name? I have a file format which is similar to "IDY03101.200901110500.axf". I have about 25 similar files residing in an ftp repository and want to download all those similar files only for the current date. I have used the following code, which is not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery offset doesn't produce value before posting the whole code, i wanted to make sure I am not missing a simple issue here. var dv = $(myElement); var pos = dv.offset(); var width = dv.width(); var height = dv.height(); alert(pos); alert(width); alert(height); here, width alerts fine, height alerts fine but of...
{ "language": "en", "url": "https://stackoverflow.com/questions/438136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I recursively browse all content of IIS? I have the following program to browse all virtual directories and their sub directories and files (recursively): static void Main(string[] args) { string serverName = Environment.MachineName; DirectoryEntry dir = new DirectoryEntry("II...
{ "language": "en", "url": "https://stackoverflow.com/questions/438142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the possible values of the Hibernate hbm2ddl.auto configuration and what do they do I really want to know more about the update, export and the values that could be given to hibernate.hbm2ddl.auto I need to know when to use the update and when not? And what is the alternative? These are changes that could h...
{ "language": "en", "url": "https://stackoverflow.com/questions/438146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1229" }
Q: Help needed--Is class necessary in Python scripting? I am creating an interface for Python scripting. Later I will be dong Python scripting also for automated testing. Is it necessary the at i must use class in my code.Now I have created the code with dictionaries,lists,functions,global and local variables. Is class...
{ "language": "en", "url": "https://stackoverflow.com/questions/438149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: i want to find all if statements in C# code which are not followed by brackets. Through regex I want to find all if statements and for statements which are not followed by curly brackets '{'. When you write a single line in an if statement you do not mostly enclose it in curly brackets, so I want to find all those i...
{ "language": "en", "url": "https://stackoverflow.com/questions/438150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How are sockets implemented in JVM? I want to know, how sockets are implemented in the Java Virtual Machine. * *Is there a native library included? *And if, is it a C library? Where can I find information about this topic? The offical Java tutorial on networking does not help me there. Some interesting links w...
{ "language": "en", "url": "https://stackoverflow.com/questions/438154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Should i reflect database structure in application? I'm designing an application that will allow putting some data in the database. I wanted to somehow reflect the database structure in the application, for example if i have a table where there are departments and a table with employees and there is a department wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/438166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Using FreeText with SubSonic Is there a general consensus on how to use SQL 2005's full text search with SubSonic? I know that I can use the InlineQuery and get an IDataReader, but is this the only way to do this? Also, how would I incorporate paging into it? Would I have to write the paging myself in the InlineQ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Export to Excel from a Repeater? Right now I am using this to export a repeater (with multiple nested repeaters) to excel: protected void ExportToExcel(object sender, EventArgs e) { Response.Clear(); Response.Buffer = true; Response.AddHeader("content-disposition", "attachment;filename=finance.xls"); Response....
{ "language": "en", "url": "https://stackoverflow.com/questions/438184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Python data structure: SQL, XML, or .py file What is the best way to store large amounts of data in python, given one (or two) 500,000 item+ dictionary used for undirected graph searching? I've been considering a few options such as storing the data as XML: <key name="a"> <value data="1" /> <value data="2" /...
{ "language": "en", "url": "https://stackoverflow.com/questions/438185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Split a collection into `n` parts with LINQ? Is there a nice way to split a collection into n parts with LINQ? Not necessarily evenly of course. That is, I want to divide the collection into sub-collections, which each contains a subset of the elements, where the last collection can be ragged. A: EDIT: Okay, it loo...
{ "language": "en", "url": "https://stackoverflow.com/questions/438188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "123" }
Q: How do I create a "check all" link for a web form? I've got a form with a bunch of checkboxes on it, and I'd like to provide a "check all" link/button. I'm using the code below, but when it runs, it picks up some radio buttons on the page, and checks/unchecks those too. How do I fix this? var check = 0; function doN...
{ "language": "en", "url": "https://stackoverflow.com/questions/438189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: A 'using' declaration with an enum A using declaration does not seem to work with an enum type: class Sample{ public: enum Colour {RED, BLUE, GREEN}; } using Sample::Colour; does not work! Do we need to add a using declaration for every enumerators of enum type? Like below: using sample::Colour::RED; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What happens to sockets when I unplug a network cable? I have three applications that talk to each other using sockets. They can all live on their own machines but they can also share a machine. Right now I'm having two of them on the same and the third on its own machine. I'm trying to make my communication bullet ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: C# namespaces in web.config Coming from a VB background and being forced to learn C# I have hit the first hurdle. In VB i could put all the namespaces I wanted available across the entire app in the web.config file and it would be available in each code behind file without me having to add import statements. <name...
{ "language": "en", "url": "https://stackoverflow.com/questions/438199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Profiling PostgreSQL I'm investigating a PostgreSQL-backed application. CPU usage is constantly over 50% on a modern Xeon with 4GB RAM. Of that 50% CPU utilization, 67% is "user" and 33% is "system" (this is a Linux machine.) The system is not waiting on I/O at all. I'm wondering how I can see how this CPU time br...
{ "language": "en", "url": "https://stackoverflow.com/questions/438207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: WPF Aero Glass DPI Setting Mismatch I have a WPF application using Aero Glass. When using the application under a 120dpi setting the margins within my UI are not matching up to the margins I pass over to the DwmExtendFrameIntoClientArea API call. How would I get the systems DPI setting within .NET 3.0 so that I can...
{ "language": "en", "url": "https://stackoverflow.com/questions/438211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to force Java print graphics in 300dpi as I googled for problem, somehow java printing API is crippled with limitation that all pictures sent to printer must be printed in 72dpi resolution. We are using jasper report to print documents and no matter how big barcode we draw, barcode reader won't scan it.. any sim...
{ "language": "en", "url": "https://stackoverflow.com/questions/438221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Clear the HttpWebRequest UnsafeAuthenticatedConnectionSharing Pool is it possible to clear the pool of the current processes' UnsafeAuthenticatedConnectionSharing pool, i.e. close all authenticated pooled connections? A: Have not tried it. But somthing like ( typed directly so watch for errors): MyReq.ServicePoint....
{ "language": "en", "url": "https://stackoverflow.com/questions/438225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: exception hierarchy vs error enumeration I read somewhere (can't find it now) that large exception hierarchies are a waste of time. The justification for this statement seemed sound at the time and the idea stuck with me. In my own code when I have a code base that can have a range of error conditions I use a singl...
{ "language": "en", "url": "https://stackoverflow.com/questions/438227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Monitor a process's network usage? Is there a way in C# or C/C++ & Win32 to monitor a certain process's network usage (Without that application being built by you obviously)? I would like to monitor just 1 process for like an hour or so, then return the bytes used by only that process, such as limewire for example. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to import System.Net.Mail I'm typing "Imports System.Net.Mail" but it says that "namespace or type 'Mail' for the imports 'System.Net.mail' cannot be found". I've already added in the references "system.web.dll" and "system.dll". What else do I need to use the namespace System.Net.Mail? Thank you very much. A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding a search box to an ASP.Net dynamic data list page Does anyone know how to add a simple search textbox on an ASP.NET Dynamic Data list page? I want to be able to drill down to a specific row immediately, without having to use the dynamic data filters to narrow the scope. A: The CodePlex project named ASP.NET ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Delphi fast file copy I'm writing an app that supposed to copy a bunch of files from one place to another. When I'm using TFileStream for the copy it is 3-4 times slower than copying the files with the OS. I also tried to copy with a buffer, but that was too slow aswell. I'm working under Win32, anyone got some insi...
{ "language": "en", "url": "https://stackoverflow.com/questions/438260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Logical versus physical design I have a very general design question, but I'll frame it in concrete terms with an example. Suppose you're working on embedded software for a digital printer. The machine has 4 print heads (for each of the C, M, Y, K colors). Each print head performs the same task: fetching toner and...
{ "language": "en", "url": "https://stackoverflow.com/questions/438261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: sql query performance using somewhat strange where clause I've got a funny question for you, sql gurus out there (or maybe inhere?). I got this habit when I need to construct a query at runtime. In order to avoid multiple 'if' checks I just go and write 'where true '. Then the rest is another part of the clause in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/438269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a compeletely transparent window with MFC? I want to create a completely transparent window with MFC, but I don't know how to do this. Can you tell me the way? Thank you very much! A: You can use layered windows for transparency effects. See http://msdn.microsoft.com/en-us/library/ms997507.aspx. Be...
{ "language": "en", "url": "https://stackoverflow.com/questions/438270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Swing On-Screen Keyboard I am working on a KIOSK System in Java on Windows XP. And need to do a on screen key board. I have no idea about it that how to do. So can you guys please help me out to do this. Any one have some idea about it. Thanks A: I implemented a OSK in SWT and AWT for my company. We initialize the...
{ "language": "en", "url": "https://stackoverflow.com/questions/438276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Subquery is not supported on 'IsDeleted' of type 'Entities.Product' I'm using Linq to SQL and trying to filter data using DataOptions and AssociateWith. I have a table called Products that has a primary key called Id and a flag called IsDeleted with sql-datatype bit. When I use the following code I get "Subquery is...
{ "language": "en", "url": "https://stackoverflow.com/questions/438282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What are the top 3 main concepts in WPF? What are the top 3 main concepts in WPF that you need to understand in order to write good WPF code? A: I would say the single most important concept is the UI pattern Model-View-ViewModel, or as I like to call Model-View-ModelController. This is crucial to building apps su...
{ "language": "en", "url": "https://stackoverflow.com/questions/438285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to schedule a Callable to run on a specific time? I need to run a callable at a specific time of day. One way to do it is to calculate the timediff between now and the desired time , and to use the executor.scheduleAtFixedRate . Have a better idea? executor.scheduleAtFixedRate(command, TIMEDIFF(now,run_time), p...
{ "language": "en", "url": "https://stackoverflow.com/questions/438312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can NSNotification be used to check a the status of an NSTask How can NSNotification be used to check a the status of an NSTask? I know there are a couple of class methods inside the NSTask but don't really understand how to implement them in a Cocoa application. Can somebody help me? A: This blog post, Bette...
{ "language": "en", "url": "https://stackoverflow.com/questions/438314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a pure Python Lucene? The ruby folks have Ferret. Someone know of any similar initiative for Python? We're using PyLucene at current, but I'd like to investigate moving to pure Python searching. A: The only one pure-python (not involving even C extension) search solution I know of is Nucular. It's slow (mu...
{ "language": "en", "url": "https://stackoverflow.com/questions/438315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Application porting from z/OS CICS to .NET What are the various tools available for migrating an application on z/OS (front end, DB, Business Logic) into .NET (C#.NET or VB.NET) and SQL Server 2005. The current z/OS system has: * *CICS - front end, *COBOL - language *IDEAL and DATAComDB - database. Thanks in a...
{ "language": "en", "url": "https://stackoverflow.com/questions/438317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: c# - Function to replicate the folder structure in the file path I need a simple function which will take a FileInfo and a destination_directory_name as input, get the file path from the fileinfo and replicate it in the destination_directory_name passed as the second parameter. for ex. filepath is "d:\recordings\loc...
{ "language": "en", "url": "https://stackoverflow.com/questions/438321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Can object constructor return a null? We have taken over some .NET 1.1 Windows Service code that spawns threads to read messages off a queue (SeeBeyond eGate JMS queue, but that is not important) and in turn spawns threads to process the message in the target application service. We are continually encountering logi...
{ "language": "en", "url": "https://stackoverflow.com/questions/438325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: What is the best(least impacting?) method to read a file that is being written by another process? I'm looking for the least impacting method to read a few different log files. By "least impacting" I mean the read wont affect log rotation, wont cause undue I/O activity, etc. I'm looking to accomplish this with Jav...
{ "language": "en", "url": "https://stackoverflow.com/questions/438327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get a SharePoint-UserField with JavaScript? Hallo, i need to write some javascript that gets the contents of a userfield in a sharepoint-website. I can get most fields with the javascript-function 'getTagFromIdentifierAndTitle' of Using Javascript to Manipulate a List Form Field, but not UserFields. So how c...
{ "language": "en", "url": "https://stackoverflow.com/questions/438332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to do Hit testing in GDI+ for rotated shapes with real shape measurements (inches)? Given I have a canvas that contains many shapes, lets say rectangles for now. Each shape has a location (inches), size(inches) and rotation angle(degrees). When a mouse click event happen inside the canvas for a location (x,y) in...
{ "language": "en", "url": "https://stackoverflow.com/questions/438335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Does the location of the `using` directive make a difference in C#? I got an error today while trying to do some formatting to existing code. Originally, the code had the using directives declared outside the namespace: using System.Collections.Generic; namespace MyNamespace { using IntPair = KeyValuePair<int, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/438336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: 2nd call to Device.Reset in DirectX throws an InvalidCallException I've been working on a DirectX application in C#, and I noticed that when I lock the workstation, the DirectX "Device" becomes lost. After looking up the information about what to do upon when a device is lost (and when a DeviceLostException is throw...
{ "language": "en", "url": "https://stackoverflow.com/questions/438347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Pushing from subversion to web server Long ago I tried to sort out my system between local, web server and subversion. I got some good explanation on this question. Unfortunately I hit a road block on the whole pushing from SVN to a web server part and never revisited. All of my projects are solo, so I'm the only ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: asp.net: moving from session variables to cookies My forms are losing session variables on shared hosting very quickly (webhost4life), and I think I want to replace them with cookies. Does the following look reasonable for tracking an ID from form to form: if(Request.Cookies["currentForm"] == null) return; projec...
{ "language": "en", "url": "https://stackoverflow.com/questions/438360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: getting new file added to subversion without updating whole folder What I want to do is be able to add a file to my folder which is under Subversion source control in my local computer and then commit it. no problem up to here. On the server I want to get the new file using Subversion but without having to do an 'Up...
{ "language": "en", "url": "https://stackoverflow.com/questions/438377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What can cause a .NET process/thread to terminate unexpectedly? I'm trying to gather a complete listing of the reasons a .NET process or thread to terminate, even though the main() method is guarded by a try...catch clause. One such reason is Thread.Abort() (unless you call Thread.ResetAbort). Do you know of more re...
{ "language": "en", "url": "https://stackoverflow.com/questions/438380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Customizing the More menu on a Tab bar I am using a tab bar (UITabBarController) on my app and I wish to customize the appearance of the table that appears when you click the more button. I have worked out how to change the appearance of the Navigation bar that is on the more screen by setting self.moreNavigationCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/438381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Visual Studio 2008 user controls registered in the web.config not registering with intellisense I have a C# Web application built in Visual Studio 2008 where we rely heavily on user controls for 'pre-built' blocks of ASP.NET. Instead of registering a big stack of user controls on each page, we register all the contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/438386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: NHibernate bidirectional collection / key synchronization I've set up a one-to-many association in NHibernate: Parent (1 -> ∞) Child The problem I now face is that when I set Child.Parent, the Parent.Children collection doesn't automatically contain the new Child. Similarly, when I add a Child to the Parent.Childr...
{ "language": "en", "url": "https://stackoverflow.com/questions/438388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }