text stringlengths 8 267k | meta dict |
|---|---|
Q: PowerShell Outlook send email I'm developing a script that involves creating an email contact and forwarding mail to that contact. Last part of the script is to automatically send a test email to the address to make sure the forwarding works.
So I use the following code:
[void] [Reflection.Assembly]::LoadWithPartial... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VB.NET Static Code Anaylsis Does anyone know of a good code static code analyser for vb.net?
I've seen plenty for c#, and I think VS 2008 some one built in. But we're currently only using vs 2005...
A: FxCop does just that.
Specific for VB.NET is Project Analyzer.
A: Depending on what you are looking for Fortify ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Are LINQ queries above different LINQ providers possible? I'm currently thinking about a repository pattern for my data objects, where multiple IQueryable<> instances can be registered as data sources, but it seems its not so easy to get it running.
Running a simple LINQ query with LINQ to entities and LINQ To Objec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I execute inefficient code only at compile time when using mod_perl? I've been benchmarking the performance of a framework I'm writing in Perl and I'm getting a 50% decrease in requests per second over our existing codebase (some hit is understandable, because we're going from procedural spaghetti code to an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: PHP: Process a CSV or XLS file I need to let users pick a CSV or XLS file from their filesystem and press Submit and have PHP open it, look at it, decide if it is valid and then put the data in MySQL.
I am stuck on how the server gets the file they pick from their desktop?
Do I have to upload the file they pick to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Crawling, spidering, getting data I want to write a crawler to do some inventory of infrastructure (routers, WAPS, systems, etc)
So I understand a crawler, implementing is a different story.
So I have an app sitting on a server and how do I deploy it. How does the crawler start looking? Say I wanted to inventory unk... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is 20 SQL Queries per page load really considered a lot? I was reading Jeff Atwood's blog on Behold WordPress, Destroyer of CPUs and saw that many people there considered 20 SQL Queries per page load to be a lot. What is the average amount of queries per page nowadays for a highly dynamic page with auto suggest, au... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: quest powershell : how do you run scheduled task? How do you run a scheduled task with Quest powershell snap in?
A: You would schedule PowerShell.exe, and use one of its command-line parameters to specify the script to run. At the start of that script, add:
Add-PSSnapin Quest.ActiveRoles.ADManagement
That will loa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get PHP session vars in .htaccess Is it possible to read the data in the php $_SESSION array in the .htaccess file in Apache? So say I have the following:
$_SESSION['foo'] = 'bar';
could I then in .htaccess do something like:
RewriteRule bla.png folder/{the php session var foo}/file.png
Is that possible?
I already... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Reformatting Windows lnk file via an automated script Problem: There are a bunch of .lnk files on the C drive that point to the J: drive, but the J: drive is gone, and the P: drive has replaced it. Various tricks have been done to get the .lnk files to still work anyway, but it's getting annoying, and it's time to j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: XML schema contruct for a type with both enumerations and attributes I'm trying to create a type in an XML schema to enforce an element with both:
*
*A single attribute; and
*Simple content matching an enumeration.
In an XML document, the element might look like:
<Operator Permutation="true">
Equals
</Operat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sorting a datagrid columns, I have the code and it sort of works I'm trying to sort the columns of a datagrid A to Z, the code below works apart from I get a column beginning with 'c' in between the 'A' (e.g. a,a,a,a,c,a,a,b,b,b), this happens the first time I run the code. If I then use columnNames.Reverse(); (Z to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are all .NET exceptions serializable? Can all .NET exception objects be serialized?
A: System.Exception implements ISerializable, but descendants might not deserialize if they don't implement the correct overloaded constructor with signature (SerializationInfo,StreamingContext).
A: Yes and no. As Jeff and others ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Error installing expression web 2 (-2147024873) Anybody ever had the error "Installation of the "Microsoft Expression Web 2" product has reported the following error: -2147024873.. " when trying to install Microsoft Expression Web 2 or Microsoft Expression Studio? This is the error I'm getting, but I can't figure o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I slideDown whilst maintaining transparency in jQuery? I'm trying to animate a block level element using jQuery. The page loads with the element styled with display: none. Id like it to slideDown whilst transparent and then fadeIn the content using the callback, however slideDown appears to set the visibility... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GUI Locking up when using PrintDialog and PrintPreviewDialog in .net I'm using .net's PrintPreviewDialog and whenever it's generating a preview, it locks up my GUI in the background and makes it look like it has crashed until the preview is finished. Seeing how the .net's page progress window that pops up isn't a di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Merging config files (or XML) in C# What would be the fastest way, to merge 2 XML files, so I would locate a node in first one, empty it, take all children from the same tag (same node) in second XML and put it in the first one.
A: You can load both files into two XElement objects, locate the target nodes in both o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: My code interacts strongly with its environment. Should I bother to unit test? Code I'm working on collects performance data (eg CPU usage) from the operating system. I'm wondering if I should bother to attempt to unit test this code. It seems that to unit test code, you need to design code that is isolated into uni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to Embed Image in Outlook Signature? Is it possible to create an HTML email signature for Outlook 2003 or above that doesn't reference external images?
That is, using those special "cid" reference but embed the image itself in the signature and not on the file system or network.
This is for an web application th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Python 2.6 multiprocessing.Queue compatible with threads? I am experimenting with the new multiprocessing module in Python 2.6. I am creating several processes each with its own multiprocessor.JoinableQueue instance. Each process spawns one or more worker threads (subclasses of threading.Thread) which share the Jo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Sample [English] Dictionary SQL Script to populate table? Does anyone know of a link to a reference on the web that contains a sample English dictionary word script, that can be used to populate a dictionary table in SQL Server?
I can handle a .txt or .csv file, or something similar.
Alternatively, I'm adding custom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Replace MS Cardspace UI Is it possible to replace Microsoft Cardspace UI with your own? Or use Cardspace without any UI?
A: Google for Chuck Mortimer who wrote a Cardspace UI for Firefox.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/342570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Do you know any run-time differences between Compact and Full Framework code? There are a number of run-time differences in compatible code between these two versions of .NET.
Here is a list of differences so far:
*
*Graphics.DrawRectangle - differs by 1 pixel
*Graphics.DrawString - Loses the line wrap if used w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I get each line from an NSString? If I have an NSString with a text file in it, how do I get an NSArray of NSString with each NSString containing a line of the file.
In 10.5 I did this:
NSArray* lines = [str componentsSeparatedByCharactersInSet: [NSCharacterSet newlineCharacterSet]];
But that doesn't work in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to set OpenFileDialog View Menu to Detail View? How can the OpenFileDialog View Menu be set to Detail View?
A: someone did it here, with the win32 api
DefaultViewMode:
This property lets you choose which view the OpenFileDialog should
start in; by default, it opens using the “Details view”. Here you
can spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS Unit Testing A few quick searches discovered that I'm obviously not the first person to have the thought "Can I unit test my CSS?".
I'm wondering if anyone here has taken on CSS Unit Testing successfully? If you've tried and failed, or just have your own theories, please tell me why it (apparently) hasn't been ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Sorting domain names Has anyone implemented sorting a list of domain names?
I have seen some applications sort them as flat strings, but the problem is that you end up scattering all the related hosts in a domain:
a.me.com
a.you.com
b.me.com
b.you.com
So, the basic logic I came up with reverse the order of the label... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linq2Sql cannot orderby anonymous type? I have some SQL that does an order by case statement. It works fine. I can't replicate it as Linq2Sql.
Here's a quick hacked up version of the SQL i made, simplified and really dumbed down. Please ignore what the sql is trying to do (business logic wise) as i made this up, for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Two column primary key in MySQL I have a very simple problem and a solution that will work, but I'm looking for a simpler one.
I'd like to prevent rows from being added to a database when multiple values equal existing values. For example, if a2=a1 AND b2=b1 then the data gets rejected. If only a2=a1 or only b2=b1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Flash programmers: how do you make your code decompile proof? I've worked on several flash projects so far. I know my way around AS3 but I also started becoming curious about how other flash programs are written, so I decompiled a few swf files to see how they were made. (I have also read through open source project... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Storing "votes" in a database I'm writing what will be an intranet application, and one of its features is roughly analogous to content voting - not unlike what SO, Amazon, and many other sites do.
Assuming each votable piece of content has a unique ID, and each user (they're authenticated) has a unique ID, the easi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Connection Management ASP.net How do you manage your database connections in your ASP.Net application?
My understanding tells me the "best" way is to open a connection, make a query, close the connection - and do that multiple times because connection pooling makes the cost negligable.
The problem comes when I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there an open source Asp.net membership administration GUI (like netwebadmin, but works online)? Visual studio 2005 comes with a project that lets you use the asp.net membership provider to look up, add, edit, and delete users and roles. It unfortunaltly can't be used online, and in order to have an adminiistrati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using the Rome Java API to access metadata fields I've been using the Rome API to parse data from an XML feed pretty successfully so for, but have run in to a bit of a snag.
Given the following snippet of XML:
<entry> <id>uniqueId</id> <updated>2008-11-05T01:32:35Z</updated> <mm:status xmlns:mm="http://con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C Programming Exercise from the K&R Book Any idea why the following code doesn't print the amount of characters in the input?
I've taken this straight from the K&R book. Learning C at the moment and this is really confusing, looks to me like I'm never reaching EOF. If that's the case then why would this be used as a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Java String Parameters I'm coming from a .net background and want to know the accepted way of creating a method that returns a boolean and modifies a string that was passed in via parameter. I understand Strings are immutable in Java so the below snippet will always produce an empty string. I am constrained to retur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Any good documentation/tutorials for PHP's Mailparse pecl extension I'm looking for guidance on how to use PHP's Mailparse pecl extension. The documentation on the PHP website isn't very helpful.
Does anyone have experience with this and care to share a few pointers?
A: There is supplementary documentation in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SQL "SELECT IN (Value1, Value2...)" with passing variable of values into GridView I have a strange encounter when creating a GridView using SELECT..WHERE..<field> IN (value1, val2...).
In the "Configure datasource" tab, if i hard code the values SELECT .... WHERE field1 in ('AAA', 'BBB', 'CCC'), the system works wel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is needed to setup a (personal) executable/code timestamp service? We are using verisign's time stamp service currently, but every so often the time stamp server becomes unavailable - mostly due to our ISP failing.
We now timestamp everything we build, even simple dev builds as we had a lot of trouble with Vist... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to use ReadDirectoryChangesW() method with completion routine? I want to use function ReadDirectoryChangesW() in asynchronous mode with I/O completion routine supplied.
The question is I don't know how to retrieve the exact information about the change in the completion routine (a CALLBACK function). Completion... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Using Generics to encapsulate common method work I've got a number of WebService methods that all include some very boilerplate code of wrapping the actual work in a try/catch/finally and performing the same tasks in the catch/finally. So as a way to encapsulate all of the shared catch/finally stuff I wrote a simple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Algorithm to implement a word cloud like Wordle Context
*
*Take a look at Wordle: http://www.wordle.net/
*It's much better looking than any other word cloud generators I've seen
*Note: the source is not available - read the FAQ: http://www.wordle.net/faq#code
My Questions
*
*Is there an algorithm available t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "215"
} |
Q: Unit Testing Legacy ASP.NET Webforms Applications I've inherited a legacy web application that has no unit tests in it. I'd like to add some, but am at a loss of where to start. Should I add them to old code? Or just new code going forward? What if that code interacts with legacy code? What would you suggest?
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Function pointers in Inno Setup Are function pointers supported in Inno Setup? I can't find anything in the documentation. I know Delphi/Pascal supports them and as the Inno Setup scripting engine is based on it, I'm hoping it is supported.
A: I just did a little test and function pointers do work indeed. The fol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Starting project from scratch: how and when to distribute the workload? My friend and I are going to develop a new commercial web project. We have a kind of a document that lists all the things that we want to have and we are wondering what is the best way to actually start coding it. The thing is that we used to de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using a Binary Search Tree as a spell checker Wondering the most efficent way to make a binary search tree into a spell checker by reading in say 1000 word dictionary file and then having it check another document that say has a couple paragraphs.
A: a ternary tree trie would be more efficient
A: Are you dead-set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I get a PHP script to send and receive data from an already running process? I'm trying to create a simple AJAX to Telnet client for the web. I may be re-inventing the wheel by doing this, but it is a learning project for myself. At the moment I haven't written anything, I'm just trying to get the idea wrappe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Who's altering my DOM? What might be changing the DOM of a web page after the browser receives the response?
I'm seeing this behavior in the value of a hidden input element that holds a single-use form token.
When I 'view source' in a browser, I see the correct value, as written out by the server. When I submit the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How should I learn to use the Windows API with Python? I have very little experience building software for Windows, and zero experience using the Windows API, but I'm reasonably familiar with Python. How should I go about learning to use the Windows API with Python?
A: I strongly recommend theForger's Win32 API Tut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: absolute vs. relative links? When creating links for an an html based email, how critical is it to use absolute links? Also, What are the benefits in using relative links in general?
A: Email? I don't think there's an option other than absolute links. This will guarantee you that no matter who and how will read you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can't see win2k8 server by hostname, but can see it by IP On my home network I have an installation of Windows Server 2008 and for some reason, the windows vista workstations on the network can connect to the server via remote desktop only via the server's IP address, not the hostname. Same for connecting to an ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How would you implement an UITableView that detects horizontal swipes in order to allow paging? I'd like to implement a UITableView which displays say 20 rows at a time. But given the fact that I might actually have say 120 items to present, I'd like to handle this using some sort of paging:
Populate table with firs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Non-leftmost wildcard in DNS record? Hypothetical situation:
Suppose I ran a hosting firm where I hosted subdomains for people. You could sign up and give me a few bucks a month, and I'd give you yourname.mycompany.com.
Now, say I wanted mail.*.mycompany.com to point to one server and www.*.mycompany.com to point to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Convert lptstr to char* Would anyone happen to know how to convert type LPTSTR to char * in C++?
A: Here are a lot of ways to do this. MFC or ATL's CString, ATL macros, or Win32 API.
LPTSTR szString = _T("Testing");
char* pBuffer;
You can use ATL macros to convert:
USES_CONVERSION;
pBuffer = T2A(szString);
CStri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How can I stream webcam video with C#? I want to make a simple server application where people can connect using a browser-based client (which I will make later) to watch streaming video. And I want to use C#.
What do I need to capture video or rapid images through a webcam and send them over the network?
A: The us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Zend_Paginator blurring MVC lines I'm working on a Zend Framework (1.7) project with a structure loosely based on the structure of the quickstart application - front controller, action controllers, views & models that use Zend_Db_Table to get to the database. One of my main models relies on some expensive joins to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I log to a table in SQL Server 2000? I'm writing into a log file, but I want to log into a table named "Log" in my database.
How can I accomplish this?
A: log4net has an AdoNetAppender, and a sample configuration right here.
A: Check out logging.apache.org for the log4X that fits the language you are using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I get the instance of a templated item from a databound ItemsControl? (WPF) I have an <ItemsControl> with a custom <DataTemplate> (and also a custom <ItemsPanelTemplate> that is just a WrapPanel), bound via ItemsSource to a simple observable collection of strings.
The DataTemplate consists simply of an instan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IIS Log Files showing Rewritten rather than Original Url I've got a problem in that changing the way I'm doing Url Rewriting in an Asp.Net application has changed the IIS log files from looking like this:
/page/ 80 etc..
/page/anotherpage/ 80 etc...
to
default.aspx page=1 80 etc...
default.aspx page=2 80 etc...
I'm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: WPF - Animations in a user control, learning, trying to understand, but feeling n00bish OK I'm redoing this since I messed it up. :) here's the xaml.
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="ucWaitIndicator.W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with SDL_DisplayFormatAlpha (c++) As I stated in this question, I am using SDL for a small game I'm developing. Now I am having problems with SDL_DisplayFormatAlpha. I am trying to create a surface with an alpha channel from a PNG image. It was working before, but now that I've done some slight refactorin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to calculate percentages? I want to calculate what is $x percentage of a $total. $x could be 15%, 20%, etc, and $total could be 1000, 2000, etc. So I'd want the 15% of 1000, for example.
What is the formula for calculating this? (I know this isn't exactly a coding question but I'm coding this feature and need he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Simple Form in an email...is it possible? I'm designing an html email for a Holiday Art Market. The request is simply for graphic design, make it pretty-put the date/time etc., but I'm wondering if I can also implement an RSVP form in the email: Are you coming, yes or no? Can this be done in an email, or do I need t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Refactoring a massive function into many files I've been trying to refactor a "bit" of code that I'd previously developed. Basically, the project was my response to not knowing how to use XSLT effectively, so I developed an XML transformation system in PHP. The program reads through the tags of an XML file and does ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which .net Web Application Framework to use? I am looking for a solid and easy to pick up .NET Web Application Framework for company-wide development use. I am considering DotNetNuke. Is it good ? What else can you recommend ?
A: If you're wanting a framework for "Web Applications" in .NET, then your choices boil d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java Timer class says "Timer tasks should complete quickly" , how do we define quickly? I am planning to use this to poll a database which can take close to 10-15 minutes or more, so should I be using timers for this.
A: If you want the task to complete quickly but what you need to do actually takes longer, you cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Application crashes on iPhone OS 2.2, works fine on 2.1 This is the trace of my app,when I updated my device to 2.2.
any idea to get rid of this leak? because I think that's the culprit who keep crashing my application.
This is trace when I run my application in os2.2,see the image which show the part which might be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simple Asynchronous Multi-Threaded HTTP request library for C++ I'll be quick and honest: I'm currently trying to write a client/server for an online game. Since I'm poor and limited on resources, I'll be testing the bare basics of the server using a PHP backend, with the eventual goal being to rebuild the server en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why isn't the navigationItem.titleView working? I'd like to put in an UIButton in the center of the navigation bar. Based on the document, it appears I need to set title view, and make sure the leftBarButtonItem is nil. But it is not work for me. Here is the code.
UIButton *btn = [UIButton buttonWithType:UIButtonTyp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Maximum boost factor What is the maxiimum boost factor value for a word in Lucene.Net?
I believe default value is 1.0f
Thanks!
A: It can be any positive number. Of course, if you pick an unreasonable number, like Float.POSITIVE_INFINITY (or the .NET equivalent), you'll end up with some crazy scores. Generally, you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Managing database connectivity with ADO.NET We have an application that is built upon ADO.NET. We follow some simple best practices that allow us to make use of the connection pool. For example, a block of code that is using a database might look something like this:
using( DbConnection dbConnection = GetDatabase... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best place to start decoupling objects This is a C# question, but really could be language-agnostic
I have inherited a large object model (100+ types), with a hierarchy of objects that 'own' 0..n of other typed objects that all share a base (where there is a 'relatively' strict type hierarachy).
I want to start deco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Haskell Function Application A bit of a neophyte haskell question, but I came across this example in Haskell's tutorial examples. For "find the last element of a list" there are some obvious versions, like
last' [x] = x
last' (_:xs) = last' xs
But I can't make sense of an alternate version presented:
myLast' = f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Create a new TFS Team Project and use existing source control folder I currently have a source control folder in TFS with all of my source code.
Is it possible to create a new team project and use the existing source control folder?
I have the option to create a new source control folder, create a new branch or not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What markup language for richly formatted content? When you are developing a web-based application and you want to allow richly formatted text from the user you have to make a choice about how to allow that input. Many different markup languages have been created because it is arguably more difficult to sanitize HT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Inheriting comments from an interface in an implementing class? Suppose I have this interface
public interface IFoo
{
///<summary>
/// Foo method
///</summary>
void Foo();
///<summary>
/// Bar method
///</summary>
void Bar();
///<summary>
/// Situation normal
///</summar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "127"
} |
Q: How to do grouping in Lucene search results? How do I group search results returned by Lucene by fields (similar to SQL Server's)?
A: Lucene 3.4 now supports faceted search. At indexing you specify something supplementary and at search time you search by query and by groups.
for next 3 docs, that you index with the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I get bash completion to work with aliases? Case in point:
I'm a on mac with bash v3.2.17, I'm using git installed via macports with the bash_completion variant.
When I type git checkout m<tab>. for example, I get it completed to master.
However, I've got an alias to git checkout, gco. When I type gco m<tab>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "215"
} |
Q: Can I write a DSL in Perl? We use Perl for GUI test automation. It has been very successful. We have written a very lightweight DSL kind of language for GUI testing. The DSL is very similar to a object model.
For example, we have an Application object at the root. Each property sheet in the application is a View obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How can I capture the output of an Executable in an image? I want to capture the output of an exe file as an png or jpg image, i mean the display of that exe.
Is there any command on windows to capture and save as image of an exe output or any other idea that i can do this.
A: There is always the Robot class in Jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Rhino Mocks - Setting up results for non-virtual methods I'm playing around with Rhino Mocks and am trying to set some dummy results on my mocked objects so when they are called in my factory methods I don't have to worry about the data.
But I've hit a snag, the methods I want to have the dummy results for are causi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create Java console inside a GUI panel How can I create an instance of the Java console inside of a GUI panel?
A: Here's a functioning class. You can install an instance of this into the system out and err using:
PrintStream con=new PrintStream(new TextAreaOutputStream(...));
System.setOut(con);
System.setErr(con)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Download a file with Adobe AIR How do I download a file from the internet in a Flex based AIR application.
I tried using a file with url set to the address, but I got a file does not exist error when I tried to save it. And it is really hard to google for help on this issue.
A: To build on seanalltogether's seco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Searching phrases in Lucene Could somebody point me to an example how to search for phrases with Lucene.net?
Let's say I have in my index a document with field "name", value "Jon Skeet". Now I want to be able to find that document when searching for "jon skeet".
A: You can use a proximity search to find terms withi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Hiding/Locking tables in oracle How do I hide/lock a few tables in Oracle so that only my application has access to modify those data in the table?
A: Create a user/login to the DB that you can control.
Assign that user as the owner (using grants) of the tables you need to "hide/lock".
Use grants to make the table... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET Events more common in winform than webform? Are declaring custom .NET event such as this, more common in a winform app than webform?
A: Custom events are probably a bit more rare in webforms compared to winforms, since http is stateless.
So in many cases, a user action you want to react on, often come in form... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET custom error page - Server.GetLastError() is null I have a custom error page set up for my application:
<customErrors mode="On" defaultRedirect="~/errors/GeneralError.aspx"
/>
In Global.asax, Application_Error(), the following code works to get the exception details:
Exception ex = Server.GetLastError();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "115"
} |
Q: Does your employer enforce the use of anti-piracy software? How does your employer limit/prevent pirating of its products?
Some have the view that piracy can be good because of the market share and exposure it gives. Sure these are benefits but they come at a cost.
Do you use any anti-piracy software or methods to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are there any winforms spinner like controls for adjusting floating point values? I have .NET app with a floating point value that I want to adjust up and down by a user adjustable increment with something like a spinner control. Before I go off and build my own, does something like this already exist?
A: Like a Nu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Find all feature in Lucene I have the following two fields on my web page: BookAuthor and BookDescription. On submit, the page searches against Lucene index using the given search criteria.
If the user does not type in anything in the two fields and submits the page, how do I make Lucene.Net return all the books fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need of Formula for Accurate Bandwith for 1 Gigabit NIC Card I am Need of Formula to Accurately Calculate Bandwith for 1 Gig Nic Card. What i am doing is send Layer 2 Packets @ 1Gbps but my software is showing 6oo Mbps.
The whole experiment is Back to Back. No switch No Router.
Here is what i did.
// LinkSpeed = 1Gb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Database size via WMI in .NET Is there a way to find out the size of a SQL Server database using WMI from .NET?
I've had a look at the WMI documentation but I'm not clear how I'd be able to locate that information.
We're using SQL Server 2008.
-dave
A: You can access this property via Microsoft.SqlServer.Management... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Which tools you use in the initial brain-storming of the project requirements? Other than pencil & paper?
I found freemind, the mapping tool very useful.
Any other ideas?
A: Post-It notes
Whiteboard and decent coloured pens
Walls to pin the notes on to
Digital camera to capture all the work
The book Domain Drive... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you clear output buffers when the program forks? I have a program that writes to a FILE *cgiOut and just after it has written to the stream, I need to fork and run a background process. The trouble is that after the fork, the FILE * stream seems to flush out sometimes and I get duplicated output (after the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Retrieve browser and OS in PHP I need to retrieve the browser and OS through php coding.
I had used $_SERVER['HTTP_USER_AGENT'], but its shows the following
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; IEMB3)
How can I separate the browser and OS from the above received... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Hide a section in MS CRM form which contains read only field Javascript
I have code that will hide various sections in a MS CRM form based on the value of a Picklist. The code executes in the onChange event of the Picklist. It hides the section by referencing a field in the section and then navigating up the DOM u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I get started programming in C++ on Win32? I have the need/desire to learn to program against Win32 in C++. I am a little confused as to what Win32 even is, as I have no experience on the platform.
What would you recommend to get me started programming and debugging C++ programs on Win32?
A: Answering your... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: asp.net survey questionnaire engine I am looking to implement (or build as a last resort) a type of survey engine that allows for extensibility and integration into an existing workflow engine.
The survey/questionnaire engine should allow for admin users to add new questions and response types (text/bool/multiple/et... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How can I make my server have open connections to multiple clients at the same time? I want to write my own little chat server in C on a MacOS machine. Now I want to connect to all clients, that are online and let the connection open, to be able to receive and send messages. The problem is that I only know, how to h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SELECT permission was denied on the object If have created a custom role within SqlServer which I added to the db__denydatareader and db__denydatawriter roles. I think went through the db and granted exec permission to all neccersary stored procedures.
Everything works fine, calling those sps will run fine. The one... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.