text string | meta dict |
|---|---|
Q: dd/mm automatically got changed to mm/dd I coded something using Date statement in Access VBA. It was working fine until the start of this month, but now I am seeing that the Date has automatically changed the format from dd/mm/yyyy to mm/dd/yyyy. Has anyone else encountered the same problem?
A: The default Access ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Where to store uploaded files (sound, pictures and video) A while a go I had to developed a music site that allowed audio files to be uploaded to a site and then converted in to various formats using ffmpeg, people would then download the uploaded audio files after purchasing them and a tmp file would be created and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Enable ViewState for few controls and disable for others/page When I disable ViewState for the page. It does not allow any other control to use ViewState .. even if I set EnableViewState="true" for that particular control ..
is it possible to enable ViewState for a control when ViewState is disabled for the page its... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: XSD and Automatic Class / Message Generation What avenues are there for using an XSD to generate message instances? I seem to remember reading about generating classes from XSD, but can't find anything specific now. I know you can generate classes and datasets from XSD, but I'm looking for a pattern for automating... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I cope with rounding errors on doubles in vb.net? I'm trying to balance a set of currency values using vb.net. The totals for both these values is cast as a double. I'm getting rounding errors in some situations.
What's the best way to avoid this? Is there a type I can use in preference to double? How do I r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Displaying RichText in Crystal Reports I have a report created in Crystal (the version that comes with Visual Studio 2005) that contains an IFieldObject that I want to use to display some rich text. I have set the TextFormat of the IFieldObject to crRTFText, however when I run the report the textbox displays all th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Delphi 7 exception not caught I have some really complicated legacy code I've been working on that crashes when collecting big chunks of data. I've been unable to find the exact reason for the crashes and am trying different ways to solve it or at least recover nicely. The last thing I did was enclose the crashing c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to add custom protocol to Vista "Set Associations" list? I've registered custom protocol "xyz" on Windows Vista:
HKEY\_CLASSES\_ROOT\xyz = "URL:Extensions Protocol"
It works OK with my application.
Open "Control Panel -> Programs -> Default Programs -> Set Associations", scroll the list to the end. Here is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GDI resource leak in DrawFrameControl It seems that DrawFrameControl() creates Font and Brush objects, select them into dc, and doesn't delete them. (according to BoundsChecker messages). Does anyone faced such thing?
A: I have experienced the same in various OS/CRT Dlls.
One of the patterns is where
*
*I get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I detect Mobile Safari server side using PHP? Mobile Safari is a very capable browser, and it can handle my website as it is perfectly. However, there are a few elements on my page that could be optimized for browsing using this device; such as serving specific thumbnails that are smaller than the desktop cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What's the fastest way to delete a large folder in Windows? I want to delete a folder that contains thousands of files and folders. If I use Windows Explorer to delete the folder it can take 10-15 minutes (not always, but often). Is there a faster way in Windows to delete folders?
Other details:
*
*I don't care ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "224"
} |
Q: Groovy "except" syntax? I am a total Groovy newbie. I saw the following code here.
def beforeInterceptor = [action:this.&auth,except:'login']
How would I expand this to also include a second exception, say, if the action was 'login2'?
A: Wow, would have expected a quick answer on this!
Well, found my own answer: y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generating a range of numbers in MySQL How do I generate a range of consecutive numbers (one per line) from a MySQL query so that I can insert them into a table?
For example:
nr
1
2
3
4
5
I would like to use only MySQL for this (not PHP or other languages).
A: Here is one way to do it set-based without loops. This... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: Can you use Amazon S3 via Flex? Due to the lack of clientaccesspolicy.xml, there appears to be problems with using Amazon S3 via Flex. Are there any work arounds?
Edit: Both of the below answers are great and work, I've upvoted both (I'm not going to assign an answer to the question as they both work):
Can you use A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Transitioning from WinForms to AJAX, what do I need to know? I currently have a functioning in-house Windows Forms application which extensively uses the DataGridView control for data entry. There are some support issues which are expected when we roll this out to more locations, so one of our consultants has recomm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best security practices in Linux What security best-practices would you strongly recommend in maintaining a Linux server? (i.e. bring up a firewall, disable unnecessary services, beware of suid executables, and so on.)
Also: is there a definitive reference on Selinux?
EDIT: Yes, I'm planning to put the machine on th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to determine what log level to use? The log levels WARN, ERROR and FATAL are pretty clear. But when is something DEBUG, and when INFO?
I've seen some projects that are annoyingly verbose on the INFO level, but I've also seen code that favors the DEBUG level too much. In both cases, useful information is hidden ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: ResultSet: Retrieving column values by index versus retrieving by label When using JDBC, I often come across constructs like
ResultSet rs = ps.executeQuery();
while (rs.next()) {
int id = rs.getInt(1);
// Some other actions
}
I asked myself (and authors of code too) why not to use labels for retrieving co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Is it possible to specify proxy credentials in your web.config? I need to configure a website to access a webservice on another machine, via a proxy. I can configure the website to use a proxy, but I can't find a way of specifying the credentials that the proxy requires, is that possible? Here is my current config... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: How to extract common named_scopes from ActiveRecord models I have named_scope which is reused in multiple ActiveRecord models.
For example:
named_scope :limit, lambda {|limit| {:limit => limit}}
What is the best practice to extract this code to be shared across models.
Is it possible to extract it to a modul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What's the best way to cache a user control or its associated data in asp.net mvc I am in the middle of implementing an application using ASP.NET MVC and would love to cache the data passed to user controls or the output rendering on some user controls that I render using the Html.RenderPartial, that way I don't hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How have you customised work items in Team System? At my company we use the default agile process template with some modificiations. One modification we have made is added a field that indicates how to report time spent on a work item.
What customisations of the default process templates have you made? Have you cus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Capturing console output from a .NET application (C#) How do I invoke a console application from my .NET application and capture all the output generated in the console?
(Remember, I don't want to save the information first in a file and then relist as I would love to receive it as live.)
A: ConsoleAppLauncher is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "148"
} |
Q: SMTP with CRAM-MD5 in Java I need to send email through an (external) SMTP server from Java however this server will only accept CRAM-MD5 authentication, which is not supported by JavaMail.
What would be a good way to get these emails to send? (It must be in Java.)
A: Here is thread which says that you need to add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do ports work with IPv6? Conventional IPv4 dotted quad notation separates the address from the port with a colon, as in this example of a webserver on the loopback interface:
127.0.0.1:80
but with IPv6 notation the address itself can contain colons. For example, this is the short form of the loopback address:
:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "182"
} |
Q: Interesting UTF-8 Yahoo File Download Headers My company runs a webmail service, and we were trying to diagnose a problem with Word downloads not opening automatically - the same *.doc file download from Yahoo Mail would open, but one from ours would not.
In the course of investigating the headers we saw this coming... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to prevent an exception in a background thread from terminating an application? I can hookup to AppDomain.CurrentDomain.UnhandledException to log exceptions from background threads, but how do I prevent them terminating the runtime?
A: Keeping the answer short, yes, you do can prevent the runtime from terminati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Splitting a semicolon-separated string to a dictionary, in Python I have a string that looks like this:
"Name1=Value1;Name2=Value2;Name3=Value3"
Is there a built-in class/function in Python that will take that string and construct a dictionary, as though I had done this:
dict = {
"Name1": "Value1",
"Name2":... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "88"
} |
Q: The most flexible framework architecture for web development? EDIT, 2020/09: If anyone is wondering, 12 years later, yes, we've all moved to JSON and Kubernetes by now. Original text follows.
Obviously, there is no one single solution that would satisfy everyone's needs; an architecture is always a trade-off. I want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What content type to force download of text response? I need to stream a file to the Response for saving on the end user's machine. The file is plain text, so what content type can I use to prevent the text being displayed in the browser?
A: I don't think it works that way.
Use a Content-Disposition: attachment he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: jQuery CSS selectors in IE The following works in Firefox, but breaks in IE7 & 8:
$("#my-first-div, #my-second-div").hide();
so I have to do this:
$("#my-first-div").hide();
$("#my-second-div").hide();
Is this normal?
EDIT: ok, my actual real-life code is this:
$("#charges-gsm,#charges-gsm-faq,#charges-gsm-prices... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best Practice: Erlang Application Deploy on windows When deploying a ready to use erlang application I don't want the user to
*
*Find the right erl release on the
internet.
*Install the erl vm
*unzip and decide a location for the beam files (with the application)
*read a readme
*modify anything that even loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to meake file upload control with resume in ASP.NET? How to make ASP.NET file upload control with resume, without file size limitation and with secure connection?
Any idea?
A: You can split file to small part.
Upload each part separately. If connection broke, just re upload last part and continue with other.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why use the 'ref' keyword when passing an object? If I am passing an object to a method, why should I use the ref keyword? Isn't this the default behaviour anyway?
For example:
class Program
{
static void Main(string[] args)
{
TestRef t = new TestRef();
t.Something = "Foo";
DoSomethi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "336"
} |
Q: Test if a website is alive from a C# application I am looking for the best way to test if a website is alive from a C# application.
Background
My application consists of a Winforms UI, a backend WCF service and a website to publish content to the UI and other consumers. To prevent the situation where the UI starts u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Automatic namespaces import Is there a way in Visual Studio (a hotkey) to automatically import a type (or choosing between known namespaces) like the Ctrl + O in Eclipse?
A: Yes, Visual Studio can add the using for you. When you type in a class name, hit Ctrl + . and then Enter (the first option is 99.99% the right... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: Tool for web server redirect management? I'm considering rolling my own, but just in case there's a good piece of software already available, I'm asking here: Is there something that will provide an interface to webserver redirect configuration, and allow redirects to be managed by a fairly non-technical userbase. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Configuration file with list of key-value pairs in python I have a python script that analyzes a set of error messages and checks for each message if it matches a certain pattern (regular expression) in order to group these messages. For example "file x does not exist" and "file y does not exist" would match "file .... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How do I catch ClassCastException? I'm trying to catch a ClassCastException when deserializing an object from xml.
So,
try {
restoredItem = (T) decoder.readObject();
} catch (ClassCastException e){
//don't need to crash at this point,
//just let the user know that a wrong file has been passed.
}
And yet ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: C# - How to change HTML elements attributes My master page contains a list as shown here. What I'd like to do though, is add the "class=active" attribute to the list li thats currently active but I have no idea how to do this. I know that the code goes in the aspx page's page_load event, but no idea how to access th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Can I speed up the YUI layout manager, when I have a large table on the page? I am using the YUI layout manager which seems to work at an OK speed. However if the page contains a large <Table> with about 500 rows, the YUI render() function takes about a minute longer to run.
When I open the same page without the lay... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remote log viewer for Java/Glassfish log files I'm looking for a log viewer with similar capablilties as Chainsaw, in which I can tail Glassfish log files over for instance SSH/SCP. Does anyone know if such a tool exist?
A: I have started looking at OtrosLogViewer and found recent updates to it require changes to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to define Assembly Folders for an application? How do I define the Assembly folder for an Application correctly?
I tried to use the registry Key:
HKLM/SOFTWARE/Microsoft/.NET Framework/AssemblyFolders/App-Name
and use the (Default) to set this to the path where the assemblies are located.
Some time ago this work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Adding a TLS/SSL layer to communications..? My stuff is made with several components among which some are written in C. As I would like to add some security features, I am thinking of communicating over an SSL/TLS layer.
Could you advise me some good lib to do this (if possible) ?
A: GnuTLS (Please note that it is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iPhone "Web Site Error" I'm writing server-side programs in PHP for an iPhone app. And I have no iPhone. :P
The iPhone app requests XML files from the site whenever a user runs the iPhone app. You may visit http://www.appvee.com/iphone/ads or http://www.appvee.com/iphone/latest for the XML files.
And a message box w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Generate Multiple and Filtered Drop + Create Stored Procedures I have this script:
select name,create_date,modify_date from sys.procedures order by modify_date desc
I can see what procedures were modified lately.
I will add a "where modify_date >= "
And I'd like to use some system stored procedure, that will gener... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to copy file from linux to windows server using c I have to create a C program which will run on Linux server. It will take information from Oracle database, create a local file and then copy that file to Windows server. I know how to create a local file on Linux server. But what is the way to copy it to windows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Importing Delphi Web Services into Java I have a web server built in Delphi, and I'm trying to consume its web services on Java (I'm using Eclipse IDE) by creating a Web Service Client through the Eclipse wizard. The Web Services Explorer recognice the WSDL file, but when trying to create the client, the wizard says... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: automated system testing approaches for combination of PC + embedded SW The system consists of a hardware device and a PC. The PC runs a GUI that controls the hardware device. To test the device various test hardware is used that can be controlled by RS232 or GPIB. To automate this testing the test software would ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to stop Excel from prompting to reopen a workbook? I have a readonly Excel workbook containing a VBA application. The application saves any data that needs to be saved in a database, and the workbook is always closed without saving (by setting ThisWorkbook.Saved = True in BeforeClose).
I have the following prob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What ReSharper 4+ live templates for C# do you use? What ReSharper 4.0 templates for C# do you use?
Let's share these in the following format:
[Title]
Optional description
Shortcut: shortcut
Available in: [AvailabilitySetting]
// Resharper template code snippet
// comes here
Macros properties (if present):
*
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/186970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "94"
} |
Q: Large File Download - Connection With Server Reset I have an asp.net website that allows the user to download largish files - 30mb to about 60mb. Sometimes the download works fine but often it fails at some varying point before the download finishes with the message saying that the connection with the server was re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WCF Custom Http Proxy Authentication Is it possible to provide WCF with a custom proxy address and custom credentials?
I've found this answer on stackoverflow: How to set proxy with credentials to generated WCF client?, but I've got a complication, the service I'm authenticating against uses its own authentication,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Are there any JSON (or YAML) based "time sheet" or "work log" related formats for recording time spent on tasks? I just need a simple JSON or YAML (or other) text based format for recording the time I spend on tasks. I prefer to do as much work as possible in my text editor (e text editor) so it is more natural to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tools for finding Shared Mutable data bugs in Java I have a large legacy system to maintain. The codebase uses threads all over the place and those threads share a lot of mutable data. I know, sounds bad. Anyway, don't answer "rewrite the whole application from scratch" or I'll vote you down :-) I have tried to run ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Implementing LDAP compliance I'm working profesionally on a php web application which contains contacts, among other data. I was wondering how hard it would be to make this data available to external programs using the LDAP protocol.
Are there specific tools out there for this? I couldn't really find anything, but I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to expose objects through WCF? My project is split up into a typical 3 layer structure for a Silverlight app. That is:
*
*A base layer, which is a class library that contains all my business objects, logic, data access etc.
*A middle layer which is a WCF service which communicates with;
*My Silverlight fron... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to create a route like "/x/{*path}/y" in ASP.NET routing? I have routes like "x/{*path}" where the path parameter is used by the controller to navigate a tree structure to end up with a resource which is served to the client.
I would now like to extend this scheme in an orthogonal fashion with other controllers ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I add ASP.NET AJAX Extentions to a page programmatically (server side)? In a page, on the load event, I am dynamically creating controls for display on the page. This is all working properly. the trouble I am having is when adding extenders from the AJAX control toolkit, specifically I am trying to add rounded c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I return an exit code from a VBScript console application I Have an old vbs script file being kicked off by an AutoSys job. Can I, and how do I, return an int return value to indicate success or failure?
A: Try:
WScript.Quit n
Where n is the ERRORLEVEL you want to return
A: I found the answer :0)
DIM retu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Code Coverage and Blame Has anyone seen a tool that will integrate code coverage results with SCM/VCS to attribute untested lines of code to developers?
For example, is there a tool that will take NCover's Coverage.Xml, combine it with SVN blame, and produce a report that tells me things like developer who commits m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: glBlendFunc and alpha blending I want to know how the glBlendFunc works. For example, i have 2 gl textures, where the alpha is on tex1, i want to have alpha in my final image. Where the color is on tex1, i want the color from tex2 to be.
A: glBlendFunc applies only to how the final color fragment gets blended with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get all the controls in page using javascript in ASP.net page I have a page with a tab control and each control has almost 15 controls. In total there are 10 tabs and about 150 controls in a page (controls like drop down list, textbox, radiobutton, listbox only).
My requirement is that there is a button (subm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best solution for modifying a key in a record while selecting on it I have an UPDATE sql command that modifies a Date/Time field in a particular table. This table has two keys, ProductionCode and TestTime, which is what is being modified. The Production Code never changes for a particular record, but often a user wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can not operate ObservableCollection in multi threads It seems the ObservableCollection only support add, remove, clear operation from the UI thread, It throw Not Support Exception if it is operated by a NO UI thread. I tried to override methods of ObservableCollection, unfortunatly, I met lots of problems.
Any one ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: jQuery sortables I'm using the sortable function in jquery to sequence a faq list. Needless to say, i'm new to this concept. Anybody have any good examples of the backend for this. I have the front working fine, but updating the sequence in the database is another story. My backend is ColdFusion btw.
Thanks in ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Replacing or Removing a new line with something else but only between single or double quotes using PHP on a CSV file I have a CSV file that holds about 200,000 - 300,000 records. Most of the records can be separated and inserted into a MySQL database with a simple
$line = explode("\n", $fileData);
and then the va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cross-platform, cross-browser way to play sound from Javascript? I am writing a dhtml application that creates an interactive simulation of a system. The data for the simulation is generated from another tool, and there is already a very large amount of legacy data.
Some steps in the simulation require that we play... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: Implement validation as a method or as a property? I have an object that needs a test if the object data is valid. The validation itself would be called from the thread that instatiated the object, it looks like this:
{
if (_step.Equals(string.Empty)) return false;
if (_type.Equals(string.Empty)) return false;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a FOSS batch compiling solution for Delphi that takes version as an input parameter? Is there a FOSS batch compiling solution for Delphi that takes version as an input parameter?
I am using Delphi 7 and this remains the most tedious operation. Are there any other solutions, workarounds to make this easy.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Missing Workflow project templates in Visual Studio 2008 I cannot add workflow item to my WPF project.
I create a new WPF project and want to add a sequential workflow. When I do "Add new item" there is no item template to select.
Any hints?
A: I don't think you can simply add a workflow to a WPF project. You need ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Unit test Custom membership provider with NUnit throws null reference error Trying to create a user account in a test. But getting a Object reference is not set to an instanve of an object error when running it.
Here's my MemberShip provider class, it's in a class library MyCompany.MyApp.Domain.dll:
using System;
us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to output data from tables with same column names in CodeIgniter? This is my query:
$query = $this->db->query('
SELECT archives.id, archives.signature, type_of_source.description, media_type.description, origin.description
FROM archives, type_of_source, media_type, origin ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Storing formatted text in a DB while maintaining abstraction How would you store formatted blocks of text (line breaks, tabs, lists - etc.) in a database (nothing specific) to be displayed on the web (XHTML) while maintaining a level of abstraction so that the data can be used in other applications or if the structu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Implementation ideas for Web Service request for file transfer I have a web service application written in Java - we use Glassfish as the Application Server.
And a client for the web service written in .NET.
As a result of a request made to the web service I would like to transfer a file from the server to the clien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Inner join & outer join; is the order of tables in from important? Why is the order of tables important when combining an outer & an inner join ?
the following fails with postgres:
SELECT grp.number AS number,
tags.value AS tag
FROM groups grp,
insrel archiverel
LEFT OUTER JOIN ownrel ownrel ON... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Is there a role for a DBA when an app uses a persistence layer or repository? I'm taking on the re-architecting of a pair of applications which use Hibernate in one case, and a combination of Hibernate and a Java Content Repository (specifially JackRabbit) in the second.
A key issue in the rearchitecting is to impro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: InstallShield Basic MSI optimizations My InstallShield 2009 basic MSI project installs pretty slowly. We have a 65MB .msi and a 110MB .cab. The project was upgraded from IS12, using which it took about half as long to install.
Did the 2009 upgrade make some default modifications that I can reverse? Are there any g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Good Alternatives to Visual Studio Setup Projects Most developers and engineers that have experience writing software and deploying with the packaged Visual Studio Setup Project know about its many shortcomings. Usually in regards to installation customization, upgrade paths, etc. What are some good alternatives for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Removing header text in NSIS installer I would like to replace the entire header area in an NSIS installer with a bitmap. I have set MUI-HEADERIMAGE-BITMAP and set all the subcaptions to " ", however on the install files page I see empty white boxes over top my bitmap where the text would normally be. Is there a way... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I include a header into my site that is hosted externally? We are hosting a site for a client and they want us to include the header they have on their server into the pages we are hosting. So whenever they change it, it will automatically change on our site.
We are attempting to use the "include" tag in our... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Response.Redirect("") inside "using{ }" Assume the following code:
using (SqlConnection conn = new SqlConnection(connectionString))
{
...
using (SqlCommand comm = new SqlCommand(...))
{
.. do stuff ..
if(condition) Response.Redirect("somepage.aspx");
}
}
Will the Response.Redirect() exit fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: RoR: What steps are you going through in the preparation phase of application development? Let's say you already "know" what your client wants from you (i.e. you already did some analysis and have some clue about what are you supposed to deliver). What are the next steps you usually go through after this phase? In o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a difference between installing mod_python via httpd.conf and conf.d in apache? I am working with a hosting provider who has installed mod_python for me. I followed the install instructions locally and included it in httpd.conf but they have opted to put it in conf.d/python.conf.
Is there any difference/be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tree Algorithm I was thinking earlier today about an idea for a small game and stumbled upon how to implement it. The idea is that the player can make a series of moves that cause a little effect, but if done in a specific sequence would cause a greater effect. So far so good, this I know how to do. Obviously, I had... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Google Calendar like interface I need to write an application that essentially functions like a week-view of a calendar, columns for the days and then rows for appointments. Where the height of the appointment box visually represents time.
In my case, I just don't want the time of day as the vertical axis, I just w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: WSS/MOSS Development ... Where to draw the line? Our organization started on the SharePoint path about two years ago. Before that, we (the developers) wrote mostly asp.net front ends for SQL back ends. Now it seems like every time a new project comes up, we are asked to “make” it fit in SharePoint; and we have stu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: If DoCmd.SendObject fails? I am using DoCmd.SendObject to send emails from MS access 2003. It opens the outlook with all relevant fields filled. But the user may not choose to send the email at that time. In that case, a prompt 'Send Action was cancelled' appears. Is there a way to catch this non-sending of email by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way for converting phone numbers into international format (E.164) using Java? What is the best way for converting phone numbers into international format (E.164) using Java?
Given a 'phone number' and a country id (let's say an ISO country code), I would like to convert it into a standard E.164 int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: How do I get a terminal program to honour cursor keys? I'm using ccl/openmcl on Mac OS X. (latest versions of both). When the lisp prompt is displayed, using the cursor keys to navigate the current line results in escape codes, rather than movement, eg:
Welcome to Clozure Common Lisp Version 1.2-r9226-RC1 (DarwinX8... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does JQuery keydown work for window but not textbox? Why does this work:
$(window).keydown(function(event){
alert(event.keyCode);
});
but not this:
$('#ajaxSearchText').keydown(function(event){
alert(event.keyCode);
});
I'm testing with Firefox 3.
Interestingly, neither of them work in IE7.
A: Checked... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to select an element within a specific namespace? I'm having trouble selecting elements that are part of an specific namespace. My xpath expression works in XMLSpy but fails when using the Xalan libraries..
<item>
<media:content attrb="xyz">
<dcterms:valid>VALUE</dcterms:valid>
</media:content>
</item... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using FromBase64Transform with CryptoStream? I have a .NET string which is Base64 encoded representation of an array of encrypted bytes. It is produced like this:
String Encrypt( String message )
{
CryptoStream cryptostream = ...
StreamWriter stream = new StreamWriter( cryptostream );
...
return Con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a site map of an FTP site Where I work, we maintain an FTP site that needs occasional cleanup.
Are there any tools out there to create a site map of an FTP site? It would greatly simplify clean up tasks.
Thanks!
A: Not used it and its not free - although $19 is not far from free - ftp space
A: How automat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding Expression Blend Designers What are some recommendations for finding Expression Blend/WPF Designers to perform contract work? I think a (local) freelance designer might be the most reasonably priced, but I don't even know where to start.
As additional background, I am located in the Midwest region of the US... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to have a range in a MySQL If statement? I'm trying to make a select that calculates affiliate payouts.
my approach is pretty simple.
SELECT
month(payments.timestmap)
,sum(if(payments.amount>=29.95,4,0)) As Tier4
,sum(if(payments.amount>=24.95<=29.94,3,0)) As Tier3
,sum(if(payments.amount>=19.95<=24.94,2,0)) As... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Base-2 (Binary) Representation Using Python Building on How Do You Express Binary Literals in Python, I was thinking about sensible, intuitive ways to do that Programming 101 chestnut of displaying integers in base-2 form. This is the best I came up with, but I'd like to replace it with a better algorithm, or at le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Strange float behaviour in IE7 I want to create a simple box with a header bar containing a title and some tool buttons. I have the following markup:
<div style="float:left">
<div style="background-color:blue; padding: 1px; height: 20px;">
<div style="float: left; background-color:green;">title</div>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: SQL SELECT FROM ... AS with data type specifier? I have a problem with an SQL query on Postgresql. This select clause is an example from a lecture on databases:
1 select t.CourseNr, t.StudentsPerCourse, g.StudentCount,
2 t.StudentsPerCourse/g.StudentCount as Marketshare
3 from (select CourseNr, count(*) as S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: log4net not logging ThreadContext I have log4net running on my AsP.NET site. I'm able to log messages to my DB Table, but it isn't logging the ThreadContext properties. For example:
ThreadContext.Properties["Url"] = HttpContext.Current.Request.Url.ToString();
ThreadContext.Properties["HttpReferer"] = HttpContext.Cur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/187284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |