text string | meta dict |
|---|---|
Q: Passing a list while retaining the original So I'm teaching myself Python, and I'm having an issue with lists. I want to pass my function a list and pop items off it while retaining the original list. How do I make python "instance" the passed list rather that passing a pointer to the original one?
Example:
def burn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Can you detect a ctrl-click (context menu) request in the mouseDown event? In my cross-platform architecture, I would like to act on a context menu click (right button click) during a mouse click event. In Cocoa, can you detect that the user either Ctrl-Clicked or double-tapped on touchpad (right-click equivalent) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: SystemIcons default size What is the default (i.e. native) size of a System.Drawing.SystemIcons icon?
A: I get 32 on Windows XP.
System.Drawing.Icon SystemIcon = System.Drawing.SystemIcons.Application;
Console.WriteLine(SystemIcon.Height);
Console.WriteLine(SystemIcon.Width);
| {
"language": "en",
"url": "https://stackoverflow.com/questions/227799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails Cookie Setting Problems I have a Rails app that sets a cookie and does a redirect to another server once the user is logged in. However, the cookie that the Rails app sets isn't seen by the server for some reason. I've tried setting http_only to false but I still can't even see the cookie unless the domain is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why is it bad to use an iteration variable in a lambda expression I was just writing some quick code and noticed this complier error
Using the iteration variable in a lambda expression may have unexpected results.
Instead, create a local variable within the loop and assign it the value of the iteration variable.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: How do I make Bash history permanent under FreeBSD? I have a FreeBSD box with Bash set up.
I'm used to Debian Linux where my command history is automatically saved when I log out, so that when I log back in I can press up or Ctrl-R or whatever and have access to my history.
How do I set up Bash to do this on FreeBSD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Java Applet Locale setting I am running an english language version of WindowsXP, but have set Spanish as my only accepted language in Firefox. I had naively expected the browser's language to be set as the default when I load an applet in a browser session, but this does not appear to be the case. The applet starts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to avoid Anemic Domain Models and maintain Separation of Concerns? It seems that the decision to make your objects fully cognizant of their roles within the system, and still avoid having too many dependencies within the domain model on the database, and service layers?
For example: Say that I've got an entity w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How do I determine the dependencies of a .NET application? How do I determine the dependencies of a .NET application? Does Dependency Walker work with managed apps? I've downloaded the latest and tried profiling the app, but it just exits without much of an explanation. If it doesn't work with .NET, then is there so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "129"
} |
Q: How to allocate aligned memory only using the standard library? I just finished a test as part of a job interview, and one question stumped me, even using Google for reference. I'd like to see what the StackOverflow crew can do with it:
The memset_16aligned function requires a 16-byte aligned pointer passed to it, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "461"
} |
Q: How to version a package containing multiple applications I want to create an MSI installer containing three apps. I will be releasing frequent updates to each app as I work through the list of feature requests and do bug fixes. The three apps are currently at versions 1.6.3, 1.6.12 and 1.8.1 respectively.
I was won... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I view the HTTP response to an ActiveResource request? I am trying to debug an ActiveResource call that is not working.
What's the best way to view the HTTP response to the request ActiveResource is making?
A: Add a new file to config/initializers/ called 'debug_connection.rb' with the following content:
cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Memory Leaks in C# WPF I could use some advice on tracking down the cause of memory leaks in C#. I understand what is a memory leak and I get why they occur in C# but I'm wondering what tools/strategies have you used in the past to resolve them?
I am using .NET Memory Profiler and I've found that one of my huge main... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Using MVC, how should one handle communication between Views? Between Models? Question number three in my quest to properly understand MVC before I implement it:
I have two cases in mind:
*
*The primary application
window needs to launch the
preferences window. (One View
invoking another View.)
*The primary Mode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there any NSIS Best Practices or Coding Standards around? I'm creating several NSIS installers and as my expertise in this thing grows up I'm no longer happy with just making things work, I would like to see if there are some best practices or coding standards around this language, like how to write conditionals,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Subversion Auth: Can't access the "Collection of Repositories" page anymore I can't see the 'Collection of Repositories" page after adding authentication and access rules to svn. 'guest' can navigate to mydomain.com/svn/public and admin can see both svn/public and svn/private, but none of the users can see /svn.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's win32con module in python? Where can I find it? I'm building an open source project that uses python and c++ in Windows.
I came to the following error message:
ImportError: No module named win32con
The same happened in a "prebuilt" code that it's working ( except in my computer :P )
I think this is kind o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Is there an equivalent technique in Cocoa for the synchronous TrackPopupMenu in Windows? In response to a rightMouse event I want to call a function that displays a context menu, runs it, and responds to the selected menu item. In Windows I can use TrackPopupMenu with the TPM_RETURNCMD flag.
What is the easiest way... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Handling OPTIONS request in nginx We're using HAProxy as a load balancer at the moment, and it regularly makes requests to the downstream boxes to make sure they're alive using an OPTIONS request:
OPTIONS /index.html HTTP/1.0
I'm working with getting nginx set up as a reverse proxy with caching (using ncache). Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: HttpListenerRequest where are the POST parameter? I have search in MSDN and I can't figure where are the POST parameters from HttpListenerRequest?
Any idea?
*QueryString seem to have only Get parameter not post
A: After few hours of search (I was searching before posting here) I realized that I need to send back a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Programatic Accent Reduction in JavaScript (aka text normalization or unaccenting) I need to compare 2 strings as equal such as these:
Lubeck == Lübeck
In JavaScript.
Why? Well, I have an auto-completion field that's going out to a Java service using Lucene, where place names are stored naturally (as Lübeck), but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Compressing Memory Cache Does anyone have any experience in using compression on their cached data?
I understand that stackoverflow is internally using this method.
What are the pros and cons?
And are there any gotchyas?
A: Scott Hanselman just created a Session wrapper class that can zip items before putting the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL Server 2005: Deny Access to sp_prepexec I have a SQL Server 2005 database that is suffering from lock starvation because of some poorly behaving applications running cursors through sp_prepexec. I imagine that one of the applications running a cursor has "forgotten" to close it. I would like to deny access to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does JSON.js cause conflicts with Sys.Serialization.JavaScriptSerializer.serialize I am using Telerik controls in my webforms and want to serialize object on the client. Since I am getting a stackoverflow error with Sys.Serialization.JavaScriptSerializer.deserialize I wanted to try JSON. With both JSON and and the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails Testing: Fixtures, Factories, and Magic numbers I've got an application that needs quite a bit of data (1000s of records) to do appropriate testing. The only way I've found to get a decent set of testable, sensible data is to use a subset of my production DB. I've converted this to YAML fixtures in the norma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possible to have an html TEXTAREA-like element that wraps text rather than displays scrollbars? Is there a CSS style that IE7 and Firefox will obey that changes the behaviour of a TEXTAREA so that it behaves more like.... um..... more like the thing I'm typing into right now!
A: Word-wrapping is the default b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fields people capture when logging - log4net I interested in knowing what fields people actual capture and use when logging within their applications when using loggers like log4net.
This can range from debugging to testing to production and can be for thick client apps but I am thinking more about semantics of web... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Importing the content of another web resource using JSTL I have a JSP page that will display the exact content of another web page on a different server. My understanding was that c:import from the JSTL should be able to include content from files that are not part of the current web application.
I added c:import u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Merge Facts from Different Sources? Or Load Separately? We've got data with two different origins: some comes from a customer, some comes from different vendors. Currently, we physically "merge" this data into a massive table with almost a hundred columns, tens of thousands of rows and no formal separation of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Build Incrementally in VS 2005 We have a 50 projects solution in VS 2005.
Is any way to get incremental build if nothing was changed?
It is kind of doing it now, but it executes all prebuild and post build events for each project.
Is any way to prevent it?
A: Have a look at the Build Events tab. Notice the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using SQL Server DTS Package to Conditionally Insert / Update Rows in Destination Table I want to create a DTS Package to pull data from an Oracle table into a SQL2K
table. How can I insert rows that are not already in the SQL2K table and
update rows that already exist in the SQL2K table?
I guess I could truncate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL stored procedure temporary table memory problem We have the following simple Stored Procedure that runs as an overnight SQL server agent job. Usually it runs in 20 minutes, but recently the MatchEvent and MatchResult tables have grown to over 9 million rows each. This has resulted in the store procedure taking o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/227994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Alternative to itoa() for converting integer to string C++? I was wondering if there was an alternative to itoa() for converting an integer to a string because when I run it in visual Studio I get warnings, and when I try to build my program under Linux, I get a compilation error.
A: I use these templates
template ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "157"
} |
Q: Fluffy Cloud Configurations For .NET Very simple question, is there any cloud server enviroments avaliable these days for us .NET guys that rivals Amazons ec2?
EDIT:
PDC 2008 looks like there are some very interesting info, and only 4 days 2 hours to wait :-). Looks like I need to get saving fast for the conferen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you skip default value columns on insert/update in Linq To SQL? How do you insert/update a column through Linq To SQL and Linq To SQL use the default values? In particular I'm concerned with a timestamp field.
I've tried setting that column to readonly and autogenerated, so it stopped trying to put in DateTi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C++ template instantiation of function template parameters I have the following problem using template instantiation [*].
file foo.h
class Foo
{
public:
template <typename F>
void func(F f)
private:
int member_;
};
file foo.cc
template <typename F>
Foo::func(F f)
{
f(member_);
}
file caller.cc
F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Best way to reverse a string I've just had to write a string reverse function in C# 2.0 (i.e. LINQ not available) and came up with this:
public string Reverse(string text)
{
char[] cArray = text.ToCharArray();
string reverse = String.Empty;
for (int i = cArray.Length - 1; i > -1; i--)
{
rever... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "557"
} |
Q: Natural Language/Text Mining and Reddit/social news site I think there is a wealth of natural language data associated with sites like reddit or digg or news.google.com.
I have done a little bit of research with text mining, but can't find how I could use those tools to parse something like reddit.
What kind of appl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Anyone using a third-party Windows registry editor that they would recommend to others? I work with the Windows registry editor (regedit.exe) on a near-daily basis, and occasionally find myself wishing it had more features.
For example, it'd be nice if it had:
*
*a way to import and export favorites.
*an advanc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Efficient heap-manager for heavy churn, tiny allocs? I'm looking for ideas for a heap-manager to handle a very specific situation: Lots and lots of very small allocations, ranging from 12 to 64 bytes each. Anything bigger, I will pass on to the regular heap-manager, so only tiny blocks need be catered for. Only 4-by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I deserialize a SAML assertion in Rampart/C (Axis2/C)? I have SAML 1.1 and SAML 1.0 responses in utf-8 char * buffers, and I would like to transform them into Rampart/C saml_response_t * objects. My question is this:
What is the correct method for creating a saml_response_t from a string?
Ideally I'd like a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Applications that use .NET What are your favorite applications, products, or any applications that you know of that use .NET or Asp.NET as their underlying platform? What popular companies do you know of as a .NET shop?
This question is related to a few others that I have seen. So I've just made this one as a commun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Cannot get Textboxes in dynamically added usercontrol to maintain state I have tried what seems like everything - I've done similiar things many times before, but I'm obviously missing something.
I have a UserControl (ucA) - on ucA is a LinkButton that loads a different UserControl (ucB) programatically into a panel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Custom URI for HTTPListener? Is there a way to add a custom prefix/URI that is not http or https? The HTTPListener.Prefixes.Add method only accepts http:// and https:// prefixes.
I just don't want to recreate the functionality of this class if I don't have to.
A: What did you have in mind? Mainly, I doubt it; besi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I position a SPAN to be aligned to either side and above a TABLE? <div>
<span>left</span>
<span>right</span>
<!-- new line break, so no more content on that line -->
<table>
...
</table>
</div>
How can I position those spans (they can be changed to any element) so that depending on how big the table is (no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: does anyone know of good delphi docking components? we'd like to add movable panels to an application. presently we've used DevExpress docking library but have found them to be disappointingly quirky & difficult to work with. it also has some limitations that aren't so great.
auto-hide, pinning, and moving of page... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Loading multiple shared libraries with different versions I have an executable on Linux that loads libfoo.so.1 (that's a SONAME) as one of its dependencies (via another shared library). It also links to another system library, which, in turn, links to a system version, libfoo.so.2. As a result, both libfoo.so.1 and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Javascript percentage validation I am after a regular expression that validates a percentage from 0 100 and allows two decimal places.
Does anyone know how to do this or know of good web site that has example of common regular expressions used for client side validation in javascript?
@Tom - Thanks for the question... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How does Yegge's prototype pattern example handle instance variables? I like Steve Yegge's Prototype Pattern example and decided to whip up a quick proof of concept example.
However, I didn't really think things through. While it is great for dynamically specifying the behaviour of objects and is an easy solution t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it possible for a XSS attack to obtain HttpOnly cookies? Reading this blog post about HttpOnly cookies made me start thinking, is it possible for an HttpOnly cookie to be obtained through any form of XSS? Jeff mentions that it "raises the bar considerably" but makes it sound like it doesn't completely protect aga... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How do I programatically turn off show pages in navigation for sharepoint I am progamatically creating a SharePoint site using
SPWeb spWeb = spSite.AllWebs.Add(...);
What code do I need run to set the spWeb to turn off the "Show pages in navigation" option?
Answer:
publishingWeb.IncludePagesInNavigation = false;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: On design patterns: When should I use the singleton? The glorified global variable - becomes a gloried global class. Some say breaking object-oriented design.
Give me scenarios, other than the good old logger where it makes sense to use the singleton.
A: When you load a configuration Properties object, either from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "553"
} |
Q: How can I extract the .jpg/.png components of an .hpi file? I stumbled across my rather ancient photo objects disks, and sadly found out the company (hemera) doesn't provide support for it anymore. this has left me with a whole pile of .hpi files. Luckily, I found this information on extracting the jpg and png compo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SubSonic and Stored Procedures When using SubSonic, do you return the data as a dataset or do you put that in a strongly typed custom collection or a generic object?
I ran through the subsonic project and for the four stored procs I have in my DB, it gave me a Sps.cs with 4 methods which return a StoredProcedure obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Subversion asks for incorrect user I just got a shiny, brand-new Debian server handed to me by our Systems group, and the /etc directory is kept under version control with Subversion. Unfortunately, I couldn't seem to save some configuration changes; Subversion kept asking me for the password of the gentlemen who s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is there not a register that contains the higher bytes of EAX? %AX = (%AH + %AL)
So why not %EAX = (%SOME_REGISTER + %AX) for some register %SOME_REGISTER?
A: There are a lot of answers posted here, but none really answer the given question: Why isn't there a register that directly encodes the high 16 bits of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: How do you handle update refresh rate? How do you handle update refresh rate from your worker function to your UI ?
Sending everything to the UI or maybe using a timer (from which side ? worker or UI ?)
A: In Windows apps, you generally want to use a Timer object in your GUI thread to poll for worker status -- it's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Should I put my test method in a separate class? If so, how? I am very new to Java. My assignment is to create my own method and then create a class to test it in.
My question, do I create the method separate of the class, or within the class? If it is separate of the class, how do I get the class to access my metho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RegEx teaser Let's say we have 2 php variables:
*
*$name = 'caption';
*$url = 'http://domain.com/photo.jpg';
The input string of '{@url,<img src="," alt="{@name}" />}' should return:
'<img src="http://domain.com/photo.jpg" alt="caption" />'
The {tag} takes up to 3 parameters: {@variable[,text_before][,text_aft... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I insert multiple rows into oracle with a sequence value? I know that I can insert multiple rows using a single statement, if I use the syntax in this answer.
However, one of the values I am inserting is taken from a sequence, i.e.
insert into TABLE_NAME
(COL1,COL2)
select MY_SEQ.nextval,'some value' from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Visual Studio 2008 not loading MFC dll symbols Visual Studio 2008 doesn't appear to be loading symbols for MFC dlls when I debug my application. This used to work fine in 2005 - ie. when it loaded the dll it said "Symbols loaded" and can then debug it. In 2008 (having upgraded to MFC 9, so they are different librari... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Prevent redirection of Xmlhttprequest Is it possible to prevent the browser from following redirects when sending XMLHttpRequest-s (i.e. to get the redirect status code back and handle it myself)?
A: The new Fetch API supports different modes of redirect handling: follow, error, and manual, but I can't find a way t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "129"
} |
Q: Operating System from User-Agent HTTP Header Is there a good, up-to-date listing anywhere that maps User-Agent HTTP Header strings --> operating systems?
A: It's worth keeping in mind that the user agent header can easily be faked. I wouldn't rely on it for anything important.
A: Here's a quick list... let me know... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Virtual PC high CPU usage problems I run VPC 2007 on my Vista business laptop with 4 gig RAM. I use VPC to run windows XP and maintain a VS2003 web project. At first everything was great. I assigned the VPC 512MB and did my work as usual. I also run Resharper and Visual SVN. Lately, the act of scrolling in a pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Netsuite woes: Is there decent reference anywhere? I'm hoping this question isn't too obscure cross fingers
I'm looking for a decent reference for netsuite scripting and api (both of which are based on ASP)
does anybody know where to find this stuff? The netsuite help pages are mediocre at best, and the forums aren'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: wcf wsHttpBinding and disabling anonymous access http://blogs.msdn.com/drnick/archive/2007/03/23/preventing-anonymous-access.aspx
Can someone clarify whether it is possible to use wsHttpBinding in WCF and disable anonymous access in IIS without transport (ssl) or message security being required?
A: you are right, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: On Path Finding: a detailed description for a layman of the D* algorithm The large network (of small world graph type) I wish to deal with is dynamic in nature, new nodes are added and subtracted frequently. Presumably using D* over A* would be a better way to detect paths in this dynamic environment?
How solid is D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why is OdbcCommand.ExecuteScalar() throwing an AccessViolationException? I have a block of code intended to pull text descriptions from a database table and save them to a text file. It looks like this (C# .NET):
OdbcCommand getItemsCommand = new OdbcCommand("SELECT ID FROM ITEMS", databaseConnection);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: At what point in a project should developers start to "eat their own dog food"? We have a project coming up where the PM is insistent that the team should "eat their own dog food"?
At what point is it realistic to do this?
e.g. assume we have to write an editor. We can't use this editor at the beginning to actually ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I know when Windows is going into/out of sleep or Hibernate mode? Is it possible to subscribe to a Windows event that fires when Windows is going into or coming out of Sleep or Hibernate state?
I need my application to be made aware when the computer is going to sleep to do some cleanup and avoid timing issu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Removing file locks I need to recover form an error case where a file gets left in a locked state. How can I in c# tell this file to reset it's locks? I need to add to this the file is opened by a 3rd party dll and I don't actually have access to the file handle.
A: Locking a file is the responsibility of the Oper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any C++ lib to read thumbnails from thumb.db in Windows Folder? I want to read all thumbnails from a folder with images in Windows XP.
But if I read image file to get thumbnail, it seems a bit slow, so I wish I can first read the windows image thumbnail cache:thumb.db.
Is there any lib in c++ or c to read t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Merge Excel Sheets Using VBA I have a Excel Sheet(Say OG.xls) which has some data already in it with some 5000 rows with headings in the first row and Upto "AN" Columns.
This No of rows(5000) doesn't change for a whole year.
Now i have 5 XL files(Say A,B,C,D,E) and the data from these files has to be appended to thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Navigation Controller Transparent Bar Style is not working I am using a navigation controller, and I have the style set to :
navController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
But when I run my program, the navigation controller looks like it is on top of a white background, not my background. When ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What is the correct way to declare a pointer to a __far pointer? On an embedded target I use far pointers to access some parts of the memory map.
near pointer (without explicitely specifying __near):
unsigned int *VariableOnePtr;
Pointer to near pointer: unsigned int **VariableOnePtrPtr;
far pointer: unsigned int *... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to write this Lisp / Scheme code? A lambda expression which takes a function (of one argument) and a number, and applies the function to twice the number.
A: Applying the function to twice the number:
(lambda (f x) (f (* 2 x)))
Applying the function to the number twice (which is what you may have intended to a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Get CSproj path in code How to get the path of the current csproject?
Let's say I have a csproject name MyProj.csproj, inside there is a class that wants to know what is the file path of this csproj, any idea on how to do this? thanks.
A: Unless you are talking about creating a plugin for Visual Studio, the CsProj ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Could a website force the browser to go into fullscreen mode? I want to run a psychological study for which participants have to look at large images.
The experiment is done on the web and therefore in a browser window. Is it possible to tell the browser to go into fullscreen, for example on button press?
I know the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: C# HTML Font Tag Parsing I need to parse a large amount of text that uses HTML font tags for formatting,
For example:
<font face="fontname" ...>Some text</font>
Specifically, I need to determine which characters would be rendered using each font used in the text. I need to be able to handle stuff like font tags ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to get command line arguments for a running process In my program, I have been receiving an error when I use a
command-line compile command for mxmlc. The error is related to an
embedded font name not being correctly identified by flex in the
system fonts list.
However, on a whim, I decided to copy the code to F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Extending an existing class like a namespace (C++)? I'm writing in second-person just because its easy, for you.
You are working with a game engine and really wish a particular engine class had a new method that does 'bla'. But you'd rather not spread your 'game' code into the 'engine' code.
So you could derive a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: RGB for color composition rather than primary hues Why do computers use RGB (red, green, and blue) values for color composition rather than the primary hues, red, yellow, and blue?
A: Computers use the additive colour model, which involves adding together RGB to form white, and is the usual way of forming colours w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: In what order are MySQL JOINs evaluated? I have the following query:
SELECT c.*
FROM companies AS c
JOIN users AS u USING(companyid)
JOIN jobs AS j USING(userid)
JOIN useraccounts AS us USING(userid)
WHERE j.jobid = 123;
I have the following questions:
*
*Is the USING syntax synonymous with ON syntax?
*Are thes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Is Flash Remoting Services dead? I have a potential client that build something with Flash Remoting Services. It looks there was some sort of server product offered back in 2002-2003, but I've been unable to see if it did anything so complex that it could not be replaced with a simple webservice. Does any one know... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I log the entire trace back of a Ruby exception using the default Rails logger? I am working on rails project and I am trying to get exceptions to be logged to the rails log files. I know I can call logger.error $! to get the first line of the exception logged to the file. But, I want to get the entire trac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Error "MSB3176: Specified minimum required version is greater than the current publish version" I've got build server running CruiseControl.NET and recently it started throwing this error on one of my projects (.NET 2.0, C#):
MSB3176: Specified minimum required version is greater than the current publish version. P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I combine multiple BIRT reports We currently have a whole suite of report designs that cover various parts of our app, and these reports are generated on demand by our users.
I want to be able to bundle up several of these reports into a single report to return to the user.
I initially hacked up a custom repo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Avoiding SQL Injection in SQL query with Like Operator using parameters? Taking over some code from my predecessor and I found a query that uses the Like operator:
SELECT * FROM suppliers
WHERE supplier_name like '%'+name+%';
Trying to avoid SQL Injection problem and parameterize this but I am not quite sure how th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I programmatically determine operating system in Java? I would like to determine the operating system of the host that my Java program is running programmatically (for example: I would like to be able to load different properties based on whether I am on a Windows or Unix platform). What is the safest way to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "614"
} |
Q: Using Wild Card Subdomains With Mod Rewrite? I have Wild Card Subdomains on, however I just do not know mod_rewrite to the extent that is required to write this. Can anyone tell me how to make it so anything other than www and nothing go to the main site but any subdomain other than that go to /script/index.php?user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sharing Visual Studio code snippets amongst a team of developers Has anyone come up with a good way to share a set of Visual Studio Code Snippets (actual .snippet files that Visual studio uses) amongst a team of developers automatically? It would be great for other developers on my team to benefit from shortcuts I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Looking for alternatives or improvements to drop down lists/menus on websites Drop-down lists, menus and combo boxes are all very common user interface elements. Users are accustomed to seeing these elements in native applications and sometimes web apps, but there are a few problems with them.
*
*You have to aim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Palindrome Golf The goal: Any language. The smallest function which will return whether a string is a palindrome. Here is mine in Python:
R=lambda s:all(a==b for a,b in zip(s,reversed(s)))
50 characters.
The accepted answer will be the current smallest one - this will change as smaller ones are found. Please specif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Char.IsHex() in C# Following on from this question what would be the best way to write a Char.IsHex() function in C#. So far I've got this but don't like it:
bool CharIsHex(char c) {
c = Char.ToLower(c);
return (Char.IsDigit(c) || c == 'a' || c == 'b' || c == 'c' || c == 'd' || c == 'e' || c == 'f')
}
A: J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Difference between Char.IsDigit() and Char.IsNumber() in C# What's the difference between Char.IsDigit() and Char.IsNumber() in C#?
A: I found the answer:
Char.IsNumber() determines if a Char
is of any numeric Unicode category.
This contrasts with IsDigit, which
determines if a Char is a radix-10
digit.
Va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "178"
} |
Q: Linux default file permission Is there someway to set the default file permission in Linux? That is, the file permission for a newly created file (regardless of the context for which it was created
). I know about putting umask in the shell startup but that only works for shell sessions. When I transfer files to a L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to tell if a string is not defined in a Bash shell script If I want to check for the null string I would do
[ -z $mystr ]
but what if I want to check whether the variable has been defined at all? Or is there no distinction in Bash scripting?
A: The explicit way to check for a variable being defined would be:
[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "167"
} |
Q: On Ghostscript: Fastest way to create a blank .tif document A legacy backend requires the email body with a .tif document, no tif and it fails. So i need to generate a blank .tif, is there a fast way to do this with ghostscript?
edit: make once in project installation use when i need it.
A: The following line wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get GridView selected row DataKey in Javascript I have GridView which I can select a row. I then have a button above the grid called Edit which the user can click to popup a window and edit the selected row. So the button will have Javascript code behind it along the lines of
function editRecord()
{
var gridView =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: winforms instrumentation . What is the best pattern for instrumentation. I have an application and i want to be able to track metrics on everytime a users does a number of functions in the app (brings up a form, views a certain feature, etc) but i dont want to have code all over the application that is doing this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/228553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |