text stringlengths 8 267k | meta dict |
|---|---|
Q: Python Outlook 2007 COM primer I've been inspired by Modifying Microsoft Outlook contacts from Python -- I'm looking to try scripting some of my more annoying Outlook uses with the win32com package. I'm a Linux user trapped in a Windows users' cubicle, so I don't know much about COM.
I'm looking for information on w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Ordering return of Child objects in JPA query So if my JPA query is like this:
Select distinct p from Parent p left join fetch p.children order by p.someProperty
I correctly get results back ordered by p.someProperty, and I correctly get my p.children collection eagerly fetched and populated. But I'd like to have m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to display Yes/No Button in asp.net page using Javascript I have to display yes/no button on some condition on my asp.net page , I used windows.confirm() to display that but windows.confirm displays Ok/Cancel Button , Is there any way I can display Yes/No Button in asp.net page instead of Ok/Cancel using Javascr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What should return from a disjunction with independent variables? What would result from something like the following:
p(X,Y) :- q(X).
p(X,Y) :- r(Y).
q(a).
r(b).
I don't have a Prolog compiler handy, so I can't test what would happen if you then asked p(X,Y). Would the code even compile? Would p return two answe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Boost Message Queue not based on POSIX message queue? Impossible to select(2)? I thought I'd use Boost.Interprocess's Message Queue in place of sockets for communication within one host. But after digging into it, it seems that this library for some reason eschews the POSIX message queue facility (which my Linux sy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: findstr or grep that autodetects chararacter encoding (UTF-16) I want to do this:
findstr /s /c:some-symbol *
or the grep equivalent
grep -R some-symbol *
but I need the utility to autodetect files encoded in UTF-16 (and friends) and search them appropriately. My files even have the byte-ordering mark FFEE in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Is there a foreach in MATLAB? If so, how does it behave if the underlying data changes? Is there a foreach structure in MATLAB? If so, what happens if the underlying data changes (i.e. if objects are added to the set)?
A: Zach is correct about the direct answer to the question.
An interesting side note is that the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "177"
} |
Q: Which is faster? ByVal or ByRef? In VB.NET, which is faster to use for method arguments, ByVal or ByRef?
Also, which consumes more resources at runtime (RAM)?
I read through this question, but the answers are not applicable or specific enough.
A: If you are passing in a reference type, ByRef is slower.
This is be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: How do I check out an SVN project into Eclipse as a Java project? I was trying to check out a project from SVN using Eclipse. I tried using "Checkout As" to make it into a "Java project from existing Ant script", but the project wizard requires the file to have already been downloaded. Is there a way to checkout the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Changing row colors in the Compact Framework DataGrid How can I use non-default coloring in the DataGrid control in a Windows CE compact framework application?
I need to color one row in color X and one row in color Y (alternating row colors basically).
A: You'll have to manually do custom drawing. Ilya on the CF ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Date and time calculations to track time using command line in Unix/Linux I'm looking for an easy way to track time I work on a project using the command line. I do
echo "$(date) : Start" >>worktime.txt
When I start working and
echo "$(date) : End" >>worktime.txt
When I stop working. The result is a file of the fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Combining multiple Django templates in a single request I am wondering if someone can help me figure out the best approach to the following problem. I'm building a web application which uses Django templating to construct its web UI component. There are a number of common HTML elements such as the header / footer,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How do I make a Flex Chart refresh whenever data is added to its dataProvider? Now I must be missing something here, as this seems a very basic issue that would be addressed in any "Getting started with Flex charting" tutorial. However, all that I could find was hints that the chart should update automatically whene... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cocoa NSDocument: getting autosave to work Documentation simply states that setting setAutosavingDelay to anything > 0 on the shared doc controller should do it, but after calling
[[NSDocumentController sharedDocumentController] setAutosavingDelay:2.0];
in my controller, autosave doesn't seem to work: I neither se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Examples of using .NET Reflector As a programmer who is new to .NET and C#, I find that using .NET Reflector is an incredible utility to use to see how the "professionals" write their code.
Can anyone suggest good .NET based applications to use Reflector on for Desktop Applications - any application examples would b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Bitmap Asset from Embed Resource in Resource Module with Flex 3 I really appreciate all help I can get on this problem that I have found.
I have created several resource modules with the MXMLC tool using properties files.
Files get generated correctly and I'm able to load them using the resourceManager.loadResourceM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL 2005 Query Help I have table with 50 entries (users with such details like Name Surname Location etc)
I want to create a query that give me users from row 1 to row 10. Then another query that give me users from 11 to 20 and so on.
Is there any way how to do that?
Thanks
A: http://www.singingeels.com/Articles/Pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can't I have "public static const string S = "stuff"; in my Class? When trying to compile my class I get an error:
The constant 'NamespaceName.ClassName.CONST_NAME' cannot be marked static.
at the line:
public static const string CONST_NAME = "blah";
I could do this all of the time in Java. What am I doing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "415"
} |
Q: How should overriding delete in C++ behave? The problem I'm running into is that as far as I know the delete operator should be a static function but sometimes the compiler (VC++) seems to be treating it as dynamic.
Given:
class Base
{
public:
void* operator new(size_t size) { /* allocate from custom heap */ }
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Usage of Exception handling block in Enterprise Library We have a ASP.NET application that uses the Exception Handling Application block to log our exception to a database (using logging block indirectly). This all working perfect. However, since it is using the exception handling block to log data, everytime we w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby - Immutable Objects I've got a highly multithreaded app written in Ruby that shares a few instance variables. Writes to these variables are rare (1%) while reads are very common (99%). What is the best way (either in your opinion or in the idiomatic Ruby fashion) to ensure that these threads always see the most... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Exception with WCF Whats the best way handle exception from a WCF service? How can you throw the exception from a WCF service?
A: Using faultcontracts.
http://msdn.microsoft.com/en-us/library/ms752208.aspx
or
Jean-Paul Smits blogg
A: FaultContract is the way to go. MSDN link given in the other response is a good... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does Visual Studio 2008 Use SvcUtil.exe and if "No" is there any disadvantage to using svcutil? After googling a bit there is no definite answer of whether Visual Studio 2008 uses svcutil.exe or not? Visual Studio 2005 did use it, but do the RTM versions of Visual Studio 2008 use svcutil? A few blogs say it doesn'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to make this jQuery function more elegant? On my page I have a drop-down select box, with a default value of (empty). When the user selects an entry, the appropriate form for that entry type is displayed.
Couple of problems..
*
*The code is not DRY and seems more verbose than it needs to be, so not easily mai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it a good Idea to integrate IIS with Tomcat, or forget about it and stick to Apache HTTP with Tomcat Do you think it is possible to achieve the same performance found in ["Apache Http"-"Tomcat"] with ["IIS"-"Tomcat"] ?
Just want to know what you think about the IIS-Tomcat combo (Performance-wise)
A: It can be d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET VB - Some Maths with .NET I need your help,
For example I have a decimal type variable and I want to round up this way.
Eg
3.0 = 3
3.1 = 4
3.2 = 4
3.3 = 4
3.4 = 4
3.5 = 4
3.6 = 4
3.7 = 4
3.8 = 4
3.9 = 4
4.0 = 4
4.1 = 5
4.2 = 5
etc....
How can I do that?
A: Math.Ceiling
A: dim rounded as int = Math.Ceiling(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery selection with dynamic id's I have a form that is dynamically generated, and has dynamically generated id's (and potentially classes). The forms are the same but they have the related id tacked on to the end.
How can I select each set of inputs and apply code to each one?
I was experimenting with $('input[id^... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: animate a UIProgressView's change Is it possible to animate the change of a UIProgressView such that the display will move smoothly to the new value?
Kinda like NSProgressIndicator does.
A: If you interested in this please fill a bug report, Duplicate/5883058:
Title: UIProgressView setProgress:(float)value animated... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Regex to add padding zeroes I am working on this yahoo pipe Regex and I found a bug I'm unable to wrap my mind around it.
I have a URL, from which I extract digits, cat them and make a img html tag and embed it. The issue is that, the URL is presented in a non padded way, but the image linked has the zeroes. Therefo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Linux file creation timestamp race conditions I'm trying to do what I think is a simple thing under Linux. I have a bash script which runs various test programs, and I want to determine which files in the current directory were created by the test programs. So I am doing something like this:
touch timestamp-file
ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: the example uses RoR ajax protoype helpers - How to do this in JQuery instead? This page show how to do depended drop-downs using RoR+Prototype. Wonder if somebody would show how to do in JQuery insteaad
http://pullmonkey.com/2008/3/30/dynamic-select-boxes-ruby-on-rails
A: jRails actually has done most of the work ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding a dealer area via google maps API I have a national customer who are currently recruiting dealers by selling each dealer an area for a set fee. They want a 'find a dealer' feature on their website which should point customers to the dealer who has purchased the area the visitor enters. At first we were goi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Returning from inside the scope of a 'using' statement? I've got some code that looks like this:
using (DBDataContext dc = new DBDataContext(ConnectionString))
{
Main main = new Main
{
ClientTime = clientTime
};
dc.Mains.InsertOnSubmit(main);
dc.SubmitChanges();
return main.ID;
}
If ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What's useful from Intentional and Language Oriented Programming? Has anything useful come out of Intentional or "Language Oriented" Programming?
This isn't a rhetorical question. I'm looking for people who've tried these tools (ie. representing programs in some "higher level" format than mere text and using differe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How Can I Get the Index of An Item in a ListBox? I am adding items to a ListBox like so:
myListBox.Items.addRange(myObjectArray);
and I also want to select some of the items I add by the following:
foreach(MyObject m in otherListOfMyObjects)
{
int index = myListBox.Items.IndexOf(m);
myListBox.SelectedIndic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In Windows, how can I enumerate and get text from another window's controls? More particularly - I have a window handle of another running application. This application contains a TListControl.UnicodeClass control somewhere (I know this from Winspector). How can I, using the Windows API and that window handle, go th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Concrete type or Interface? I have the following use case , lot of code which was tightly coupled on a concrete type (say Concrete1). Later figured out the concrete type needs to be changed, so defined an interface . E.g
Class ABC {
virtual int foo() = 0;
virtual int getType() = 0;
}
class Concrete1 : public AB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IE background display problem I'm creating a website for my church and I'm having problems making it display right in IE. It seems that my div "sidebox" is having its background position overridden by the "margin: 0 auto;" as the background displays centered rather than on the right, which is shifting the site to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Initial validation on dynamically added control WPF validation system performs intial validatation of an object (I mean - all fields are validated when a databound item is changed, and results are displayed on the ui).
But it doesn't work like this, when I add a control dynamically. In such case inital validation ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding the center of mass on a 2D bitmap I'm coding a game, and I'd like to be able to find the center of mass of an arbitrary shape on a black and white bitmap such as this:
012345678
0.XX......
1..XXX....
2...XXX...
3..XXXXXXX
4...XXX...
All "cells" have the same weight. Diagonally adjacent cells are not consi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Gridview within an UpdatePanel does not render in the DOM I'm using the ASP net Ajax toolkit and have a GridView within the UpdatePanel, everything works fine.
When I attempt to run some JQuery against the table that should be generated, there isn't any sign of the GridView (or table HTML) in the DOM that is returne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Dreamweaver + Grails Has anybody tried doing GSP design with Adobe Dreamweaver CS4? It has support for JSPs, but it doesn't recognize the gsp extension, and even if it did I think there would be problems regarding the gsp tags that it would not recognize. I found a little cookbook here (http://www.bitwalker.nl/blog/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Disk backed dictionary/cache for c# I'm looking for a drop in solution for caching large-ish amounts of data.
related questions but for different languages:
*
*Python Disk-Based Dictionary
*Disk-backed STL container classes?
Close question in different terms:
*
*Looking for a simple standalone persistant dict... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Easy way to test a URL for 404 in PHP? I'm teaching myself some basic scraping and I've found that sometimes the URL's that I feed into my code return 404, which gums up all the rest of my code.
So I need a test at the top of the code to check if the URL returns 404 or not.
This would seem like a pretty straightfowa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "165"
} |
Q: Silverlight 2: Text Glow effect? I'd like to create an outer-glow (or halo) effect on a text block in Silverlight.
(For PS3 users, something similar to the glow around the menu text on that system).
I've seem samples to do inner and outer glow on other shapes, such as rectangles but this does not translate to text.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Image Browser in ASP.Net I have some experience with .Net (Win Forms and WPF) but am very very green in ASP.Net.
I was given the task of building a simple, file system-based picture browser, and I would like your help in guiding me on how I can accomplish this. The images are supposed to be stored in the web server ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why explicit interface implementation? I recently implemented a class like:
class TestClass : IDisposable
{
RegistryKey m_key;
public TestClass()
{
m_key = Registry.CurrentUser.OpenSubKey("Software", false);
}
public void Dispose()
{
// m_key.Dispose();
IDisposable di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can the SSL client validate the server's certificate? I am building an application and I am planning on using OpenSSL for securing data transfers.
I am planning on only having the client validate the server's certificate. I am confused on how I should secure the server's certificate. I would like to encrypt the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best folder distribution on Linux for user private folders? In our site, users can have many private files. We are thinking what could be the best distribution so as to avoid destroying the server's performance, These files are served through Apache and should be listed each time the user needs to manage... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Google Maps API - GClientGeocoder inconsistency using getLatLng method? I have noticed that my geocoder is inconsistent in the code shown below because before the "getLatLng" method is called I show 10 valid locations, but after this line of code the number of points that actually show up is different each time I se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is Enumerable.Range faster than a direct yield loop? The code below is checking performance of three different ways to do same solution.
public static void Main(string[] args)
{
// for loop
{
Stopwatch sw = Stopwatch.StartNew();
int accumulator = 0;
fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: MS Access Linked Table Permissions Does anyone know which permissions are required for refreshing or connecting to linked tables in ms access 2003?
I have basically two user level security groups setup; 1 for admins and 1 user level. Admins have full permissions and have no trouble refreshing the linked tables. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JPA/Hibernate query optimization with null values I'm using Hibernate's implementation of JPA and am seeing poor performance as multiple SQL queries are issued for each entity that is fetched. If I use a joined JPA query it generates just one SQL query but doesn't find rows will null relationship.
Example, consider ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Outline of cubic bezier curve stroke By stroke of the cubic bezier curve I mean rendering a curve 'A' with a specific line width 'w'.
How can I derive other cubic bezier curves that describe the outline of the stroke of bezier 'A' ?
A: Qt's QPainterPathStroker (it's open source and fairly readable code) uses the al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Adding an index to a MySQL table The MySQL documentation isn't very clear on this. I want to add an index to an existing table. The table is a user table with the login id and password and I want to create an index for this to optimize logging in.
This is how I thought I would try it:
mysql> ALTER TABLE `users` ADD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Keeping original format POST passing through AWK I have an issue with using AWK to simply remove a field from a stream, illustrated below:
1 int blah (void)
2 {
3 if (foo) {
4 printf ("blah\n");
5 }
6 return 0;
7 }
I use the following code to remove the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Microsoft Exception Handling Block - Isn't it a perfect example for overengineering? Ever since Microsoft has introduced the application blocks, I've been bumping into people who use the Exception Handling Application Block. I've recently had a closer look myself and would summarize the basic functionality as follow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Regex to capture an optional group in the middle of a block of input I'm stuck on a RegEx problem that's seemingly very simple and yet I can't get it working.
Suppose I have input like this:
Some text %interestingbit% lots of random text lots and lots more %anotherinterestingbit%
Some text %interestingbit% lots of r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Anyone know of a decent free DB schema reverse engineering tool? Looking for a tool that will automatically create a graphical representation of a MySQL DB schema from a live database, showing tables, columns, and relationships (an ER diagram). Ideally something that would run on OS X would be great but I'll take wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Eclipse users: Do you use Aptana too? This San Mateo development company makes a freely downloadable convenient packaging of many plugins for Eclipse called Aptana. I was recently in an environment where Aptana came pre-installed. Not only is it a good IDE for RoR, it also does a somewhat decent job (sans debugging)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is the codedom that I need to write to generate this code? I need to do this.
public class MyClass{
private static IDictionary<String, Type> databaseAccessClasses
= new Dictionary<String, Type>();
private static IDictionary<String, Type> DatabaseAccessClasses
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Send data to a Flex 3 application from an SWF (version 7) Does anyone know how to take a swf (version 7) and use the SwfLoader or something similar to access a root variable in the swf from a Flex application? I have tried many things with no success. I don't want to clutter this post with all of my failed attempts,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C#: Refactoring a Reynolds number calculator I'm trying to learn some C# over the weekend and am following the 15 exercises found here: http://www.jobsnake.com/seek/articles/index.cgi?openarticle&8533
Yesterday I asked a similar question for the Fibonacci sequence and received some great responses which introduced m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to produce a 303 Http Response in Django? Last couple of days we were discussing at another question the best to manage randomness in a RESTful way; today I went to play a little bit with some ideas in Django only to find that there is no easy standard way of returning a 303 response (nor a 300 one, btw), that i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Best way to keep GUI updated when the underlying SQL view data changes? Let's say you have a form with a component that displays data from a view on an SQL server. The component would be something like a ListView or DataGrid - basically something that can display the data in a 2D grid format. Another application cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Does One Persist XML/CSV/Other Through Repositories/Services/Other I have an application that imports information from a CSV file or from a database and exports it to XML. This XML is currently being persisted to a file. However due to project needs I have decided it may be better to persist this XML to a database.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Regular expression to parse an array of JSON objects? I'm trying to parse an array of JSON objects into an array of strings in C#. I can extract the array from the JSON object, but I can't split the array string into an array of individual objects.
What I have is this test string:
string json = "{items:[{id:0,name:\... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Setting cross-domain cookies in Safari I have to call domain A.com (which sets the cookies with http) from domain B.com.
All I do on domain B.com is (javascript):
var head = document.getElementsByTagName("head")[0];
var script = document.createElement("script");
script.src = "A.com/setCookie?cache=1231213123";
head... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: Django apps equivalent in ASP.NET MVC? I currently develop with Django, but want to be ready when a future client inevitably requests a site done in ASP.NET MVC. While most of the structure and flow of ASP.NET MVC is more or less identical to Django and RoR, the one part I'm not sure about is the Apps methodology D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Kind of self-modifying program in C Is it possible to write a C function that does the following?
*
*Allocate a bunch of memory in the heap
*Writes machine code in it
*Executes those machines instructions
Of course, I would have to restore the state of the stack to what it was prior to the execution of those ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Idiomatic Scala Map upsert I'm working with a map in Scala and doing the usual "if there's no value associated with a key, create it, put it in the map and return it":
def alphaMemory(key : AlphaMemoryKey) = {
var am = map.getOrElse(key, null)
if(am == null) {
am = new AlphaMemory(key)
map.pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: why GetChanges returns something (when bound to a property) even if there are no changes on datatable? Bound GetChanges always returns something when bound to a UserControl's property (even on a simple one)
I have made a UserControl, for some reason unbeknownst to me, when I bound a DataColumn to my control's proper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Excel file to be restricted from opening with any other formats I would like to know that i have an excel file with 18 sheets and it should be opend with any other versions.
for example if i right click on the file and select open with open office the same is being opened. i would like to lock this.
A: not possible... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Convert CVS/SVN to a Programming Snippets Site I use cvs to maintain all my python snippets, notes, c, c++ code. As the hosting provider provides a public web- server also, I was thinking that I should convert the cvs automatically to a programming snippets website.
*
*cvsweb is not what I mean.
*doxygen is for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: llv8call on Mac OS X - 2nd try I didn't give a lot of info in my last question.
I've built llv8call from http://code.google.com/p/llv8call/, v0.4. I've gotten the known dependencies installed, being libxml-2.0 and libreadline. My dev system is Mac OS X 10.5. llv8call is built with Scons.
When I attempt to run llv8ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to make two images overlapping with WPF? I have the following XAML code, which displays a picture (image inside borders) and a logo. Right now, the logo appears below the picture. This is expected, however my goal is to have the logo on top of the picture (precisely at the bottom-right corner). Does someone has ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In textmate, how do I make javadoc style comments like I can in eclipse? In eclipse, when I want to document a function (in java or javascript source) I can just type /**, then hit enter, and I get a comment like this
/**
*
* Fluctuates all variables to more compatibly foo all the bars
*
* @PARAM {int} foo
*/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WinForms: Tying actions together I remember back when I used to do C++ Builder apps, you could create an action, then associate a menu item or context menu item, etc to the action. That way if you dis something like disable the action , the associated menu items would all be disabled. Is there something like that i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# type name instead of CLR type name typeof(int).Name
Will return System.Int32 does anyone know of a way to return "int"
A: There aren't many types that are C# keywords (int, double, string) ... so perhaps you can write your own mapping function, from the System type name to the corresonding C# keyword.
A: Yeah,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What code does the compiler generate for autoboxing? When the Java compiler autoboxes a primitive to the wrapper class, what code does it generate behind the scenes? I imagine it calls:
*
*The valueOf() method on the wrapper
*The wrapper's constructor
*Some other magic?
A: You can use the javap tool to see f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Stack, Static, and Heap in C++ I've searched, but I've not understood very well these three concepts. When do I have to use dynamic allocation (in the heap) and what's its real advantage? What are the problems of static and stack? Could I write an entire application without allocating variables in the heap?
I hea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "180"
} |
Q: How to connect mysql to DevExpress ASPxScheduler without SqlDataSource I have an ASP.net project I'm looking at and they want to use MySQL. I'm used to SQL server but using mySQL shouldn't be a problem.
Normally the control would like a SqlDataSource to bind to but that's not available with MySQL (from other posts ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Figuring out what Ruby on Rails is Is RoR to Ruby equivalent to what the .NET framework is to VB.NET?
A: No.
RoR is a rapid web application development framework.
.NET is a common language runtime, and VB.NET compiles to the CLR for VB code.
RoR would be equivalent to the ASP.NET MVC framework (with a bunch of time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you retrieve stylus pressure information on windows? Is anyone aware of a sane way to get tablet/stylus pressure information on Windows?
It's possible to distinguish stylus from mouse with ::GetMessageExtraInfo, but you can't get any more information beyond that. I also found the WinTab API in a out of the w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I get a value from UITextField in UIAlertView? I have Used in cocos2d game engine. this is my code:
-(void)timed1: (id)sender {
UIAlertView *dialog = [[[UIAlertView alloc] init] retain];
[dialog setDelegate:self];
[dialog setTitle:@"Enter Time:"];
[dialog setMessage:@" "];
UITextField *na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: A little help on a mod_rewrite expression I need a very quick fix in a mod_rewrite expression for drupal we have
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
Rew... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript file uploads Any alternate thing in JavaScript to make a file upload control ?
actually the problem was, i am creating file upload control dynamically using htmlwriter, and when i use request.form[fileuplodctrl].tostring() , i am getting only the file name not path...
can any one suggest me any other wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I get F12 to break into the debugger on Vista x64 with VS 2008? F12 is a wonder for tracking down UI blocking operations, but I can't figure out how to make it work with VS 2008 and managed code.
Help! Or not...
Edit: turns out it doesn't work in VS 2005 either on Vista x64, so I guess that either widens or n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Busy cursors - why? Can anyone give me a scenario where they think busy cursors are justified? I feel like they're always a bad idea from a user's perspective. Clarification: by busy cursors, I mean when the user can no longer interact with the application, they can only move their hourglass mouse pointer around a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Enforce unique values across two tables Is it possible to enforce uniqueness across two tables in MySQL?
I have two tables, both describing users. The users in these tables were for two different systems previously, however now we're merging our authentication systems and I need to make sure that there are unique us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Playing sound while displaying a splash screen? I want to play a sound while my splash screen gets data from the server.
The sound file is not too large. I want something like when you start your computer you hear the MSWinXP welcome sound and that while establishing your account.
How can I do that?
thnx
A: Use Sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linq to SQL: order by value in related table I have 2 tables which in simplified form look like this:
Products(
id: int,
name: varchar
);
ProductSpecs(
product_id: int,
spec_name: varchar,
spec_value: int
);
Now I need to sort products (in linq to sql) by value of some specification item (eg. "price... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Catch MainLoop exceptions and displaying them in MessageDialogs I have a wxPython application that relies on an external config file. I want provide friendly message dialogs that show up if there are any config errors. I've tried to make this work by wrapping my app.MainLoop() call in a try/except statement.
The c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: WPF Datatemplating an ItemsControl I have an ItemsControl whose ItemsSource gets bound to an ObservableCollection<Component> at run time. I have defined a data template for type Component which works fine.
Now Component has a ObservableCollection<Control> and I want to add another ItemsControl inside my Component Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the difference between Swing and AWT? Can someone please explain me what's the difference between Swing and AWT?
Are there any cases where AWT is more useful/advised to use than swing or vice-versa?
A: Swing:
*
*Swing is part of the java foundation classes.
*Swing components are platform-independent.
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "245"
} |
Q: What is the name of this particular indent style? ("braces stacked") I've seen this questions here.
I'm wondering if there exists an official name for the following indent style:
void fooBar(String s)
{
while (true)
{
// ... do something
}
}
When the opening brace is in the same line as the cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to change the data type of a column without dropping the column with query? I have a column which has a datatype : datetime. But now i want to convert it to datatype varchar. Can i alter the datatype without droppping the column? If yes, then please explain how?
A: MSDN says
ALTER TABLE mytable ALTER COLUMN myc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: Retrieving saved checkboxes' name and values from database I have a form with checkboxes, each one has a value. When the registered user select any
checkbox the value is incremented (the summation) and then then registred user save his
selection of checkbox if he satisfied with the result of summation into databas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why use Web Services instead of RPC between two internal processes? Can anyone suggest a good reason to use web services instead of RPC (not xml-rpc) as a comms channel between two C++ processes both of which will be developed by the same team? Note: Web services do not guarantee ordered delivery!
A: Web services ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Efficient user interfaces Speed and learnability do not directly fight each other, but it seems easy enough to design such a GUI that lacks either (or both) of them. GUI designers seem to prefer 'easy to learn' most of the time even when 'fast to apply' would be wiser.
There's only few UI concepts or programs that a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/408853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.