text stringlengths 8 267k | meta dict |
|---|---|
Q: What is the Fastest way of looping over an array on javascript?
Possible Duplicate:
What is the best way to do loops in JavaScript
What’s the best way to loop through a set of elements in JavaScript?
Any ideas?
A: What's wrong with a good old-fashioned for loop?
for( var i = 0; i < list.length; i++ ) {
// do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What really happens in a try { return x; } finally { x = null; } statement? I saw this tip in another question and was wondering if someone could explain to me how on earth this works?
try { return x; } finally { x = null; }
I mean, does the finally clause really execute after the return statement? How thread-unsa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "280"
} |
Q: Is SmsMessage not thread-safe? I'm writing an app for WM that handles incoming SMS events. I tried making it multi-threaded (using ThreadPool.QueueWorkItem) where the SmsMessage was passed along. However, I noticed that when I did that, the program would only handle the first sms event - afterwards, NO SMS were ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When using Java's FileLock, is it ok to let close() to automatically do a lock.release()? As most should know close() also closes any streams uses.
This allows the follow code:
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(...)));
...
br.close();
This is nice, since we don't need ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Sql Server management studio how to auto capitalize Is there any FREE "build-in" way to capitalize the "keywords" in the SQL 2005/2008 management studio when you write a sql query?
i.e
truncate table x
should be automatically changed to:
TRUNCATE TABLE x
A: There is no built in 'intellisense' in SQL Server 2005 (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Do any JavaScript toolkits have well-known security holes? I'm surveying a wide array of web frameworks, and the majority don't mention security as an issue on their websites (eg scriptaculous, jQuery, Prototype, Rico)
Does anyone know of any that are more or less secure than the others? (ignoring the usual security... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to return subtype in overridden method of subclass in C#? I have a subclass with an over-ridden method that I know always returns a particular subtype of the return type declared in the base class. If I write the code this way, it won't compile. Since that probably doesn't make sense, let me give a code exampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Using ActiveX PropertyBags from C# I have created a .NET user control with an ActiveX interface. It works well.
Now, I want to be able to read and write from the property bag for the ActiveX interface.
How would I do this?
A: The easiest is to use client script to pass the parameters values to the ActiveX
<html xml... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Capture characters from standard input without waiting for enter to be pressed I can never remember how I do this because it comes up so infrequently for me. But in C or C++, what is the best way to read a character from standard input without waiting for a newline (press enter).
Also ideally it wouldn't echo the in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "227"
} |
Q: Function names and parameters in matlab variables In my matlab m-file I am using some logic (string concat) to build variables like this:
c = 'CalcPrediction(1,10)'
That means I have a string that is a function and some parameters. How can I do that function call?
Trying run(c) results in:
>> run(c)
??? Error using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tuning SQL Server 2008 for web applications In one of the Stackoverflow podcasts, I remember Jeff Atwood saying that there was a configuration option in SQL Server 2008 which cuts down on locking, and was kind of an alternative to using "with (nolock)" in all your queries. Does anybody know how to enable the featur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Long UPDATE in postgresql I have been running an UPDATE on a table containing 250 million rows with 3 index'; this UPDATE uses another table containing 30 million rows. It has been running for about 36 hours now. I am wondering if their is a way to find out how close it is to being done for if it plans to take a mil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Do you keep your build tools in version control? Do you keep tools that are necessary to build your project under version control?
If you do, what are your guidelines for which tools to include? I guess noone puts Visual Studio in version control, but how about your unit-test-runner? The Nant/Ant/Maven executable?
H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: DataGridView, BindingSource and sorting in vb.net I am emulating the functionality of an old app in VB.Net. I have a DataGridView on my form which is bound to a BindingSource. I have a button on the toolbar which lanuches a sort dialog. The sort dialog allows sorting by up to 3 columns.
So I'm building a string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create hyperlink in Spring + JSP What's the proper way to create a hyperlink in Spring+JSP? There must be a better way than just coding in the <a href="..."> tag. Take for example a page that displays people. The URL is people.htm. The corresponding controller gets people from the database and performs option... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Prevent XSS in HTML forms from third party site The basics:
*
*I have a contact form that uses
php to validate the
forms. (in addition to client side) This could be done in any server side language though.
*The server side only allows
A-z 0-9 for certain fields (it is
acceptable to validate this field t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Criteria question with NHibernate I'm trying to use NHibernate for data access, and I have 2 simple entities that look like this:
public class User : IEntity
{
public int ID { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
publi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Information required on TDataSetProvider in Delphi I have Midas project that uses a TDataSetProvider in one of RemoteDataModules in the Server
Currently I am making use of the following events
*
*BeforeApplyUpdates - to create an Object
*BeforeUpdateRecord - to use the object
*AfterApplyUpdates - to destory th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creation of a EML file with an attachment using JavaMail I'll create a EML file with an attachment using JavaMail.
I created a simple EML file successfully, but adding an attachment don't work properly. I'm going to add a PDF file. My EML file will be created successfully. If I open the generated EML file with Outl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to degrade from Internet Explorer 7 to Internet Explorer 6 for debugging purposes? I'm having Internet Explorer 6 problems on one of my sites, and I really wish I had it installed instead of Internet Explorer 7. Is there a quick way to do this?
A: Download Virtual PC and set up a bunch of them for t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL Help: Counting Rows in a Single Query With a Nested SELECT I'm looking for a better way to do the following query. I have a table that looks like this:
game_id | home_team_id | away_team_id
1 | 100 | 200
2 | 200 | 300
3 | 200 | 400
4 | 300 | 100
5 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Running/Interpreting C on top of the JVM? Is there a way to run plain c code on top of the JVM?
Not connect via JNI, running, like you can run ruby code via JRuby, or javascript via Rhino.
If there is no current solution, what would you recommend I should do?
Obviously I want to use as many partials solutions as I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: asp.net - gridview validation - repeating validation messages issue I have a gridview that contains one to many rows (like most do) - each with an input textbox. Each row has a requiredfieldvalidator against that textbox. When the form is submitted the gridview is validated it is entirely possible that more than one... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What Are the Pros and Cons of Filemaker? A potential customer has asked me to look at some promotional flyers for a couple of apps which fall into the contact management / scheduler category. Both use Filemaker as their backend. It looks like these two apps are sold as web apps. At any rate I had not heard of Fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Anyone else find naming classes and methods one of the most difficult parts in programming? So I'm working on this class that's supposed to request help documentation from a vendor through a web service. I try to name it DocumentRetriever, VendorDocRequester, DocGetter, but they just don't sound right. I ended up br... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "294"
} |
Q: Running specific version of java on firefox In IE, I can use the classid "clsid:CAFEEFAC-0015-0000-0011-ABCDEFFEDCBA" to tell it to use java version 1.5.0_11. Is there an equivalent for Firefox and other browsers?
A:
I can use the classid "clsid:CAFEEFAC-0015-0000-0011-ABCDEFFEDCBA" to tell it to use java version... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: blurred opacity I need to create a transparent blurred background. Lets suppose I have a border with a white blurry transparent background. Everything that is behind the border is blurred.
I'm trying to avoid dependencies; I'm currently using .NET 3.0, and want it to run with XP too.
Mockup image:
A: I would imagi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Performance and background images for OpenGL ES/iPhone I'm developing a 2D game for the iPhone using OpenGL ES and I'd like to use a 320x480 bitmapped image as a persistent background.
My first thought was to create a 320x480 quad and then map a texture onto it that represents the background. So... I created a 512x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to display only taxonomy terms with nodes associated to in Views 2? I've created a view with a set filters exposed (to show filtering options in the page). And one of those filters is a select field with all the taxonomy terms of a vocabulary.
That's ok, it's showing now. But I want to only show the taxonomy ter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Will Oracle optimizer use multiple Hints in the same SELECT? I'm trying to optimize query performance and have had to resort to using optimizer hints. But I've never learned if the optimizer will use more than one hint at a time.
e.g.
SELECT /*+ INDEX(i dcf_vol_prospect_ids_idx)*/
/*+ LEADING(i vol) */
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Strategies for learning and writing code when I'm not allowed to be "polluted" with open source code? I work at a company where the rule basically is (as I understand it) that you cannot use any code unless (a) you write the code yourself or (b) there is some explicit indemnification clause guarding your use of any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is Model View Presenter the right choice to make an asp.net UI testable? I have read many articles on the MVP pattern. Some folks say it is too complex and some say it's outdated. However to me it would seem like the perfect way to provide unit testing access to the UI - which is what I'm aiming to achieve.
Have you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to define output depending on an variable with an status in LaTeX? I have some standard-texts, but some portion of it is different. But of these different parts only a few exists.
For instance I want:
\mytext{...}{a}
\mytext{...}{b}
That produces:
\section{Item: ...}\label{item...}
This is a standard item. Ite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/421989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Open FoxPro Table in VB.net 2005 I need to open foxpro free tables in vb.net using the oledb connection.
But... I only need to get the column names. I don't really need to 'select' anything.
I am trying to dynamically browse through all our free tables and set up a listing of every column from every file and xref th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How the best methodology to create an .NET client application supporting plugins? I found the .net plugin architeture very complex to use as plugin platform. I think that an plugin interface needs be simple to 3rd coders develop with.
Do you know/use/etc some plugin techinique more simple and effective? To be more e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Polling webservice performance - Will this work? Our app need instant notification, so obvious I should use some some WCF duplex, or socket communication. Problem is the the app is partial trust XBAP, and thus I'm not allowd to use anything but BasicHttpBinding. Therefore I need to poll for changes.
No comes the que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET Datagrid - hiding a specific row/column I am using a Datagrid with several columns of data (call it myDG) and one of these columns is a DateTime bound to a datasource. Its value is dependent on a "job" object completing a job and assigning the date time value. Since this normally takes up to a minute the val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to disable scrollbars with JavaScript? I need to lock the browser scrollbars when I show a div that represent a modal window in Internet Explorer 7 only.
Googling I found that I can use document.body.style.overflow='hidden' but this doesn't work for IE7. I also tried with document.body.scroll="no" which works bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to get Flex to see a .NET Webservice session when I use the proxy auto-generation? So I have a Stateful .NET webservice (C#) that I would like Flex to use. The only problem is that I don't see a cookie being passed, even though I have the WebMethods decorated with:
WebMethod(EnableSession=true)
I can't seem to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reversing (or undoing) a large load to a warehouse fact table Currently, we plan to record a "batch id" for each batch of facts we load. That way, we can back out the load in case we find problems.
Should we consider tracking the batch id on the dimension rows, also?
It seems like dimension rows have different ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Split Data into Pages How do I split data into pages on ASP.Net?
I'm looking for something like what Google does when you have too many search results and it splits them into x number of pages.
A: It would depend entirely on the content. If it's a simple datagrid you can use the built in datagrid paging. If the dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Build Server Best Practices I heard google has some automated process like that:
*
*When you check in, your code is checked into a temporary location.
*It is built.
*Style checks run.
*Tests run.
*If there are no problems, code goes to actual repository.
*You receive an e - mail containing test results, perf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Gradients on UIView and UILabels On iPhone
Possible Duplicate:
Manually drawing a gradient in iPhone apps?
My application needs to display text in either a UIView or UILabel but the back ground must be a gradient as opposed to a true UIColor. Using a graphics program to create desired look is no good as the text ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "220"
} |
Q: DataTemplate with TargetNullValue in a ListBox I have the following DataTemplate in a Listbox
<ListBox Grid.Column="1" Grid.Row="2" ItemsSource="{Binding People}" SelectedItem="{Binding SelectedPerson}">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock OverridesDefaultStyle="True"
Backgrou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: CEditView not showing text I have a view which is derived from CEditView. It is read only. I would like to set the text as a kind of logging, but nothing shows up on the screen. If I inspect temp in the debugger after GetEditCtrl().GetWindowText(temp); I can see that the text is indeed changing internally, but I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In C# check that filename is *possibly* valid (not that it exists) Is there a method in the System.IO namespace that checks the validity of a filename?
For example, C:\foo\bar would validate and :"~-* would not
Or a little trickier, X:\foo\bar would validate is there is an X: drive on the system, but wouldn't otherw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "130"
} |
Q: How can the user communicate with my python script using the shell? How can I implement the following in python?
#include <iostream>
int main() {
std::string a;
std::cout << "What is your name? ";
std::cin >> a;
std::cout << std::endl << "You said: " << a << std::endl;
}
Output:
What is your name? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best way to maintain a LastUpdatedDate column in SQL? Suppose I have a database table that has a timedate column of the last time it was updated or inserted. Which would be preferable:
*
*Have a trigger update the field.
*Have the program that's doing the insertion/update set the field.
The first ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Creating WCF Services Can a class have a "Service Contract" attribute and its methods "Operation Contract". Or do these need to be applied to an interface which the class would have to implement?
A: You can place the ServiceContract and OperationContract attributes on a class, but that is considered bad practice. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Stop Firefox extension popupset auto-hiding I am building a Firefox Extension. I have a popupset that is shown when a toolbar button is pressed and also have working code to close the popupset manually.
The problem I have is that the popupset disappears whenever I click elsewhere. I would like to disable this automa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I dynamically add a method to the Math class in Ruby on Rails? I am trying to add the following method to the Math class in Ruby on Rails:
class Math
def self.round_with_precision(number, precision)
scalar = 10.0 ** precision
number = number * scalar
number = number.round
number = number / ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regular expressions in an Objective-C Cocoa application Initial Googling indicates that there's no built-in way to do regular expressions in an Objective-C Cocoa application.
So four questions:
*
*Is that really true?
*Are you kidding me?
*Ok, then is there a nice open-source library you recommend?
*What are w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "173"
} |
Q: How to access the user profile in a Django template? I'm storing some additional per-user information using the AUTH_PROFILE_MODULE.
We can access the user in a Django template using {{ request.user }} but how do we access fields in the profile since the profile is only accessible via a function user.get_profile() ?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "94"
} |
Q: Understanding WCF Could anyone point me to a resource that explains WCF with pictures and simple code snippets. I am tired of googling and finding the same "ABC" articles in all search results.
A: WCF is a very complex technology that in my opinion is very poorly documented. It is incredibly easy to get up and runn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What are the best practices with source code control? After a recent "accident" at work, whereby some bugs that previously had been fixed were reintroduced, I was asked to document a set of guidelines for the use of source code control (CVS in this case).
What do you consider to be best practices for using source ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Does anyone have recommendations for a good task/time management tool? Does anyone have recommendations for a good task/time management tool.
Ideally this would just keep track of programming tasks / the project and the time spent also the option to produce an end of week report would be advantageous
A: at the low... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Starting a Horizontal UIScrollView at a random Page I have a horizontal UIScrollView with a bunch of various pages on it. I would like to programatically show a certain page per a user selection. At the moment, I can't figure out how to start showing it in the middle of the page.
Does anyone have any experience with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I limit the number of entries in a java hashtable? Is there a technique such that I can specify a number n such that when the (n + 1)th entry is inserted, the oldest entry is removed first ensuring that the size of the hashtable is always limited to n?
A: You're looking for a LRU cache perhaps? Here's a blog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to calculate the sum of two normal distributions I have a value type that represents a gaussian distribution:
struct Gauss {
double mean;
double variance;
}
I would like to perform an integral over a series of these values:
Gauss eulerIntegrate(double dt, Gauss iv, Gauss[] values) {
Gauss r = iv;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: REST URIs and operations on an object that can be commented on, tagged, rated, etc I'm doing research into a web API for my company, and it's starting to look like we might implement a RESTful one. I've read a couple of books about this now (O'Reilly's "RESTful web services" seeming the most useful) and have come up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Enumerating USB drives and usb hierarchy on Mac OS What is the best way to discover what USB drives are connected, where they are mounted, and their unique details like Serial number, PID and which USB Hub port they are connected to? Something similar to what USBlyzer does for Windows but programmatically.
A: The F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Setting properties on anonymous DOM elements through JavaScript? Let's say I'm generating markup through server-side code. I'm generating a bunch of HTML tags but I want to add custom client-side behavior.
With JavaScript (if I had a reference to the DOM node) I could have written:
var myDOMNode = ...
myDOMNode.myCu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails 1.2 "service is deprecated" My app is on rails 1.2.6 and I wish to upgrade it to 2.2
I see this warning in the logs:
DEPRECATION WARNING: service is deprecated and will be removed from Rails 2.0 See http://www.rubyonrails.org/deprecation for details. (called from .... application.rb:14)
The line is question i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Inherited Public Properties not showing up in Intellisense I have inherited a class in vb.net and when I create the object, I am only seeing one of the inherited public properties in intellisense. Any solution to this problem?
print("Public Class CompanyMailMessage
Inherits MailMessage
Private AdobeDisclai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Haskell REST/GDATA API library Is there available REST api library for haskell?
I need it primary for google gdata client, but will probably use it for other purposes too.
I know there is HTTP library, but I need something more high level, which supports things like json encoding/decoding, etc...
A: According to "c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Last Updated Date: Antipattern? I keep seeing questions floating through that make reference to a column in a database table named something like DateLastUpdated. I don't get it.
The only companion field I've ever seen is LastUpdateUserId or such. There's never an indicator about why the update took place; or even w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C# checkbox eventhandler private void CheckBox_CheckedChanged(object sender, EventArgs e)
{
CheckBox chk = (CheckBox)sender;
SetValuesInDB( System.Security.Principal.WindowsIdentity.GetCurrent().Name,
DateTime.Today.Date);
}
Now I want to setvalues of my id and cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running a native program in Adobe AIR I need to run a native program and retrieve the output in an Adobe AIR client side only application. I know that AIR does not allow access to native applications, so what is the best way to achieve this? I came across this solution which works on Windows, but I need something th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I programatically open, search and return results in a browser from multiple websites? Currently I have a bookmarked list of websites that I look for content on, and open them in a new window, in tabs, and search for the string that I want to find.
Is there any way to do this programatically, ending up with a br... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I include a CDATA section in a ConfigurationElement? I'm using the .NET Fx 3.5 and have written my own configuration classes which inherit from ConfigurationSection/ConfigurationElement. Currently I end up with something that looks like this in my configuration file:
<blah.mail>
<templates>
<add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is the best way to access ASP.net Session Data using JavaScript? How can you make the ASP.net Session Data available to a JavaScript method? I found this link when I googled. Anyone has a better trick that does not use the ScriptManager?
A: If ditching the ScriptManager is your aim, exposing the page method i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Spring AOP: applying properties through the aspect The intent here is to deal with obfuscated passwords for resources.
We have an Advisor that intercepts calls to setPassword and decrypts the argument.
We've set up a template that looks somewhat like this:
<bean id="pwAdvisor" class="org.springframework.aop.support.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Stop and start running again processes in Linux using C++ I have two process and a shared memory zone, my workflow is like this. The process A write some data in the shared memory, after that it should wait and send a signal to other process B to start running. The process B should read some data from the shared mem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Simple string parsing in Cocoa / Objective-C: parsing a command line into command and arguments Here's a piece of code to take a string (either NSString or NSAttributedString) input that represents a command line and parse it into two strings, the command cmd and the arguments args:
NSString* cmd = [[input mutableCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Providing Inherited Static Properties (conceptually) I have a C# base class that I was to associate information with on a per-type (rather than per-instance) basis. Essentially I want all child classes to present an Icon and a FriendlyName that represents the type. I'd like to not have to create a type instance to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Fixed-point arithmetic Does anyone know of a library to do fixed point arithmetic in Python?
Or, does anyone has sample code?
A: The deModel package sounds like what you're looking for.
A: Another option worth considering if you want to simulate the behaviour of binary fixed-point numbers beyond simple arithmetic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Php Framework or template engine or something else? I have a relatively simple application up and working with some basic functionality which i have built as a bit of a project. I would like to now build on that, and add some more complex features, including login.
The code has got quite complex, and it's written in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Difference between DBEngine.BeginTrans and DBEngine.Workspaces(0).BeginTrans In Access, what is the difference between these two statements?
DBEngine.BeginTrans
and
DBEngine.Workspaces(0).BeginTrans
The documentation for both leads to the same place.
A: Have a look here: DAO Workspace
And then here: DAO Workspa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Identify 'Current' open workspace through TFS API? Is there a way to programatically determine the current workspace of the open sln/proj in visual studio using the TFS API? I've seen how the VersionControlServer can retreive all of the known workspaces, but is there anything I can use to tie that to what the user c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do I determine the true pixel size of my Monitor in .NET? I want to display an image at 'true size' in my application. For that I need to know the pixel size of the display.
I know windows display resolution is nominally 96dpi, but for my purposes I want a better guess. I understand this information may not al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Get matching route from URL How do you retrieve the matching route for a URL (in string format)?
Basically something like...
Routes.GetMatchingRoute("http://mysite.com/foo/bar/1");
Without having a HttpContext.
Basically I would like to RedirectToAction using a referring URL.
A: You could just return Redirect(url)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: compiling openttd with VS2005 - linker errors in freetype Well, here's a nice obscure one. I'm trying to compile the latest open transport tycoon source in Visual Studio 2005. (It's a C++ app that uses zlib, dx8 and a few other fairly common libraries).
I get a few linker errors to do with the freetype dependencies:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does Visual studio Team Foundation Server really need to be on it's own machine? So we decided to go with visual studio team foundation server for version control, etc. Getting ready to deploy today and read in installation guide:
"You cannot install Team Foundation Server on a domain controller or a computer that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ISP Agnostic Speed Testing What is the best way to test the speed of a LAMP based site, without factoring in the user's connection?
In other words, I have a CMS and I want to see how long it takes for PHP and MySQL to do all their work.
Additionally I do not have shell access to the server, it is in a shared hosting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Page size: Firefox add on Does anyone know any Firefox add-on that can show you the size of the current viewing page?
A: Web Developer Toolbar (dimensions) or YSlow (for page size and loading times) for Firebug.
A: Firebug if you want an in-depth analysis. Right-click and "View Page Info" if you just want the fina... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Pointer to COM object when application does not return it I am using a third-party application, and making a call to create an instance of my COM object. This call is succeeding, however the function on the third-party application does not return a pointer to the created object (I have no idea why). Is there any w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I programatically modify information stored in Active Directory using .NET? I'd like to write a .net program to update active directory data in an existing field, or extend the schema to add a new field.
Does anyone know the best way to go about this?
A: To update a field, you new up a DirectoryEntry for the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MVC View Inheritance For Example:
Let's say that I want to return a view that displays a list of cars and also show a section of dealers in your area. These are two disjointed pieces of data.
My view inherits a list of cars like the following:
public partial class CarLot : ViewPage<List<Cars>>
{
}
Now from the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to keep the installer's version number in sync with the installed assemblies' version numbers? In my current project, I'm producing weekly releases. I've been using the technique described in this post to keep the version numbers of all of the assemblies in my project in sync. (I don't presently have any good ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Rolling My Own ASP.NET Registration Wizard I imagine this is a pretty hard question to answer without sitting down and looking at all the source code, but I figured I'd post it anyway and see if you all had any conceptual thoughts on a process we're using in my company.
The project I'm working on currently is a self... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a Javascript equivalent of Ruby's andand? In trying to make my Javascript unobtrusive, I'm using onLoads to add functionality to <input>s and such. With Dojo, this looks something like:
var coolInput = dojo.byId('cool_input');
if(coolInput) {
dojo.addOnLoad(function() {
coolInput.onkeyup = function()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Are there any illegal characters when using named parameters in JDBC? I'm using named parameters in a query to match fields in a map-like data structure. The data structure can have fields, or another map-like data structure. This nested structure is repeatable ad nauseum.
I would like to name the parameters in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I test private methods with DUnit? I have a class that I am unit testing into with DUnit.
It has a number of methods some public methods and private methods.
type
TAuth = class(TDataModule)
private
procedure PrivateMethod;
public
procedure PublicMethod;
end;
In order to write a unit test for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Memory Allocation in Recursive C++ Calls I'm having problems allocating and deallocating my memory in a recursive C++ program. So without using an automatic memory management solution, I wonder if anyone can help me resolve the memory leak I am experiencing.
The following code essentially explains the problem (altho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WCF and Multiple Host Headers My employers website has multiple hostnames that all hit the same server and we just show different skins for branding purposes.
Unfortunately WCF doesn't seem to work well in this situation.
I've tried overriding the default host with a custom host factory.
That's not an acceptable s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Login without username and password from the web browser on Windows I heard that on Windows you can login from a web browser to the web server without going through the usual login entering username and password but using instead the credentials from Windows directly, using the NTLM protocol.
How is this achieved? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: LINQ to SQL, Generalization I am struggling a bit to figure this one out.
I'm working on an ASP.NET MVC project, using LINQ to SQL for my data layer. The database consists of 10 or so different "exceptions" tables, e.g. "Exceptions.LADM", "Exceptions.USB", "Exceptions.GPO". Basically these tables are tracking user+... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ORM for DELPHI win32 Does anyone know about an ORM or something similar for Delphi Win32.
A: TMS Software is working on an ORM framework for Delphi: TMS Aurelius should be soon released :
TMS Aurelius
EDIT:
It's been already released, official site is http://www.tmssoftware.com/site/aurelius.asp
A: Another ORM for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Using Factories in Presenters in a Model View Presenter and Domain Driven Design Project In domain driven design, it appears to be a good practice to use Factories to create your domain objects in your domain layer (as opposed to using a direct constructor or IoC).
But what about using the domain object factories i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bluetooth to Serial Adapter - Connection Exception currently writes an application to connect to the device "BTLink Bluetooth to Serial Adapter"
More information about device: device specification
Have created such a code:
BluetoothAddress btAddress = null;
if (!BluetoothAddress.TryParse(comboBoxDevices.Sele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/422452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.