text string | meta dict |
|---|---|
Q: VisualC++ 6.0 with unsigned long long and sprintf I want to sprintf() an unsigned long long value in visual C++ 6.0 (plain C).
char buf[1000]; //bad coding
unsigned __int64 l = 12345678;
char t1[6] = "test1";
char t2[6] = "test2";
sprintf(buf, "%lli, %s, %s", l, t1, t2);
gives the result
12345678, (null), test1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Multi page forms in Rails I'm having a quite complex model with many fields, has_many associations, images added by image_column etc...
The New object will be added by a multi page form (8 steps) - How should I accomplish validation and propagation between those steps?
I think validation_group could be useful for de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I set the byte order marker for Unicode files? I know this is not a "real" programming question. But, it relates to programming so I am going to set it anyway. I have a program that I need to test that reads the Byte Order Marker of the file to see if it is utf-8 or utf-16. My problem is I cannot find a pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use Special Chars in Java/Eclipse How can I use/display characters like ♥, ♦, ♣, or ♠ in Java/Eclipse?
When I try to use them directly, e.g. in the source code, Eclipse cannot save the file.
What can I do?
Edit: How can I find the unicode escape sequence?
A: The problem is that the characters you are using c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How do I use sp_send_dbmail to send the content of a VARBINARY column? I have some files stored in a SQL Server 2005 table in a VARBINARY(MAX) column. I need to email these files to users on a schedule, and though I can write a C# service to extract and send the email sp_send_dbmail would seem to be perfect for my p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Most interesting non-mainstream language? I'm interested in compilers, interpreters and languages.
What is the most interesting, but forgotten or unknown, language you know about? And more importantly, why?
I'm interested both in compiled, interpreted and VM languages, but not esoteric languages like Whitespace or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Resizing XAML properties Is there a way to have XAML properties scale along with the size of the uielements they belong to?
In essence, I have a control template that I have created too large for it's use/ mainly because I want to use the same control with different sizes. The problem is that I can set the control s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Essential techniques for pinpointing missing requirements? An initial draft of requirements specification has been completed and now it is time to take stock of requirements, review the specification. Part of this process is to make sure that there are no sizeable gaps in the specification. Needless to say that the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Get full path of executable of running process on HPUX I want to get the full path of the running process (executable) without having root permission using C++ code. Can someone suggest a way to achieve this.
on Linux platforms i can do it by using following way.
char exepath[1024] = {0};
char procid[1024] = {0};
ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I unpack binary hex formatted data in Python? Using the PHP pack() function, I have converted a string into a binary hex representation:
$string = md5(time); // 32 character length
$packed = pack('H*', $string);
The H* formatting means "Hex string, high nibble first".
To unpack this in PHP, I would simply u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I write a .Net Regular Expression to match from the end of line back I have the following line of text
Reference=*\G{7B35DDAC-FFE2-4435-8A15-CF5C70F23459}#1.0#0#..\..\..\bin\App Components\AcmeFormEngine.dll#ACME Form Engine
and wish to grab the following as two separate capture groups:
AcmeFormEngine.dll
AC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WiX script with only Welcome and Completed screens I need a WiX 3 script to display to display only 2 dialogs: Welcome & Completed. Thats it no need for EULA, folder selection etc. All help appreciated.
A: If you are using Visual Studio and Wix 3.8 then you could create Wix Setup project and use text below as conte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How do I split strings in J2ME? How do I split strings in J2ME in an effective way?
There is a StringTokenizer or String.split(String regex) in the standard edition (J2SE), but they are absent in the micro edition (J2ME, MIDP).
A: There is no built in method to split strings. You have to write it on your own using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What is the buffer size to create a .zip archive using Java? I use this code to create a .zip with a list of files:
ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipFile));
for (int i=0;i<srcFiles.length;i++){
String fileName=srcFiles[i].getName();
ZipEntry zipEntry = new ZipEntry(fileName)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: EntitySet vs Table query performance in LINQ2SQL In a LINQ to SQL class, why are the properties that are created from the foreign keys EntitySet objects, which implement IEnumerable, where as the objects on the DataContext are Table objects which implement IQueryable?
EDIT: To clarify, here is an example that illust... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do you handle the tension between refactoring and the need for merging? Our policy when delivering a new version is to create a branch in our VCS and handle it to our QA team. When the latter gives the green light, we tag and release our product. The branch is kept to receive (only) bug fixes so that we can cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Single Table Inheritance An answer to a question of mine on DB design suggested something called single table inheritance. I've done a bit of searching on that, but I can't seem to find that much clear information on it.
Basically what I seem to understand from it is that you have a big table with all the fields in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I set the formatting of tinyMCE? I am using the wysiwyg editor TinyMCE and I have stripped out most of the functions to create a simpler version. However, I need the make the formatting as basic as possible as well, e.g., instead of <p> tags i need to use <br /> tags. Also, I would like it to not convert ' in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I prevent inserting new records into tables while using Linq and SQL? When creating a new object that is mapped to one of my SQL Server tables, LINQ inserts a new record into the table when I call SubmitChanges. I want to prevent this, but still need my new object.
I know about the custom methods, but is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Memory leak in .NETCF - creating dynamic controls? I have a problem with a memory leak in a .NET CF application.
Using RPM I identified that dynamically creating controls are not garbage collected as expected. Running the same piece of code in .NET Window Forms behave differently and disposes the control as I exp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a DBGrid component that can handle large datasets fast? Large datasets, millions of records, need special programming to maintain speed in DBGrids.
I want to know if there are any ready-made components for Delphi (DBGrids) that do this automatically?
EDIT For Example: Some databases have features such as f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I do access control via an SQL table? I'm trying to create an access control system.
Here's a stripped down example of what the table I'm trying to control access to looks like:
things table:
id group_id name
1 1 thing 1
2 1 thing 2
3 1 thing 3
4 1 thing 4... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I force ActiveRecord to reload a class? I'm creating a bunch of migrations, some of which are standard "create table" or "modify table" migrations, and some of which modify data. I'm using my actual ActiveRecord models to modify the data, a la:
Blog.all.each do |blog|
update_some_blog_attributes_to_match_n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: How do I track and debug JavaScript memory leaks in Firefox? I've been trying to track this one for literally a month now without any success. I have this piece of code on an car advertising website which basically allows thumbnails to rotate in search results given that a car has multiple pictures. You can see it i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to dynamically set which properties get bound to a DataGridView? My DataGridView needs to support a number of types and these types may have any number of public properties, not all of which I want to display.
Can anyone suggest a way to dynamically customise a DataGridView's columns when binding a class a datas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I parse a base query (à la Google Data) in Java? I have a system where I query a REST / Atom server for documents. The queries are inspired by GData and look like :
http://server/base/feeds/documents?bq=[type in {'news'}]
I have to parse the "bq" parameter to know which type of documents will be returned wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using SQL for cleaning up JIRA database Has anyone had luck with removing large amount of issues from a jira database instead of using the frontend? Deleting 60000 issues with the bulktools is not really feasible.
Last time I tried it, the jira went nuts because of its own way of doing indexes.
A: How about doing a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the difference between StaticResource and DynamicResource in WPF? When using resources such as brushes, templates and styles in WPF, they can be specified either as StaticResources
<Rectangle Fill="{StaticResource MyBrush}" />
or as a DynamicResource
<ItemsControl ItemTemplate="{DynamicResource MyItemTempla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "519"
} |
Q: Cooliris fetching from google docs: We're creating a Interaction design pattern website for a class.
We've been using google docs to create the patterns list during the classes, sharing it with the teacher for evaluation.
So the environment is this:
*
*We've been able to fetch a single image from each presentatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Persistence framework? I'm trying to decide on the best strategy for accessing the database. I understand that this is a generic question and there's no a single good answer, but I will provide some guidelines on what I'm looking for.
The last few years we have been using our own persistence framework, that although... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Caching a const char * as a return type Was reading up a bit on my C++, and found this article about RTTI (Runtime Type Identification):
http://msdn.microsoft.com/en-us/library/70ky2y6k(VS.80).aspx . Well, that's another subject :) - However, I stumbled upon a weird saying in the type_info-class, namely about the ::... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C# : How does this work : Unit myUnit = 5; I just noticed that you can do this in C#:
Unit myUnit = 5;
instead of having to do this:
Unit myUnit = new Unit(5);
Does anyone know how I can achieve this with my own structs? I had a look at the Unit struct with reflector and noticed the TypeConverter attribute was bei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Can an Adobe AIR Application run via the command line output to console? I have an AIR application that takes command-line arguments via onInvoke. All is good, but I cannot figure out how to print some status messages back to the user (to stdout / console, so to speak). Is it possible?
Even a default log file for tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: JQuery: Visual studio, error CS1056: Unexpected character '$' Trying to include ThickBox (from http://jquery.com/demo/thickbox/) in an ASP.NET application.
Visual Studio is failing when I try to run the application with the error:
js\ThickBox\jquery-1.2.6.min.js(11): error CS1056: Unexpected character '$'
Using Visu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to invoke .net page methods from javascript without jquery? I've been trying to call Page Methods from my own JavaScript code but it doesn't work. If I use jQuery AJAX I can sucessfully call the Page Methods, but I need to do this from my own JavaScript code because we can't use third-party libraries (we are bui... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem parsing an XLS file with C# Ok, let's see if I can make this make sense.
I have a program written that parses an Excel file and it works just fine. I use the following to get into the file:
string FileToConvert = Server.MapPath(".") + "\\App_Data\\CP-ARFJN-FLAG.XLS";
string connectionString = "Provider=Mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: object editing and isDirty() flag I'm working on a system were a user can edit existing objects ("Filter" domain objects to be exact) through a GUI. As a UI hint, we only want to enable the save button if the user really modified something to the object. I was wondering if anyone had any experience with this problem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: ASP.NET: Popup browser windows and session cookies SUMMARY: When browsing an ASP.NET website using Windows Explorer, popup windows do not "borrow" the session cookie from the parent window.
DETAILS:
I'm working on an ASP.NET website (.NET 2.0). I use FormsAuthentication. It is a requirement to use cookies to handle ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mercury Quick Test Pro - Testing with a custom grid We are trying to create some tests that reference an vendors custom grid. Unfortunatly QTP only recognises it as a WinObject which is quite useless. We need to be able to navigate the grid and change cell values, double click on a cell(without using X,Y co-ordinat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Retrieving values in reflected types from reflected properties I need to access some members marked internal that are declared in a third party assembly.
I would like to return a value from a particular internal property in a class. Then I'd like to retrieve a value from a property on that returned value. However, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When can I delete a file after using it in Response.WriteFile()? Is the WriteFile call properly synchronous, and can I delete the file written immediately after the call?
A: If you're writing a file to the client with Response.WriteFile(), a call to Response.Flush() will make sure it's been fully output to the clie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What is the difference between: image/x-citrix-pjpeg and image/pjpeg Some files are uploaded with a reported MIME type:
image/x-citrix-pjpeg
They are valid jpeg files and I accept them as such.
I was wondering however: why is the MIME type different?
Is there any difference in the format? or was this mimetype inven... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do you control architecture in an agile project? How do you ensure that the project will be build with "good" design decisions enabling a flexible software architecture?
How do you balance between completely leaving the architecture to the teams on one side, and let all architecture control to a few individuals ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Embedding Intellisense Xml Documentation in Assembly? I have an assembly containing very thorough XML-based documentation, which is used through Sandcastle to generate the help-files for the product. We also use the output XML files for providing proper Intellisense in Visual Studio when programmers use the assembly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: In C#, I have a IntPtr to a WIN32 WndProc. What is the syntax for calling it? I'm subclassing a native window (the edit control of a combobox...)
oldWndProc = SetWindowLong(HandleOfCbEditControl, GWL_WNDPROC, newWndProc);
In my subclassing wndproc, I'll have code like this, right, but I can't figure out the syntax f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to pass querystring to testAction in CakePHP 1.2? In CakePHP putting a querystring in the url doesn't cause it to be automatically parsed and split like it normally is when the controller is directly invoked.
For example:
$this->testAction('/testing/post?company=utCompany', array('return' => 'vars')) ;
will re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I make vim indent java annotations correctly? When indenting java code with annotations, vim insists on indenting like this:
@Test
public void ...
I want the annotation to be in the same column as the method definition but I can't seem to find a way to tell vim to do that, except maybe using an indent ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Is there a way of decoding html entities whilst leaving , ect alone, using PHP? I am using tinyMCE as my text editor on my site and i want to reformat the text before saving it to my database (changing the ’ tags into ' then in to '). I cannot find a simple way of doing this using tinyMCe and using htmlent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is ASP.NET failing due to permissions on GAC? I'm trying to run an ASP.NET 2.0 application on an XP machine. As far as I know, everything is configured correctly. However, I receive the following message:
Server Application Unavailable
And two events appear in the Application event log each time:
aspnet_wp.ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Solution: Per application, or per application suite Often multiple applications share a large codebase of libraries that change often in development. In these cases, I prefer to create a solution named after the suite, and include separate projects for each application and the shared libraries.
Is this a good appro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Find all storage devices attached to a Linux machine I have a need to find all of the writable storage devices attached to a given machine, whether or not they are mounted.
The dopey way to do this would be to try every entry in /dev that corresponds to a writable devices (hd* and sd*)......
Is there a better soluti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "113"
} |
Q: What is more readable? I have these two pieces of code, wich one is more readable?
*
*foreach
decimal technicalPremium = 0;
foreach (Risk risk in risks)
{
technicalPremium = technicalPremium + risk.TechnicalPremium;
}
return technicalPremium;
*linq
return risks.Sum(risk => risk.TechnicalPremium);
A: For ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What does InstallShield 2008 use for working with databases? I am using Installshield 2008 Developer Edition and need to run SQL scripts against an existing SQL Server 2005 Express. When I do this without InstallShield, I would have to have some ODBC drivers installed for example.
How does InstallShield do this? Do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C#-SQL: How to execute a batch of StoredProcedure? Edit: My problem is not a problem anymore: I have redo my performances tests and I have do a fatal stupid error: I had forget a x1000 to get seconds from milliseconds :/
Sorry for that guys.
For info:
- I do some 1900 updates per second from my PC to the DataBas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Good resources about unit testing? Is there any good book or material which covers C# unit testing using mocks in depth?
A: How about The Art of Unit Testing. This is .NET specific, and should be fairly up to date.
A: There is a rather good book describing how to use NUnit and NMock to do C# unit testing:
Pragma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/200997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why can't I connect to a WCF service with net.tcp but i can with http? I have a WCF service running on the IIS with a ServiceHostFactory. It's running fine with the WSHttpBinding but because of the speed and everything being on the same network (no firewalls) i want to speed up things a bit using the NetTcpBinding i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: which scope should a DAO typically have its out of question that a dao will not hold any state.
however, for easiest access to the class, is it better to use prototype( = new every time) or singleton?
simple object creation is cheap for dao's.. it typically only holds a sessionfactory,
accessing the object from a li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hibernate Union alternatives What alternatives do I have to implement a union query using hibernate? I know hibernate does not support union queries at the moment, right now the only way I see to make a union is to use a view table.
The other option is to use plain jdbc, but this way I would loose all my example/cri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: I can read a binary field in MS SQL server 2005 I try to read a binary field in database ( Project Server 2007; dbo.MSP_CALENDAR ). MS don't implemante any fonction into PSI.
Everybody have a suggestion?
Thanks in advance
SPo
In Database Piblished, in table dbo.MSP_CALENDAR, i found a field named CAL_DATA, this f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Entity Perspectives Context:
So, I am attempting to build a ridiculously complex domain model. Talking with the users, there are multiple ways the system will be used (For example: one way is from the perspective of the employee; another way is from the perspective of the employer). In actuality, they are multip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a perceptual DeltaRGB comparison of two colours (i.e., like DeltaE2000)? Is there a reliable Delta RGB formula or code snippet that does colour Delta of the full RGB tri stim values, like how DeltaE 2000/cmc does Lab/Lch that takes perceptual differences into account?
The RGB Colourspace could be any, but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When to use a build tool? A beginner question, bear with me: I'm just wondering under what circumstances one should use a build tool like nant or msbuild? I'm working on a medium sized application (.net 3.0), every developer is doing his work and builds on his machine checking his code changes into the repository as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to sync access to file between ASP.NET web site and ASP.NET web service on one web server I have deployed ASP.NET web site and ASP.NET web service on the same web server. Both of them require access to shared file.
How to implement/share lock that supports single writers and multiple readers? If somebody reads,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the difference between SQLNCLI and .NET Framework Data Provider for SQL Server I have an application which uses a UDL file where the connection string specifies "Provider=SQLNCLI.1" which doesn't work on a specific machine because sqlncli.dll is not installed.
Another .Net app however, where the connection st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to decode a CSR File? I ran accross a CSR file (Certificate Signing Request) and I need to extract some information from it.
There's a way to decode it using .NET Framework?
A: Decoding a CSR is easy if you employ the OpenSSL.NET library:
// Load the CSR file
var csr = new X509Request(BIO.File("C:/temp/test.csr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Unit testing for safe publication How would you unittest a safe-publication guarantee in Java?
To be concrete:
I have a Cache interface that has a method getOrLoad(K key, ObjectLoader loader). Thing is, if a Cache cannot find an object for the given key, then it must load it from the ObjectLoader instance. However, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to remove the last row from the text file? What's the easiest way to remove last row from the text file using SQL Server Integration Services?
Thanks.
A: Because SSIS is pipeline based, there's no good way to look ahead and know that a line is the last line.
However, depending on your actual goal, there are a n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can't install Visual Studio 2008 after having beta version When trying to install Visual Studio 2008 I get the following message straight away:
"You must uninstall all pre-release
products in a specific order before
you can continue with setup."
And then it gived me this link on how to do that.
I've been wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I handle exceptions thrown by asmx services? ASP.NET ASMX service occasionally throws exceptions. However, global.asax Application_Error method do not seem to catch them. The question is, how to configure global error handler to catch and log these exceptions?
A: Basic problem (well it is not a problem) with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to initialize all members of an array to the same value? I have a large array in C (not C++ if that makes a difference). I want to initialize all members of the same value.
I could swear I once knew a simple way to do this. I could use memset() in my case, but isn't there a way to do this that is built right int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1146"
} |
Q: What factors should effect the Data Access Layer I use on a new project? I will be teaching a class sson, and I need to explain what factors should affect your decision of data access technology.
I am familiar with many data access methods like Typed Data Sets, Linq to SQL, Linq to Entities, .netTiers, LLBLGen, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQLmetal, is it only a mapper for linq to sql? Is the code gen tool sqlmetal only a mapper to linq to sql?
I'm looking for something that will create common CRUD operations also like:
GetUserByID
UpdateUserByID
InsertUser
GetAllUsers
etc.
A: Yeah, SQLMetal only creates the mapping file. Most CRUD operations are tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create a JNIEnv mock in C/C++ I am writing some JNI code in C that I wish to test using cunit. In order to call the JNI functions, I need to create a valid JNIEnv struct.
Does anyone know if there is a mocking framework for such a purpose, or who can give me some pointers on how to create a mock JNIEnv struct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Efficient traversal of a changelist I have a list of changes to a list - Adds and Deletes. The list could be huge - say 10'000 items.
I want to know the state of the list after change 9'000.
I could walk the list from the start all the way to change 9'000. That seems a bit long-winded to me.
I could keep a list of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Simple way to grab thumbnail of FLV in ASP.NET without changing permissions on server? I'm looking for a simple way to grab thumbnails of FLVs in ASP.NET, without having to change any permissions/settings on the server. Ideally, nothing is installed on the server machine, but if necessary, small tools such as FFmpeg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do web applications need HTML header tags? The question is, should we design applications/forms using headers or stick to spans and divs? When the world was using html to link documents, these header tags looked like the 'Table of contents'. In the new era where html is used for applications, using header tags in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WCF client consuming multiple asmx service that uses HTTP Cookies I am trying to use the same http cookie (in effect a asmx sessionid), in multiple WCF client endpoints.
The server has several endpoints, one of them is:
AuthenticationService.asmx
Login() <- Creates a HTTP cookie that is the servers ASP.NET s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Be notified when visual/logical child added/removed I am currently looking for a way to be notified when a child is added to the visual or logical children.
I am aware of the Visual::OnVisualChildrenChanged method, but it does not apply to me since I can't always inherit and override this function. I am looking for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Interface doesn't accept inherited member (OO question) I feel like a fool, but here goes:
public interface IHasErrorController{
ErrorController ErrorController { get; set; }
}
public class DSErrorController: ErrorController{yadi yadi ya}
public class DSWebsiteController : Controller, IHasErrorController{
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Debugging with exceptions: How to work around 'Break when thrown' I'm getting tired of clearing the Debugging->Exceptions option Break when thrown to get past an exception I handle properly, then setting the Break when thrown option to find the source of a subsequent exception not handled properly.
I would like a wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to determine equality for two JavaScript objects? A strict equality operator will tell you if two object types are equal. However, is there a way to tell if two objects are equal, much like the hash code value in Java?
Stack Overflow question Is there any kind of hashCode function in JavaScript? is similar to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "937"
} |
Q: Automatically enforcing a max database table size by dropping old rows I have an Oracle table which contains event log messages for an application. We don't want this table to grow out of control and eat up too much space, so we'd like to set a cap on the number of rows that it can contain to some big number like o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using system environment variables in log4j xml configuration Is it possible to reference system environment variables (as opposed to Java system properties) in a log4j xml configuration file?
I'd like to be able to do something like:
<level value="${env.LOG_LEVEL}" />
and have it get that from the system environme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: How to get a calculated column back in Linq To SQL We are using Linq To SQL with our own data context logic that executes the one linq query across multiple databases. When we get the results back, we need the database for each of the rows. So...
I want to have a property on my class that will return the database ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Guide to New Vista Features I'm an MFC programmer. I just had my first taste of Vista (on a VPC... Yup, I'm late). I should be evaluating things in depth in the coming days. On taking a casual look, I noticed two major changes:
*
*The shell is new
*User Access Control
*Event Viewer has changed (would like more ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I share a folder of content between multiple ASP.Net projects in studio? I would like to share 2 folders of content ('stylesheets' and 'graphics') between multiple asp.net projects in a solution.
Is there a way to do this and have studio display the graphics and such appropriately at design time?
A: I looke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What does "Message Catalog Not Found" mean? I have a MDB running in WebSphere, when it tries to pull a message off an MQ Queue
the following exception is thrown:
com.ibm.mq.MQException: Message catalog not found
Any idea how to resolve this?
A: Add the directory containing the mqji.properties file to the CLASS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Winforms - Dynamic Load / Save Settings I have a "settings file" in my Winforms application called Settings.settings with a partial class for custom methods, etc. Is there a way to load / save dynamic settings based on arbitrary keys?
For example, I have some ListViews in my application in which I want to save / loa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Importing Active Directory Users and Groups into SQL Server (possibly via c#) I need to import all ad groups in a few OUs into a table in SQL Server 2008. Once I have those I need to import all the members of those groups to a different table. I can use c# to do the work and pass the data to SQL server or do it di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can't find dynamic controls in datagrid on postback Using .NET 1.1, I have a DataGrid that contains three columns for each row.
Row one has a label with some text.
Row three will always have two radio buttons and two checkboxes and those are in the HTML side of the page.
Row two will have dynamically generated cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MarshalAsAttribute Sizeconst .NET Using C#, does anyone know how to get the MarshalAsAttribute's Sizeconst value in runtime ?
Eg. I would like to retrieve the value of 10.
[StructLayout[LayoutKind.Sequential, Pack=1]
Class StructureToMarshalFrom
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
public ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Making Excel functions affect 'other' cells Let's say that I create a Sub (not a function) whose mission in life is to take the active cell (i.e. Selection) and set an adjacent cell to some value. This works fine.
When you try to convert that Sub to a Function and try to evaluate it from from spreadsheet (i.e. sett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I get table names from an MS Access Database? Microsoft SQL Server and MySQL have an INFORMATION_SCHEMA table that I can query. However it does not exist in an MS Access database.
Is there an equivalent I can use?
A: Here is an updated answer which works in Access 2010 VBA using Data Access Objects (DAO). T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: How do I get which JRadioButton is selected from a ButtonGroup I have a swing application that includes radio buttons on a form. I have the ButtonGroup, however, looking at the available methods, I can't seem to get the name of the selected JRadioButton. Here's what I can tell so far:
*
*From ButtonGroup, I can p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: Bad characters and sql*loader how to find out mal characters(unsupported eg. Ω ) when inserting using sqlloader? or
list the mal characters to avoid junk data?
A: I don't think I understand the question. Does this: http://www.akadia.com/services/ora_sql_loader_utf8.html provide an answer?
Also, you might look at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Limit Database List to Ones With Permission SQL Server By default if you connect to a remote SQL Server via an account that has access to say 1 of the 10 databases. You will still see in the Object Explorer all other databases, obviously due to permissions you cannot actually query them, but you can see their names... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Mounting/Unmounting USB disks on Windows On Windows Server, by default, external USB disks don't always get mounted. I'd like my program (written in C#) to be able to detect external USB disks, identify them, and then mount them.
When it's finished, it should do whatever the programmatic equivalent of "Safely Remove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: escaping formatting characters in java String.format This question is pretty much the same as this .Net question exept for java.
How do you escape the %1$ characters in a java String.format?
THe reason I need to do this is that I'm building up a string that will later have more info inserted into it. I've thought of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: nearest ancestor node in jQuery In my javascript experience, I found that is a very common task "searching the nearest ancestor of an element with some condition (tag name, class,...)".
Can the parents() method of jquery do the job? The order of returned elements of parents() is predictable? Is top-to-bottom or bot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How would you notifiy clients about changed data on the server using .Net 2.0? Imagine a WinForms client app that displays fairly complex calculated data fetched from a server app with .Net Remoting over a HTTPChannel.
Since the client app might be running for a whole workday, I need a method to notify the client th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |