text stringlengths 8 267k | meta dict |
|---|---|
Q: PHP: Implementing the SeekableIterator interface I'm currently writing a class that implements the SeekableIterator interface and have run into a problem. I have two internal arrays that I am using and would like to allow for iteration through both of them from outside the class. Is there an easy way to do this wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Task Schedule Refusal Although some might not think of it as programming related, it certainly is. The task Scheduler is a program. It's launching a process that I have written. Stating that it's a common problem is not very helpful.
I've set up my own backup procedures, both on a Windows xP machine at home, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows Disk Cloning vs Automatic installation of servers During development , testing, and deployment, I have a need to fully automate a windows 2003 server setup.
I'm trying to find the best way to automatically delpoy a server, which installs the OS, software dependencies that I have (for example SQL server, .net... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Firebug css file I have a question about firebug concerning the .CSS pages...
On the right 'Style' you've got the css... Furter on to the right you have the name of the css.file... Normally this is refering to the correct css file... But sometimes i get something like 'template...r=default (line 458)', so i'm not ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simple way to detect unused properties keys? Given a set of properties files and list of files which may reference keys in those properties files, what's the easiest way to determine which keys are unused?
Example:
Given a project with files
muppets.properties
kermit=Kermit the Frog
oscar=Oscar the Grouch
smurfs.pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Maintaining sort order of database table rows Say I have at database table containing information about a news article in each row. The table has an integer "sort" column to dictate the order in which the articles are to be presented on a web site. How do I best implement and maintain this sort order.
The problem I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Understanding the wikipedia entry on Dragon Curves I'm playing around with Project Euler's Problem 220, and I'm a little confused about the Wikipedia article on the topic, Dragon Curve. On the topic of calculating the direction of the nth turn without having to draw the entire curve, it says:
First, express n in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: State Machine Implementations I am trying to build a board game ... And looks like it has to be implemented using a state machine..
I know of the State pattern from GoF, but I am sure there must be other ways to implement state machine. Please let me know.. if you know of any articles or books that contains details... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Anyone got any plans to use Cryptol from Galois? I saw in a Dr Dobb's email report for 2008-12-29 that there's a new DSL (domain-specific language) for designing crypto systems. It is called Cryptol and is available from Galois.
Has anybody taken a look at it? Does anyone have plans to use it? Is it worthwhile, d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ordering SQL query by specific field values I've got a sql query (using Firebird as the RDBMS) in which I need to order the results by a field, EDITION. I need to order by the contents of the field, however. i.e. "NE" goes first, "OE" goes second, "OP" goes third, and blanks go last. Unfortunately, I don't have a cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Joomla main menu html output I'm trying to edit the output joomla main_menu module so I can make a custom dropdown menu. At the moment it currently outputs html like this:
<ul class="menu">
<li class="active item1" id="current"><a href="#"><span>First Level Item </span</a></li>
<li class="parent item63"><a href="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: winforms control size limit I am using a Panel's paint event to display a really long diagram. I've run into the problem of .net controls size (height and width) are silently limited to a signed 16 bit integer (32,767). I'm assuming this is an underlying win32 limitation.
Is there a way to get around this limitation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best Practices on Configuration Settings I'm wondering about some best practices out there on storing configuration settings. Let's say you have some settings shared across several applications. I've heard both good and bad ways to store these types of settings that need to be shared (XML files).
Just wondering on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Dotnetnuke Version Determination I've been tasked with fixing a dotnetnuke installation that was simply copied from one server to another and the first thing I need to do is figure out which version it is.
What's the easiest way?
A: Log in as an admin and go to the "Host Settings" page.
A: Following SP gives curre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Return values from stored procedures in C# I've seen a few similar questions to this one, but none that were quite the same. Anyhow, I have a stored procedure that ends with the lines,
select SCOPE_IDENTITY()
return
I then get the value by calling executeScalar(). This works perfectly. However, I feel like it w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Casting SqlDataReaders What are the advantages of replacing (int)reader[0] with reader.GetInt32(0)? I'm sure such casting functions are there for a reason, but other than it feeling more aesthetically pleasing to avoid the cast myself, I'm not sure what those reasons are.
A: In code....
void OneWay()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Performance of unused fields in an SQL View I'm using MS SQL Server.
When I define the database schema I define a (non-materialized) view, which includes many fields, for example as follows (where "Topic" is the name of a table, and the view is a self-join on the Topic table):
CREATE VIEW View_Topic_Ancestor AS
SELE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to implement glob in C# I don't know if it's legit at StackOverflow to post your own answer to a question, but I saw nobody had asked this already. I went looking for a C# Glob and didn't find one, so I wrote one that others might find useful.
A: I stumbled upon the source to iron ruby that contains a pretty n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Simple secure way for Flash to MySQL Database Any simple, but secure script available for Flash > MySQL DB integration? I need something for a Login DB.
Exchanging variables with PHP is nice and easy, but obviously insecure.
via Remoting? I've got the Flash 8 remoting components installed, and some ideas: idea-1, id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to add a web user control to a class library? I'm looking at building some web user controls with an eye toward re-use, but I can't seem to add a Web User Control in my class library in VS2008. Is there a way to work around this problem, or is there a better approach to creating reusable controls?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Passing newly allocated data directly to a function While learning different languages, I've often seen objects allocated on the fly, most often in Java and C#, like this:
functionCall(new className(initializers));
I understand that this is perfectly legal in memory-managed languages, but can this technique be used... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Implementing state-driven classes Assume a requirement of implementing a class "CAR".
Now, this class contains various states like "un-ignited", "ignited", "broken-down", "punctured", etc.,
The way I look at to implement this requirement is to have boolean flags aka "properties" in the class and 'check the state' us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Split by \b when your regex engine doesn't support it How can I split by word boundary in a regex engine that doesn't support it?
python's re can match on \b but doesn't seem to support splitting on it. I seem to recall dealing with other regex engines that had the same limitation.
example input:
"hello, foo"
expec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why does Cut/Paste of form components sometimes stop working in Delphi 2007 IDE? This is driving me crazy. I'm not going to take it anymore. I'm going to ask, even at the risk of eternal public humiliation! (If it's something really obvious or that I've done to the system myself).
For reasons I've never quite had th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Block UDP port without a firewall using VBScript I am testing an application which communicates to a server via a UDP port, and I need to block this port to make sure the application can handle it.
The Problems:
1. It has to be done in an automated test (which is controlled by VBScripts).
2. It has to be done in Win... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need to Run Windows Security Dialog Box from Command Line You know, what you normally get when typing ctrl-alt-del or ctrl-alt-end. Except in this scenario I can't press those keys, but I want to launch that box. Specifically I want to be able to pull up the change password dialog from the command line.
Thanks
A: H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: filtering autocomplete options in windows mobile app i'm working on windows mobile app (c#, .net 2.0). i would like to make use of the device's autocomplete features for a specific textbox, but i want to be more specific than the device provides by default.
for example, i want to autocomplete to suggest a word of a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best way to learn LISP? I have been programming in Python, PHP, Java and C for a couple or years now, and I just finished reading Hackers and Painters, so I would love to give LISP a try!
I understand its totally diferent from what i know and that it won't be easy. Also I think (please correct me if I'm w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "178"
} |
Q: How to determine minimum system requirements How do you decide what the minimum system requirements are for a Windows application? (OS, RAM, HD, CPU). I usually go with my gut, but I'd like to be able to back that up with something.
A:
On the same note, are there tools
available to artifically limit CPU
speed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What is the best practice for domain model re-use in composite applications? We have a composite application built using the Composite UI Application Block (CAB)/Smart Client Software Factory (SCSF). To date, each module in our composite app has used its own set of DTO's, and business logic has been duplicated thro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to enable configSource attribute for Custom Configuration Section in .NET? following the wealth of information found here how can we get an external .config to work? I've tried the same setup I would use for an external appSettings file, but it is unable to find the file for my custom section.
<configSections>
.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Why would you use a ".pfx" file in .NET What is the ".pfx" extension used for in .NET?
Why does it ask for a password when the solution is being built?
A: .pfx is an extension for a security certificate. they typically are password-protected.
A: A file containing an encrypted private key. It's probably being use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Linq to SQL Class I have a Class see below, when i am trying to query it from another page it not linking e.g. if i put "var Notes = HandhedNotes.GetNotesByLinkIDJoin();" when i look at Notes theres not links there. I think its due to the IQuerable maybe I should be using something elese??
namespace WebSys
{
publi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: System.Text.Encoding.GetEncoding("iso-8859-1") throws PlatformNotSupportedException? See subject, note that this question only applies to the .NET compact framework. This happens on the emulators that ship with Windows Mobile 6 Professional SDK as well as on my English HTC Touch Pro (all .NET CF 3.5). iso-8859-1 sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Trouble with Factory and dynamic allocation in C++ I have a factory that builds the objects with longest lifetime in my application. These have types, lets say, ClientA and ClientB, which depend on Provider (an abstract class with many possible implementations), so both clients have a reference to Provider as member... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Serialization exception in .NET: System.InvalidOperationException: You must implement a default accessor on System.Collections.Generic.Stack`1 All I am trying to do is
XmlSerializer serializer = new XmlSerializer(typeof(Stack<int>));
and I get the following at runtime:
System.InvalidOperationException: You must im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: A Proper One-to-One Mapping Table I want to make a table that simply has two integer columns to serve as a mapping table between two different data sets and I wish to put the correct constraints on it.
I initially set the two columns as a compound primary key, but then realized that represents a many to many, only k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VB to C# Translate Event Handler that Implements Interface Event I was looking at code in WPF which is in VB. I am trying to convert it to C#. Eventhough I used VB .Net to C# converter I cannot figure out the correct syntax for the following code in C#. Any ideas how to write this in C#?
VB Code:
Public Event Prope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Run GWT shell normal, use -noserver on compile? I would like to run the GWT shell (the nice little Google pop-up browser window) when "testing" and upon clicking the actual "Compile/Browse" on the tool, compile the program into a different directory and use the -noserver mode to test it on my IIS server.
Problem:
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: A useful example of when to use vsize function instead of length function in Oracle? It seems vsize() and length() return the same results. Does anyone know of a practical example of when to use vsize instead of length?
select vsize(object_name), length(object_name) from user_objects
Result:
/468ba408_LDAPHelper ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ASP.NET MVC with Spring.NET and ModelBinder I'm working on a demo that makes use of Spring.NET IoC capability in ASP.NET MVC . It's kind of like the MyBlog application presented on pair programming video tutorial on www.asp.net site. I've completed the same demo using Microsoft's Unity framework and now want to try ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: App.config of class DLL has info I need in web app I have a class library that I have built that includes several service references. In order to move the project forward I've copied the <system.serviceModel> config section from the app.config into the web.config. It works fine for now because I only have two refere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rails: How to observe join records that don't actually have a Model? Is it possible, using an Observer, to observe the creation of JOIN records? For example, you have a User Model that has_and_belongs_to_many Book Models. Is it possible to monitor books_users records as they are created or deleted or must I have a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: "Connection Partially Encrypted" in Firefox I can't figure out if this is a bug in Firefox or an anomaly with the website as it only seems to occur through a specific sequence.
TLDR steps below
If you visit the main page (link below) and then click on the quotes link it will send you to a page called quoteconfig.asp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Data Access Library Return DataSet or Object Is there a general consensus out there for when working with library's that call stored procedures? Return datasets or use sqldatareader to populate custom objects?
Is the cost of serialization your Data Transport Object less then a DataSet?
A: Personally, I use a SqlDa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Finding statement pattern in c++ file I have a macro that looks like this:
#define coutError if (VERBOSITY_SETTING >= VERBOSITY_ERROR) ods()
where ods() is a class that behaves similarly to cout, and VERBOSITY_SETTING is a global variable. There are a few of these for different verbosity settings, and it allo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to determine the memory layout of a process in Windows? How can I determine what memory is accessible by a process, other than calling ReadProcessMemory() on every single byte/page/whatever to see if it wins or fails?
(I know it must be possible as several tools show this sort of information, e.g. IDA Pro debugg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can an open source databases like MySQL support my web site's load? I'm about to start developing a product (in .NET), and I'm evaluating open source database engines in order to avoid adding licensing costs to the overall cost of my product.
Which ones do you know that are potent? Is MySQL a good alternative? What ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Image processing language/environment I am interested in studying some image processing. I imagine matlab is the best way to go about that but right now I don't have access to matlab. I tried octave but for some reason it can't even load a png, bmp or anything other than 1 specific format. R doesn't seem to be the k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Factory Pattern Advice Needed Please I'm working on wrapping my head around the factory pattern by using it in a simple data storage project in my free time. The idea is to take simple data and save it to a database using a simple factory pattern in VB.NET. I think I have a basic understanding of the pattern itsel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Colspan all columns How can I specify a td tag should span all columns (when the exact amount of columns in the table will be variable/difficult to determine when the HTML is being rendered)? w3schools mentions you can use colspan="0", but it doesn't say exactly what browsers support that value (IE 6 is in our list ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "498"
} |
Q: Can you limit the number of rows in a (database) table? We have a database (SQL Server 2005) which we would like to get under source control. As part of that we are going to have a version table to store the current version number of the database. Is there a way to limit that table to only holding one row? Or is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: NoClassDefFoundError on command-line with new NetBeans project I've created a new J2SE project in NetBeans, and I can run it from the IDE, but when I try to run it using Ant on the command line, I get the following problem:
<snip>
run:
[java] Exception in thread "main" java.lang.NoClassDefFoundError: IndexBuild... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the difference between using jQuery's onclick and the onclick attribute? What's the difference between the following two pieces of HTML (apologies if there are any typos as I'm typing this freehand)?
Using jQuery:
<script type="text/javascript">
$(document).ready(function() {
$("#clickme").click(f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Garbled html in email Is there some sort of formatting protocol for html email? We have an automated system that sends reports via email, when I look at the source I see them delimited by line length with an "=" breaking the line. That is, I get something like :
<html><body>some text some text some text some=
some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I implement this type of OOP structure? I want to build a nice API (C#) to make it easier for people to consume, I think I've seen this before and want to know how to do this:
MyNamespace.Cars car = null;
if(someTestCondition)
car = new Honda();
else
car = new Toyota();
car.Drive(40);
Is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is this ASP.NET MVC Validation Code Easy to Read and Follow? I was wondering what everyone thinks of this. Is the code easy to follow? Or is there a better way to do this? By the way, this is how I am currently doing validation at the moment with ASP.NET MVC. I can follow it, but I am the one who wrote it. For some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using SQL Server back end for Subversioning Repositories Has anyone attempted to use SQL Server Database as a Subversion file system back end?
So that all Subversion Repositories would be stored in a SQL Database instead of a flat file system? Make for easier backups and reporting?
A: Subversion has two different ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Reporting Services: How to place a report parameter in the header I have two report parameters that were set up automatically when I created their associated datasets. They are ReportID and CompanyID. The user selects a Company Name from a list box and a Report Name from another list box. The standard SELECT ID, Nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Pass a parameter into an access report programmatically I've got an existing Access MDB. I'm adding a command button to an existing Form that runs an existing report. The change being made is that this button needs to pass in a parameter containing the ID of the record being reported on - currently the report runs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Custom Drawing with Xib file present I have a view that I want to add some custom drawing to.
I know how to do this with a View that isn't connected to a Nib/Xib file
*
*you write the drawing code in the -drawRect: method.
But if I init the view using
[[MyView alloc] initWithNibName:@"MyView" bundle:[NSBundle ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a port of the Rhino JavaScript engine for .NET I worked for a company that had both Java and .NET implementations of an application. The app allowed for end-user customization of processing and business rules using scripts. The Java version supported JavaScript using the Rhino engine. The .NET app required ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: finding long repeated substrings in a massive string I naively imagined that I could build a suffix trie where I keep a visit-count for each node, and then the deepest nodes with counts greater than one are the result set I'm looking for.
I have a really really long string (hundreds of megabytes). I have about 1 GB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to handle Firefox inserting text elements between tags I'm trying to write javascript to find page elements relative to a given element by using parentNode, firstChild, nextSibling, childNodes[], and so on. Firefox messes this up by inserting text nodes between each html element. I've read that I can defeat this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Keyboard hook w/ C# and WPF for minimized system tray application I have a WPF application that I minimize to the system tray through this.Hide() and System.Windows.Forms.NotifyIcon. When it's minimized, I want to have a keyboard hook maximize the application. How do I register a keyboard hook like Windows-Button ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: productivity superstar frameworks/tools for side gigs If you were going to start building web sites as a consulting business on the side -- keeping your day job -- and you also had a toddler and a wife, what frameworks/tools would you pick to save you typing?
Any language.
I'm looking for a productivity superstar ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to install JScience library in Eclipse? Or just any library, in general? I downloaded the bin.zip file, but I can't seem to do much with it? This is driving me up the wall...
EDIT: In other words, there is no "standard" way to do it? I know how to add the Jar files, is it ok to just put them (and the docs) anywh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I test my knowledge of .NET? A lot of programming and computer science topics are tricky, and as a result it's hard to know sometimes if you've gotten an idea straight after just reading about it. Some programmers' learning material incorporates self-testing pretty well; a great example of this is The Little... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Instantiating objects with a Configuration class or with Parameters I am running into a design disagreement with a co-worker and would like people's opinion on object constructor design. In brief, which object construction method would you prefer and why?
public class myClass
{
Application m_App;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Update all objects in a collection using LINQ Is there a way to do the following using LINQ?
foreach (var c in collection)
{
c.PropertyToSet = value;
}
To clarify, I want to iterate through each object in a collection and then update a property on each object.
My use case is I have a bunch of comments on a blog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "618"
} |
Q: AS3 FLVPLaybackCaptioning Component Displaying Images? I am using the FLVPlaybackCaptioning Component to display captions for a video. We've built a player that uses a FLV file hosted locally or streamed from the server to show captions for a video, a slide title, and slide text. The example is up here:
http://www.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Checking for the existence of an object in a collection (of T) I see that over on this question LINQy way to check if any objects in a collection have the same property value there is a request to say how to do something using LINQ to see if a property matches in a collection. However, is this the fastest reasonable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When developing a new system - should the db schema always be discussed with the stakeholders? I'm several layers/levels above the people involved in the project I'm about to describe.
The general requirement is for a web based issue management system. The system is a small part of a much larger project.
The lead... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: InvalidCastException: RPC_E_CANTCALLOUT_ININPUTSYNCCALL I'm building an application in C# that has a static class which initiate a COM class and handles some event handlers of another class that hooks keyboard.
When I call a method of the COM class from a button event handler in my WPF window, the method works witho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to set pointer to a memory to NULL using memset? I have a structure
typedef struct my_s {
int x;
...
} my_T;
my_t * p_my_t;
I want to set the address of p_my_t to NULL and so far this is how I've tried to do this:
memset (&p_my_t, 0, sizeof(my_t*))
This doesn't not look right to me though. What is the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: PostgreSQL HASH index Does anyone know a situation where a PostgreSQL HASH should be used instead of a B-TREE for it seems to me that these things are a trap. They are take way more time to CREATE or maintain than a B-TREE (at least 10 times more), they also take more space (for one of my table.columns, a B-TREE tak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Deleting shared memory with ipcrm in Linux I am working with a shared memory application, and to delete the segments I use the following command:
ipcrm -M 0x0000162e (this is the key)
But I do not know if I'm doing the right things, because when I run ipcs I see the same segment but with the key 0x0000000. So is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Extending a C++ application with C# plugins I have a C++ Windows application that can be extended by writing C++ plugins, using an API that is exposed by the application. There is also one plugin that translates the C++ API to Python (e.g. plugins can be written in Python).
I want to allow users to write plugins in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the difference between List (of T) and Collection(of T)? I've seen them used in a lot of the same ways, and I am worried I'm about to go down a path in design that is irreversible if I don't understand this better. Also, I am using .NET.
A: All of these interfaces inherit from IEnumerable, which you should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "106"
} |
Q: Optimum installation folder structure for a Windows application I have created an installation package using Wix which installs a Windows service on the user's machine. Currently, the files are being installed to [%ProgramFiles%\APLICATIONNAME].
Is this a future proof way of structuring an installation folder?
Shoul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Are Web Operating Systems practical yet? I'm a full time web developer but I have my roots as a desktop programmer and there seams to be a lot of talk about Web Operating System these days.
Is it practical yet to incorporate your web applications into a Web OS to make it more user friendly or just do a traditional H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I select changesets to merge that are attached to work items? I have a set of work items that are completed and I am ready to move their changes to our production branch. Is it possible to find the changesets that are attached to them and selectively merge them with the target branch?
A: Not easily is the sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Collect Lowest Numbers Algorithm I'm looking for an algorithm (or PHP code, I suppose) to end up with the 10 lowest numbers from a group of numbers. I was thinking of making a ten item array, checking to see if the current number is lower than one of the numbers in the array, and if so, finding the highest number in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Cookies for Web Session State - What are the pitfalls? Using in-process session state is evil when it comes to scaling web applications (does not play well with clusters, bombs out when server recycles).
Assuming you just need to keep a small amount of information in the session state, what is the downside of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is the preferred Throwable to use in a private utility class constructor? Effective Java (Second Edition), Item 4, discusses using private constructors to enforce noninstantiability. Here's the code sample from the book:
public final class UtilityClass {
private UtilityClass() {
throw new AssertionE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Any Microformats for Video Has anyone created HTML microformats for video and video overlays including:
*
*Video File
*Links with timecode (start/end) and screen region
Thanks,
Michael
A: There are a few examples at the MF wiki - do they help at all?
A: Here's what I found that best suites my needs: Apple's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How is null represented in .NET I was having a conversation with a co-worker and the subject of null came up. He was telling me that in .NET behind the scenes it is just a really small number. I always thought that the object just didn't have a pointer to any memory on the heap but i wasn't sure either way.
So i'm h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do foreach loops work in C#? Which types of classes can use foreach loops?
A: From MSDN:
The foreach statement repeats a group
of embedded statements for each
element in an array or an object
collection. The foreach statement is
used to iterate through the collection
to get the desired information, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: Even easier Java/SQL data transfer needed So, I'm using jdbc to talk to a MySQL DB. For many a table and for many queries/views, I have created one class which encapsulates one row of the table or the query/table result. Accesses to the DB return one object of such a class (when I know exactly that there's only on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: hibernate - pattern for mapping a default entity? Is there a sleek way to map a default database object in Hibernate?
For example, in this class, a Foo should always be able to return a Bar, whether it's custom defined for the Foo, or it comes from a default value that's stored in the database somewhere. Users of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/398994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is the sizeof(some pointer) always equal to four? For example:
sizeof(char*) returns 4. As does int*, long long*, everything that I've tried. Are there any exceptions to this?
A: The size of the pointer basically depends on the architecture of the system in which it is implemented. For example the size of a point... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "248"
} |
Q: Do custom HTML helper classes violate the ASP.NET MVC model? On a related post I mentioned that I have found custom HTML helpers to be just that, helpful, when developing. For instance, when I need paging for a "grid" I have a custom helper that I can call Html.Pager().
Some have made a point that HTML helpers are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Spoken Word Programming Language / System I recently came upon something called Rpoku which is a spoken computer language. I also found some research called Voice Code which takes a different approach. There's a demo video here..
Does this look promising, or is just a toy? Is it or will it be possible to create appl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why can't I subclass datetime.date? Why doesn't the following work (Python 2.5.2)?
>>> import datetime
>>> class D(datetime.date):
def __init__(self, year):
datetime.date.__init__(self, year, 1, 1)
>>> D(2008)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Assigning a 'for loop' to a variable in a python program Im writing a program at the moment that interacts with a MySQL database and im having a problem. As you can see I've written a query that will look for products in the products table that corresponds to the barcode that the user has inputted.
If the barcode t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to flush all caches in process for EntLib Caching I'd like to know if there is a way to tell the Enterprise Library Caching objects to flush all configured caches for that process to flush.
Even enumerating through all of the configured caches for that process, and manually flushing each one, is ok, but is there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When will the netfix prize be won? Does anyone have a graph of the best Netflix prize submission by day? I'd like to get a prediction of when it will be solved based on extrapolating the existing progress.
Alternativly, when do you think it will be won and why?
A: You can parse the leaderboard, then sort it by dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET Caching I can't seem to get it to "work". Perhaps I'm not even testing it correctly. I've got a <%= DateTime.Now.ToString() %> line in my aspx page. I've tried setting caching declarativly like this
<%@ OutputCache VaryByParam="SchoolId" Duration="180" Location="Server" NoStore="false" %>
I've also tried... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Help with the ifstream function in C++ I've read a lot of tutorials and can not really find anything comprehensive on this subject.
I had written the following code to do one function:
#include <fstream>
#include <string>
#include <iostream>
using namespace std;
ifstream ReadFile( ifstream& openInputFile, string&... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Finding characters in a string that occur only once I'm writing an algorithm in PHP to solve a given Sudoku puzzle. I've set up a somewhat object-oriented implementation with two classes: a Square class for each individual tile on the 9x9 board, and a Sudoku class, which has a matrix of Squares to represent the boa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.