text stringlengths 8 267k | meta dict |
|---|---|
Q: Configuring WCF security settings I have a WCF service that is hosted in a windows application. The service uses netMsmqBinding. The client and the host are in different domains. My question is how do I configure the security settings?
The data that is transferred is sensitive so I would like to secure the communic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Manager Classes? Im writing a .net webforms app. It has a number of classes, for example users, bookings etc.
At the moment I have a number of manager classes, say bookingManager, that manage these classes. For example when creating a new booking, you call the add method in the bookingManager, and pass a booking. It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a lst file in SQL? I want to create a lst file from a sql script
Here is my code:
BEGIN
DECLARE
loc_bia_foracid GAM.foracid%TYPE;
loc_fba_foracid GAM.foracid%TYPE;
out_spool VARCHAR2(32000);
BEGIN
loc_bia_foracid:= '&loc_bia_foracid';
loc_fba_foracid:= '&loc_fba_foracid';
out_spool := out_spool || '|'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are Windows DLLs signed by Microsoft? Can I detect if they've been tampered with by a third party? I'm implementing a locking and copy protection system for my software. I've shut every hole that would allow someone to break my lock (well, that's a little too optimistic, I know!) but the last thing is this:
I hear c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How write data to a text file using ANSI format Using ASP.net, how do you write ANSI characters to a text file?
I need to write this file's text to the web browser. Do they support ANSI?
A: Use System.IO.StreamWriter.
It has an constructor that accepts the encoding:
FileStream fs = new FileStream(fileName,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: wse 3.0 or wcf and where to start I have created a web service which has a couple of methods developed using .net 3.5. The clients who will access the web service will be using .net 3.0.
I have been asked to make this web service "secure" and having looked on the net have seen a number of options.
First one is to u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Are Sockets the best way to go? I'm working on a tool which would need to communitacte: send and recieve files with other remote instances of the tool over the internet. Which communication option would be best to use in this case ? Sockets?
A: Sockets is definitely not the way to go. Instead you should use an alre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: F# for C# programmer who already incorporates function delegates as parameters I have a book coming on F#, but at the moment I am pretty uninformed, so I thought I'd ask.
From very little I know of F#, I am struggling to see what it gains me over C# bar a possible syntactic neatness. There seems nothing conceptuall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Receiving automatic notification from SQL Server when a table is non-empty I would like to use an SQL Server table as an action queue. So whenever the table is non-empty, I'd like some sort of notification to my VDF application, in order to avoid constantly polling the database. VDF relies on using stdcall, the stan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Must issue a STARTTLS command first. Sending email with Java and Google Apps I am trying to use Bill the Lizard's code to send an email using Google Apps. I am getting this error:
Exception in thread "main" javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: 53... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: IOException reading a large file from a UNC path into a byte array using .NET I am using the following code to attempt to read a large file (280Mb) into a byte array from a UNC path
public void ReadWholeArray(string fileName, byte[] data)
{
int offset = 0;
int remaining = data.Length;
log.Debug("ReadWho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: javascript options selected IE6 vs. FF2 the following js works fine in FF2 but in IE6 the dropdown always selects one option to early, IE -> testix2 vs. FF2 -> testix3
If we add an alertBox somewhere in the script, it also works fine in IE6.
But how to solve this without an alertBox?
tia
<script language="JavaScript... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Database alias in Informix In Informix I can run SQL statement that use other database:
INSERT INTO other_db:mytable ...
I would like "unite" both databases, but I would like do it "step by step".
At first I want to move all data from other_db to main database
and make alias that other_db = main_database. This way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How the iPhone multi-touch event triggered? I read the SDK document, but can not understand some details, need some help.
for the
-(void)touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event
*
*what's the difference between touches and [event allTouches]?
*if user release one finger, but still has other finger... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to ship external stylesheet for my new JQuery Plugin? Strategy needed I've written my first JQuery plugin and one of it's dependancies is an external css stylesheet. Do you think this is an acceptable strategy to include this in the distributable or should I embed style information in the plugin itself? Sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does iPod's audio not fade back in after my app caused it to fade out? My app needs to play some audio files and I want to fade-out the iPod sound, play my file, and then as soon as my audio stops playing fade-in iPod again (just like iPhone handles iPod music when an incoming call comes in)
I'm setting up my ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: To use self. or not.. in Rails I've been coding in Ruby for sometime now, but I don't understand when to use:
def self.METHOD_NAME
end
or just:
def METHOD_NAME
end
In any Rails model. Is "self" a modifier like private in Java? When should I use it and when not?. Thanks a ton.
A: In this context - def self.method_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: Correct way to escape characters in a DataTable Filter Expression I would like to know if there is a function to correctly escape string literals for filter expressions. e.g.:
DataTable.Select(String.Format("[name] = '{0}'", MyName))
If MyName contains ' or a number of other key characters an exception is generated... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Keeping ViewState in SessionPageStatePersister I want to keep viewstate of a specific page in session but following code block does not help me, what might I be missing?
So here is the code-behind file content of my page;
public partial class ConfigurationEditorWebForm : PageBase
{
protected void Pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Get signatures of exported functions in a DLL Is it possible to get an exported (C style?) function's signature (parameter count/types, return type) from a DLL? I can view the list of function names, addresses, ordinals, etc. with DLL Export Viewer but I can't view the signatures. I only have the dll file and don't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Has anybody made a german config file for the GhostDoc AddIn? Has anybody made a german version of the GhostDoc template textes?
A: As far as I am aware, GhostDoc bases its processing on a hard-coded set of parsing rules based on programmer-English conventions. I've written an alternative add-in (AtomineerUtils) wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IHttpHandler Example required for Image Type Files C# ASP.Net Can anyone provide a good example of IHttpHnalder for handling Image Type. I want to resize the image that's hosted on my server
A: Problem using iHttpHandler
and
How to know which image has been requested
Both have examples of HTTPHandlers for serving i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Drupal Aggregator input format Drupal Aggregator core module is a useful one but suffers many problems. There are many talking about improving it in Drupal 7.
Right now I'm using Aggregator module which comes with Drupal 6. I'm building an aggregation site, and there is one BIG problem. Sometimes feeds contain HTML ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: need help - bit-field conversion I want to convert strings to bit-fields.Also,convert them to binary and then use.
Need help with this..help me ..
A: I think the struct module is what you're after.
Example of usage:
>>> from struct import *
>>> pack('hhl', 1, 2, 3)
'\x00\x01\x00\x02\x00\x00\x00\x03'
>>> unpack('hh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: For Delphi IDE, Functions list in code editor like in Visual Studio For Delphi IDE, Is there any tool/expert to know the name of the function where the cursor is, without scrolling the code editor?
A: CnPack offer that too for free ;-)
A: Castalia is the tool you want, for all IDE's including the post-Delphi 7 ver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Comparison of XSD Code Generators I'm doing some research in code generation from xsd schema files.
My requirements:
*
*Must generate C# 2.0 code (or above), using generic collections where needed.
*Must generate comments from the xsd comments
*Must generate fully serializable code.
*Should be able to generat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: Pessimistic lock in T-SQL If i SELECT a row for updating in MS SQL Server, and want to have it locked till i either update or cancel, which option is better :-
1) Use a query hint like UPDLOCK
2) Use REPEATABLE READ isolation level for the transaction
3) any other option.
Thanks,
Chak.
A: If you're waiting on anot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C++ Mysql++, always fails connection! Steps:
- Installed Mysql Server 2005
- Downloaded Mysql++, built both debug and release version.
- Ran install.hta and selected a directory
- Added library/include directory in MSVC++ 2008
- Included mysql++.h in my application
- Moved .dll files (libMYSQL.dll and mysqlpp.dll a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does "active directory integration" mean in your .NET app? Our marketing department comes back with "active directory integration" being a key customer request, but our company does not seem to have the attention span to (1) decide on what functional changes we want to make toward this end, (2) interview a broa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to dynamically create a object of a generic class? i have a sub with this signature
Public Sub Save(ByVal obj As IPta)
now i want the create a instance of Generic.PtaDao(of T) with the type of obj, which could be anything that inherits from my base class Pta
how can i do that?
i already found a c# example
Decla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get the source of some website from asp.net code Is there any way that I could get the source of a website (as a string preferably), let's say www.google.com, from some c# code inside code behind of asp.net website?
edit: of course i mean html code - in every browser you can view it using "view source" in context me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Illegal Date strings in Java How do I get a DateFormat of some sort to throw an exception if I try to parse an illegal date? If I parse a date like "99.99.9999" with a SimpleDateFormat with the pattern "dd.MM.yyyy", no exception is thrown, but this is clearly not a valid date.
A: DateFormat.setLenient(false)
| {
"language": "en",
"url": "https://stackoverflow.com/questions/386191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Possible to search multiple tables with a single query? [MSAccess/SQL Server] So my goal here is to have a single search field in an application that will be able to search multiple tables and return results.
For example, two of these tables are "performers" and "venues" and there are the following performers: "John... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linq-to-Sql SubmitChanges not updating fields ... why? I posted this question yesterday evening, which has led me to discover a huge problem!
I have a decimal column in my database called Units, anytime I set the value of the column to a NON ZERO, and SubmitChanges the column updates with the new value. If I try to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I hide "defined but not used" warnings in GCC? I have a bunch of compile time asserts, such as:
CASSERT(isTrue) or CASSERT2(isTrue, prefix_)
When compiling with GCC I get many warnings like 'prefix_LineNumber' defined but not used. Is there a way I can hide warnings for compile time asserts? I had no luck s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: SQLCE Connections: Keep them open or let them close? Keeping performance on a mobile device in mind, what do you think is the best approach with an SQLCE Connection. Keep it open for the duration of the application or let it close whenever a call to the database is needed.
Obviously this depends a little on the natu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Same server, same program but started once using one network card and after with another I have a Linux server with multiple ips (so, multiple eth0, eth0:0, eth0:1 etc).
The script I'm trying to start is a php CLI script which is downloading stuff from an another server API, and I would like to change the IP based o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Shell extension for drive like GDrive? How can I go about with writing a shell extension to display online files in a virtual drive like the Gmail Drive does?
A: There's a two-part article on CodeProject that may contain the info to implement such an extension to explorer: part 1, part 2.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/386239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I deploy an Oracle database? I have an ASP .NET application that connects to an Oracle or a SQL Server database. An installer has been developed to install a fresh database to an existing SQL Server using sql commands such as "restore database..." which simply restores a ".bak" file which we keep under source... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: operator ThisClass() causing stack overflow I want to keep the class simple and not defined a constructor so i can do Pt data = {0, 5};
so i figured the best way convert Pt_t from a short to long or vice versa is to do something like this.
template <class T>
struct Pt_t
{
T x, y;
template <class T2> operator... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is InfoPath the right choice? Ok so we have an upcoming development that will involve a level of off line processing of dynamic forms. Here's what we have to do:
*
*Create a asp.net web application whereby users can download dynamic forms, fill them in then upload them to be published.
*We also have a windows m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which patterns for loose coupling do you use most? Lately I have seen a lot of blog posts concerning how to build loosely coupled applications. Which patterns do you use most when creating loosely coupled applications? Dependency Injection? Inversion of Control?
A: I find myself using the Command pattern quite ofte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: TortoiseSVN is showing the Question mark decorators At the root of my d: drive, TortoiseSVN is showing the question mark decorators on all the folders. The d: drive is not a SVN working copy. How do I remove the decorators?
A: There are two things you should check.
*
*Remove any .svn folders from the root level o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to implement "select all" check box in HTML? I have an HTML page with multiple checkboxes.
I need one more checkbox by the name "select all". When I select this checkbox all checkboxes in the HTML page must be selected. How can I do this?
A: I'm not sure anyone hasn't answered in this way (using jQuery):
$( '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "265"
} |
Q: WebService attributes I am creating a web service that generates the following in the WSDL file:
<wsdl:portType name="myServicePortSoap">
and would like to have it renamed to generate:
<wsdl:portType name="myServicePort">
How can I do that within the .asmx file to do so? Any ideas please?
A: Apparently specifying... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the maximum length of a valid email address? What is the maximum length of a valid email address? Is it defined by any standard?
A: 320
And the segments look like this
{64}@{255}
64 + 1 + 255 = 320
You should also read this if you are validating emails: I Knew How To Validate An Email Address Until I Read T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1184"
} |
Q: How to fix memory access error I am working on a migration project, here we are migrating large set of C++ libraries from Mainframe to Solaris. We have complted migration sucessfully, but while running the application, some places it crashes with 'signal SEGV (no mapping at the fault address)'.
Since the applicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access: How to find a field in a whole database? I have an access database with many tables. I am looking for a field which may or may not exist in one or many of the tables. How do I check if it exists or not? (without querying each table of course)
A: There is a schema for fields:
Set cn = CurrentProject.Connecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to create OR statements for NHibernate? When creating a criteria for NHibernate all criteria are added as AND.
For instance:
session.CreateCriteria(typeof(someobject))
.Add(critiera)
.Add(other_criteria)
then end result will be
SELECT ...
FROM ...
WHERE criteria **AND** other_criteria
I would like to tell NHib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: What optimization problems do you want to have solved? I love to work on AI optimization software (Genetic Algorithms, Particle Swarm, Ant Colony, ...). Unfortunately I have run out of interesting problems to solve. What problem would you like to have solved?
A: How about the Hutter Prize?
From the entry on Wikiped... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Calculate longitude/latitude Given the following input:
*
*known longitudes/latitudes of 1..n locations
*known distance between locations 1..n and another location "m"
How can I calculate the longitude/latitude of the location "m"?
A: This sounds like a basic latitude-longitude triangulation question. The co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Changing our BL design - which pattern(s) would be most useful? I am in the process of refactoring our BI layers to make our code more "loosely coupled" and I was interested to hear what you guys thought might be interesting improvements to make?
At present, our API is something like the following:-
// Fetch a colle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: CSS box model pushing element lower on the page Hi I'm trying to fix a bit of test html to work with opera/chrome. It's using the holygrail box model from matt levine.
In IE and firefox it looks like
correct layout http://img187.imageshack.us/img187/4049/writedn1.jpg
In chrome, opera and safari it pushes the sideba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I check all checkboxes on an HTML page with one click? I am html page with 5 checkboxes
My requirement is to have one morecheckboxes "Select All" which is used to select all 5 checkboxes.
Thanks in advance
Closed as exact duplicate of this question.
A: If you're looking for javascript that will check your 5 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where can I find a collection regular expression exercises for Perl? I learned a lot of Perl RegEx syntax rules, but probably the only way to actually be able to write them is to do a bunch of 'RegEx' related exercises.
I looked over the other "Learn RegEx" threads on StackOverflow, but haven't found anything simila... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I convert ticks to minutes? I have a ticks value of 28000000000 which should be 480 minutes but how can I be sure? How do I convert a ticks value to minutes?
A: TimeSpan.FromTicks( 28000000000 ).TotalMinutes;
A: You can do this way:
TimeSpan duration = new TimeSpan(tickCount)
double minutes = duration.Total... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: C++ classes - constructor declaration in derived class Socket has a constructor that takes a winsock SOCKET as parameter and stores it in a private variable:
Socket::Socket(SOCKET s) {
this->s = s;
}
I'm trying to make a class "GameSocket" that will parse data from my Socket class:
class GameSocket : public Soc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual Studio Team System switching opinions Assume your .NET-based development team is already using the following set of tools in its processes:
*
*Subversion / TortoiseSVN / VisualSVN (source control)
*NUnit (unit testing)
*An open source Wiki
*A proprietary bug-tracking system that is paid for
You are ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to encrypt a value in ini file What is the best way to encrypt a value in INI file?
Using Encryption/Decryption key??
A: For what purpose? Security?
If you are trying to (e.g.) encrypt a plaintext password you should probably use some implementation of PKI. Remember though, that then key management becomes y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Ambiguous XML schema I'm trying to produce a pretty simple XML schema for an XML similar to the following:
<messages>
<item>
<important_tag></important_tag>
</item>
<item>
<important_tag></important_tag>
<tag2></tag2>
</item>
<item>
<tag2></tag2>
<tag3></tag3>
</item>
</messages>
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: MySQL or PHP is appending a  whenever the £ is used Answers provided have all been great, I mentioned in the comments of Alnitak's answer that I would need to go take a look at my CSV Generation script because for whatever reason it wasn't outputting UTF-8.
As was correctly pointed out, it WAS outputting UTF-8 - t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: DirectShow - How to overlay video with text I am writing an application for Windows Mobile where I want to display some text over the video preview on the screen.
Does anyone know how this could be done or if there's any good tutorial about it?
Thanks!
A: Try this: http://www.codeguru.com/cpp/g-m/directx/article.ph... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What fields should be indexed on a given table? I've a table with a lot of registers (more than 2 million). It's a transaction table but I need a report with a lot of joins. Whats the best practice to index that table because it's consuming too much time.
I'm paging the table using the storedprocedure paging method ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What permissions does Network Service require on Vista / IIS7? Doing some more tinkering with development on VS2008/Vista/IIS7, I'm wondering at a few things regarding the Network Service account. It had no issues running my website until I attempted to set up the Sql Role Membership Provider, which creates a local ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Boolean operations on rectangle polygons Avast there fellow programmers!
I have the following problem:
I have two rectangles overlapping like shown on the picture below.
I want to figure out the polygon consisting of point ABCDEF.
Alternate christmas description: The red cookie cutter is cutting away a bit of the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to start an application on the server from a webpage Example:
The user login to the webpage => Click on a button
This action starts the executable "CreatePrettyPicture"
The file "prettypicture.jpg" is created on the server
When the user reloads the page the pretty picture "PrettyPicture.jpg" is shown on the pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I ignore accents when comparing strings in Perl? I have this quiz application where I match what people type with the right answer. For now, what I do is basically that :
if ($input =~ /$answer/i) {
print "you won";
}
It's nice, as if the answer is "fish" the user can type "a fish" and be counted a goo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Data structure for relationships I am converting a VB6 to C# and I want to make my data structure that holds values and relationships more efficient. In VB I have a collection of values and another collection of relationships between those values with priorities for those relationships. I also have an algorithm that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Extending Forms Authentication Timeout When Making AJAX Calls With jQuery I'm looking to rewrite a pretty intensive CRUD type ASP.NET page to utilize ajax calls (specifically jQuery ajax). My concern in doing this is that the user may be on this page longer than the forms authentication timeout. Because of this, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Relative Paths for Includes in HTML? A Throwback To The Old Days? [This question is somewhat related to this question, but the answers are not...]
I have always used relative paths in HTML and scripting languages (PHP/ASP/JSP) to refer to EVERYTHING. I think the justification had to do with 'what if the website gets... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Server 2005 Scalar UDF performance I have a table where I'm storing Lat/Long coordinates, and I want to make a query where I want to get all the records that are within a distance of a certain point.
This table has about 10 million records, and there's an index over the Lat/Long fields
This does not need to be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: sIFR or FLIR? I've recently bumped into facelift, an alternative to sIFR and I was wondering if those who have experience with both sIFR and FLIR could shed some light on their experience with FLIR.
For those of you who've not yet read about how FLIR does it, FLIR works by taking the text from targeted elements usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How Can I Only Allow Uniform Resizing in a WPF Window? I don't want my window to be resized either "only horizontally" or "only vertically." Is there a property I can set on my window that can enforce this, or is there a nifty code-behind trick I can use?
A: This is what my solution was.
You will need to add this t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Capturing HTML generated from ASP.NET How do I best capture the HTML (in my instance, for logging) rendered by an aspx-page?
I dont want to have to write back to the page using Response.Write, since it messes up my site layout.
Using the Response.OutputStream or Response.Output's stream results in an ArgumentExcepti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: resize images with canvas - css overflow issue I'm working on a JavaScript image resizing feature which rely on the IE only DXImageTransform addon.
Wanting to address modern browsers as well, I gave a shot to canvas, with pretty good results.
However, I face an issue in my resize function, which is the following:
f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: TDD: Which methods do you expose for unit testing? There is one aspect of TDD which I never fully understood.
Suppose somebody asked you to implement a simple Stack object. If you've done your design properly, you will come to a very minimal and clean API. Suppose: push(), pop() and isEmpty(). Anything more than tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do you determine if a Char is a Letter from A-Z? How do you determine if a letter is in the range from A-Z or Digit 0-9? We are getting some corrupted data "I_999Š=ÄÖÆaðøñòòñ".
I thought I could use Char.IsLetterOrDigit("Š") to ID the corrupted data from "I_999Š", but unexpectedly this is returning true. I nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Initialize generic object with unknown type How can I initialize a list containing generic objects whose types can be different?
For example, I have the following:
this.Wheres = new List<Where<>>();
As you know, <> is not valid syntax. However, sometimes the type passed to Where will be a string and sometimes it wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I implement data binding in an ActionScript Class? I am having a problem with binding values in my ActionScript components. I basically want to set the value of a a variable in my component to a value in the model, and have the component variable automatically update when the model value is updated. I think t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Google Maps API: Get position over Sealevel is there a way to get the position over sealevel from a given position using the Google Maps API?
Any Help would really be appreciated!
A: I'm not sure, but I think Google Maps does not provide such a function in its API. But there are other free services which integrate ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Need a c++ compiler to work with libraries (boost, ...) Currently I`m using Visual Studio for writing code in C++. But it seems so weighty that I decided to switch for another one, preferably free, not so strict to system resources (I mean memory, of course) as VS to learn libraries, such as Boost and Qt. What compi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the IDE advantages of recorded macros? Just as the title says, I see a lot of editors touting macro recording as a feature but cannot find a way to take advantage of these functions myself. So what can you use it for? The type where you can record mouse movement and/or keystrokes? Is it really that helpf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Code your own IOC Container Has anyone out there written their own IOC Container in C#? Or do the vast majority of folks use the various frameworks such as Spring. What are the pro's and con's of each?
A: I liked this 33 line container implementation from Ken Egozi inspired by Ayende's 15 liner
A: Someone has wrot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How do you represent a null value in a Data Access Layer (C#) Just wondering if there is any best practice for DAL to represent null value (from a nullable column).
We currently have our own in-house DAL and are representing null value with int.MinValue. However, this rise concerns with developers thinking that whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: wxLua: upload files with wxFtp I'm trying to use wxFTP on wxLua to upload several files. It works with the 1st file, but I do not understand why I cannot send a 2nd file. Here is a sample that fails :
local ftp = wx.wxFTP()
local ftpAddress = wx.wxIPV4address()
ftpAddress:Service( "ftp" )
ftpAddress:Hostname( "ftp.e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to enable ASP.Net MVC item templates for S#arp Architecture project I've been playing around with creating an application using the S#arp Architecture.
One thing that is bugging me a bit is that I don't have access to any of the ASP.Net MVC item templates from the "Add New Item..." dialog. In other words I can't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Example C Function using volatile variables for a paper I'm looking for an real-life C function which uses volatile variables. That in itself is not hard to find, but I am looking for a function in which the value of the volatile variable must change during the course of the execution of the function, for a particu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tagging sql statements for tracing and debugging We have a large enterprise consisting of many apps both old and new backed by Oracle 10G. When blocking sessions or deadlocks occur and we get trace reports it would be super handy to be able to have embedded some details in the sql so that we know both what app, and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to delete a file from a C++ app without console window in Windows? I need to delete a temporary file from my C++ windows application (developed in Borland C++ Builder). Currently I use a simple:
system("del tempfile.tmp");
This causes a console window to flash in front of my app and it doesn't look very profess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I enlist an ODBC connection in an XA 2PC transaction? Our application uses ODBC to communicate with a database (Both DB2 and Oracle, if it makes a difference), and delegates business logic to Java by way of JNI (So it uses Java and C).
What I'd like to know is what tools / software / libraries are needed to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multilingual Flex App I'm working on a multilingual flex application that has to run in 27+ languages, including asian, hebrew and arabic, as well as all european languages.
We work with an embedded font (Myriad Pro) and have plenty of styles in a css that make use of that embedded font. We've tested with a modified... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pack shared libraries into the elf Is there a utility that can take ALL the SO's that an Elf needs turn them into static then converts the Elf to be SO's free?
A: Statifier is an option. Another option is Ermine.
While Ermine is commercial it behaves better than statifier on systems with memory randomization.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Java Applet refresh problems I have a Java Applet (JApplet). This Applet uses a JComponent(PanelAux) to show values and images that change periodically. But the applet doesn't refresh itself. What can I do to refresh my applet?
//--------------------------------------------RUN
public void run()
while (true) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I use a file included in my visual studio project? In the Visual Studio application I'm creating, I want to include an .xsd file that is used in the application.
The xsd file is in the same directory as the rest of my .cs files, and I dragged/dropped it into the Solution Explorer window as an item in my proje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Handle external events in WF with ManualWorkflowSchedulerService I have a simple workflow with the HandleExternalEventAcitivity. The workflow ought to wait for the user to take an action, which in turn raises an event that the workflow activity handles.
Since it is an ASP.NET app, I am using the ManualWorkflowSchedu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting 'unable to start debugging' 'An authentication error occurred while...' This sure seems like a simple error to fix. However, I somehow can't figure it out. Found some posts here and went thru them and couldn't get it to work. Sure seems like a famous error.
The error I'm getting is : Unable to start debuggin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Multiple Apps in Multiple Languages on different OS's. Should I attempt a unified Test Harness? I am the newest member of a project that is an amalgam of various Applications written in various Programming Languages on both Unix and Windows operating systems. I get the 'honor' of figuring out how to implement a nigh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are routed events weak in WPF Does routed events in WPF store strong reference to the handler that is attached to them?
A: If the control author implemented the WeakEvent pattern then yes. I believe the stock controls use this pattern.
UPDATE: They in fact do NOT. Here is a reference on this and other potential... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Compressing a small amount of data I have a program where I generate bitstreams, of about 80 to 150 bits or so, which I would like to compress, because I'm going to turn them into some kind of ASCII string so people can transmit them around.
Does anyone know of a good, free bit-aware compressor that might work on su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Read Text file with null byte I have a text file with dos elements - hex(00) for example. I need to read it and convert it. I have tried to use utf8toansi, but this removes the whole line with hex(00). Are there any way to convert to text in the whole file ?
I am using win32, RadStudio2007, Delphi.
A: This should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/386609",
"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.