text stringlengths 8 267k | meta dict |
|---|---|
Q: Multithreaded Resource Access - Where Do I Put My Locks? I have threaded code where each thread needs to write to the same file. To prevent concurrency issues, I am using a Lock object.
My question is whether I am using the Lock correctly. If I set the lock from within each thread, is that lock global or only spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using JDBC, how can I substitute multiple IDs into "DELETE FROM T WHERE id IN (?)" I have some code that produces a set of primary key values that I want to delete from a database table.
long[] keysToDelete = { 0, 1, 2, 3 };
and I'd like to use a PreparedStatement to execute the equivalent of
DELETE FROM MyTable WH... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: model (3ds) stats & snapshot in linux I want to write an app that takes in a model filename via cmd line, create a list of stats (poly count, scaling, as much as possible or maybe the stats that i would like) and to load the model with its textures (with anything else) and draw it from multiple position to save the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hide/Show controls with AJAX I am using an ASP.NET AJAX-Enabled Web application (ASP.NET 2.0 and AJAX Toolkit 1.0)
that contains one button and 2 UpdatePanels (UpdatePanel_1 and UpdatePanel_2)
The button is registered with RegisterAsyncPostBackControl in the ScriptManager object
UpdatePanel_1 is in "Conditional" up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ singleton GetInstance() return When implementing a singleton in C++, is it better for GetInstance() to return a pointer to the singleton object, or a reference? Does it really matter?
A: I prefer a reference. I use reference instead of a pointer whenever I want to document that:
*
*It can't be null
*It won'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: View models in a browser Is there a way to view models in a browser via flash, Java or anything else?
The models would be stored on my server with the client viewing it along with textures and anything else the model would need.
I would like any browser app that works ideally with 3ds.
A: VRML is mostly dead, but y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linq to Entities, EntityReferences and DataGridViews I am trying to select certain fields from my entity to be used as the datasource for a datagridview, but I haven't been able to make it work. Is such a thing possible? For example, I have a Customers entity that contains several entityreferences. I want to take... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Accessing Oracle DB through SQL Server using OPENROWSET I'm trying to access a large Oracle database through SQL Server using OPENROWSET in client-side Javascript, and not having much luck. Here are the particulars:
*
*A SQL Server view that accesses the Oracle database using OPENROWSET works perfectly, so I kno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ordering the results of a query from a temp table I have a SQL query where I am going to be transferring a fair amount of response data down the wire, but I want to get the total rowcount as quickly as possible to facilitate binding in the UI. Basically I need to get a snapshot of all of the rows that meet a certai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL 2008 Mirroring, in "restoring" state I'm testing SQL Server 2008 mirroring with a principal, a mirror and a witness. I've gone through the examples, restoring the mirror WITH NORECOVERY. The principal says it is synchronized. But the mirror still shows it is in a "restoring..." state. Am I supposed to just leave... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Porting library from Java to Python I'm about to port a smallish library from Java to Python and wanted some advice (smallish ~ a few thousand lines of code). I've studied the Java code a little, and noticed some design patterns that are common in both languages. However, there were definitely some Java-only idiom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Multi-line Row grid controls Does anyone know if there are any multi-line row grid controls for sale or open source for use in .net?
A: Infragistics appears to do it. I have used Infragistics; they are okay as far a third party tools go. They are bug-free but have very verbose APIs. Documentation is quite good.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I prevent print screen I have a requirement that an application I am working on prevent the user from being able to easily capture the contents of the screen.
I have communicated that there is no feasible way to completely prevent this from happening, but I'm looking for methods to introduce some hurdles to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Are you forced to develop for old web browsers? I always wondered why people are still running older web browsers until I started at my current job. Here I am forced to use IE6 to develop all of our internal applications, as our target users also are using IE6. Is anyone else in a situation where they aren't allowed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How Do I Install Ruby Shoes On x64 Linux? I recently discovered Ruby Shoes, which sounds rather useful for a beginner like me. The only the problem is that my laptop is x64, while the only Linux package is i686. I tried it anyway and it didn't work for me, I kept getting an error. I didn't expect it to work, of cour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: LINQ to SQL query fails using two Contains statements I have two tables, DH_MASTER and DH_ALIAS. DH_MASTER contains information about a person, including their name. DH_ALIAS contains AKA records about the person. The tables are linked by the Operator field which is a primary key in DH_MASTER.
The users want to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Filtering models with ReferenceProperties I'm using google app engine, and am having trouble writing querys to filter ReferenceProperties.
eg.
class Group(db.Model):
name = db.StringProperty(required=True)
creator = db.ReferenceProperty(User)
class GroupMember(db.Model):
group = db.ReferenceProperty(Gro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I use a foreach loop in Java to loop through the values in a HashMap? I am trying to compile the following code:
private String dataToString(){
Map data = (HashMap<MyClass.Key, String>) getData();
String toString = "";
for( MyClass.Key key: data.keySet() ){
toString += key.toString() + ": ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: WPF User Control I want to have a User Control that takes a collection of People (property "Data") and displays them in a list box.
When I run my app nothing shows in the listbox. Can you please point out what I'm doing wrong?
Thanks!!!
public class Person
{
public string Name { get; set; }
public int Age { ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get pixel data from a UIImage (Cocoa Touch) or CGImage (Core Graphics)? I have a UIImage (Cocoa Touch). From that, I'm happy to get a CGImage or anything else you'd like that's available. I'd like to write this function:
- (int)getRGBAFromImage:(UIImage *)image atX:(int)xx andY:(int)yy {
// [...]
// What ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "205"
} |
Q: lambda functions in bash Is there a way to implement/use lambda functions in bash? I'm thinking of something like:
$ someCommand | xargs -L1 (lambda function)
A: What about this?
somecommand | xargs -d"\n" -I{} echo "the argument is: {}"
(assumes each argument is a line, otherwise change delimiter)
A: #!/bin/ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How to Get a List of Assemblies in C#? I need to get a list of assemblies in a directory. Is there another way than this?
System.IO.Directory.GetFiles(directory, "*.dll")
A: Managed assemblies can also be EXEs. And your code just gets files with the extension "dll". Ntive DLLs, which are not assemblies, would als... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I easily and simply schedule a cron job in PHP? How can I easily and simply schedule a cron job in PHP? Rails has BackgroundRB...
A: Most website control panels (assuming you've got cPanel or something similar running) include a crontab application. If you're on shared hosting ask your host about this.
If y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way of forcing a DataGridView Cell to accept numeric input only? Currently I'm using:
Private Sub dgvStock_CellEndEdit(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgvStock.CellEndEdit
Select Case Me.dgvStock.Columns(e.ColumnIndex).Name
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Where does Leopard Server's MySQL store its data? I'm trying to recover a table in a MySQL database from Time Machine, however I don't know and can't find where Leopard Server's MySQL stores its data files.
*
*Does anyone know where they are stored?
*Is there an easy way to run mysqldump on them without restorin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Automatically attach vs2005 debugger to a child processes I have a main C++ app built in Visual Studio 2005, called A.exe. It spawns a child process, B.exe. I run process A in the debugger by hitting F5 -- the only way I know to hit breakpoints in process B is to wait for A to kick it off, then run Debug -> Attach... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Reflection on structure differs from class - but only in code Code snippet:
Dim target As Object
' target gets properly set to something of the desired type
Dim field As FieldInfo = target.GetType.GetField("fieldName", _
BindingFlags.Instance Or BindingFlags.Public Or BindingFlags.NonPublic)
field.SetValue(target,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Represent a query string in JSON I have this Javascript data:
[{id:123,type:"test"},{id:154,type:"another"}]
How would you transform that into something so that I can pass it as a HTTP post request?
menu[0][id] = 123
menu[0][type] = test
menu[1][id] = 154
menu[1][type] = another
I dont want to pass the actual JSON... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determine device (iPhone, iPod Touch) with iOS Is there a way to determine the device running an application. I want to distinguish between iPhone and iPod Touch, if possible.
A: Just adding the iPhone 4S device code to this thread...
The iPhone 4S will return the string @"iPhone4,1".
A: How about this code, if ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "375"
} |
Q: 2-col CSS layout with background colors that fill full height? I've had a reasonable amount of exposure to CSS layout.
I've looked at quite a few CSS layouts for 2 or 3 column layouts, and having a hard time to just find even just a reliable 2 column that allows me to do the following:
what I want:
*
*each column... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Encoding CGPoint struct with NSCoder How do you encode and decode a CGPoint struct using NSCoder?
A: To encode:
CGPoint point = /* point from somewhere */
NSValue *pointValue = [NSValue value:&point withObjCType:@encode(CGPoint)];
[coder encodeObject:pointValue forKey:@"point"];
To decode:
NSValue *decodedValue = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: .NET UserControl for CSS columns? Are there any .NET Controls out there to help with CSS layout and make it nice and easy to quickly make changes - possibly dynamically.
Update:
I've pretty much give up on this idea as I've researched more about CSS best practices.
I've decided to use Yahoo YUI's reset css and grids... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Organizing Actions in a Swing Application? My current application has a JFrame with about 15 actions stored as fields within the JFrame. Each of the actions is an anonymous class and some of them are pretty long.
Is it common to break actions into their own classes possibly within a sub-package called actions?
If n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Batch inserts with JPA/EJB3 Does JPA/EJB3 framework provide standard way to do batch insert operation...?
We use hibernate for persistence framework, So I can fall back to Hibernate Session and use combination session.save()/session.flush() achieve batch insert. But would like to know if EJB3 have a support for this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Matching a closing brace in Visual Studio Is there a setting in Visual Studio 2008 that I can turn on which would generate a matching closing brace for a opening brace?
EDIT: I would imagine that an IDE as powerful as Visual Studio would have this very useful feature.
EDIT: Is there a macro that can be written? Fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Successful Implementations of NAnt bcp (SQL Server) Task? I am looking for either a NAnt Task for SQL Server bcp, or the file format for bcp native output.
I supposed I could build a NAntContrib Task for bcp but I don't have time at the moment (Do we ever?).
Has anybody strolled this path before? Advice?
Thanks - J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unregistered event handlers cause memory leak I'm maintaining a web application that has a memory leak.
Based on my investigation using Red Gate ANTS memory profiler I'm pretty sure that the memory leak is caused by event handlers in the business layer.
There's a collection that registers an event handler on each it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: LINQ to SQL using GROUP BY and COUNT(DISTINCT) I have to perform the following SQL query:
select answer_nbr, count(distinct user_nbr)
from tpoll_answer
where poll_nbr = 16
group by answer_nbr
The LINQ to SQL query
from a in tpoll_answer
where a.poll_nbr = 16 select a.answer_nbr, a.user_nbr distinct
maps to the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: Creating a custom authentication with Acegi/Spring Security I'm having trouble discovering exactly what I need to implement in order to use a custom authentication method with my web application using Spring Security. I have a Grails application with the Spring Security plugin that currently uses the standard user/p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Detecting if a string is all CAPS In C# is there a way to detect if a string is all caps?
Most of the strings will be short(ie under 100 characters)
A: I like the LINQ approach.
If you want to restrict it to all upper case letters (i.e. no spaces etc):
return input.All(c => char.IsUpper(c));
or using a method grou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: Python - downloading a file over HTTP with progress bar and basic authentication I'm using urllib.urlretrieve to download a file, and implementing a download progress bar using the reporthook parameter. Since urlretrieve doesn't directly support authentication, I came up with
import urllib
def urlretrieve_with_bas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Thread safety of simultaneous updates of a variable to the same value Is the following construct thread-safe, assuming that the elements of foo are aligned and sized properly so that there is no word tearing? If not, why not?
Note: The code below is a toy example of what I want to do, not my actual real world scen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP .NET and IIS Most of the developers i work with test their web apps by running them from visual studio, and use the built in web server of VS to display the pages. My question is when these apps are deployed to a IIS server would they behave any differently?
A: One area where your app may behave differently is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unit Testing and Web Apps - Resources In a J2EE web application, how do people manage resources so that they are visible to both the web context and to unit/integration tests?
I find that often you end up having your source/resource folders configured a certain way during development (i.e., what Maven expects) and s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What caching model/framework with Websphere Spring Hibernate Oracle? We are looking at implementing a caching framework for our application to help improve the overall performance of our site.
We are running on Websphere 6.1, Spring, Hibernate and Oracle. The focus currently is on the static data or data that cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I use the Vista speech API in Windows Server 2003? I have writtena small app on the iphone that transfers 30 seconds of speech to a webserver that calls a windows service via remoting, the service uses SAPI5.1 on windows 2003 server to convert the wave to text via the defuault recognizer.
I want to update the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I push an update to a war file to clients? Assuming my clients are running my J2EE WAR application on their intranet, and I have an update for them... how do I push the updated war file to them?
I'd like it to be automatic and require no human interaction on the client's side.
Can this be done?
Any help would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Calling virtual method in base class constructor I know that calling a virtual method from a base class constructor can be dangerous since the child class might not be in a valid state. (at least in C#)
My question is what if the virtual method is the one who initializes the state of the object ? Is it good practice... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Statically linking to a dynamic library. glibc So. I have a problem where I have two versions of GCC on a machine.
3.4.6 and 4.1
This is due to some dependency issues with a new piece of software. (requires glibc 4.1)
When I go to link this new software with the 4.1 libraries it links fine. However, when it comes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a .NET IoC that prefers convention over configuration? Simply put, if you had to use a IoC/DI container, thats easy to deploy (not a big fan of using config/xml file for everything), stable, good documentation and supports .net, which one would it be?
It could just be me but too many xml files like one for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is __init__.py for? What is __init__.py for in a Python source directory?
A: In Python the definition of package is very simple. Like Java the hierarchical structure and the directory structure are the same. But you have to have __init__.py in a package. I will explain the __init__.py file with the example bel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3491"
} |
Q: c# HttpModule to handle pseudo sub-domains I'm new to development with .NET and working on a personal project. My project will allow users to create their own simple mobile site.
I would like to write a HTTP Module that will handle pseudo sub-domains.
I have already setup my DNS wildcard, so sub.domain.com and xxx.d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I use awk or Perl to increment a number in a large XML file? I have an XML file with the following line:
<VALUE DECIMAL_VALUE="0.2725" UNIT_TYPE="percent"/>
I would like to increment this value by .04 and keep the format of the XML in place. I know this is possible with a Perl or awk script, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I reset after a UIScrollView zoom? I have a Graph being drawn inside a UIScrollView. It's one large UIView using a custom subclass of CATiledLayer as its layer.
When I zoom in and out of the UIScrollView, I want the graph to resize dynamically like it does when I return the graph from viewForZoomingInScrollV... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to add trigger to Updatepanel where the event for trigger is inside a User Control inside Repeater? I have a UserControl called CustomerFinder for searhing customers. And there is "ADD" button inside the repeater. I have created an eventhandler for Repeater_ItemCommand. Because i am going to use it on the other ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I append a newline character for all lines except the last one? I'm iterating through a HashMap (see my earlier question for more detail) and building a string consisting of the data contained in the Map. For each item, I will have a new line, but for the very last item, I don't want the new line. How can I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Friendly Windows Minimum Version in InnoSetup I can set the minimum version required (for example XP SP3) in Inno-Setup by going
MinVersion=0,5.01.2600
However, that leads to the rather unfriendly Message Box:
This program requires Windows NT version 5.1.2600 or later.
Is there any way to have this say instead:
Thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: My simple poll() example only partially works The program is supposed to accept telnet connections on port 8888 and then send and messages from each telnet client using poll(), send() and recv() but it doesn't quite work 100%. It seems certain connections can always send messages to anyone and the program works fine... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why I have to use fully qualified assembly name for local assemblies? In many places, like in app.config/web.config files I have to specify types using this verbose fully qualified names, like
<add name="myListener" type="System.Diagnostics.TextWriterTraceListener, System, Version=1.0.3300.0, Culture=neutral, Publi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are there any good examples on how to use Haskell monad functions? Haskell monad functions are not easy to understand, where can I find usage examples?
A: You mean the functions with names like fooM and fooM_? You can understand them better possibly by reading their source code, or when you write a do-expression, y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What Vim command to use to delete all text after a certain character on every line of a file? Scenario:
*
*I have a text file that has pipe (as in the | character) delimited data.
*Each field of data in the pipe delimited fields can be of variable length, so counting characters won't work (or using some sort of s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Valid binding root for VSS? I'm trying to fix up my Visual Source Safe bindings for a project I have and when I select the location I believe a project should be bound to, i get a dialog that says:
The folder you chose is not a valid binding root for the projects you have selected. You attempted to retarget a solut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you determine when a button is clicked in the child on the parent - ASP.NET In my child user control I have a gridview with an OnRowCommand eventhandler that is executed when Edit button is click. I want to set the visibility of an ASP.NET placeholder control in the parent to true when the Edit button is cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why are these folders' share names appended with dollar signs? I've recently come into a web development position with a company who just lost their server/network admin. Though I was hired for web development, I'm being asked to do some routine maintenance tasks on the server that I'm nonetheless having trouble wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: Association end is not mapped in ADO entity framework I am just starting out with ADO.net Entity Framework I have mapped two tables together and receive the following error:
Error 1 Error 11010: Association End 'OperatorAccess' is not mapped. E:\Visual Studio\projects\Brandi II\Brandi II\Hospitals.edmx 390... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Using C# Regular expression to replace XML element content I'm writing some code that handles logging xml data and I would like to be able to replace the content of certain elements (eg passwords) in the document. I'd rather not serialize and parse the document as my code will be handling a variety of schemas.
Samp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: PDF to web page I get a .pdf complete with images, fancy fonts, styles, gradients and what have you. Basically it's handed off to me with the message, "Make me a web page that looks exactly like this." I've tried a few pdf to html tools and they all look terrible. I figure I've only got 2 options and i hate them ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I use transactions that span procedures chained across multiple servers? I'm trying to test a proposition that one of our vendors presented to us for accessing their product database and it regards to queries and transactions that span multiple servers. I've never done this directly on the database before a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: NHibernate testing, mocking ISession I am using NHibernate and Rhinomocks and having trouble testing what I want. I would like to test the following repository method without hitting the database (where _session is injected into the repository as ISession):
public class Repository : IRepository
{
(... code snip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Bash script to receive and repass quoted parameters I'm trying to get quoted parameters of a bash script to safely be received by a nested script. Any ideas?
test.sh
#!/bin/bash
echo $*
bash myecho.sh $*
myecho.sh
#!/bin/bash
echo $1
echo $2
echo $3
echo $4
Sample:
bash test.sh aaa bbb '"ccc ddd"'
Result:
aaa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: Good resources to learn mobile adaptation techniques I'm a web developer that has worked with ASP.NET based portal applications for several years. Recently, my company tasked me with developing a mobile version of our portal product.
I have found quite a few resources about developing mobile web applications, and ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Receipt printer? I am developing a software which require to print receipts.
What is the most common type of receipt printer?
Are there any industry standards for receipt printer API?
Are there any .net library for that? Tried to find but didn't find anything.
A: Epson has a system that's pretty standard.
Zebra ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to accomplish equivalent of Vim's Ctrl-n in GNU Emacs? Vim's Ctrl+N generally works like this: I type few letters, hit Ctrl+N, and Vim provides me with completions based on words in my all opened buffers.
Solution for Emacs doesn't have to be identical. I mainly use it like this: declare variable, then use it in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Deploying a Custom Field Types to the bin directory As stated here custom field types (and any dlls they have a reference to?) must be deployed to the global assembly cache. Why, and what problems may arise by deploying to the bin directory? I’m trying to secure my code by writing CAS-policies and since my field co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Handling the Same Class Definition From Multiple Web Services The situation:
We have a library project that houses much of our code for the various integrations we work on. Many of the integrations consume web service apis, and my supervisor doesn't want 5 gazillion web service references added to the project.
What... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Windows and renaming folders, the 'con' issue Why in Windows, can't you name a folder 'con'?
Whenever I try to name a folder as "con" (without the quotes) it defaults to its original name.
Why does it do this?
A: Back in the MS-DOS days, "con" had a special meaning. It referred to the console, and allowed you to tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: WPF RadioButton groups in Xaml In the WPF app we are building, we have 3 groups of RadioButtons in individual StackPanels side by side. We are trying to program the following behavior. When tabbing through the form, we don't want to tab through each of the radiobuttons (standard behavior), instead we would like to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Generic Exception over webservices I am integrating with MS Dynamics GP WebServices from C# and I am not sure how to handle exception.
If I do a GetCustomer with a inexistant ID, the web services return me a "generic" SoapException and the message is "Business object not found." So the only way I see to be sure it's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to invoke an ActionScript method from JavaScript (HTMLLoader) object in AIR? So I have an Application Sandbox HTMLLoader object which I create in AIR and simply want to call ActionScript methods from JavaScript. In Flash, this is accomplished through our trusty ExternalInterface.addCallback() function. However i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Validators: Do they Stay disabled on postback when disabled ClientSide? I have been learning alot about the standard asp.net Validators, and my latest discovery was about how to disable a validator client side, which was pretty cool.
now, if my initial post has the validator enabled, but client side, i disable it, d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get equivalent of Vim's :Texplore in Emacs? I know about M-x dire, but would like to customize it. I would like to hit one key (for example F2) and get dire buffer open. When I navigate across the directory hierarchy it shouldn't open new buffers.
And when I finally open the file it also shouldn't open new bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use multiple versions of GCC We have a new application that requires glibc 2.4 (from gcc 4.1). The machine we have runs on has gcc 3.4.6. We can not upgrade, and the application must be run on this machine.
We installed gcc 4.1, however, when it comes to compile time it is using all the includes, etc, fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: How to adjust >> and << behavior in Emacs (Vim emulation, indent, dedent)? In Vim emulation mode (viper + vimpulse) << and >> are working similarly to Vim's. I would just like them to indent with 2 spaces. How do I do that? (I know, trivial. But useful)
A: After reading viper-cmd.el code (and testing), I determined... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the most efficient way to rewrite this function? function get_total_adults()
{
$sql = "SELECT SUM(number_adults_attending) as number_of_adults FROM is_nfo_rsvp";
$result = mysql_query($sql) or die(mysql_error());
$array = mysql_fetch_assoc($result);
return $array['number_of_adults'];
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Wordpress Category ID vs Eval Issue Ok this is a little complex. I am creating a plugin, and want to find the category ID from the Post page.
That's the easy part.
What makes it complex is I am doing it within an ob_start (started in a 'template_redirect' action) as I want to edit the full page before it is returned... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Projects with browsable source using dependency injection w/ guice? I often read about dependency injection and I did research on google and I understand in theory what it can do and how it works, but I'd like to see an actual code base using it (Java/guice would be preferred).
Can anyone point me to an open source... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: retrieving rows with max date I have two tables like this:
Table1 (Number column is unique)
Number | date
1234 2008-10-06 17:11:00
5678 2005-10-19 16:20:00
9023 2005-12-09 16:20:00
4243 2009-01-06 17:11:00
5234 2009-01-14 17:11:00
Table 2
Number | code
1234 A1
1234 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to get error feedback on asynchronous WCF calls? I have a WCF service which works 100% in the synchronous (blocking) mode and I now need to rework a call so that it uses the async pattern.
The service uses authentication and performs a chunked file transfer from client to server so I have reworked it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Handle Cancelled Recurring Payments I'm using Paypal to handle automated recurring payments for my website. Users pay to subscribe to my website so they can get periodic newsletters.
So let's say a customer cancels their membership a few months later. They do this by logging into Paypal and cancels future a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there an easy way to find dependencies for a subform in Access? For a given form in a database, is there a quick/easy way to find all other forms in an Access database use it as a subform?
Note: I am only concerned with main forms that have it defined using the property sheet, it is easy enough to do a code sear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: starting a microcontroller simulator/emulator I would like to create/start a simulator for the following microcontroller board: http://www.sparkfun.com/commerce/product_info.php?products_id=707#
The firmware is written in assembly so I'm looking for some pointers on how one would go about simulating the inputs that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I add sub folders to a SQL Server Management Studio Project? What is the best way to keep large projects organized with SSMS?
I want to do something like:
ProjectRoot
SchemaObjects
Tables
Constraints
Indexes
Keys
Functions
Views
Stored Proce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: static html blog/cms to run on a USB stick? What are the options for having a simple blog, content management system that will deploy the full site as static html over FTP/SFTP and any blog API?
I am aware of Thingamablog but it hasn't been updated in more than a year so i guess is dead now. What are my alternatives... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Same partial on multiple views returning to whatever view it was called from I'm currently re-using a partial on two different views.
View A
View B
The partial belongs to Model A but has an association with Model B so it is applicable to Model B as well.
It contains a form and when data is submitted, it always red... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Powerful .NET Map APIs? A coworker of mine thought of a great way to visualize a lot of the data we work with in our user-end applications, but we're not aware of many available sdk's or apis that hook in.
We're trying to recreate in essence, the "Magic-Wall" of CNN. We would like to be able to show trends across th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# - Locking issues with Mutex I've got a web application that controls which web applications get served traffic from our load balancer. The web application runs on each individual server.
It keeps track of the "in or out" state for each application in an object in the ASP.NET application state, and the object is s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Customer WCF Bindings / Binding Elements For Encryption I am trying to implement encryption for my WCF service. I am aware that there are several options out there for me to do this. I am not interested in them. I would like to use a password to regenerate repeatable RSA keys. These keys will then be used to exchang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ajax in each time or load everything at once Imagine that you have several links on a page. When you clicked, a div gets updated via AJAX. The updated div includes data from the database.
According to this scenario, every time a link is clicked, the date is grabbed from the database and injected into the div.
Would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: From Java Application to Flex Application Has anyone had experience taking a full-fledged Java desktop application and replicating the functionality using Flex?
If you have, what are some of the biggest things to watch out for or pay attention to?
What are some recommendations you can make based on your experience?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Am I correct that strcmp is equivalent (and safe) for literals? We all know the trouble overflows can cause, and this is why strn* exist - and most of the time they make sense. However, I have seen code which uses strncmp to compare commandline parameters like so:
if(... strncmp(argv[i], "--help", 6) == 0
Now, I wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.