text stringlengths 8 267k | meta dict |
|---|---|
Q: Struts and Spring together? I am pretty new to both Struts and Spring. I need to know how to access a Spring Service in a Struts ActionForm. Even a pointer in the right direction would be appreciated.
A: From a struts 1 ActionForm class you'll be needing:
WebApplicationContextUtils.getRequiredWebApplicationContext(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a benefit to always having an ID property? In asp.net is there any benefit to including or not including an id property? Assume for this question that there is no programtic reason why we need an ID. (We are not manipulating the control in code behind, nor on the client).
My personal preference is only to i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Calling C Code from FORTRAN Given Microsoft FORTRAN 5.1 and Microsoft C/C++ 14.0, along with the linker that comes with that version of FORTRAN (that must be used for other dependencies) how do I create a C function and call it from the FORTRAN application?
A: There's an article on MSDN with sample code here: FO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I link to an ASP:DetailsView's Insert mode via an external page Unlike many of the ASP.NET documentation and examples, I'm doing a gridview list on one page, and it links to a 2nd page to do the edit/update view, sending the ID for the record in the GET string.
On my edit/update view, I'm using an ASP:Details... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MYSQL Installation Troubles After upgrading a few gems via terminal on my mac, I have created a new rails project backed up by a mysql database. Upon starting the app, the regular welcome aboard page appears.
Here's the problem - I tried clicking the link entitled "About your application's environment", I receive t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Inconsistent behavior with AJAX and ViewState in .NET I'm finding that hitting the "Refresh" button on my browser will temporarily screw up the ViewState for controls inside an UpdatePanel.
Here's my situation : I made a custom WebControl that stores values in the ViewState. I put this control inside an UpdatePanel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is ASP.Net a technology suitable for high-load sites? That's the question... Do you think ASP.Net is a technology suitable for high-load sites? Do you know any populer sites -apart from stackoverflow, of course- built with this technology?
Thanks.
A: ASP.NET gets a bad rap in the "Web 2.0" world. MySpace has 50 mil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: VB.NET queue processing question I need a VB.NET Forms application that processes a queue. It basically needs to ping a web service every 30 seconds and then load documents into a document management system, if there are any to load.
How would I implement this? Using a loop? Do I need to look into threads?
Thanks
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SSRS Encryption keys lost on two machines at same time Two installations of SSRS 2005 on two separate machines in my shop seem to have lost their encryption keys at exactly the same time. These are developer machines with the development edition of SQL Server 2005 running, so I'm hoping that perhaps someone here ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Most efficient sorting algorithm for many identical keys? What is the most efficient algorithm for grouping identical items together in an array, given the following:
*
*Almost all items are duplicated several times.
*The items are not necessarily integers or anything else that's similarly simple. The range of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Combining UNION ALL and ORDER BY in Firebird Using Firebird, I want to combine the results of two queries using UNION ALL, then sort the resulting output on a given column.
(select C1, C2, C3 from T1)
union all
(select C1, C2, C3 from T2)
order by C3
The parentheses came from valid syntax for other databases, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: SqlDataSource and Oracle DataProvider I can't seem to be able to use the sqlDataprovider with odp.net I want to be able to run my SqlDataProvider against an oracle stored procedure. I can use Microsoft's Oracle Provider but that wouldn't allow me to call a stored procedure. has anyone been able to get this to work? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 20 Billion Rows/Month - Hbase / Hive / Greenplum / What? I'd like to use your wisdom for picking up the right solution for a data-warehouse system.
Here are some details to better understand the problem:
Data is organized in a star schema structure with one BIG fact and ~15 dimensions.
20B fact rows per month
1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How to replicate a shared MSSQL 2005 db for development purposes? I would like to replicate a MSSQL 2005 db (hosting through a shared hosting provider) directly on an integration server for development purposes. MSSQL server provides quite a few ways of performing data replication, but I am not sure that any of them... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: LINQ-to-SQL CompiledQuery.Compile() with Update, Delete, Insert? All,
So I've got all my select queries in LINQ-to-SQL converted to using CompiledQueries to speed things up. Works great so far for select statements, but I haven't been able to figure out how to pre-compile insert, update, or delete statements.
Grant... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: RAM drive for compiling - is there such a thing? An answer (see below) to one of the questions right here on Stack Overflow gave me an idea for a great little piece of software that could be invaluable to coders everywhere.
I'm imagining RAM drive software, but with one crucial difference - it would mirror a real fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Is there a CPAN module to parse nested parentheses? Is there a CPAN module that can read a string like this:
"[[<asdf>, <foo>], (abc, def, ghi), ({'jkl'})]"
...and parse it into some sort of tree structure that's easy to walk and pretty-print?
A: I think that you could build on top of Text::Balanced, which will do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Negating literal strings in a Java regular expression So regular expressions seem to match on the longest possible match. For instance:
public static void main(String[] args) {
String s = "ClarkRalphKentGuyGreenGardnerClarkSupermanKent";
Pattern p = Pattern.compile("Clark.*Kent", Pattern.CASE_INSENSITIVE);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Cannot display measure variance in Excel pivot table I'm trying to display the difference in a measure from one day to the next in Excel (2007) by setting the value field setting to 'Difference From' with Base field = day and Base item = previous. If my underlying data is a SSAS cube, the value that displays for eac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS display:inline property with list-style-image: property on
* tags I'm having a problem using CSS's display:inline property with the list-style-image: property on <li> tags. Basically, I want to output the following:
* Link 1 * Link 2
where * represents an image.
I'm doing this with the following bit of HTML:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: In Rails Migrations, what does the number specified for :limit on an integer represent? In Rails Migrations, what does the number specified for the :limit parameter on an integer represent? Is it the number of bytes or the number of digits?
i.e. If I were to specify the following:
t.integer :coefficient, :limit => ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Regex: replace all characters after 15th with '...' I am trying to do some simple formatting stuff with 'sed' in linux, and i need to use a regex to trim a string after the 15th character, and append a '...' to the end. Something like this:
before: this is a long string that needs to be shortened
after: this is a lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is "origin/HEAD" shown when running "git branch -r"? When you run git branch -r why the blazes does it list origin/HEAD? For example, there's a remote repo on GitHub, say, with two branches: master and awesome-feature. If I do git clone to grab it and then go into my new directory and list the branches, I see th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "183"
} |
Q: Remove "$" before ASP.Net RangeValidator script executes How can I force the input's onchange script to run before the RangeValidator's script?
I want to prevent a failed validation when the user enters a dollar sign or comma.
function cleanUp(str) {
re = /^\$|,/g;
return str.replace(re, ""); // remove "$"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding a node (or close to it) using XPath in non well-formed HTML I'm using XPath to locate a node (or something close to it) in a template that has non-well-formed HTML about 10 levels deep. (No I didn't write this HTML...but I've been tasked to dig through it.)
I seem to be able to retrieve an XPath to the el... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: I18n and Passwords that aren't US-ASCII, Latin1, or Win1252 How do you handle passwords for services when the user enters something that is best represented in Unicode or some other non-Latin character encoding?
Specifically, can you use a Cyrillic password as a password to Oracle? What do you do to verify a user's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Anyone know where a good windows constant list lives I'm trying to set an invalid value to -1.. But I don't like magic numbers.. Anyone know where to find a set of common constants. I'm working in VS6 (ish).
I'm trying to read a file from across a network, and I need a bad value for the total file size,so I know if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to determine if two nodes are connected? I'm concerned that this might be working on an NP-Complete problem. I'm hoping someone can give me an answer as to whether it is or not. And I'm looking for more of an answer than just yes or no. I'd like to know why. If you can say,"This is basically this problem 'x' whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How to find collaborators for open-source projects? I have several small open-source projects that I wrote. All my attempts to find collaborators (looked on sourceforge.net and codeplex) failed miserably - I either couldn't find anyone, or I found people who either weren't interested or didn't contribute anything. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: JavaDB: Is it possible to change auto-increment offset on existing table? Is it possible to change the auto-increment offset on a pre-existing table with JavaDB?
I'm having a problem where inserting new records usually (but not always) fails with an error complaining about using an existing key (my auto-increment ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I dispose every instance object in StructureMap's ObjectFactory? I'm using StructureMap in my project and when the application finishes running I need to call the Dispose() method on all of the Singleton instances inside the ObjectFactory that implement IDisposable.
I cannot find anyway to do it via the Stru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Highlight text on a page after it is rendered I have an app that lets the user search over a number of fields for a string, When they view the detail record, they would like all occurrences of the string to be highlighted.
The detail form is made up of Labels and ListViews, most of which live inside of TabPanels (fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GridView - Show headers on empty data source In C# how do I still show the headers of a gridview, even with the data source is empty.
I am not auto generating the columns as they are all predefined.
Currently what I am doing is the following.
Get a DataTable back from a stored procedure, then set the DataSource of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: Adding a SOAP header to a SOAPpy request Does anyone know how to do this? I need to add a header of the form:
value1
value2
A: As the question is phrased, it's hard to guess what the intention (or even the intended semantics) is. For setting headers, try the following:
import SOAPpy
headers = SOAPpy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Consuming a web reference in a class library (C#/.NET) I have a project that uses a class library for the business layer functionality (database access, etc.). A web application sits on top of this. I have a web service that I would like to call in the class library. Every time I add a 'service reference' (I am usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do Mac OS X processes and threads differ? In my Mac OS X Activity monitor it lists each "process" id for each application. It links several processes to a single thread, for instance iTunes and Finder are currently both listed under thread 7. The way I learned about threads and processes would lead me to think t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the difference between GNU_LIBC_VERSION and GNU_NPTL_VERSION? Notice these two RedHat Linux system configuration settings:
$ getconf GNU_LIBC_VERSION
glibc 2.3.4
$ getconf GNU_LIBPTHREAD_VERSION
NPTL 2.3.4
I see they correspond to some of the TLS libraries:
/lib/tls/libc-2.3.4.so
/lib/tls/libm-2.3.4.so
/lib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multiple labels in Navigation bar I would like to create a view similar to the "Now Playing" page on the iPhone and have 3 lines of text in the Navigation bar.
The only way I could find to do this was:
UINavigationBar *bar = [self.navigationController navigationBar];
label = [[UILabel alloc] initWithFrame:CGRectM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a way to capture the send key on Windows Mobile and have it dial a specific number? I have a Windows Mobile application using the compact framework (NETCF) that I would like to respond to someone pressing the send key and have the phone dial the number selected in my application. Is there a way using the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why doesn't `index = index++` increment `index`? ** Dup: What's the difference between X = X++; vs X++;? **
So, even though I know you would never actually do this in code, I'm still curious:
public static void main(String[] args) {
int index = 0;
System.out.println(index); // 0
index++;
System.out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XML Webservice for iSeries I need to pull item quantity from a DB2 database from an aspx page and then update after the quantity has been changed. I want to create a web service that will send XML data and then parse back to my page. Looking for any good references or examples that anyone has possibly tried.
A: U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Transitions and setting up Layers/Scenes in cocos2d iPhone I am looking to setup a transition between two levels(after one level is complete, use one of cocos2d's slick transition to transition into the next level). In my GameLayer implementation, I have methods setup to do things like [self buildLevel: 3] to build... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Where should View & Presenter be born I totally understand the MVP pattern now, but I still struggle to see where views and presenters are instantiated. I have seen some examples where the presenter is newed up in the view, but is this correct. After reading a blog post of Jeremy Miller about communicating between V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: .NET WinForms ComboBox, identical items, and the SelectedIndexChanged event It seems like when you have a WinForms .NET application, and a ComboBox (set to the "DropDown" style), and that ComboBox has multiple items in it that are identical, weird things happen. Specifically, the index of the selected item can chang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: XSD file to validate XMLs Can anybody help me to build an XSD file to validate XMLs like these:
[test]
[a/]
[b/]
[a/]
[b/]
[/test]
[test]
[a/]
[a/]
[b/]
[/test]
Basically, I can have any number of <a> and/or <b> nodes without any other rule (can't use <xs:sequence>).
A: It isn't going to very fast if you have a l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET MVC Beta Project can't create controller tests properly in subfolder I'm using VS2008 Team Suite, ASP.NET MVC Beta, with TestDriven.Net installed. When I created my project from the template, it created a "Tests" project as well and put some controller tests for the AccountController in a folder inside this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NHibernate.Caches.MemCache web.config for cache expiration time I'm migrating to Nhibernate 2.0 GA but have some trouble with setting cache expirations in memcached provider.
I see in the NHibernate.Caches.MemCache sources that there is a property for expiration and a default value for 300 seconds.
There are also p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How is ** implemented in Python? I'm wondering where I find the source to show how the operator ** is implemented in Python. Can someone point me in the right direction?
A: The python grammar definition (from which the parser is generated using pgen), look for 'power': Gramar/Gramar
The python ast, look for 'ast... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Object/Module not found: RDS from VB6 app to a Win2003 server I have a rather legacy application EXE written in VB6 and running on a Windows 2000 server that uses RDS (Remote Data Services) to access a business object DLL (also written in VB6) running on a Windows 2003 server. The DLL has never run on this server (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Looking for C++ STL-like vector class but using stack storage Before I write my own I will ask all y'all.
I'm looking for a C++ class that is almost exactly like a STL vector but stores data into an array on the stack. Some kind of STL allocator class would work also, but I am trying to avoid any kind of heap, even... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: Restore WindowState from Minimized Is there an easy method to restore a minimized form to its previous state, either Normal or Maximized? I'm expecting the same functionality as clicking the taskbar (or right-clicking and choosing restore).
So far, I have this, but if the form was previously maximized, it still com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Access Query to txt file without column names. I have an access query which creates some output, 3 columns named e.g. A, B, and C.
I would like to create a function where I can automatically output this query to a text file without the header rows. I am currently outputting the file to excel then opening the file an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting .NET Framework version in VB.NET Anyone know the <%= %> or Response.Write() code for getting the version of .Net my web app is running on?
A: System.Environment.Version will give you that.
A: System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion
| {
"language": "en",
"url": "https://stackoverflow.com/questions/354449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Pass objects to silverlight through server side asp.net code Is it possible to pass objects (serializable classes or other ways) to a Silverlight control through asp.net server side code?
A: Well, it's going to involve serialization. Remember -- your Silverlight client is disconnected from the server, just like th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Release/Deployment/Maintenance process for a web service I'm doing research on some non-brittle release process techniques in a 24x7x365 web service environment. What are some of your favorite methods for releasing code from a development environment to a critical-production environment. This includes not only code ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How good is NHibernate's BuildSchema? I've been looking at NHibernate recently and trying to learn the ins and outs. One thing I did notice in a few articles was the use of BuildSchema to create a testable database.
The particular example used SqlLite as the database. Can BuildSchema be trusted to create your databa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How does .NET security really work? I just saw this question:
Understanding .NET’s “SecurityAction” parameter for permissions
And I have a question. With the following code:
private void button1_Click(object sender, EventArgs e)
{
Layer1();
MessageBox.Show("OK");
}
private void Layer1()
{
try
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery UI: Best way to load HTML markup? What's the best way to load HTML markup for a custom jQuery UI widget?
So far, I've seen elements simply created using strings (i.e. $(...).wrap('<div></div>')) which is fine for something simple. However, this makes it extremely difficult to modify later for more complex ele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: HTML to Excel: How can tell Excel to treat columns as numbers? I need to achieve the following when opening an HTML in Excel (Response.contentType="application/vnd.ms-excel") :
*
*force Excel to consider content of td cells as numbers
*make the above so that any subsequent user-entered formulas work on these cel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Method to determine if path string is local or remote machine What's the best way, using C# or other .NET language, to determine if a file path string is on the local machine or a remote server?
It's possible to determine if a path string is UNC using the following:
new Uri(path).IsUnc
That works great for paths th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Is there a way to split a widescreen monitor in to two or more virtual monitors? Like most developers I have grown to love dual monitors. I won't go into all the reasons for their goodness; just take it as a given.
However, they are not perfect. You can never seem to line them up "just right". You always end up with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: Preventing automatic change of default-directory As per the Emacs docs, every time you open a file, Emacs changes default-directory to the directory containing that file.
Then, if the cursor is in that buffer and you (for example) start SLIME, it uses default-directory as the current working directory for SLIME. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: "WebServiceBindingAttribute is required on proxy classes" I'm working on an application that makes asynchronous calls to the WebService.
I added a proxy class to make asynchronous calls. The code compiles and runs properly, however whenever I try to double-click the proxy class in solution explorer (Visual Studio 20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How can I diff two files with full context? I have two files with slight differences. A normal diff will show me the differences between the files. With -c or -u I can add an amount of context to each hunk. What options can I pass to diff to see every unchanged line alongside the changes, and get the diff as a si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Agile Development and ESBs I'm working on shifting our corporate technological paradigm to Agile Development.
It's been a hard process but we're almost there! :)
We have legacy systems for our database management (used to be Access, now ported to .NET and MS SQL) and we're developing a framework for our future visio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I dump an object's fields to the console? When I'm running a simple Ruby script, what's the easiest way to dump an object's fields to the console?
I'm looking for something similar to PHP's print_r() that will work with arrays as well.
A: You might find a use for the methods method which returns an array of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "308"
} |
Q: How to trigger a function once, and only once...? I often want to trigger a certain function just once, but I need to trigger it from within another function that gets repeatedly called. For instance, taking a snapshot of something for later use. I usually do it by setting a global boolean.
I'm wondering whether the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Groovlet + Tomcat: "unable to resolve class" when importing libraries I'm having some trouble running a groovy servlet (groovlet) in tomcat that imports a library class. When I don't import anything the groovlet works correctly, but if I do import something that I expect to be on the classpath (I can import the same... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What would be a good Delphi lexer/parser for Javascript language file? Background
I want to be able to parse Javascript source in a Delphi Application. I need to be able to identify variables and functions within the source for the purpose of making changes to the code through later code. I understand that I probabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to specify format of XML output when writing from a DataTable? In C#, I'm creating an XML file from a DataTable using dataTable.WriteXml(filePath), and get the following:
<?xml version="1.0" encoding="utf-8" ?>
<ExperienceProfiles>
<ExperienceProfile>
<Col1>blah</Col1>
<Col2>4ed397bf-a4d5-4ace-9d44-8c1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Reading proxy details in a vcl.net application using Rad Studio 2007 How to read the proxy details (address and port) from a vcl.net application (Rad Studio 2007) ?.
Heard about InternetGetProxyInfo. But didnt find the details any where.
Thank you.
A: Just to give an idea. I never find other way :(
procedure TfrmP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Optimizing Aggregate for String Concatenation Update - for those of a facetious frame of mind, you can assume that Aggregate still produces the normal result whatever function is passed to it, including in the case being optimized.
I wrote this program to build a long string of integers from 0 to 19999 separate by c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to find all commits(files&comments) by a person in cvs Looking to get a list of all the files (commit comments would be nice too) of a user in cvs.
A: cvs history -a -c -D 2009-01-20
to review all commits by all users since 2009-01-20
A: Here's a quick oneliner that will give you a list of every file, follo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How to get the document CDHtmlDialog after Asp.Net AJAX UpdatePanel When the page displayed in our CDHtmlDialog does an Asp.Net AJAX UpdatePanel we get a navigate event, but everything after that seems to be lost. We don't have a document anymore or get any mouse events on the page.
A: Looks like I made the origina... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create a colored bubble/circle programmatically in ObjectiveC and Cocoa Can anyone guide me in the correct way to build a colored bubble/circle programmatically?
I can't use images as I need it to be able to be any color depending on user interaction.
My thought was maybe to make a white circle image and then overla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: convert bitmap to byte array How can I convert a bitmap to a byte array in c++ WITHOUT the .net framework?
A: If you’re using Windows, you can use GetDIBits to retrieve the bitmap data.
A: If your bitmap is a device independent bitmap, you can access the pixel data using GetObject and passing in a BITMAP. This avo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to check a value type? How do I check the type of a value on runtime?
I'd like to find out where I'm creating doubles.
A: If you're using Objective-C classes, then the [myObject isKindOfClass: [InterestingClass class]] test is available. If you're using primitive types (which your question, quoting the "double"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Number of arrangements Suppose we have n elements, a1, a2, ..., an, arranged in a circle. That is, a2 is between a1 and a3, a3 is between a2 and a4, an is between an-1 and a1, and so forth.
Each element can take the value of either 1 or 0. Two arrangements are different if there are corresponding ai's whose values d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Application Security Audit of an .NET Web Application? Anyone have suggestions for security auditing of an .NET Web Application?
I'm interested in all options. I'd like to be able to have something agnostically probe my application for security risks.
EDIT:
To clarify, the system has been designed with security in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I keep an NSPathControl updated with the path of the selected cell in an NSBrowser I need to keep an NSPathControl updated with the currently selected path in an NSBrowser, but I'm having trouble figuring out a way of getting notifications when the path has changed from the NSBrowser. The ideal way to do this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Importing/Exporting Relationships I have a couple of mdb files with the exact table structure. I have to change the primary key of the main table from autonumber to number in all of them, which means I have to:
*
*Drop the all the relationships the main table has
*Change the main table
*Create the relationship... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Close a browser window of an ASP.NET and AJAX application What is the best way to close a browser window of an AJAX ASP.NET application after the server-side has been executed.
I found this solution, but it seems a little complex for what I want to accomplish. Or is this the best way to accomplish my task.
UPDATE: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails ActiveSupport Time Parsing? Rails' ActiveSupport module extends the builtin ruby Time class with a number of methods.
Notably, there is the to_formatted_s method, which lets you write Time.now.to_formatted_s(:db) to get a string in Database format, rather than having to write ugly strftime format-strings every... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Executing a Jar on Vista with a double click This pretty much has me defeated.
On XP and earlier versions of Windows you could customise Open With filetypes to include java - jar "myjar.jar", but on Vista this functionality seems to have been removed. I can of course create a .bat file to launch my application, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Get reference to a dropdownbox with c# at Page PreRender I want to add options to a dropdownbox on my aspx page from the c# code behind during load. I don't know how to get a reference to the control. I have some c# code that is triggered when the user changes the dropdownbox. In that I get a reference to the drop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mysql query to get 2 most recent for a given item number I have the following attributes in my DB.
statistic id, devicename, value, timestamp.
For a given statistic, I want to find the 2 most recent timestamps and corresopnding values for a every unique device.
I am trying stuff like
Trial 1)
select statistic, de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Have you ever used code virtualizer or vmprotect to protect from reverse engineering? I know that there is no way to fully protect our code.
I also know that if a user wants to crack our app, then he or she is not a user that would buy our app.
I also know that it is better to improve our app.. instead of being afra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Using an epsilon value to determine if a ball in a game is not moving? I have balls bouncing around and each time they collide their speed vector is reduced by the Coefficient of Restitution.
Right now my balls CoR for my balls is .80 . So after many bounces my balls have "stopped" rolling because their speed has be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Odd question relating to project euler 72 (lisp) I recognize that there's an obvious pattern in the output to this, I just want to know why lispbox's REPL aborts when I try to run anything > 52. Also, any suggestions on improving the code are more than welcome. ^-^
(defun count-reduced-fractions (n d sum)
(setf g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to rate a connect four game situation in java I am trying to write a simple AI for a "Get four" game.
The basic game principles are done, so I can throw in coins of different color, and they stack on each other and fill a 2D Array and so on and so forth.
until now this is what the method looks like:
public int i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Showing Bitmap Images in WPF via C# What I am trying to do is so simple but I am having a hard time making it work. I saw some posts along the same lines but I still have questions.
I have a MenuItem object called mnuA. All I want is set the icon property programatically in C#. I have tried the following
a) mnuA.Ico... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Deliver multicast to several different geo-locations I need to use one logical PGM based multicast address in application while enable such application "seamlessly" running across several different geo-locations (i.e. think US/Europe/Australia).
Application is quite throughput (several million biz. messages a day) a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a workaround for Java's poor performance on walking huge directories? I am trying to process files one at a time that are stored over a network. Reading the files is fast due to buffering is not the issue. The problem I have is just listing the directories in a folder. I have at least 10k files per folde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: AdornerDecorator and tab stop issues I am using IDataErrorInfo to validate and indicate errors in my text boxes. I am finding I have to tab once for the text box and once for the adornerdecorator.
I have an error template:
<ControlTemplate x:Key="ErrorTemplate">
<StackPanel KeyboardNavigation.IsTabStop="Fals... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Detect which form input has focus using JavaScript or jQuery How do you detect which form input has focus using JavaScript or jQuery?
From within a function I want to be able to determine which form input has focus. I'd like to be able to do this in straight JavaScript and/or jQuery.
A: document.activeElement, it'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: SQL Server rand() aggregate Problem: a table of coordinate lat/lngs. Two rows can potentially have the same coordinate. We want a query that returns a set of rows with unique coordinates (within the returned set). Note that distinct is not usable because I need to return the id column which is, by definition, distin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need to test for a "\\" (backslash) in this Reg Ex Currently I use this reg ex:
"\bI([ ]{1,2})([a-zA-Z]|\d){2,13}\b"
It was just brought to my attention that the text that I use this against could contain a "\" (backslash). How do I add this to the expression?
A: Add |\\ inside the group, after the \d for instanc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In the WCF web programming model, how can one write an operation contract with an array of query string parameters (i.e. with the same name)? Using the WCF web programming model one can specify an operation contract like so:
[OperationContract]
[WebGet(ResponseFormat = WebMessageFormat.Xml, UriTemplate = "SomeReques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Tag Cloud in C# I am making a small C# application and would like to extract a tag cloud from a simple plain text. Is there a function that could do that for me?
A: I would really recommend using http://thetagcloud.codeplex.com/. It is a very clean implementation that takes care of grouping, counting and rendering ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Why should I use a container div in HTML? I have noticed a common technique is to place a generic container div in the root of the body tag:
<html>
<head>
...
</head>
<body>
<div id="container">
...
</div>
</body>
</html>
Is there a valid reason for doing this? Why can't the CSS just refer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "80"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.