text stringlengths 8 267k | meta dict |
|---|---|
Q: Visual Studio 2008 will not edit read only files So, up until today, when I tried to edit a read only file in VS2008, a dialog popped up giving me three options:
*
*Edit in memory
*Make writable
*Save a copy
There was also a checkbox which read "Never allow in memory edits".
Suddenly, it has stopped offering ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Null Difference What is the difference between
if(null==object)
and
if(object==null)
Please give the advantage for using the above.
A: In the good old days, compilers would happily let you make assignments inside conditionals, leading to unintentional errors:
if(a = false)
{
// I'll never execute
}
if(b = nul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Smarty replace text with double quotes I have the following string in the smarty (php templating system) variable $test:
<img height="113" width="150" alt="Sunset" src="/test.jpg"/>
I want to add "em" to the height and width like this:
{$test|replace:'" w':'em" w'|replace:'" a':'em" a'}
But this doesn't work... Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to delete child object in NHibernate? I have a parent object which has a one to many relationship with an IList of child objects. What is the best way to delete the child objects? I am not deleting the parent. My parent object contains an IList of child objects. Here is the mapping for the one to many relationsh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "80"
} |
Q: How does Python handle classes being in separate files or are they all supposed to be in one file I'm working on framework for testing some command line utilities. I want to create some classes to hold the different types of information more easily.
Python is fairly new to me so I'm not sure how you would handle t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How much null checking is enough? What are some guidelines for when it is not necessary to check for a null?
A lot of the inherited code I've been working on as of late has null-checks ad nauseam. Null checks on trivial functions, null checks on API calls that state non-null returns, etc. In some cases, the null-che... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: In BIRT, how do I access the children of a cell from the cell's event script blocks I am creating images dynamically in BIRT and adding them to a cell of a grid. The grid is part of a List, which iterates over the records in the data source.
I want to be able to modify the properties of the images on a per-record b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Reading a file of mixed data into a C++ string I need to use C++ to read in text with spaces, followed by a numeric value.
For example, data that looks like:
text1
1.0
text two
2.1
text2 again
3.1
can't be read in with 2 "infile >>" statements. I'm not having any luck with getline
either. I ultimately want to pop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JQuery tablesorter problem I'm having a couple of problems with the JQuery tablesorter plugin. If you click on a column header, it should sort the data by this column, but there are a couple of problems:
*
*The rows are not properly sorted (1, 1, 2183, 236)
*The total row is included in the sort
Regarding (2),... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Why does Visual C++ not hit a breakpoint in, or step through a specific function? I have the following:
classA::FuncA()
{
... code
FuncB();
... code
}
classA::FuncB(const char *pText)
{
SelectObject(m_hDC, GetStockObject ( SYSTEM_FONT));
wglUseFontBitmaps(m_hDC, 0, 255, 1000);
glListBase(1000); ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Multithreaded access to file We have a multi threaded java program. Multiple-threads will write to a file, and one thread will read from that file. I am looking for some design ideas. Is synchronization necessary?
A: FileChannel is in theory thread safe. From the javadoc:
File channels are safe for use by multiple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Call a webpage from c# in code I need a way of calling a web page from inside my .net appliction.
But i just want to send a request to the page and not worry about the response.
As there are times when the response can take a while so i dont want it to hang the appliction.
I have been trying in side the page_load... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Classic ASP DB opening function does not work I have transferred a Classic asp site running on windows server 2003 to windows server 2008 but suddenly the below code has stopped working.
Const connStr_FC08 = "Provider=SQLNCLI10;Server=DS-47500;Database=TestDB;Uid=TestLogin;Pwd=test;Network=dbmssocn;"
Function connD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails: How do I check if a column has a value? How can I accomplish this?
<% for agent in @broker.agents %>
...
<% if agent.cell %><span class="cell-number">Cell: <%= agent.cell %></span><% end %>
...
<% end %>
I want to test to see if the agent has a cell number, and if so, display what's inside the conditio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Can I define_method in rails models? My rails model has code that is attempting to define_method(method_name) inside the model.
I keep getting:
NoMethodError: undefined method `define_method'
What am I doing wrong? Am I doing this in the wrong place. I need this method attached to this model. Where else can I defin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Flush cached data from IIS? I'm being asked to look into a problem that occurs intermittently on a WebServer running my team's application.
Essentially, we have a webservice that does a lookup between codes. If you have Code Type A, you can use it to look up the corresponding Code Type B. Periodically, when memory... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How would you do realtime data transfer between databases when data is updated? Here's my problem at a high level:
We have two business applications. App1 inputs and stores a large set of data. We need something that will transfer data from App1 to App2 whenever any relevent data in App1 has changed. Essentially ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Advantages of using delegates? I'm looking to implement the Observer pattern in VB.NET or C# or some other first-class .NET language. I've heard that delegates can be used for this, but can't figure out why they would be preferred over plain old interfaces implemented on observers. So,
*
*Why should I use delegat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: .NET 3.5 chart controls exception: Error executing child request for ChartImg.axd Anyone getting this error when using the new free chart controls MS bought from Dundas?
"Error executing child request for ChartImg.axd"
On the MSDN forum they suggested it was my web.config:
MSDN forum post
So far that hasn't fixed t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Serialization in C# without using file system I have a simple 2D array of strings and I would like to stuff it into an SPFieldMultiLineText in MOSS. This maps to an ntext database field.
I know I can serialize to XML and store to the file system, but I would like to serialize without touching the filesystem.
public... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: as3 ExternalInterface.addCallback is not working right I was trying to access swf from javascript, so this example in livedocs is what I'm trying to modify. http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html#includeExamplesSummary
However,it is not working correctly for s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Sql Server Case Statement gives me errors in user-defined function I want to use a case statement in my user-defined functions because I need to match on a number of terms. I could use a table for the matches but then I wouldn't be able to put it inside the Computed Column definition.
This works with IF statements:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: scons : src and include dirs can someone give a scons config file which allows the following structure
toplevel/
/src - .cc files
/include .h files
at top level I want the o and final exe.
A: Here is one example of Sconscript file
env=Environment(CPPPATH='/usr/include/glib-2.0/:/usr/lib/glib-2.0/in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best Way To Find Pattern 6 digit space 7 digit ###### ####### with VB.NET Parsing a text file in vb.net and need to locate the latitude and longitude in these two sections of text. The patter is 6 digits space 7 digits (364800 0953600). The samples are from two different map files and have slightly differing forma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF User Control Parent I have a user control that I load into a MainWindow at runtime. I cannot get a handle on the containing window from the UserControl.
I have tried this.Parent, but it's always null. Does anyone know how to get a handle to the containing window from a user control in WPF?
Here is how the contr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "196"
} |
Q: displaytag table column totals I'm using the displaytag JSP tag library to generate tables that show column totals. For example in the JSP code below, only those columns with the attribute total="true" will have totals generated.
<display:table name="myTable" id="myTable" decorator="org.displaytag.decorator.TotalTa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I install a Python extension module using distutils? I'm working on a Python package named "lehmer" that includes a bunch of extension modules written in C. Currently, I have a single extension module, "rng". I am using Python's Distutils to build and install the module. I can compile and install the module, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: developing a bot to use as gtalk contact with java I want to develop a bot who can chat from gtalk and I have some experience with java.
I don't want to use the bot for IA purpose.
I want to use the bot to emulate a console like xterm.
Edit:
Ok: the question is "Any leads on how to develop it?"
thanks for the awnser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How can I redraw my degrafa background when scrolling? I am using a canvas which has a degrafa background, so far so good.
However, when scrolling, the background (degrafa grid) does not get redrawn.
In the code the background strokes are linked to the container height. The container height does not change even w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing the original caller in WCF We currently have a setup like this:
lan\john lan\application1 lan\appService1 lan\appService2
client ------> website ----------> WCF Service1 ------> WCF Service2
So each website/service runs as a different identity account that is setup in active directory. Securi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RegEx to parse ID3 tags I am making a mp3 id3tag editor, and a regex is not matching.
Could anyone help me please?
my code:
arquivo = "[coletanea] album [CD #] [faixa] [artista] musica.mp3"
r = New Regex("^\[(?<1>[^\]]+?)\]\s*(?<2>[\w\s]+)\s*\[CD\s*(?<3>\d+)\]\s*\[(?<4>\d+)\]\s*\[(?<5>[^\]]+)\]\s*(?<6>.+)", RegexOp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Entity Framework Validation & usage I'm aware there is an AssociationChanged event, however, this event fires after the association is made. There is no AssociationChanging event. So, if I want to throw an exception for some validation reason, how do I do this and get back to my original value?
Also, I would like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: CRC32 C or C++ implementation I'm looking for an implementation of CRC32 in C or C++ that is explicitly licensed as being no cost or public domain. The implementation here seems nice, but the only thing it says about the license is "source code", which isn't good enough. I'd prefer non LGPL so I don't have to fool... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: Are ASP.NET Web Parts a viable technology for implementing a portal architecture Web parts seem to be used extensively in Sharepoint related development, but examples of using them in asp.net webforms applications are few and far between. I'm implementing a domain specific portal framework and like the "widgetlike"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What are the best practices for encrypting data in .NET? What are the best practices for dealing with
*
*Things that should be hashed. i.e. passwords
and
*Things that cannot be hashed, but are extremely confidential and would cause tremendous pain if compromised. i.e. credit cards, SSN, missle launch codes.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MySQL - Tricky LIMIT for each WHERE_IN problem I am looking to do the following (see pseudo code); I want to select 4 rows for each gd.id (7, 11 or 9). I've incorrectly use limit because that only brings up 4 rows in total. Anyone have an idea on how to change this query to accomplish my goal?
SELECT gd.gid, gd.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are there any pitfalls trying to run DNN on Windows Server 2008 Web Edition? I am considering switching to a co-located solution running a DNN (DotNetNuke) installation and an email server that mostly just does alias forwarding. I think I can get DNS services outside of this colocation box - but that could be an is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Active navigation with jQuery - can't apply a default class to anchor I am currently trying to make a navigation-menu where an active-class is applied to the anchors whose href attributes that match the current URL, so I can style that anchor in a way that makes it stand out from the rest of the menu.
This is my mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: NHibernate: Criteria expression to retrieve non-null one-to-one associated class I have two classes that are associated with a one-to-one mapping:
<class name="Employee" table="Employees">
...
<one-to-one name="Address" class="AddressInfo">
...
</class>
I would like to use a criteria expression to get only Em... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: vba to make table when field names are dynamic I have a crosstab query that uses a dynamic date function to result in the column headers and therefore the field names. Ex: ForecastPeriod:DateAdd("m",[Period],[StartDate])
This means that every time I run the crosstab query, I could end up with different field names.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Need to generate a Persistent Transient Failure Update: A 4.x.x vs a 5.x.x became the least of my worries when I discovered that not all mail servers return errors according to the "standard". I'm opting to handle all types of returned mail as failures now but I'm leaving this question here in case it gets an answer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Ant with FlexBuilder I need to run some precompile steps before I build my project using FlexBuilder. I assume I will need to use Ant to do this. Any tutorials that anyone knows of that can help me along my path? I know next to nothing about Ant and Eclipse (FlexBuilder).
Thanks!
A: I use solely use ant to bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IIS equivalent of VirtualHost in Apache Is there an equivalent to Apache's VirtualHost for IIS? We want to be able to run multiple websites from one IP and address them with different DNS names.
i.e. I have
www.dom1.com
www.dom2.com
www.dom3.com
that all point to 123.123.10.1. Apache would just be running on por... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: I don't get XSL processing instructions! What kind of scenarios can XSL processing instructions be used or applied? When is it good or bad to use them?
Clean slate here, I don't have a good handle on this particular element.
Example from w3schools:
<xsl:processing-instruction name="process-name">
<!-- Content:temp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Old School vs New School Programmers Problems and/or Benefits I am a recent college graduate working for a large corporation that has an aging workforce. I am curious for peoples experiences on working with an age gap preferably from both sides.
Examples Issues I have encountered so far:
*
*Agile practices vs W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Tomcat VS Jetty I'm wondering about the downsides of each servers in respect to a production environment. Did anyone have big problems with one of the features? Performance, etc. I also quickly took a look at the new Glassfish, does it match up the simple servlet containers (it seems to have a good management interf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "172"
} |
Q: Best Django 'CMS' component for integration into existing site So I have a relatively large (enough code that it would be easier to write this CMS component from scratch than to rewrite the app to fit into a CMS) webapp that I want to add basic Page/Menu/Media management too, I've seen several Django pluggables addr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Why doesn't || seem to work as a coalesce/default operator in JavaScript? I've seen a couple of web pages say that a = b || 'blah' should assign 'blah' to a if b is undefined or null. But if I type that into Firebug or use it in code, it complains that b is not defined, at the list on FF3/win. Any hints?
Edit: I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/302993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Colors in debug console Looking at this LINQ demo:
LINQ Framework Overview
When going in debug mode, the output have colors in it. I'm using the same ObjectDumper class and I only have the black/white console window.
How can I have the same results in the console window?
Thanks
A: What about :
Console.ForegroundCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: M-V-VM Design Question. Calling View from ViewModel I've just started looking into M-V-VM for a WPF application. Everything makes sense so far besides this particular issue...
I have a ViewModel I'll call Search. This ViewModel binds to a datagrid and lists results of items. Now, I have a command that needs to br... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Implementing Custom CacheDependency to invalidate ASP.Net cache item I want to implement my own customCacheDependency class by deriving base CacheDependency, as provided SqlCacheDependency is not suitable for my case. (thousands of cache items, and there will so many subscriptions in SQL as well as issues with regis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What's the point of a DataContract in WCF? VS.net creates a template when you create a WCF project.
It adds a class to the iService1.cs file:
// Use a data contract as illustrated in the sample below to
// add composite types to service operations.
[DataContract]
public class CompositeType
{
bool boolValue = tru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: Using jQuery .load breaks links to other library resources? I have a simple html page with a div. I am using jQuery to load the contents of an aspx app into the "content" div. Code looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to authenticate users in a web application I was looking at ways to authenticate users in a web app, but in a way where the main web app doesn't need to process the password. Something like OpenId, but the authentication server would definitely need to be hosted on an intranet, internet services can't be ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Connecting to a network folder with username/password in Powershell I often access shared network folders in Powershell to grab files etc. But if the share requires a username/password, Powershell does not prompt me for these, unlike Windows Explorer. If I connect to the folder first in Windows Explorer, Powershell ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: Creating an extensive project to be sold I am going to start a C# project from scratch that will consist of several modules so it can be sold by modules of an existing PHP/ASP/MySQL/Oracle/MS SQL application that manages to show 3D objects and create 2D and 3D CAD files from a web app that the user can use to create... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I read lines from the end of file in Perl? I am working on a Perl script to read CSV file and do some calculations.
CSV file has only two columns, something like below.
One Two
1.00 44.000
3.00 55.000
Now this CSV file is very big ,can be from 10 MB to 2GB.
Currently I am taking CSV file of size 700 MB. I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to Control Flex 3 Image Control Caching According to the adobe flex docs: http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html
Using an image multiple times
You can use the same image multiple times in your application by using the normal image import syntax each time. Flex only loads the ima... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: c# how hashtable shrinks when elements are removed from hashtable? I am looking to find out the logic , if any , which shrinks hashtable in c# when elements are removed from it.
Regards
Harish
A: c# hashtables don't shrink; they only grow. The logic is important, because the rehashing algorithm is VERY expensive t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What could be causing an XML Parsing Error: no element found? I recently migrated an ASP site from my dev machine to a live server. All the pages except my FAQ page works just fine, but my FAQ brings up:
XML Parsing Error: no element found
Location: http://geniusupdate.com/GSHelp/faq.aspx
Line Number 1, Column 1:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: IoC Container Applicability / Scenario Demonstration? A lot of people in the .NET space have picked up Castle Windsor and are implementing it in their projects, and for the past year I've been struggling to figure out why IoC containers seem to be treated as general "best practice"? I've read a LOT of abstracts and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: TripleDES Encryption in C# I'm trying TripleDES Encryption with ECB mode. My code looks like that:
public static string EncryptDES(string InputText)
{
byte[] key = new byte[] { 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x41, 0x42, 0x43, 0x44, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to backup ArrayList in Java? I have some data stored as ArrayList. And when I want to backup this data,java bounds two objects forever. Which means when I change values in data ArrayList this changes come to backup. I tried to copy values from data separately to backup in the loop, tried to use method data.clone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Problem inserting multiple rows quickly to Oracle database from VB I'm trying to insert multiple rows, one after another, to a database. Here is the relevant code.
Private ConnectionString As String = "Provider=OraOLEDB.Oracle;Data Source=(DESCRIPTION=(CID=GTU_APP)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx)(PORT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Modifications of arrays passed by reference I recently ran across some 3rd party C# code which does the following:
public int RecvByteDataFromPrinter(ref byte[] byteData)
{
byte[] recvdata = new byte[1024];
///...fills recvdata array...
byteData = recvdata;
return SUCCESS;
}
What does the l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Recommended framework for data aggregation We have an application that will be collecting data and storing it in local WinXP PCs using Microsoft SQL Server Compact. We want to aggregate that data up to a single full-blown SQL Server for reporting and archival. The data transport needs to be fairly continuous (i.e.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DB access directly from Windows client - good or bad? Assuming this is a multi-user system
A: I don't know that it's inherently good or bad. If there's no reason to centralize the data access from a business standpoint, having a client app talk directly to the database isn't a problem. You'll want to build a dece... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a groovy equivalent to the beanshell source() method? I've scoured the groovy doc and haven't found an analogue, but things there are organized a bit haphazardly. I'm switching from beanshell to groovy and was using the source("fileloc") method in beanshell to inline-include other, utility beanshell scripts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: System.Windows.Threading.Dispatcher and WinForms? Does a System.Windows.Threading.Dispatcher work on the UI-thread of a WinForms application?
If yes, why? It is coming from WindowsBase.dll which seems to be a WPF component.
If not, how can I invoke work units back onto the UI-thread? I've found Control.BeginInvoke()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Changing NetBeans UI Look/Feel Is it possible to somehow change the look/feel of NetBeans? I know it uses Swing and that usually apps using Swing for its UI can usually have their UI scheme changed.
The default appearence for OSX is vomitastic and would even settle for just some sort of barebones default look. The w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What does "Nuke" in DotNetNuke mean? A co-worker asked me how the word "Nuke" relates to CMS? To be honest I never thought about it, and there wasn't any information on the web that I could find.
Francisco Burzi wrote that his Perl script that he used to manage content was called NUKE. His knowledge of that system f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Parameterized Queries with LIKE and IN conditions Parameterized Queries in .Net always look like this in the examples:
SqlCommand comm = new SqlCommand(@"
SELECT *
FROM Products
WHERE Category_ID = @categoryid
",
conn);
comm.Parameters.Add("@categoryid", SqlDbType.Int);
comm.Parameters["@categoryid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: SQL Server 2005: "Protecting" stored procedures from FMTONLY mode used by MS Access Some of the stored procedures we have contain conditional logic, like this:
Create Procedure dbo.DoSomething(Some Parameters)
As
...
If (Some Condition) Begin
Set @SomeVariable = SomeValue
End
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Portability of SQL Server applications between 32 and 64 bit versions of SQL Server? I have an application that is currently running against a 32-bit SQL Server 2005 Standard Edition database. For reasons I won't go into here, I need to move the database to a 64-bit SQL Server 2005 Standard edition running on 64-Bit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you unit-test a plug-in to an application? When developing a plug-in to application, using the application API which doesn't run independently of the application, is unit-testing even a possibility? What are strategies to test a plug-in that is tightly integrated with an application?
A: Abstract out the host... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Changing a LINQ objects data context I have an object in SQL (A) that has a many to many relationships with another object (B). I'm currently building an API layer DLL that will allow the user to assign objects of type B into type A. Right now the user would retrieve a list of entries of type A and a list of entries... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cygwin X11R7.4 update support I just got burned by the Cygwin X11R7.4 update and I find the official mailing lists hostile and clunky. So I thought I'd ask here.
If you have survived the upgrade (or at least made progress on fixing things), what steps did you take to make things work?
A: This upgrade splits bits o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I insert Chinese characters into a SQLExpress text field? How do I insert Chinese characters into a SQLExpress text field? I'm using SQL Express from VS 2008. When I add Chinese characters, either via an import app I wrote or by pasting them in from the data view inside Visual Studio, they end up as question ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Is it worth the trouble to use tinyint instead of int for SqlServer lookup tables? When designing a lookup table (enum) in SqlServer 2005, if you know the number of entries will never get very high, should you use tinyint instead of int? I'm most concerned about performance, particularly efficiency of indexes.
Let'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Excel 2002 Web Query screwing up en-GB dates Good afternoon,
I have a web query in Excel 2002 going against a web page that returns a date column. The dates are returned as DD/MM/YYYY, as I would like to show them in my spreadsheet. My machine running Excel has its regional settings set to en-GB, and the only lang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Nullable: and overloaded operators, bool? & bool
*
*Why is operator '&' defined for bool?, and operator '&&' is not?
*How exactly does this 1) bool? & bool? and 2) bool? and bool work?
Any other "interesting" operator semantics on Nullable? Any overloaded operators for generic T?
A: There are no short-circuit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Novell Error 81 connection We have tried to connect to a remote Novell server from our offices.
First, we had to open the firewall port to connect to the server, otherwise we were getting error 91 (which basically tells that the server cannot be joined).
Second, we used a tool called LDAP Browser to test the connect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: linq to sql not putting quotes around strings in where clause I have a simple Linq to SQL query that is pulling data with a where clause by a string. The result query doesn't put quotes around the string.
Example
string name = "John";
var query = from n in db.Names where n.Name == name select n;
the result is
...... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SAML Assertion WriteXML issue in C# I've created an instance of a SamlAssertion, and added the the authorization statement and attribute statments to it, and now I want to print out the XML so I can do an HTTP post, but not all of the assertion is being outputed. What am I missing (I'm sure it's something bone-head... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I remove/delete a folder that is not empty? I am getting an 'access is denied' error when I attempt to delete a folder that is not empty. I used the following command in my attempt: os.remove("/folder_name").
What is the most effective way of removing/deleting a folder/directory that is not empty?
A: import... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1066"
} |
Q: How to add an optional parameters/default value parameters in VB function? How can I create a method that has optional parameters in it in Visual Basic?
A: Use the Optional keyword and supply a default value. Optional parameters must be the last parameters defined, to avoid creating ambiguous function signatures.
S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: How do I break out of a loop in Perl? I'm trying to use a break statement in a for loop, but since I'm also using strict subs in my Perl code, I'm getting an error saying:
Bareword "break" not allowed while
"strict subs" in use at ./final.pl
line 154.
Is there a workaround for this (besides disabling strict su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "319"
} |
Q: How do I bind an ArrayList to a PreparedStatement in Oracle? I was wondering if there was a way to bind an ArrayList (or any kind of List, for that matter) to a PreparedStatement which will eventually be used to access an Oracle database. I found:
PreparedStatement IN clause alternatives?
And that seems similar to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: LINQ to SQL - Nullable INT in ForeignKey = "Cannot create an association..." I have a table that has a primary key that's an INT... I have another table, that has a foreignkey relationship to that first table, but it's a NULLABLE INT.
This is perfectly ok, and 100% acceptable to SQL... however LINQ to SQL is complai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Store 2D points for quick retrieval of those inside a rectangle I have a large number of 2D points and I want to quickly get those that lie in a certain rectangle.
Let's say a '.' is any point and 'X' is a point I want to find inside a rectangle which has 'T' as TopLeft and 'B' as BottomRight points:
. . . . . .
. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I prune old revisions in Subversion? How can I prune old revisions from my development subversion repository? I keep a subversion sandbox in which I have lots of test projects, binaries, etc. I'd like to prune the history occasionally.
A: Jon - we disagree. There are times when it's appropriate to prune "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: What is the proper way to load up a ListBox? What is the proper way to load a ListBox in C# .NET 2.0 Winforms?
I thought I could just bind it to a DataTable. No such luck.
I thought I could bind it with a Dictionary. No luck.
Do I have to write an class called KeyValuePair, and then use List<KeyValuePair> just to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Suggestions for (semi) securing high-scores in Flash/PHP game ...I have read a few threads on here that have discussed various methods and was just looking for some feedback on a proposed solution we came up with. In one of the threads a comment was posted recommending a public/private key which sounded great, this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cross Domain JSON Enabled WCF I have a WCF Service decorated with WebInvoke attributes and WebHttp binding for JSON enabling. The service can be accessed from JavaScript until we try to make it working cross domain. Can you please recommend how to get this to work cross domain?
We've tried to create proxy web handle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: javascript (spidermonkey) how does one run a linux command from js shell? I'm stumped and feeling stupid. I've tried every search combination I can think of to figure this out. It seems simple, but being new to javascript I'm not seeing anything helpful in my search for examples or demos.
I'm looking to use a script... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: An MVC Framework Comparison (primarily cost/speed tradeoffs) I'm developing an idea for a web application that would be well suited to one of the popular MVC frameworks out there right now, but torn between which to go with. I was originally going to go with Pylons, but upon reading about the BizSpark program, I'm r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: F#: How do I use Map with a Collection (like Regex Matches)? Soo... F# no longer has IEnumerable.map_with_type... which is the way people were mapping over collections. How do I do that now?
let urlPat = "href\\s*=\\s*(?:(?:\\\"(?<url>[^\\\"]*)\\\")|(?<url>[^\\s]* ))";;
let urlRegex = new Regex(urlPat)
let matches =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can a Generic Method handle both Reference and Nullable Value types? I have a series of Extension methods to help with null-checking on IDataRecord objects, which I'm currently implementing like this:
public static int? GetNullableInt32(this IDataRecord dr, int ordinal)
{
int? nullInt = null;
return dr.IsDBN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: ASP.Net LinkButton CSS Adapter Does anyone know of a CSS Adapter for the LinkButton control for ASP.Net 2?
Update:
We are trying to use CSS Buttons. We are using this approach: http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html For that we need to render the tags which the link button do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Deterministic Scalar Functions I want to index a computed column in my database table which uses a number of user defined functions. However I just learned that my column is non-deterministic.
Without indexing its going to be way to slow to run queries that I need.
What's the best way of tracing through user defined... | {
"language": "en",
"url": "https://stackoverflow.com/questions/303318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.