text stringlengths 8 267k | meta dict |
|---|---|
Q: Cron Job - Command to delete all .flv files everyday I have this command that I run everyday via cron:
find /home/get/public_html/videos -daystart -maxdepth 0
-mtime +1 -type f -name "*.flv" |xargs rm -f
The problem is that it doesn't delete the .flv files in a directory that are 1 or more days old.
How can I cor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: TFS shows some pending changes under my name, but I have not changed anything TFS shows some pending changes under my name, but I have not changed anything. When I check in and see View Pending changes, I see some of the changes which I have never made, changes pending under some other user might be shown as my pend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Inherit existing web parts and override methods When developing web parts in SharePoint can I inherit from the existing web parts and override their methods?
Or do I always need to start from scratch.
Many Thanks
A: If they are not sealed, you can inherit from them. In practise, It might work or not depending on ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best way to track memory management while testing my iPhone App? While developing my app I have come to realize that the majority of my app crashes have arisen from poor memory management.
I understand I can print or log retain counts through NSLog (@"retain count is:%d",[myInstance retainCount]);
But is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Getting the € with htmlentities I am really trying to show what htmlentities gives me, but it doesn't give & euro; for the € character.
I am trying
echo htmlentities(htmlentities("LISBOA-VIENA DESDE 99€ TAXAS INCLUÍDAS, RESERVE JÁ",ENT_COMPAT,ISO-8859-1),ENT_COMPAT,ISO-8859-1);
echo '<br>';
echo htmlentities... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Assignment inside function that is passed as pointer? ClassA* pa = NULL;
ClassA* pb = NULL;
void assignObject(ClassA* pa, ClassB* pb)
{
pa = new ClassA;
pb = new ClassB;
}
What will be the value of pa and pb after executing the function?
EDIT
how to pass as pointer is the return if pa,pb is NULL
A: They wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Should I roll my own version of ParseInt32? I am writing a high performance parser, and it seems to me that Int32.Parse can be too slow. I wrote a simple version that assumes correct input, and it's performing much better. So should I create my own version instead? Or is there another faster method already available... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In Java critical sections, what should I synchronize on? In Java, the idiomatic way to declare critical sections in the code is the following:
private void doSomething() {
// thread-safe code
synchronized(this) {
// thread-unsafe code
}
// thread-safe code
}
Almost all blocks synchronize on this, but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: How to catch click on flash player? I`m using SWFObject for flash player on my webpage.
Player as usual has buttons like Play, Stop, Pause etc.
I need to catch moment, when my user click on any button and i need to execute some JS-function in this time.
Sorry for my english and thanks a lot in advance.
P.S. I dont h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Get image properties with Jython I am using Jython to move images around and organise them. I would like to extract some information from the images like dimensions and file size.
How would I go about doing this with Jython?
Cheers
A: Python Image Library.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/416190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does W3C validated CSS automatically mean cross-browser compatibility? I've finally completed a working version of my first ever CSS-supported site (thanks to some very helpful suggestions on this forum) and have validated the CSS. Before I go out and find (buy?) another machine (I'm a Mac) to check IE on, is it re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: JPA map collection of Enums Is there a way in JPA to map a collection of Enums within the Entity class? Or the only solution is to wrap Enum with another domain class and use it to map the collection?
@Entity
public class Person {
public enum InterestsEnum {Books, Sport, etc... }
//@???
Collection<Inter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "107"
} |
Q: How to copy data from sheet1 to sheet2 with a condition in Excel In excel workbook I am trying to copy data from sheet1 to sheet2 with a condition, IF((Sheet1!B2:B80=Sheet2!A2:A80),Sheet2!D2) i am not getting the result.please help me solve this.
I am trying to copy from sheet1 to sheet2 with a condition if the the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the main differences between ASP.NET MVC and FubuMVC? A developer I know just showed me FubuMVC and there was some question whether or not we should attempt to use it on a real live project or not. The current design choice so far has been ASP.NET MVC.
What I'm interested in finding out is:
What are the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: JavaScript detection of keypress context (form history selection vs. form submit) I'm writing a semi-generic form plugin using jQuery in order to speed up the development of the project I'm working on.
The plan is that a jTemplates template contains the fields, my plugin looks through the template to find any requir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WebClient.UploadData error: (401) Unauthorized I'm getting this error... What is puzzling me is the fact that i do not have any type of security enabled for the page i'm invoking...
WebClient myWebClient = new WebClient();
myWebClient.UploadData(myUrl,"POST", myByteArray);
When i access directly to the page ( on ie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you persuade others to write unit tests? I've been test-infected for a long time now, but it would seem the majority of developers I work with either have never tried it or dismiss it for one reason or another, with arguments typically being that it adds overhead to development or they don't need to bother.
W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Can strings be used as an array index? Can a string be used as array index in C?
Ex:
String Corresponding value
"ONE" 1
"TWO" 2
"FIVE" 5
"TEN" 10
When a string in the above list is passed to the function, the function must return the corresponding value indicated above. Can this be achiev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Query/Change SPNs on Windows Domain without SetSPN Has anyone had any luck with querying/changing SPNs on a Windows domain? Most of the hits on Google are SQL related: I can't find any information on how to do this myself. The most important things would be to query to SPN configuration and check for duplicates.
Acc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I reference SSIS on a build machine without installing SQL Server 2008 Client Tools? I need to build SSIS packages on a build machine, and do not want the overhead of installing SQL Server Management Studio on this machine. A SQL Server 2008 SDK would be ideal, but I could not find where to download it.
The d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET - losing selection of dropdownlist populated via javascript I have two ASP.NET dropdownlist controls on a page. The first calls back to the server and obtains an array which is returned to the client and used to populate the second dropdownlist via javascript.
However if I make a selection in the second (and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: API for getting IL from byte array There is a GetILAsByteArray method in MethodBody class which gives body of a method. I am looking for converting this byte array into more understandable IL instructions (into a List or something like that). What resources, open source code or api available are there to help me und... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Sorted collection in Java I'm a beginner in Java. Please suggest which collection(s) can/should be used for maintaining a sorted list in Java. I have tried Map and Set, but they weren't what I was looking for.
A: TreeMap and TreeSet will give you an iteration over the contents in sorted order. Or you could use an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "167"
} |
Q: Help with basic threading concept / race conditions I'm learning about POSIX threads right now, but I guess this is just a general question on multithreading, so I hope that anyone can help me. I have this example from the book that I am working on which demonstrates a race condition:
void *thread_main(void *thread_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java file locking on a network This is perhaps similar to previous posts, but I want to be specific about the use of locking on a network, rather than locally. I want to write a file to a shared location, so it may well go on a network (certainly a Windows network, maybe Mac). I want to prevent other people from rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: DTS DB2 Connection Problem I want to copy an Oracle Database to a DB2 one using DTS in SQL Server 2000.
When I set up both connections using their respective driver, I can read both databases, and link the copy operations between them.
But when I want to run the DTS package, an error shows up saying "Driver not capa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Performance of HttpWebRequest using POST I have a small tool I use for testing a webservice.
It can either call the webservice using POST or using GET.
The code for using POST is
public void PerformRequest()
{
WebRequest webRequest = WebRequest.Create(_uri);
webRequest.ContentType = "application/ocsp-request";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I detect the 2 states of "Switch User" in Windows I'm wondering if anyone has had any experience with the API that gives you the possibility to detect the "Switch User" process under Windows XP.
I would like to know how I could detect that a user exits his account and when he re-enters it.
Thanks.
A: I think... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Print html document from Windows Service in C# without print dialog I am using a windows service and i want to print a .html page when the service will start. I am using this code and it's printing well. But a print dialog box come, how do i print without the print dialog box?
public void printdoc(string document)
{... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: URLs: Binary Blob, Unicode or Encoded Unicode String? I wish to store URLs in a database (MySQL in this case) and process it in Python. Though the database and programming language are probably not this relevant to my question.
In my setup I receive unicode strings when querying a text field in the database. But is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any way to block files being committed to SVN repository Today I came across a problem where someone had accidentally committed a proj.user file to the SVN repository. When i came to update, it obviously caused issues.
It got me wondering if there was any way that you can block certain file extensions to b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Java Interfaces? I really need help with interfaces in general...
Any resources that you guys would recommend me?
Related:
*
*How are Java interfaces actually used?
*Java interface and inheritance
*Java Interface Usage Guidelines — Are getters and setters in an interface bad?
*Why can’t I define a static method... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is f(void) deprecated in modern C and C++? I'm currently refactoring/tidying up some old C code used in a C++ project, and regularly see functions such as:
int f(void)
which I would tend to write as:
int f()
Is there any reason not to replace (void) with () throughout the codebase in order to improve consistency, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: How can I suppress the output due to a SIGSEGV or a SIGFPE in a Fortran 90 program? I have a bash script that runs a simulation program written in Fortran 90, and all output is redirected to a file. If the program finishes without problems, I set a success parameter. The code looks something like this:
#!/bin/bash
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Any gotchas using my main iPhone for SDK development? I own a total of one iPhones. I want to test my app on a real iPhone, which would mean allowing Xcode to get its grubby little protuberances on my only device. Is that wise? Are there any problems with using the same phone for testing and regular phone/music/othe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Javascript function should be running on every page load I am looking at an asp.net 2 web application that I am maintaining (but did not write).
Some things that should happen on the page loading do not, but only sometimes, and it seems to be if you are using Firefox 3 inside a VM. JQuery and asp.net Ajax are used.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Combine 2 counts with different where on the same table Is there a better way of doing this ?
SELECT
(SELECT count(*) FROM `tbl` WHERE `status` = 0) as 'text1',
(SELECT count(*) FROM `tbl` WHERE `status` > 0) as 'text2'
text1 and text2 are headers.
A: How about
select sum(if(status=0,1,0)) as zeros,
su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's a good caching reverse proxy which can serve stale content if the underlying application becomes unavailable? I'm looking for a caching reverse proxy (something like squid or varnish) with good support for serving stale content in the event of failure - in other words, if the application I'm proxying goes awa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Programmatically modify an image to replace detail with text? How would one programatically reproduce the following effect?
(source: artext.co.uk)
I'd like to automate the process if possible, but have some control over the output (IE, inverting the color pallet to produce a light background for dark images, etc). ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I compute double factorials in Perl? Given Wikipedia's discussion of Double Factorials, can anyone suggest where I might find a bignum version of this for Perl, or else suggest how it might be written?
A: Perl will handle whatever your C compiler can handle, for anything bigger you should be using Math::Bi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does the JRE consist of? i know that the JDK consists of all java packages .But what does the JRE consist of apart from java.exe ? I could understand the necessities of things in 'bin' folder in the JRE but what about the 'lib' folder ?
A: Have a look at this JDK and JRE File Structure document from Sun's JDK ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using CSS to create table cells of a specific width with no word wrapping In a project have been involved in I needed to render tables with columns of a specific width with only one HTML line per table row (no wrapping). I need each table cell to have a padding of 1 pixel at the top and bottom and 2 pixels at the le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Filtering away nearby points from a list I half-answered a question about finding clusters of mass in a bitmap. I say half-answered because I left it in a condition where I had all the points in the bitmap sorted by mass and left it to the reader to filter the list removing points from the same cluster.
Then when t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I deny access to .dll files in a web site (on both IIS 6 and 7) If I use an URL like http://mysite/myfolder/myfile.dll, I get a dialog "Do you want to open or save this file". Of course, I don't want people to be able to download and disassembly our dll's. How can I deny people accessing such files directly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Check if string is a prefix of a Javascript RegExp In Javascript I have defined a regular expression and now a user is typing in a string. I want to tell him if his string still could match the RegExp if he continues typing or if he's already on the wrong way. For instance:
var re = /a*b/;
"a".isPrefixOf( re ); // ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What are my options to store and query huge amounts of data where a lot of it is repeating? I am evaluating options for efficient data storage in Java. The data set is time stamped data values with a named primary key. e.g.
Name: A|B|C:D
Value: 124
TimeStamp: 01/06/2009 08:24:39,223
Could be a stock price at a give... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What to put in a binary data file's header I have a simulation that reads large binary data files that we create (10s to 100s of GB). We use binary for speed reasons. These files are system dependent, converted from text files on each system that we run, so I'm not concerned about portability. The files currently... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: regular expression "contains" another regular expression Is there a way to test if a regular expression "contains" another regular expression?
For example:
RegEX1 = "a.*b";
RegEx2 = "a1.*b";
RegEX1 "contains" RegEX2.
As far as I know - this can't be done, am I wrong?
OK, joel.neely has shown that it can be done (h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Using API/Function calls or going for the Cron Job approach - An inquiry into dealing with transactions - How would you handle it? I am starting a new project with PHP and MySQL which is roughly the following:
Every minute I get a list of to-do transactions from an API from different users.
Example:
user1 send $1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Symbian C++ - Load and display image from .mbm file I have a .mbm file that I copy to my device using this line in the .pkg file
"$(EPOCROOT)epoc32\data\z\resource\apps\MyApp.mbm" -"!:\resource\apps\MyApp.mbm"
Then in the draw function of my container I do this..
_LIT(KMBMFile , "\\resource\\apps\\MyApp.mbm" );
CFb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to use a List in a Key/Value collection? What's the best way to keep a collection-object (List in example) in a Key/Value situation, where the key is a ID and the value is a collection of a type T?
Is this the only option or is there a better solution/another collection for this in .NET 3.5?
var x = new Dic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VB.NET- Peformance when testing an empty string In VB6, I was told that when testing for an empty string, it would be much faster to check this by verifying the length of the string by using :
If Len("ABC") = 0 then 'fast
or
If LenB("ABC") = 0 then 'even faster
instead of:
If "ABC" = "" then 'slower
Do you know b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WCF contract returning interface could cause serialization issue? I am trying to define a WCF contract that returns an interface, something like below:
[ServiceContract]
public interface IMyContracts
{
[OperationContract]
IMyInterface GetData(string request);
}
To get this to work I think my interface (IMyI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is it possible to exit a for before time in C++, if an ending condition is reached? I want to know if it is possible to end a for loop in C++ when an ending condition (different from the reacheing right number of iterations) is verified. For instance:
for (int i = 0; i < maxi; ++i)
for (int j = 0; j < maxj; ++j)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Weird behaviour when mixing loading of assemblies using Assembly.LoadFrom and Assembly.Load Weird behavior when mixing loading of assemblies using Assembly.LoadFrom and Assembly.Load:
I have encountered a weird behavior when loading assemblies with Assembly.LoadFrom and later on with Assembly.Load.
I am loading an a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Coalesce vs empty string concatenation My coworker is new to C# and didn't know about the coalesce operator. So, I saw him write a line of code like this:
string foo = "" + str;
The idea being that if str is null, this expression would return an empty string. Of course, that could be rewritten as this:
string foo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Customising a Custom Objects panel on an Account details page (Salesforce) I've created a custom object, I have it appearing automatically on the Account details page (think Quote example).
But the quote only has a name column, how do I get it to show other fields? much like the opportunities panel on the account pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Choosing a .Net Inversion of Control container for first attempt at Dependency Injection Which IoC container is the easiest to get started with. This probably equates to which ones have the friendliest documentation. Not too worried about number of features.
A: Take a look at this DotNetRocks episode with James Kov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Preferred method for persisting databound WPF ObservableCollection? I have a class that inherits from ObservableCollection(Of MyObject) and the MyObject class handles INotifyPropertyChanged as it should. When the user updates this data through bound controls the collection will change as expected.
I have a 'Save' bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Fetch mail attachment into SQL Server 2005 using IMAP I need to import data into my SQL Server 2005 from an e-mail datasource on an Exchange mail server. It means that when a mail is sent to a particular mail address I must retrieve the mail subject and the attached file and then I must import these data into my SQL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: String Comparison : individual comparison Vs appended string comparison I have six string variables say str11, str12, str13, str21, str21 and str23.
I need to compare combination of these variables.
The combinations I have to check is str11 -- str12 -- str13 as one group and str21 -- str22 -- str23 as other group. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: F# compiler error FS0030, problems with the Value Restriction I've read the blurb at StrangeLights, I've read the passage from Expert F# (page 119), but I can't see how they apply to my code:
For my tests, I want to check equality between floats, with a bit of tolerance. I'm converting everything to units of measure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# Why are timer frequencies extremely off? Both System.Timers.Timer and System.Threading.Timer fire at intervals that are considerable different from the requested ones.
For example:
new System.Timers.Timer(1000d / 20);
yields a timer that fires 16 times per second, not 20.
To be sure that there are no side-effect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to determine whether an IP is from the same LAN programatically in .NET C# I know that if an IP falls outside the Subnet Mask + Local IP rules, it will be only reachable through an Gateway. The problem is that I don't know how to obtain the local IP address, neither the local subnet mask, programatically using .... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL query: make a list of last weighings of individual files, grouped by a file name I need help with the following SQL command.
I have 2 tables:
Table Weighings with columns:
*
*WeighingId
*FileId
*MyDateTime
Table Files with columns:
*
*FileId
*Name
Table Weighings contains information when a specifie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regex to validate regex
Possible Duplicate:
Regexp that matches valid regexps
Duplicate of Regexp that matches valid regexps
How do you produce a regex that matches only valid regex?
For instance: "[hc]at" would be valid (matching "hat" and "cat"), but "[hcat" would be invalid, as it is missing ].
A: In general,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Do Ajax and ASP.NET MasterPages mix? Has anyone had experience using these two technologies in tandem? What are (if any) the major difficulties in getting the two to cooperate? How would a site using these technologies be different than a normal ASP.NET Web Application with Ajax?
Thanks!
A: I've used Master Pages a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Java map with values limited by key's type parameter Is there a way in Java to have a map where the type parameter of a value is tied to the type parameter of a key? What I want to write is something like the following:
public class Foo {
// This declaration won't compile - what should it be?
private static ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: What is the Best UI Component Set for WPF? Looking for a general purpose WPF toolset. Currently looking at Telerik and Infragistics. Are there better options out there? Of those two, which is better?
A: Also have a look at DevExpress. Their components are pretty good
A: Actipro has a WPF ribbon and a set of com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Forcing a SimpleXML Object to a string, regardless of context Let's say I have some XML like this
<channel>
<item>
<title>This is title 1</title>
</item>
</channel>
The code below does what I want in that it outputs the title as a string
$xml = simplexml_load_string($xmlstring);
echo $xml->channel->item->ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: How do I display total runtime in SqlServer Management Studio 2005? I usually do not use Sql Server Management Studio, I usually use Linqpad to run all my db queries. Anyhow.... My boss seems to think that stored procs are "a lot faster than linq".
So to test this, I want to run a simple stored proc and display th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is exactly once semantics infeasible? In RPC semantics where Erlang has hope for the best, SUN RPC with at-least once and Java RMI with at-most-once but no one has exactly once semantics.
Why does it seem infeasible to have exactly once semantics?
For example if the client keeps resending a uniquely tagged req... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Current user in Magento? I'm customizing the product view page and I need to show the user's name.
How do I access the account information of the current user (if he's logged in) to get Name etc. ?
A: Found under "app/code/core/Mage/Page/Block/Html/Header.php":
public function getWelcome()
{
if (empty($this->_d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Does DynamicInvoke on a remote object work asynchronously? I have inherited some majorly spaghetti code (combination C#/VB) that I'm trying to understand here.
This appears to be a really weird situation where there are two successive calls to fire events to a remote object, which is being done by calling the Dynami... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Query examples in a many-to-many relationship Wow, it's hard to find a simple explanation to this topic. A simple many-to-many relationship.
Three tables, tableA, tableB and a junction tableA_B.
I know how to set up the relationship, with keys and all, but I get a little confused when time comes to perform INSERT, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Can someone please explain data mining, SSIS, BI, ETL and other related technologies? I was talking with a co-worker yesterday regarding a situation where he used SSIS (or something like that) to do some really cool thing with an SSIS Package where he passed in a name like "Dr. Reginald Williams, PhD." and based on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: deployment tools under .NET solutions We all do code, small (like one .exe) or big applications (complete solutions) with web applications, windows applications, databases, help files, configuration files and registry values...
my question is simple, in my opinion that is, now that I need to deploy a web application... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I insert entities with Linq To SQL where I wish to specify their identities - eg, pre-populating tables on DB creation? I'm engaged in writing a product using LinqToSql for data-access. While we're rapidly developing, the model changes often. This means we dump and reload the database lots while developing.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you communicate your release dates to customers? As a dev team we are under a lot of pressure (internally) to provide accurate release dates to our customers. How should we go about this?
The problems we see are in defining exactly what is required for each release and in not knowing how our priorities are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I hook into BeforeNodeExpand and AfterNodeExpand for a WPF Treeview? Intention: To display the busy/Wait cursor for the duration that the children of the node are populated.
Seems to be hidden in WPF. I remember having some kind of event in Winforms Tree Control where you could subscribe to - to achieve this.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: On Windows XP, how do I enumerate all the windows displayed by the system (C#) I would like to end up with a list (or array or whatever) of all the visible (including minimised) windows.
I have found 2 similar questions, which don't quite give me what I'm looking for:
- Work out which windows go in the alt-tab lis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I profile the performance of a .NET app already deployed to a customer? I have several customers where my WinForms app does not perform as well as at other customers. I use JetBrain's dotTrace here in the office, but that does not help me find bottlenecks on the machines of our customers. How can I profile t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I go about diagnosing memory corruption errors occurring in a COM-DLL after porting it from Delphi 2007 to Delphi 2009? I have just ported several of our home-made Outlook COM-addins from Delphi 2007 to Delphi 2009 and am now experiencing some really weird errors (before you ask: none of which appear to have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Parsing C#, finding methods and putting try/catch to all methods I know it sounds weird but I am required to put a wrapping try catch block to every method to catch all exceptions. We have thousands of methods and I need to do it in an automated way. What do you suggest?
I am planning to parse all cs files and detec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create a binding for NSApp.dockTile's In IB it is easy to bind a label or text field to some controller's keyPath.
The NSDockTile (available via [[NSApp dockTile] setBadgeLabel:@"123"]) doesn't appear in IB, and I cannot figure out how to programmatically bind its "badgeLabel" property like you might bind a l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does SQL force me to repeat all non-aggregated fields from my SELECT clause in my GROUP BY clause? This has bugged me for a long time.
99% of the time, the GROUP BY clause is an exact copy of the SELECT clause, minus the aggregate functions (MAX, SUM, etc.).
This breaks the Don't Repeat Yourself principle.
When ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Have you ever used IFrame Shims on UL tags? I ahve a menu structure that uses UL and LI elements to drop down from a main menu. The problem i am having (of course) is in IE6 where the menu drops behind SELECT elements despite the z-index. I have tried adding an IFram shim to the UL which contains the LI elements w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How should I handle delete-situations in ASP.NET MVC How should I initiate a delete action from my view?
Creating a new form-tag for each entity just doesn't seem right :-)
<% foreach (var subscriber in group.Subscribers) { %>
<tr>
<td><%= subscriber.Email %></td>
<td><%= Html.ActionL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any difference between iterator methods returning IEnumerable and IEnumerator? Consider two iterator methods with the same bodies:
public static IEnumerable<int> It1() {
...
}
public static IEnumerator<int> It2() {
...
}
Is there any circumstance where calling It2 is different from calling It1.G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: java webpart like asp.net? I was reading asp.net webpart technology which gives users some personalization abilities under some rules and tools of webparts.
are there something like webpart technology lib under java ?
A: There's always the ill-fated Portlet.
A: I don't know of any JSF or JSP implementations of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MVC TDD with LINQ and SQL database I am trying to start a new MVC project with tests and I thought the best way to go would have 2 databases. 1 for testing against and 1 for when I run the app and use it (also test really as it's not production yet).
For the test database I was thinking of putting create tab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Has anyone found a good open source ajax calendar control (not a popup date picker) We are looking at replacing a proprietary calendar control. I've looked at scal http://scal.fieldguidetoprogrammers.com but styling is weak and it's not functional enough for day-spanning events or concurrent events in the day view... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to reference a Master Page from a user control? I'm looking for a way to (preferably) strongly type a master page from a user control which is found in a content page that uses the master page.
Sadly, you can't use this in a user control:
<%@ MasterType VirtualPath="~/Masters/Whatever.master" %>
I'm trying to a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Component reuse between ASP.NET and C#.NET This might seem like a ridiculous question since I'm quite inexperienced in .NET.
Is it possible to build components in C#, using .NET, which can be reused in ASP.NET. For example if one would like to port an application onto the web.
If possible, how portable are they? I.e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Vehicle Tracking System[java/Java EE] I am interested in building a vehicle tracking system using GPRS. However, I have some questions for anyone who has done this before:
*
*Is GPRS the best technology to use? Any problems people are aware of?
*I am planning on using Java/Java EE - is there any better technolo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting up Mobile JUnit tests to run under JUnit I'm using Mobile JUnit, released by Sony Ericsson for unit testing for my J2ME project. I read in the documentation that one can run the tests under regular junit with the help of a few wrapper classes. The documentation, in fact, recommends that you do this if you wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Would you use Sql Server Compact for a desktop application? Does it make sense to use SQL Server Compact for a desktop application?
*
*How much data can it handle?
*Is it possible to use it with multiple users? What are the constraints?
*What happens when database files are broken? Is it possible to programmati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Difference between WinMain,main and DllMain in C++ What is the difference between the three functions and when to use them??
A: main() means your program is a console application.
WinMain() means the program is a GUI application -- that is, it displays windows and dialog boxes instead of showing console.
DllMain() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Problem with SQL Join I have two tables, tblEntities and tblScheduling.
tblEntities:
EntityID ShortName Active
1 Dirtville 1
2 Goldtown 1
3 Blackston 0
4 Cornfelt 1
5 Vick 1
tblScheduling:
ScheduleID EntityID Sched... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pre-Compile JavaScript from VS2008 IDE Is there a way for me to pre-compile my JS code when building my solution? I would like to be made aware of common problems before I get to the browser. Ideally I would build the sln and, if necessary, have a plugin or call from the build events examine the js code against a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416747",
"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.