text stringlengths 8 267k | meta dict |
|---|---|
Q: Powershell get a outer variable in a foreach sequence PS C:\Projects>
get-childitem -recurse
| where { $_.Extension -eq ".csproj" }
| foreach { Get-Content $_.FullName
| foreach { $_.Length } }
This prints the line size of every line in a csproj (pretty pointless true). How can I also outpu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using Studio's "Custom Tool" in MSBuild I've got a "Custom Tool" for Visual Studio to munge some template files into code. For consistency and portability I'd like to be able to run this template processor from MSBuild when building outside of Visual Studio.
Visual Studio creates the following snippets for the files... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: ComboBox SelectedIndex can't be reset I've got a comboBox on my form. if i select, let's say, 5th item in the ui, then programmatically set selected index to -1 it looks like the selected item was reset - the text is not displayed, if i view the items with a mouse the first item is the item with index zero. but if i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Place button in a form that does not use the form's URL I have a regular form with a url as action to which the form submits when the submit button is clicked (or enter is pushed).
Now I need a second button that goes to another page. I know I should be using a link for this, but as to client's requirements, it shou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: There is a way to pass-by-reference using variable parameters in C#? I would like to have a function that modifies some variable list of parameters but they are all value types (int, string). There is a way to make the params keyword work with ref keyword or something close to that?
public void funcParams(params obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to programmatically determine installed IIS version What would the preferred way of programmatically determining which the currently installed version of Microsoft Internet Information Services (IIS) is?
I know that it can be found by looking at the MajorVersion key in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Howto activate javascript-tag fetched from iframe? I have a Rich Text Editor in Javascript in which I want to be able to enter an embedded widget in a Javascript tag. I.e:
<script src="http://www.mydomain.com/script.aspx?id=123" type="text/javascript"></script>
Still using JS I move the html-content from the iframe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JRuby on Rails deployment I need to host a JRuby on Rails app on Mongrel. The problem is that I need to support mutual authentication. I know that I could just host it behind a Apache with mod_proxy use mod_ssl to pass the cred or part of the cred as a request header to rails. But I want the whole stack to be Java. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Setting start node in a umbraco website I have this content structure for a multi language site.
*
*Content
*
*Danish
*
*Forside
*Om os
*English
*
*Frontpage
*About Us
When I start the website it automatically starts in the Danish-node, but I want it to start in "Forside", and as for the english ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Windows Server 2008 Licence Limitations I'm about to purchase a copy of Windows Server 2008 (User CAL, 5 CLT)
is IIS Going to be limited to 5 concurrent anonmous internet users?
A: No it's not :)
A: Nope
Windows Server 2008 Client Access Licensing
Relevant portion:
Every user or device that accesses or uses the W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: java.util.ConcurrentLinkedQueue I want to use java.util.ConcurrentLinkedQueue as a non-durable queue for a Servlet.
Here's the blurb from the javadoc for the class.
An unbounded thread-safe queue based on linked nodes. A ConcurrentLinkedQueue is an appropriate choice when many threads will share access to a common ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What is the single best free Eclipse plugin for authoring and editing XML documents? In my old job I used XMLSpy to do my XML authoring and editing, but now I require a free plugin for Eclipse to do this. My basic requirements are:
- General XML document editing
- Creating XSD files
- Creating WSDL files
Can you re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is a service principal name (SPN) bound to a specific machine? At the moment I am getting a KrbException: Integrity check on decrypted field failed (31) with my GSS demo application (on the server side). Now I am looking for the reason for this. I have the suspicion, that it comes from the fact that
*
*the client... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to design a simple class structure that allows defining validations? my company processes paper forms so that written data is being put to databases. every form has a set of fields. i'm writing a simple internal app to define the form's fields and that includes field's validations. i'm thinking of classes struct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PreviewCanExecuteEvent not executed I have a problem with my WPF program. I'm trying to create an object that will add handlers to all controls in the same scope.
The following line does not work. The event is not handled.
element.AddHandler(CommandManager.PreviewCanExecuteEvent, new CanExecuteRoutedEventHandler(sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Choosing adequate spec servers for ASP.NET application I'm working on an application that's due to launch soon and could do with some advice on how to go about choosing servers of the appropriate configuration so everything performs well.
The app is .NET 3.5, using SQL express edition for the DB. We currently have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What can cause an Oracle ROWID to change? AFAIK ROWID in Oracle represents physical location of a record in appropriate datafile.
In which cases ROWID of a record may change ?
The one known to me is UPDATE on partitioned table that "moves" the record to another partition.
Are there another cases ? Most of our DBs ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What would you consider good Eclipse support? As part of my job, I'm employed to install and support development tools for the developers in the company.
Eclipse is an IDE that a great deal of developers here use, but I don't actively support. With the huge range of plugins and quick release of new versions - I fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Error "stopped because I can't continue" in SQLLoader - DIRECT mode When trying to load a large text file into the oracle db using SQLLoader, we get the following errors:
SQL*Loader-926: OCI-Error; uldlfca:OCIDirPathColArrayLoadStream for table <myTabele>
SQL*Loader-2026: the load was aborted because SQL Loader cann... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I resolve the lexical ambiguity between numbers and dates in ANTLR 2? I have two token types in my lexer defined like this:
NUMBERVALUE
: ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ )?
;
DATEVALUE
: ( '0' .. '9' ) ( '0' .. '9' ) ( '0' .. '9' ) ( '0' .. '9' ) '-'
( '0' .. '9' ) ( '0' .. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How add Gridview Column Values I have Three columns in gridview like this:
Exam Attendance Internal Total
45 (textbox) 5(textbox) 50(textbox) 95(textbox)
Here Exam ,Attendance,Internal are entry ,
I want Total will calculate auotmatically using javascript after Click event fired from internal
A: decalre a variable ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you handle user input during full-text search on ms sql server? I have a simple search mechanism on ms sql server that uses full-text "contains".
I pass search value as a parameter to contains predicate - directly from user's input (via asp.net web site). The problem is that i get sql exception in variety of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding multiple items in a batch to an osCommerce site? I need to add several hundred products to an osCommerce (ugh, I know, it wasn't my choice) but osCommerce doesn't have a built in method for this (or at least I couldn't find it), does anyone know where some (even half decent) documentation on HOW osCommerce st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can i use PHP to show datetime without seconds How can i change ex. 2009-01-14 06:38:18 to 2009-01-14 06:38?
the column type is DATETIME. i dont wanna use SELECT DATE_FORMAT
How could I do it with PHP?
date("M-d-Y H:i", $userow['regdate']) gives:
Strict Standards: date() [function.date]: It is not safe to rely o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: c# - assigning methods to dynamically created controls I'm designing an application that supports plugin development. Its more of a learning exercise.
All of the assemblies (plugins) being loaded into my app contain a showPrefs() method. As I load each assembly, I want to assign a button to each one so that when I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the fastest virtual machine design for x86? I will implement a virtual machine in x86 and I wonder what kind of design would yield best results. What should I concentrate on to squish out the juice? I will to implement the whole virtual machine in x86 assembly.
I haven't much instructions and I can choose th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: "Operation not supported" and "Printer selected is not valid" errors while printing Hopefully somebody will be able to help. In my Delphi 7 application small percentage of users report errors when printing and I'm trying to resolve this with last of them. I'm slightly limited when it comes to testing (as user is phy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the best way to store UTF-8 strings in memory in C/C++? Looking at the unicode standard, they recommend to use plain chars for storing UTF-8 encoded strings. Does this work as expected with C++ and the basic std::string, or do cases exist in which the UTF-8 encoding can create problems?
For example, when com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: C++ Linker Error I had a function like this, that wasn't within a class:
// Gets the maximum number of tracks displayable
const utils::uint32 GetConstMaxSystemRange()
{
return constMaxSystemNumber - constMinSystemNumber + 1;
}
It compiled fine in VS2005, but then I got linker errors for each file after the firs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to associate file type with MacOS X App without launching it first? I would like to associate the last installed version of my Mac OS X application with a certain type of file. A little experimentation shows that the info.plist file seems to be read and interpreted by the operating system when launching the appl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C#: Custom sort of DataGridView I need to sort a DataGridView with Natural Sorting (Like in Explorer) so that numbers and text (in the same column) are sorted naturally, and not alphabetically (so that "place 3" comes before "place 20", etc.). I have a DataGridView, where I have set a DataView as DataSource. The Dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: PHP Arrays, appending depth of array item recursively to an array with the key of 'depth' Per the example array at the very bottom, i want to be able to append the depth of each embedded array inside of the array. for example:
array (
53 =>
array (
'title' => 'Home',
'path' => '',
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: how can I count the number of set bits in a uint in specman? I want to count the number of set bits in a uint in Specman:
var x: uint;
gen x;
var x_set_bits: uint;
x_set_bits = ?;
What's the best way to do this?
A: One way I've seen is:
x_set_bits = pack(NULL, x).count(it == 1);
pack(NULL, x) converts x to a list... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to restrict MS Access DB to open I am connecting to MS Access DB using vb.net as given below...
oDBEngine = oAccess.DBEngine
oDB = oDBEngine.OpenDatabase(Name:=strFullFileName, Options:=False, ReadOnly:=False, Connect:="")
And then opening the DB using the following syntex...
oAccess.OpenCurrentDatabase(filepath... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lucene.Net and incubation status I'm evaluating options to make our search more powerful on our .Net website. I need to look into whether we purchase software/hardware such as the Google Search Appliance (GSA) or develop the solution using a framework such as Lucene.Net
We're a startup, and the GSA provides a lot o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What does MySQL do if you attempt to update a table that is being queried? I have a very slow query that I need to run on a MySQL database from time to time.
I've discovered that attempts to update the table that is being queried are blocked until the query has finished.
I guess this makes sense, as otherwise the re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where should I put Velocity template files for a command line utility built with Maven? I have a small command line utility project that I'm using Maven to manage. The utility is a very simple app to populate a Velocity template and dump the results to a new file. My problem is where to put my Velocity templates. Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does Google Analytics have performance overhead? To what extent does Google Analytics impact performance?
I'm looking for the following:
*
*Benchmarks (including response times/pageload times et al)
*Links or results to similar benchmarks
One (possible) method of testing Google Analytics (GA) on your site:
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: HierarchicalDataTemplate and TreeView binding compilation error I have implemented a UserControl and put a TreeView control on that. The XAML file looks as follows. I am using a HierarchicalDataTemplate for data binding with the Treeview,
<UserControl x:Class="Trinity.Windows.Viewer.Alarm.AlarmPage.TrinityDeviceTre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Universal document format converter I am looking to convert any format to/from HTML.
I'd like to support DOC, DOCX, PDF, ODT, RDF, DocBook, and TXT.
I have found lots of format-to-format conversion utilities, but for convenience of implementation, a single tool is best. This will also make it easier to add new form... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Howto parse csv and returns a dataSet as a result I need a CSVParser class file
A Class File which parses csv and returns a dataSet as a result ASP.Net
A: I'm pretty sure that CSVReader (CodeProject) can read to DataTable.
DataTable table = new DataTable();
// set up schema... (Columns.Add)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Imaging Question: How to determine image quality? I'm looking for ways to determine the quality of a photography (jpg). The first thing that came into my mind was to compare the file-size to the amount of pixel stored within. Are there any other ways, for example to check the amount of noise in a jpg? Does anyone ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: how do I undo a checkin in bitkeeper that isn't part of a changeset? I have a file in a project that is in a bitkeeper repository. I checked in a file but I haven't committed the change to create a changeset. How can I undo the checkin?
If I had a changeset I could undo the commit with:
bk undo -r<rev>
But in thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET solution with class library project I have an solution in VS 2008 which contains two class library projects and an ASP.NET web site. The ASP.NET site references the class libraries and one of the libraries contains a LINQ To SQL item.
My question is with regards to the app.config in the class library which c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Dont let excel open the file if it is already opened I'm using Microsoft.Office.Interop.Excel.Workbooks.Open Method
http://msdn.microsoft.com/zh-tw/library/microsoft.office.interop.excel.workbooks.open(VS.80).aspx
This method opens a dialog window if the file is already opened, asking the user if he wants to open a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sun One Web Server 6.1 and Tomahawk Do anyone know which version of tomahawk is suitable to use with Sun One Webserver 6.1?
Thanks in advance,
Alejo
A: Well, here is a requirements table for JSF:
JSF | 1.0 | 1.1 | 1.2 (JEE5) | 2.0
---------------------------------------------
Java | 1.3 | 1.3 | 5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET: WebResource.axd call 404 error: how to know which assembly/resource is missing or responsible? I get a 404 HTTP status error (not found) on a specific WebResource.axd call inside an ASP.NET 3.5 (AJAX) web application. I guess the error is thrown because a specific referenced assembly is missing in the bin f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Good or Bad C++ Idiom - Objects used purely for constructor/destructor? I have a few classes which do nothing except in their constructors/destructors. Here's an example
class BusyCursor
{
private:
Cursor oldCursor_;
public:
BusyCursor()
{
oldCursor_ = CurrentCursor();
SetCursor(BUSY_C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Aspose.Word alternatives Does anyone know of a good Aspose.Word alternative (or similar) product?
Can you mention any pro/con for using either?
I am currently evaluating Aspose.Word, and although it works like a charm, it's missing some of the functionalities that I require.
UPDATE: We ended up writing our own DOCX ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Open Firefox browser with Ruby automation script How is it possible to open FireFox browser by Ruby(for automation script)?
I use
@browser = RSpecSeleniumHelper.connect_browser('/admin/', '*firefox')
but it doesn't work.
A: You can start any program in ruby with:
`firefox http://www.google.com`
or
system("firefo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Linq to SQL Stored Procedures with Multiple Results I have a stored procedure that selects from multiple tables
The calling method in the class the inherits from DataContext is as follows
[Function(Name = "dbo.BASE_Product_Retrieve")]
[ResultType(typeof(BASE_Product))]
[ResultType(typeof(BASE_Product_Versio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unexpected proxy objects in Nhibernate with composite ID's I have a data structure which uses composite ids (Which I dont wish to change to single)
Everything loads fine except for many-to-one joins which if the join is empty, instead of mapping the property to null, maps it to an empty proxy object. I have written ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can we execute custom method while Cascade="Delete" is being executed? For example, I have two entities, "RealEstate" and "Picture". RealEstate holds a collection of Picture. In the mapping file RealEstate has a bag in it for Pictures and cascade is Delete".
If you delete a RealEstate all the related Pictures wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are good resources for getting started with jQuery? jQuery and JavaScript in general are new ground for me.
What are some good resources to get me up and running.
I am particularly interested in page manipulation - eg moving elements about programmatically.
A: docs.jquery.com is the obvious choice however th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to quickly modify compiled java classes behaviour with aspectJ How to use aspectJ to add functionality temporarily to some java application? Something like creating the aspect, compiling with ajc, using java command with some extra switch to apply aspect?
A: The question, I believe is can you enable/disable the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use afconvert to convert from .caf to .mp3 format? I am using the afconvert command line utility to convert an audio file from .caf to .mp3 format. I have used afconvert:
afconvert -f 'MPG3 ' -d '.mp3' -v input.caf output.mp3
But this gives me the following error:
Input file: input.caf, 19008 frames
Error: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Read Excel files from C# in 64 bit version server reading excel files from C# working well in 32 bit version server. It is not working in 64 bit version (Windows 2003 server), because excel data connection dll not supported in 64 bit version.
Is any other option available ?
A: In your project properties set the tar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Limiting visibility of symbols when linking shared libraries Some platforms mandate that you provide a list of a shared library's external symbols to the linker. However, on most unixish systems that's not necessary: all non-static symbols will be available by default.
My understanding is that the GNU toolchain can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Full-Text Index Comparisons in SQL Server 2005 Express How does one compare the text field of one record to all the other records in SQL server to return, for example, the top 5 most related records?
An example of the functionality I'm after are the various Related Posts plugins for Wordpress that produce a list o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Binsor: How to use dictionaries whose elements are components in the container Any idea how to configure SortedList whose elements are components register on the container in binsor.
Crud:ICrud
{
public SortedList<string, ICrudTransfer> Proxies
{
get { return _proxies;}
set { _proxies = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I revert a big change in CVS? One of my colleagues has totally messed up the contents of a directory in our main CVS repository. I need to just revert the whole module to the state it was in at the end of last year. What's the CVS command to do this please?
He has added and removed hundreds of files, so a s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Session Problem in Rails 2.2 "ActionController::InvalidAuthenticityToken in User#register" I am reading and learning from this very cool book Railspace - Building Social Networking sites.
I understand everything but i am stuck with the sessions section. Its something i would really like to get under my belt and wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Clear all items in ListView I try to clear my listview but the clear method doesn't work:
myListView.Items.Clear();
This doen't work. When i put a breakpoint at this line, the line is executed, but my listview isn't empty. How come??
I fill my listview by setting it's datasource to a datatable.
My solution now i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How to create a connection string outside web.config Just thinking about this, is it possible to create a connection string outside the ASP.NET's web.config?
A: Possibly you're looking for configSource?
A: Yes you can store it anywhere it is just text.... The web.config is just a XML document that stores configura... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JasperReports: counting pages depending on group The problem is like this.
The report page numbers that are displayed on the page should not be dependent on the current but on the group page.
Let me explain:
I have a report with 2 groups that has 4 pages, each group on two pages, and what I need to do is the follow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passing data from View to Controller In an ASP.NET MVC application, I'm making logic for Admin to accept or reject new members. I'm showing a list of members and two buttons Accept and Reject, like this:
<% foreach (var mm in (ViewData["pendingmembers"] as List<MyMember>)) %>
<% { %>
<tr><td>Username:<%=mm.UserNa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Delphi debugger? I'm finishing an internship at a company and have just been thrown onto this project for the last month where the program is built upon an engine that they "failed" to buy the source code for. Now I've been given the task of finding out why it is failing, on only certain conditions and customer feed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Refresh a Div that has a Google ad inside it I have a <div> that holds a google ad. My website is mostly AJAX and there is no need for a browser refresh. That means my ads will not refresh either, which isn't ideal, a user staring at one ad all day.
So I wanted a way to refresh a particular <div> on a page. I found... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: .Net Function call in SQL 2005 I am getting the following error when I execute a .Net Function in SQL 2005, any ideas?
Msg 6522, Level 16, State 2, Line 1 A
.NET Framework error occurred during
execution of user defined routine or
aggregate 'Function1':
System.Security.SecurityException:
Request for the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I use the IComparable interface? I need a basic example of how to use the IComparable interface so that I can sort in ascending or descending order and by different fields of the object type I'm sorting.
A: If you want dynamic sort, you can use LINQ
var itemsOrderedByNumber = ( from item in GetClasses() orde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How do I "copy unless later version exists" in Capistrano? I want to protect my database.yml file by keeping it out of version control. Thus, I have two tasks in my Capistrano deploy recipe:
task :copy_db_config do
# copy local config file if it exists and is more
# recent than the remote one
end
task :symlink... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "Where IN" with multiple columns (SQL Server) I'm using SQL Server 2005.
The query would look like this
Select col1, col2, col3 from <subquery> where (col1,col2) in <subquery>
SQL Server doesn't seem to like that. Any way of implementing that that anyone knows of that doesn't involve converting to varchars or anyth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How would you model a "default child" flag with an ORM? I'm using an ORM (SQLAlchemy, but my question is quite implementation-agnostic) to model a many-to-many relationship between a parent class and its children.. I was wondering, what would be a simple way to express the concept "one of the children is the default... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can several WCF services share a common BaseAddress? I've got an assembly containing several WCF services, each with its own contract. It all works nicely. The service config in the app.config for the service looks like this:
<services>
<service behaviorConfiguration="WcfService.AlyzaServiceBehavior"
name="Sam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Postgresql: how to create table only if it does not already exist? In Postgresql, how can I do a condition to create a table only if it does not already exist?
Code example appreciated.
A: I'm not sure when it was added, but for the sake of completeness I'd like to point out that in version 9.1 (maybe before) IF ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: Browser agnostic C++ DOM interface When programming in C++ against the browser's DOM each engine has a different set of interfaces, IE has the COM based [MSHTML](http://msdn.microsoft.com/en-us/library/aa752279(VS.85).aspx), Mozilla has the XPCOM based Gecko DOM etc.
Is there a common API that has adapters for majo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Get info for Common Log Format from socket in C I want to create a log file for my webserver written in C under UNIX.
The logfile should be formatted according to Common Log Format, but I don't know how to get the ident and authuser from the connecting socket.
Is there a simple way to get these from the socket?
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the preferred way to find focused control in WinForms app? What is the preferred/easiest way to find the control that is currently receiving user (keyboard) input in WinForms?
So far I have come up with the following:
public static Control FindFocusedControl(Control control)
{
var container = control as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: How to load data from stored linq procedure in combo box? I have stored procedure in dbml file, I want do smth like this
Private Sub GetData()
Dim dal = New DataAccess
Dim dateList = dal.context.GetAsDateList()
Dim enumerator As IEnumerator = dateList.GetEnumerator()
While enumerator.MoveNext()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can Applet open a new HTML window *and* bypass popup blocker? Our java applet needs to open a new htm page to web browser but popup blocker seem to block this code:
try
{
AppletContext a = getAppletContext();
URL url = new URL(link);
a.showDocument(url,"_blank");
}
can you use somehow l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I send a JSON response from a Perl CGI program? I am writing a JSON response from a perl/cgi program. The header's content type needs to be "application/json". But it doesn't seems to be recognized as response is thrown as a text file.
I would be capturing response using JSON library of jQuery. Where am I m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Changing XSD ConnectionString at Runtime for a Multitenant app I'm changing our application from "one set of code & one database" to "one set of code to multiple databases (one database per customer)".
The original code is VS2005 ASP.NET(VB) & lots of XSD's in a separate DLL. The web.config's ConnectionString would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Jquery Draggable with more than one handle Is it possible to have a draggable element with more than one handle?
I am initializing it twice, each time with a different handle param, but it doesn't work - only the first one works.
A: Sure. Just have these handlers selectable.
For instance:
$(element).Draggable({han... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: XAML to C# conversion tool Is there a XAML to C# conversion tool?
I have a control template defined in XAML, but I want to create this template and it's styles using C#, so I can obfuscate the code version (since I can't obfuscate the XAML/BAML).
A: There is no tool that I am aware of that converts XAML to C# in su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Resources in project file in VS2008 gets "reused" creatively by the form designer, possible to avoid? We have some auto-generated resource files in our project in Visual Studio 2008, with some localized versions, and in one of these localized versions, there is a string which in this case is empty.
More explicit. We... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why am I unable to generate client side code in web services 'Hello world' example? Link is: http://people.apache.org/~ruchithf/hw-axis2/.
Command line is: javac -extdirs d:\lib\ D:\stub\src\org\apache\ws\axis2\*.java -d d:\clientcode\
The Error is:
C:\Program
Files\Java\jdk1.6.0\bin>javac -extdirs
d:\lib\ D:\stub\s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use the same C# 2008 project for both x86 and CF.Net targets? I have a C# project in VS2008 which I wish to build for two targets - x86 and the compact framework for dot net (CF.Net) depending on a chosen configuration (say Debug/SmartDeviceDebug etc). How do I go about this? I have an inkling this can be don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SSIS - ProcessInput in PipelineComponent gets called more than once H guys.
I'm developing a custom component for SSIS. I'm having a problem when processing inputs.
The problem is that the "ProcessInput" method gets executed more than once. Two times in this case.
This is the process input snippet:
public override v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Pascal to Mips Code Conversion I'm currently working on a Mips Code Generator for my Pascal Parser (Written in C using Lex / Yacc) . Does anybode know of a Tool out there I can use as a reference in order assure correct Code Generation?
A: Here is a mips simulator. I used it in school to check and run my mips projc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is ASP.NET multithreaded (how does it execute requests) This might be a bit of a silly question but;
If I have two people logging on to my site at exactly the same time, will the server side code be executed one after the other or will they be executed simultaneously in separate threads?
I'm curious in regards to a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Homesite outline profile editor I've been using HomeSite since Allaire owned it. I started with plain HTML, then classic asp, now I've been using it for PHP development for quite a while but there's a feature I really want and Homesite only seems to do it sometimes. Most IDEs will show a list of functions on a page.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does the Flex [Bindable] tag do? Meaning . . . I've seen cases where I've bound components to a [Bindable] dataProvider. When I updated the data in the dataProvider, the component doesn't reflect the change immediately. Do I need to do something to refresh the data? What event causes a component to refresh its ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Inheritance and associations I need to create a db structure where "Supplier" inherits from "Client". I used to have an association on Client that I want to move to Supplier, but I can figure out how to define this. IN VS When I add an association to Supplier I can only associate the fields explicitly defined in Su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detecting the fundamental frequency There's this tech-festival in IIT-Bombay, India, where they're having an event called "Artbots" where we're supposed to design artbots with artistic abilities. I had an idea about a musical robot which takes a song as input, detects the notes in the song and plays it back on a pia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How to configure the timeout of your ASP.NET web application? My previous experience with ASP.NET web application (regarding the timeout) is that it logouts the user every 30 minutes, regardless of what module is running, Is there a way that we can increase the application timeout to an hour or two?
Any help is high... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Sub-Query vs Join Confusion I have a database which is in Access (you can get it link text). If I run
SELECT DISTINCT Spl.Spl_No, Spl.Spl_Name
FROM Spl INNER JOIN Del
ON Spl.Spl_No = Del.Spl_No
WHERE Del.Item_Name <> 'Compass'
It provides the names of the suppliers that have never delivered a compass. Howev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is website content partitioning worth while? In order to allow for multiple policies regarding content... security, cookies, sessions, etc, I'm considering moving some content from my sites to their own domains and was wondering what kinds of dividends it will pay off (If any).
I understand cookies are domain speci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django - Custom virtual model field with companion stored field I would like to have a ConfirmationField field type. I want this field to work like a boolean field. I don't need to store this information on database instead I would like to store the date of confirmation on a seperate field.
class MyModel(models.Mode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should I "quick list" my drop-down list of countries? My members can choose from a list of countries.
The A-Z lists starts at Afghanistan, and goes through many obscure countries.
Should I get the top ten countries and "quick-list" them at the top of the list?
Or is this seen as some sort of cultural superiority yad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: HTML downloading and text extraction What would be a good tool, or set of tools, to download a list of URLs and extract only the text content?
Spidering is not required, but control over the download file names, and threading would be a bonus.
The platform is linux.
A: wget | html2ascii
Note: html2ascii can also be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/435547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.