text stringlengths 8 267k | meta dict |
|---|---|
Q: Classic ASP Database error Well I am querying my DB, a table called bookBilling, to get a value under the column of billingID.
In my first query I get the customer ID from a table based on what value the cookie holds.
In my second query I take that custID value and am looking to get the billingID associated with i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which equals operator (== vs ===) should be used in JavaScript comparisons? I'm using JSLint to go through JavaScript, and it's returning many suggestions to replace == (two equals signs) with === (three equals signs) when doing things like comparing idSele_UNVEHtype.value.length == 0 inside of an if statement.
Is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5650"
} |
Q: How to make IEnumerable readonly? Why are the lists list1Instance and p in the Main method of the below code pointing to the same collection?
class Person
{
public string FirstName = string.Empty;
public string LastName = string.Empty;
public Person(string firstName, string lastName) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Portable Emacs? (Emacs server not working) I have seen a few suggestions on making emacs portable (on Windows). I have this in my site-start.el:
(defvar program-dir (substring data-directory 0 -4))
(setq inhibit-startup-message t)
(setenv "HOME" program-dir)
I changed the HOME variable so that not only my .emacs i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I unload a DLL using ctypes in Python? I'm using ctypes to load a DLL in Python. This works great.
Now we'd like to be able to reload that DLL at runtime.
The straightforward approach would seem to be:
1. Unload DLL
2. Load DLL
Unfortunately I'm not sure what the correct way to unload the DLL is.
_ctypes.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How to change DNS IP for programmatically on CF 2.0 I want to change the DNS IP Address programmatically to the Adapter on Compact Framework. I have checked in the NetworkInterface class of OpenNetCF 2.3 as well, but I do not want the device to be rebooted after setting.
Could somebody throw a light on the please?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there an easy method to read an external web page's source code? ASP.NET Id like to be able to write a function that reads an external news site and returns the source code of the target page. Any ideas and/or information to get me started?
A: string GetOtherPage(System.Uri url)
{
return new System.Net.WebC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual Studio ASP.Net expand and collapse issue in ashx generic handlers I have Visual Studio 2008 Professional and I am having issues with expanding and collapsing method code blocks in ASP.Net Generic Handler pages (.ashx)
I would have thought you could do the same thing like in the code behind of .aspx web pages.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Problem deploying DLLs to the GAC in a Visual Studio Setup Project "Assembly [AssemblyName] must have a shared name to be installed globally"
I am getting this error message when I try to deploy some component DLLs for my application to the Global Assembly Cache.
What is a shared name and how do i make sure my DLLs ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Interop'ing between C# and an unmanaged C library I have a small C library in a DLL and I need to call a handful of its methods.
It uses pointers and a few structs but is otherwise quite simple. Problem is I'm not terribly knowledgable on .NET's interop with the unmanaged world and my attempts so far keep hitting me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Options to communicate between WARs in the same EAR What options do you have to communicate between the WARs in an EAR?
We have several WARs providing different webservices deployed within one EAR. For their tasks they need to communicate with the other WARs. Of course they could communicate using webservices. What... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Oxite or S#arp Architecture for new Asp.net CMS site I'd like to build a CMS site based on Asp.Net Mvc and I want to choose my starting point.
I have seen that there is a lot of interest in the new Microsoft Oxite project also if it seems to be pretty early to adopt it in a production project.
I've also looked at S#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Special Meaning for Pointer Value 0x7c7c7c7c While debugging a Linux app, I found a pointer with the suspicious value 0x7c7c7c7c. Does that particular value indicate anything?
(I ask because I know from my MSVC days that in a debug build, values like 0xcdcdcdcd or 0xdddddddd would be stored into heap blocks that we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: sql reporting serices not showing anything when go to web interface A client has installed Sql server 2005 reporting services. When we go to the web bit at http://servername/reports/ we just see a blank screen like:
We are using windows authentication and I think it has authenticated us as the "site settings" butt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to set Tab Order in ASP.net? I am trying to set up my tab order on the html side of my project. How do I set the tab order. Usually in visual basic, the option is in the menu bar under view/tab Order. How do I do this in asp?
A: Add TabIndex="x" to each control that can receive focus where x is an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: .net Dataset Primary-Keys - enforcing uniqueness? I have a small dataset with a few datatables. I load the datatables from various DBs and have a config file that I read to determine the primary keys I want to enforce on the given datatables. If the config doesn't contain a proper (non unique) primary key, how can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Cocoa equivalent of .NET's Environment.SpecialFolder for saving preferences/settings? How do I get the reference to a folder for storing per-user-per-application settings when writing an Objective-C Cocoa app in Xcode?
In .NET I would use the Environment.SpecialFolder enumeration:
Environment.GetFolderPath(Environme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Identifying active network interface In a .NET application, how can I identify which network interface is used to communicate to a given IP address?
I am running on workstations with multiple network interfaces, IPv4 and v6, and I need to get the address of the "correct" interface used for traffic to my given databa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Regex for HTML attribute replacement/addition I'm looking for a single line regex which does the following:
Given a HTML tag with the "name" attribute, I want to replace it with my own attribute. If that tag lacks the name attribute, I want to implant my own attribute. The result should look like this:
<IMG name="im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to Convert RGB Color to HSV? How can I convert a RGB Color to HSV using C#?
I've searched for a fast method without using any external library.
A: The EasyRGB has many color space conversions. Here is the code for the RGB->HSV conversion.
A: There's a C implementation here:
http://www.cs.rit.edu/~ncs/color/t_c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "72"
} |
Q: ASP.NET MVC: Controller ViewData & ViewPage ViewData I seem to be unable to find the "link" between a controller's ViewData collection and a ViewPage's ViewData collection. Can anyone point me to where in the MVC framework a controlle's ViewData collection is transferred to a ViewPage's ViewData collection?
I have s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring-WS: how to use WebserviceTemplate with pre-generated SOAP-envelope Can you use a Spring-WS WebserviceTemplate for calling a webservice and avoid that it generates a SOAP-envelope? That is, the message already contains an SOAP-Envelope and I don't want that the WebserviceTemplate wraps another one around it. :... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Most elegant way to detect if a String is a number? Is there a better, more elegant (and/or possibly faster) way than
boolean isNumber = false;
try{
Double.valueOf(myNumber);
isNumber = true;
} catch (NumberFormatException e) {
}
...?
Edit:
Since I can't pick two answers I'm going with the regex one because ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: master detail binding using wpf/linq to sql I'm trying to create a master detail view of a linq to sql relationship in wpf. The view will have two comboboxes. One for selecting the master item and another for selecting the detail item.
I have achieved this using an ADO.Net Dataset containing two tables and a relati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Wrapping a web service in try/catch block Is it best practice to wrap a web service method/call into a try/catch block?
I don't web service requests tend to be the reason why the .NET desktop applications crash? So I was thinking all calls should be wrapped in try/catch to prevent this.
Good idea?
Also, should it th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Flex: implementing classic curry function in actionscript? What's the best way to implement a classic curry function in actionscript with a nice syntax?
I've tried:
Function.prototype.curry = function()
{
return "helloWorld";
}
trace((function():void {}).curry());
...approach but that didn't work.
I guess I'm stu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Retrieving the url parameter from a JSON store from a EXTJS ComboBox I am having a problem retrieving the parameters from the URL section of a JSON store for a combobox in EXTJS from my code behind page in C#. The following is the code in the store:
var ColorStore = new Ext.data.JsonStore({
autoLoad: true,
u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I make sure that there is one NHibernate ISession per request using Autofac? I have the following code in an Autofac Module that is used in my Application_Start method:
builder.Register(c => new Configuration().Configure().BuildSessionFactory())
.SingletonScoped();
builder.Register(c => c.Resolve<ISession... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET component that allows online Annotation of PDF files We are trying to develop an application to view and annotate PDF files in ASP.net.
The function involves capturing x,y coordinates from a click and placing the annotation on that specific location.
Are there available components to do this?
Thanks in adva... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you mock your repositories? I've use Moq to mock my repositories. However, someone recently said that they prefer to create hard-coded test implementations of their repository interfaces.
What are the pros and cons of each approach?
Edit: clarified meaning of repository with link to Fowler.
A: I generally se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I get the value data out of an MSXML::IXMLDOMElement I have an xml string
<grandparent>
<parent>
<child>dave</child>
<child>laurie</child>
<child>gabrielle</child>
</parent>
</grandparrent>
What I want to get is the data raw xml that's inside the parent.
I'm using MSXML
iXMLElm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I see who checked out what when from my subversion server? Does anyone know where a log of who connected to my subversion server and what they did with it is?
I'm looking to find out what time and which files were checked out.
I'm assuming that it has something like a webserver log somewhere and I just can't f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to determine if a file exists in a SharePoint SPFolder Is there a way other than looping through the Files in a SPFolder to determine if a give filename (string) exists?
A: You can, if you know the URL also use the SPFile.Exists property as follows:
using (SPSite site = new SPSite("http://server/site"))
using (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Random but Regular Polygon Generator I'm looking for a way to generate a set of random sided, but regular, polygons, inside a given rectangle or sector of a circle. To better explain, my given 2d space should have a random arrangement of regular polygons with various numbers of sides, so, e.g, if two hexagons are s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java REST client without schema Goal
Java client for Yahoo's HotJobs Resumé Search REST API.
Background
I'm used to writing web-service clients for SOAP APIs, where wsimport generates proxy stubs and you're off and running. But this is a REST API, which is new to me.
Details
*
*REST API
*No WADL
*No formal XML... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: JavaFX Script and Java Simple question: Can I mix in my desktop application Java and JavaFX Script code? If it is possible could you provide me with some link with examples?
Or could I pack my custom made javafx CustomNode-s in a jar and use them in my project side by side with standard SWING components?
A: Yes, yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to undo changes on JSpinner? I need to validate the user input of a JSpinner, and if invalid, I need to undo (rollback) the value change. What is the best way to do it?
A: Well, if you save the old value from the last time you validated the input, you can then reset the value of the spinner back to the last val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I force the PropertyGrid to show a custom dialog for a specific property? I have a class with a string property, having both a getter and a setter, that is often so long that the PropertyGrid truncates the string value. How can I force the PropertyGrid to show an ellipsis and then launch a dialog that contai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Passing an enum value as command parameter from XAML I want to pass an enum value as command parameter in WPF, using something like this:
<Button
x:Name="uxSearchButton"
Command="{Binding Path=SearchMembersCommand}"
CommandParameter="SearchPageType.First"
Content="Search">
</Button>
SearchPageTyp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "200"
} |
Q: How to draw transparent polygons? I'm using PIL (Python Imaging Library). I'd like to draw transparent polygons. It seems that specifying a fill color that includes alpha level does not work. Are their workarounds?
If it can't be done using PIL I'm willing to use something else.
If there is more than one solution... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Default file extension of the executable created by g++ under Cygwin vs Linux I've done most of my work on VisualStudio and don't have much experience with gcc or g++. When I tried to compile a (ex. aprogram.cpp) this morning on my pc using cygwin, I got (aprogram.exe) when I tried to compile the same thing on my Ub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What's the best free resource to learn about Ms IIS? I usually use IIS in conjunction with the OutSystems development platform, which does code-generation for web applications.
As it does the compiling and deployment of the applications to IIS, I end up knowing very little on how it really works, and sometimes it is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tell StructureMap to use a specific constructor I have two services that require an XPathDocument. I want to be able to define named instances of XPathDocumnet to use in the configuration of the two services. I also want to be able to tell StuctureMap which constructor of XPathDocument to use. When I try to get an i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: A script to get files from the net I own a website and I wonder if there is a script that get files for me from other links on the net a load it to my server.
Suppose I found a file with a size of 400 mb, I want to host it on my server. The normal way I used is to download the file to my pc then upload it to my serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why Flash Media Server does not call application.onDisconnect handler? I've run into strange problem in my Flex/Flashcom application. If client application unexpectedly disconnects from server latter does not call application.onDisconnect handler function. In witch direction should I look? Thank you.
Update I'm not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Windows Workflow Foundation persistence schema explanation? I'm trying to debug a workflow project that's using the default WF SQL persistence schema. Does anyone know of a good explanation for what the data in each table represents?
A: The only two tables in the persistence schema are the InstanceState and Comple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I add a big flash banner to the top of my Wordpress blog? I don't know if it is possible to add a Flash banner into a Wordpress theme... Ideally, this banner would be in the header of the site always. Any ideas on how I might accomplish this?
A: Yes, it's very much possible. What I would recommend is to use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: Why is it considered a bad practice to omit curly braces? Why does everyone tell me writing code like this is a bad practice?
if (foo)
Bar();
//or
for(int i = 0 i < count; i++)
Bar(i);
My biggest argument for omitting the curly braces is that it can sometimes be twice as many lines with them. For example,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "187"
} |
Q: Oracle record history using as of timestamp within a range I recently learnt that oracle has a feature which was pretty useful to me - as the designer/implementator didn't care much about data history - I can query the historical state of a record if it's available yet in the oracle cache, like this:
select *
fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I start my application as a windows service? I have a windows application that I want to run as a windows service - how can I do this ?
A: You can use a tool to do this: XYNTService.
It is a service that can start regular applications, we use it at work and it also works with GUI apps. Since the service is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you handle large data transfers on very memory constrained, embedded systems? I have a microcontroller that must download a large file from a PC serial port (115200 baud) and write it to serial flash memory over SPI (~2 MHz). The flash writes must be in 256 byte blocks preceded by a write command and page add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: WPF Application Creating Installer I am creating a WPF Application using VS 2005. I download the add on to create the WPF application. Now for deploying the application I need the installer to automatically download the WPF components. Please note that I cannot installed 3.5 framework on the client's machine. There ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Setting tab order in WPF How do I set tab ordering in WPF? I have an ItemsControl with some items expanded and some collapsed and would like to skip the collapsed ones when I'm tabbing.
Any ideas?
A: If you want to explicitly set the tab ordering for elements in your form, the following attached property is suppose... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "95"
} |
Q: .NET WinForms: How to use an API call that requires a window handle? Short version
How do i use an API call when i cannot guarantee that the window
handle will remain valid?
i can guarantee that i'm holding a reference to my form (so the form is not being disposed). That doesn't guarantee that the form's handle wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Delete All Emails in a Highrise App How do I delete all the emails in my highrise app? I don't want to delete the entire thing and start over, I've got companies and tags and metadata. What's the easiest way?
This question paraphrased from Tibor Holoda's question on GetSatisfaction
A: It looks like this is availabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I underline a databound value from a DataTemplate? If I want to display an underlined value in a TextBlock, I have to use a Run element. (If there's a better/easier way, I'd love to hear about it.)
<TextBlock>
<Run TextDecorations="Underline" Text="MyText" />
</TextBlock>
Ideally, to implement this within... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get a file system handle to a bluetooth mapped folder Is there any way to get code level access to a bluetooth mapped drive? The simple use case is I have a bluetooth folder in Explorer that looks something like:
"My Bluetooth Places\Entire Bluetooth Neighborhood\DEV1\OBEX File Transfer\E:\"
which maps to a device... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: mm/dd/yyyy format to epoch with PHP I have a mysql table that relies on the unix epoch time stamp equivalent of the date of the entry to sort and filter in various parts of the website. I'm trying to implement a date picker that will enter the date into the form field in the mm/dd/yyyy format. I've been struggling w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to execute a JavaScript function when I have its name as a string I have the name of a function in JavaScript as a string. How do I convert that into a function pointer so I can call it later?
Depending on the circumstances, I may need to pass various arguments into the method too.
Some of the functions may take... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1253"
} |
Q: What are pitfalls for agile development methodologies? What are pitfalls for agile development methodologies?
A: The common criticisms include:
*
*Lack of structure and necessary documentation
*Only works with senior-level developers
*Incorporates insufficient software design
*Requires too much cultural chang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Creating dynamic maps on the web My company uses a sales model of dealers, territory managers and regional managers, each with a different level of area scope (IE manage based on zips codes, states, or regions.)
I want to create a slimmed down map that is similar to this US state map that would allow our users to ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I use a 32 Bit COM object from a 64 bit process? I Use Jacob (JAVA COM Bridge) on a 64 Bit Machine and want to load COM Objects from a 32 bit DLL. How can I do that?
A: You will need to host the 32 bit COM object in a 32bit process. So either your entire app will have to run 32bit or youll need to place the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Displaying images in gsp(grails) I am very new to grails.I am doing one sample project for image uploading and displaying.Right now my project uploads the images and stores into the images directory.Now i want to display all the images stored in the "image" directory.
I dont know how to write the gsp code for displa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Styling the last td in a table with css I want to style the last TD in a table without using a CSS class on the particular TD.
<table>
<tbody>
<tr>
<td>One</td>
<td>Two</td>
<td>Three</td>
<td>Four</td>
<td>Five</td>
</tr>
</tbody>
</table>
table td
{
border: 1px solid ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: MDX example in VB.NET I have a chunk of MDX that I'd like to throw into an ASP.NET form. Hopefully just binding the results to a gridview. Are there any good links or snippets? I'm using VB.NET, but I am able to port from C# if no Visual Basic code is available.
A: There is a way to execute MDX withing SQL, whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ignoring accented letters in string comparison I need to compare 2 strings in C# and treat accented letters the same as non-accented letters. For example:
string s1 = "hello";
string s2 = "héllo";
s1.Equals(s2, StringComparison.InvariantCultureIgnoreCase);
s1.Equals(s2, StringComparison.OrdinalIgnoreCase);
These 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "164"
} |
Q: Resize combobox arrow I'm writing a touch screen .net winforms application and need a combobox with a larger dropdown arrow. Is there any way to resize the arrow, or am I looking at writing a custom control?
A: I think the button's size is determined by a combination of the system font size and the system scroll-b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best solution for __autoload As our PHP5 OO application grew (in both size and traffic), we decided to revisit the __autoload() strategy.
We always name the file by the class definition it contains, so class Customer would be contained within Customer.php. We used to list the directories in which a file can potentia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: RhinoMock test mock interface void functions? I'm new to RhinoMock's just been doing state unit testing up till now.
How do you test void functions?
Getting the following complie error when setting up expectation,
Expression does not produce a value
Basically I want to test that a certain mock's method is called a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to tell if SubmitChanges() will actually change anything for a particular entity in LINQ to SQL I'm trying to determine if any changes were made to a particular entity object. Essentially, I want to know if SubmitChanges() will actually change anything. I would prefer to be able to determine this after SubmitCha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Adding a Scrollbar to the WrapPanel How can I add a scrollbar to the wrappanel control in WPF. Some of my controls are cutting off width wise due to the no scrollbar.
A: The ScrollViewer will be helpful for you in this situation. Otherwise, you'll need to use the ScrollBar control and manually control what's visi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: debug a dll from java java->jni.dll ->app.dll -> app.dll how can I debug a dll that is not loaded by the java application.
The scenario is this: my java app is loading the jni.dll that is using another dll and that dll is using another dll.
java<->jni.dll<->dll<->dll
I have the source code for all modules
I am usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: mutex lock in Nant How do I implement Mutex lock in Nant? The reason why I need this feature is because I register COM components in order to get my build working. Then at the end of the build
I un-register the COM components.
Without mutex lock, different version of COM are registered and face some issues.
So, i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Localizing system generated status messages I am working in a .NET environment where the system occasionally generates log entries for a customer. Messages are then appended to a customer log which can be reviewed at a later time.
For example, if a customer is subscribing to a new service, or a customer has a failed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Configuration settings in (web.config|app.config) versus a Static Class Object I am just looking at the source code of BlogEngine.Net and was intrigued at how it stores application settings.
Instead of using web.config or app.config which I am accustomed to, the source uses a static class object implemented using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I set up MySQL to work with C#? I have been tasked with creating a new frontend for a legacy website.
It is written in php (pre-oo), and uses a MySQL database. The hosting provides a .Net package, but does not offer Ms Sql Server.
This is fine, as the database is working fine, but I really want to use Asp.ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to set values in a multidimensional array using a linear index What is the most efficient way of setting values in C# multi-dimensional arrays using a linear index? For example given an array...
int[,,] arr2 = { {{0,1,2}, {3,4,5}, {6,7,8}}
, {{9,10,11}, {12,13,14}, {15,16,17}}
,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Symbian C++ - S60 application launches through TRK and Carbide, but not afterwards or when downloaded My application has just started exhibiting strange behaviour.
I can boot it through the Carbide Debugger (using TRK) and it works fine with no visible errors and is left installed on the device.
Any further attempts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determine when an user is typing I am building a search box (input field) which should make a server call to filter a grid with the text being inserted on it but I need to make this in an smart way, I need to fire the server call only if the user has stopped.
Right now I'm trying to implement it, but if someone kno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to duplicate socket for target process under different user I've hit upon a problem with WSADuplicateSocket, which I'm using to duplicate a socket for use by a different process. It works find when both processes are running under the same Windows user, but fails with error code 10022 (WSAEINVAL) when they are r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create byte array from HttpPostedFile I'm using an image component that has a FromBinary method. Wondering how do I convert my input stream into a byte array
HttpPostedFile file = context.Request.Files[0];
byte[] buffer = new byte[file.ContentLength];
file.InputStream.Read(buffer, 0, file.ContentLength);
Ima... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "162"
} |
Q: What are the most likely causes of Javascript errors in IE8? I'm seeing a lot of Javascript errors in IE8 on pages which worked fine in IE7 (and Firefox, Chrome, and Safari). I know that IE made some changes to things like Javascript security. Some of these don't give clear error messages - things like cross-domain ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Comparing List of Arguments to it self? Kind of a weird question, but. I need to have a list of strings i need to make sure that every string in that list is the same.
E.g:
a = ['foo', 'foo', 'boo'] #not valid
b = ['foo', 'foo', 'foo'] #valid
Whats the best way to go about doing that?
FYI, i don't know how many str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Config file in c# I have a UserControl Library solution which has the following
UserControl
---UserControl project
---UserControl Test Project
IN my test project, I am able to add my usercontrol to the tool box. When i drag it and drop it in my forms, it fails. I put in logging and found out that my userco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iPhone - installing firmware 2.2 has caused strange display behaviour I have a UINavigationController containing an UIViewController initialized with a UIView.
The UINavigationController also has a UINavigationBar as usual.
Previously when I positioned a new element in the UIView at 0,0 using
CGRectMake(0,0,height,w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: image upload using php I used this code to upload the picture. I got this code from stackoverflow. I am still unable to upload the image. I changed the db connection settings in table settings 2. I made the table but I am not sure whether the properties of the table I created are correct.
<html>
<head><title>Store S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Test class extending test class in dependency module I've got a test class in a module that extends another test class in one of its dependency modules. How can I import the dependency's test code into the test scope of the dependent module?
To illiterate, I've got two modules, "module-one" being a dependency of "mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Which C++ signals/slots library should I choose? I want to use a signals/slots library in a project that doesn't use QT. I have pretty basic requirements:
*
*Connect two functions with any number of parameters.
*Signals can be connected to multiple slots.
*Manual disconnection of signal/slot connection.
*Dece... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Compile Error With Generic Method in C# EDIT: I found out that I can get it to compile if I cast the IMetadataType object to the TMetadata type. Why do I need to do this?
EDIT #2: The "Values" property is a .NET dictionary of type <TMetadata, TData>.
I have this generic method:
private void FillMetadata<TMetadata... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I add attributes to methods and types defined in IronPython? Since IronPython doesn't support attributes I am wondering if there is another way to decorate IronPython classes with attributes, perhaps with reflection?
A: One, albeit ugly and sometimes impractical, workaround is to create a stub class in C# a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to update table schema for huge tables (SQL Server) I have a few huge tables on a production SQL 2005 DB that need a schema update. This is mostly an addition of columns with default values, and some column type change that require some simple transformation. The whole thing can be done with a simple "SELEC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it OK to use Pulse & Wait? Or it is evil and a cause of write-only code? Monitor.Pulse/All and Monitor.Wait are useful methods, but I'm getting complaints that when using them in large quantities (I have a DSL designer that spits them out by the dozen), the resulting code becomes unreadable. What do you think?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert ANSEL text to UTF-8 How to change text encoded in ANSEL to UTF-8 in C#?
A: This is a non-trivial conversion as Windows/.NET Framework does not have an ANSEL codepage. See here for the travails of another person attempting this conversion.
A: Joshperry is correct. Eichmann's site has basically the O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WMI & Computer power settings - Date/Time last out of standby I'm trying to find out the last time a computer came out of standby/hibernate. I know I could get this by watching Win32_PowerManagementEvent, but that doesn't work in this instance as I need something I can poll - any ideas? It doesn't have to be WMI, I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding a parsing API for partially utf8 encoded URL's When parsing HTML for certain web pages (most notably, any windows live page) I encounter a lot of URL’s in the following format.
http\x3a\x2f\x2fjs.wlxrs.com\x2fjt6xQREgnzkhGufPqwcJjg\x2fempty.htm
These appear to be partially UTF8 escaped strings (\x2f = /, \x3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How good is Apache POI word support? On the web page, it looks like there is no current development in the old style .doc.
*
*Is it good enough to create complex documents?
*Can it read all .docs without crashing?
*What features do (not) work?
I am not currently interested in the XML based formats, as I don'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Run a .NET program from a mapped drive or shared folder I have written a C# Windows Forms application to merge the files and folders from a remote folder on one machine ("source" folder is a mapped drive - "Z:\folder") with another remote folder on a different machine ("destination" folder is a UNC path to a shared ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to display Arabic dates in the Gregorian calendar? I have a multilingual ASP.NET site; one of the languages is Arabic (ar-SA). To switch between cultures, I use this code:
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(Name)
Thread.CurrentThread.CurrentUICulture = New CultureInfo(Name)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: S60 application - Symbian C++ - Exit button doesn't work In my Symbian S60 application, my Options menu works as expected. But the Exit button does nothing.
I am developing with Carbide and have used the UI Designer to add items to the options menu.
Does anyone know how to enable the exit button, or why else it migh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a tool or framework to Generate a CRUD UI in Swing? I am looking for a tool/framework to (automatically) generate a Swing user interface to perform CRUD operations on an underlying database.
I would also like to configure the database fields that should be exposed. Something like django (via modelforms) or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/359993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.