text stringlengths 8 267k | meta dict |
|---|---|
Q: How do I make a generic object list work from a specific base class? TMyDataList<T: TBaseDatafile, constructor> = class(TObjectList<TBaseDatafile>)
public
constructor Create;
procedure upload(db: TDataSet);
end;
I read in a blog post (I don't remember where now) that this is the way to declare ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WCF Exceptions thrown by ChannelFactory I'm connecting to a service and using a Channel created by ChannelFactory. I would like to know what exceptions can be thrown while invoking service interface's methods (for example if there is a service interface named ICalculator and I'm invoking its Add(5, 4)).
I can't goog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How-To: Copy dependent assembly in case it is not in GAC? I am building a Setup Package using VS2008. This is a regular setup package installing a COM Add-In app for Outlook. It works Ok, so far. However I need to improve it a little...
The story is that installation package copies all dependent assemblies into the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual C++ 2005: How do I access Win32 form control values in a .cpp file? I've recently started poking around in Visual Studio 2005, and I'm mucking about in Visual C++. When I double click on a control in the designer, it opens the .h file, which I've understood to be for prototype declarations, and if I put all ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Practical / Applied application security Alright so here is my issue. I'm working a game engine that will eventually be multilayer. this engine allows games to be written in either a .Net language or Lua (the built in scripting engine). For security however I'd would like to prevent people from viewing these files a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lambdas for event handlers? Lambda syntax in C# 3 makes it really convenient to create one-liner anonymous methods. They're a definite improvement over the wordier anonymous delegate syntax that C# 2 gave us. The convenience of lambdas, however, brings with it a temptation to use them in places where we don't nece... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Graphic effects library for Core Graphics? I've reached a point were I can't keep procrastinating the writing of the graphics part of an iPhone app.
What has kept me from digging into it so far has being that it feels hard to figure out how to realize my idea of having "glowing", "sparkling" effects on some lamps. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to quickly code and run small C# code There are times when I want to test new code from the forums or when I need to help my friends with specific C# problem. The problem is I don't want to create new "project" in Visual Studio each time just to code/run only this small code.
Java & Eclipse IDE comes up with "Sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "72"
} |
Q: LINQ-to-SQL + One-to-Many + DataBinding deleting I use LINQ-to-SQL to load data from a database that has two tables in a one-to-many relationship (one Recipe has many Ingredients).
I load a Recipe and LINQ retrieves Ingredient objects into an EntitySet that is binded into a ListBox.
If I want to delete some Ingredie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I convert a PIL Image into a NumPy array? How do I convert a PIL Image back and forth to a NumPy array so that I can do faster pixel-wise transformations than PIL's PixelAccess allows? I can convert it to a NumPy array via:
pic = Image.open("foo.jpg")
pix = numpy.array(pic.getdata()).reshape(pic.size[0], pic.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "443"
} |
Q: Does ironpython have libraries that replace the pywin32 extensions? I have some old python code that uses the pywin32 extensions. Starting out with .net, I would like to port it to ironpython.
The old python code uses things like pythoncom.com_error, pywintypes.Time and interfaces a COM module that implements the ID... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tables are empty set in MySQL I used MySQL Workbench to generate a database and now I inserted it into the command-line client using:
mysql> . C:\Documents and
Settings\kdegroote\My
Documents\School\2008-2009\ICT2
\Gegevensbanken\Labo\Hoofdstuk 3 oef
6\pizzasecondtry.sql
For some reason, the last table won... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to skip known entries when syncing with Google Reader? for writing an offline client to the Google Reader service I would like to know how to best sync with the service.
There doesn't seem to be official documentation yet and the best source I found so far is this: http://code.google.com/p/pyrfeed/wiki/GoogleRe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I find out what exception was thrown in the Xcode debugger (for iPhone)? I'm learning iPhone programming from Erica Sadun's The iPhone Developer's Cookbook. When I run the app I created by following the steps in the Temperature Conversion Example starting on page 81 in the simulator, it terminates due to an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Binding Visibility in XAML to a Visibility property I've seen on the internet quite a few examples of binding a boolean to the Visibility property of a control in XAML. Most of the good examples use a BooleanToVisibiliy converter.
I'd like to just set the Visible property on the control to bind to a System.Windows.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Drupal How to see document attached to Node for anonymous users I am finishing up a Drupal site and I have attached a word document on one of my page nodes. I want anonymous people to be able to download it, but they don't even see the document. I do as a logged in user.
Any Ideas?
A: You need to give anonymous use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get file from resources as a stream? (.net) I've got few files in resources (xsd files) that i use for validating received xml messages. The resource file i use is named AppResources.resx and it contains a file called clientModels.xsd. When i try to use the file like this: AppResources.clientModels, i get a s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Implications of foldr vs. foldl (or foldl') Firstly, Real World Haskell, which I am reading, says to never use foldl and instead use foldl'. So I trust it.
But I'm hazy on when to use foldr vs. foldl'. Though I can see the structure of how they work differently laid out in front of me, I'm too stupid to understand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "168"
} |
Q: PDO MySQL Driver on Mac I have a mac with a custom PHP 5 install that built from about a year ago. I remember it took all Sunday and I had to compile about 20 times to get it right. The MySQL I have is from entropy and was precompiled.
Now I need to get PDO with the MySQL driver working and the driver is not install... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Fastest Hash Algorithm for Text Data I'm trying to choose a hash algorithm for comparing about max 20 different text data.
Which hash is better for these requirements?
*
*Less CPU Consumption
*Small footprint (<=32 bytes)
*Collision is not a big deal
*Can be generated from .NET Framework 2 (shouldn't be a 3rd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Adding javascript to the OnBlur property of an ASP.NET text box control Is there a way to specify some JavaScript to execute on the OnBlur event of an ASP.NET text box? It seems to me like if I add any event handlers to the TextBox object they will just cause postbacks to the server isntead of doing what I want. B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Update Silverlight Datagrid After Response from Server I got a datagrid in Silverlight. I would like
*
*the datagrid (or usercontrol that
contains the datagrid) to post to the
server when the user edit a cell in the gird.
*to signal to the datagrid using some symbol in the cell edited (like a loading-symbol) tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Looking for feedback on a first SAML implementation I've been tasked with designing a very simple SSO (single sign-on) process. My employer has specified that it should be implemented in SAML. I'd like to create messages that are absolutely as simple as possible while confirming to the SAML spec.
I'd be really grat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Unzipping files in PHP with zlib? My web site is hosted at Dreamhost and there they only get zlib installed along with PHP. I couldn't figure out how to unzip files with the commom methods from this extension as described here : http://php.net/zlib
Does anyone knows how can I unzip a .gz or .gzip file with zlib exte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Properly referencing controls in ASP.NET user controls in JavaScript I have an ASP.NET user control that contains a text box control and a button control. This user control will be added to my web-page many times. I need to have a piece of JavaScript that will run whenever the text box changes, and disable the but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Building an assembler I need to build an assembler for a CPU architecture that I've built. The architecture is similar to MIPS, but this is of no importance.
I started using C#, although C++ would be more appropriate. (C# means faster development time for me).
My only problem is that I can't come with a good design ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: What does $$ mean in Javascript? I am looking at some javascript code and it has this in a function:
$$('.CssClass').each(function(x) { .... } )
I get that the intent is to apply the anonymous function to each element with a class of CssClass, but I can't work what the $$ refers to ... and can't google for $$!
Upd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Checking 2-dimensional array (like eight queens puzzle) My problem is very similar to eight queens puzzle.
I've got 2-dimensional array (N x N) that for example, looks like this:
0,0,0,0,1 y
0,0,0,0,0 |
0,0,0,0,0 V
0,0,0,1,0
0,0,0,0,0
x->
I'm checking horizontally, vertically and diagonally for occurrences of 1
\,0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to make warnings persist in visual studio Suppose I have files a.cpp and b.cpp and I get warnings in a.cpp and an error in b.cpp. I fix the error in b.cpp and recompile -- since Visual Studio doesn't have to recompile a.cpp, it doesn't remind me of the warnings it found before.
I'd like to somehow have the warni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: is SFig language syntax efficient and clear (and better than Spring-Framework's XML DSL)? ADDENDUM EDIT:
Have not accepted an answer to this as
there has not been any feedback from
experienced Spring Framework
developers.
I've been working on a replacement DSL to use for Spring-Framework applicationContext.x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are private static and instance variables inherited in C# and why? I have read that private variables in a base class are technically inherited by child classes, but are not accessible.
If this is correct, why do we say they are inherited when presumably they can only be accessed by reflection?
A: Subclassing is ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Streaming audio from server to iPhone I'm looking to stream some audio files I have on my server to an iPhone-client application I'm writing. Some of the audio files can be rather large in size, even after compression. My question is, is there a Cocoa framework that helps me with buffering the audio so it becomes av... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Problems using EnterCriticalSection I need to work with array from several threads, so I use CRITICAL SECTION to give it an exclusive access to the data.
Here is my template:
#include "stdafx.h"
#ifndef SHAREDVECTOR_H
#define SHAREDVECTOR_H
#include <vector>
#include <windows.h>
template<class T>
class SharedVecto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Opinion on example.com/username with Routes I'm setting up a site where users have their own "profile". I'm using routes for neat URLs and I wondered what are the pros/cons to the following:
example.com/:username
Or should I include a static route to filter that it's a profile page request?
example.com/u/:username
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to circumvent using an out parameter in an anonymous method block? The following method does not compile. Visual Studio warns "An out parameter may not be used within an anonymous method". The WithReaderLock(Proc action) method takes a delegate void Proc().
public Boolean TryGetValue(TKey key, out TValue value)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SQL Query: Grouping by an ntext field I have the below query, which basically it retrieves the 5 top most books sold:
select top 5 count(id_book_orddetails) 'books_sold', bk.*
from orderdetails_orddetails ord inner join books_book bk
on ord.id_book_orddetails = bk.id_book
group by id_book, name_book,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SVN (mod_dav) 403 FORBIDDEN OPTION request So I'm trying to setup a subversion server using mod_dav with apache2 but when I try to connect it gives me a 403 FORBIDDEN error. Here's my default virtual host file
NameVirtualHost *:443
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
Serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I get an Icon from a png image? I'm creating an WPF app, so I'm mostly working with the ImageSource class for icons. However, the system tray icon has to be of type System.Drawing.Icon. Is it possible to create such an object from a png image?
I have tried the following:
private static System.Drawing.Icon _pn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Visual Studio and the build for 'Any CPU' option On a recent episode of .NET Rocks (episode 404), they mentioned that a lot of Visual Studio issues could be reduced if you set the platform target to be x86 instead of 'Any CPU'. I did a few Google searches and couldn't find anything about it.
At my company we have a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript onmouseout Sleep? In Javascript, I want my onmouseout event to sleep/pause/wait/ (not sure of the proper terminology here) for three seconds before taking effect. How is that accomplished?
thanks
A: function outfunction(event) {
var that = this; // to be able to use this later.
window.setTimeout(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best/easiest way to create ZIP archive in .NET? Which method do you think is the "best".
*
*Use the System.IO.Packaging namespace?
*Use interop with the Shell?
*Third party library for .NET?
*Interop with open source unmanaged DLL?
[I can target Framework 3.5; best = easiest to design, implement,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: copyplist failed with exit code 71 I have an iPhone app that's shipping (vConqr - you should go and buy it :-) ).
I build the project on several different machines, including a colleague's, and it's been working fine.
However, just recently, on my second dev machine my build fails every time with the error:
/De... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I deep clone a c# object not tagged ICloneable or Serializable? I have an object not written by myself that I need to clone in memory. The object is not tagged ICloneable or Serializable so deep cloning through the interface or serialization will not work. Is there anyway to deep clone this object? A non-safe wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Trying to store XML content into SQL Server 2005 fails (encoding problem) Folks,
I have a webservice that returns data in ISO-8859-1 encoding - since it's not mine, I can't change that :-(
For auditing purposes, I'd like to store the resulting XML from these calls into a SQL Server 2005 table, in which I have a fiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: div by iframe over I want put a div by iframe over a video containing an active player
is it possible ?
A: If the video you are talking about is in flash, so long as you set wmode=transparent in the flash embed code, you can place HTML on top of the flash content using css z-index.
A: Actually you may want to use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best image downscaling algorithm (quality-wise)? I want to find out which algorithm is the best that can be used for downsizing a raster picture. With best I mean the one that gives the nicest-looking results. I know of bicubic, but is there something better yet? For example, I've heard from some people ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "93"
} |
Q: PHP and MySQL to design map search site I have a project to designing a website to search Zip codes on a digital map.
Somebody advised me to use PHP with postgreSQL or MySQL.
My professor wants me to tell him why I chose this for a mapping site.
The question is... Is there an expertise web language for GIS site ??
W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/384996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why do you use typedef when declaring an enum in C++? I haven't written any C++ in years and now I'm trying to get back into it. I then ran across this and thought about giving up:
typedef enum TokenType
{
blah1 = 0x00000000,
blah2 = 0X01000000,
blah3 = 0X02000000
} TokenType;
What is this? Why is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "215"
} |
Q: Is it possible to save only the modified parts of a property list object? It is possible to write the whole dictionary to a property list object, but I would like to make my application more efficient by only writing out the parts of the property list that have been modified.
Say I have a property list with several ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are there cases where a "finally" construct would be useful in C++? Bjarne Stroustrup writes in his C++ Style and Technique FAQ, emphasis mine:
Because C++ supports an alternative that is almost always better: The "resource acquisition is initialization" technique (TC++PL3 section 14.4). The basic idea is to repres... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SQL Server equivalent of MySQL's NOW()? I'm a MySQL guy working on a SQL Server project, trying to get a datetime field to show the current time. In MySQL I'd use NOW() but it isn't accepting that.
INSERT INTO timelog (datetime_filed) VALUES (NOW())
A: getdate()
is the direct equivalent, but you should always u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "222"
} |
Q: Circular matching. PHP / MySql Hi I need some help with the following scenario in php. I have a db with users every user has an ID, have_card and want_card. I know how to make a direct match (one user trades with another user). But if there is no direct match but there is a circular swap like:
User #1 has card A wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I do lots of processing without gobbling cpu? I know the question title isn't the best. Let me explain.
I do a TON of text processing which converts natural language to xml. These text files get uploaded fairly fast and thrown into a queue. From there they are pulled one-by-one into a background worker that c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: String munging in Objective-C with NSAttributedString I have an NSAttributedString s and an integer i and I'd like a function that takes s and i and returns a new NSAttributedString that has a (stringified) i prepended to s.
It looks like some combination of -stringWithFormat:, -initWithString:, and -insertAttribute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to protect/monitor your site from crawling by malicious user Situation:
*
*Site with content protected by username/password (not all controlled since they can be trial/test users)
*a normal search engine can't get at it because of username/password restrictions
*a malicious user can still login and pass the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VS.NET 2003 and VS.NET 2008 co-existence I was in the process of converting a VS2003 project (.NET 1.1) to VS2008 (.NET 2.0) and had converted all the C# (easy enough). I got a new machine and did the C# conversion on VS2008. We had a C++ layer that wasn't working under .NET 2.0 because of some memory protection iss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What was the most stupid bug you could not find for a long time? I was working on a project that missbehaved, for some reasons no exception was thrown even when it should have. Deep down I have found this kind of error handling:
try {
m.invoke(parentObject, paramObj);
} catch (IllegalArgumentException e) {
n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Tracking memory usage in a tomcat webapp Are there any good tools available to track memory usage In a tomcat java webapp? I'm looking for something that can give a breakdown by class or package.
Thanks, J
A: I use the Netbeans IDE and it is able to profile any type of Java project including webapps. Once you have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Samba shared drive won't auto-authenticate at startup I have a samba network share on a FreeBSD box that I use for development.
I have it set up as a shared drive on my WinXP box, and it works fine.
However, if I reboot the xp box, the shared drive will not be accessible until I click on it and enter the password, e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I parse @import stylesheets with Javascript I am trying to read CSS selectors in my stylesheets with the document.styleSheets array. It works fine with <link> and <style> tags, but when I use @import inside a <style> it doesn't show up in the array - only as a cssRule (style is "Undefined" in Safari 3 and FF ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Parse csv data which contains commas inside of quote-enclosed text I'm building an app that pulls data in from an excel .csv file and applying various levels of formatting, moving and mapping. Most everything is figured out except for one hitch with cleaning the data. Here is an example of the data from Excel:
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Oslo's Intellipad: How to set up the 3 column MGrammarMode? I've been using Oslo for MSchema. Works great. I can write an M Schema for a database design and it generates T-SQL to build the entire db with PKs, FKs, checks for integrity etc. I've set up a .bat file to compile the .m into .mx then load it into the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: MSDataSetGenerator xml documentation warnings I code with treat warnings as errors turned on and XML Documentation turned on. I have a Typed Dataset which generates 500+ warnings which are treated as errors. I can not control this code as it is auto generated by MSDataSetGenerator.
Is their a way to turn off warning... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Referencing private .net assemblies in a subfolder In Visual Studio 2008 I can add a project reference and set Copy Local property to true. As result the referenced assembly will be copied to the same folder the main assembly is build to.
But what if I want to have all referenced assemblies in a subfolder near the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: proper/best type for storing latitude and longitude In a system level programming language like C, C++ or D, what is the best type/encoding for storing latitude and longitude?
The options I see are:
*
*IEEE-754 FP as degrees or radians
*degrees or radians stored as a fixed point value in an 32 or 64 bit int
*ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: Applying a single style to multiple controls (and tweaking each style) I have a WPF application that is using a custom style. In it I have a set of buttons that each have a custom background image. For each button, I'm supplying a normal and a mouse down image. Is there a simple way to do this with a single style... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: A piece of PHP code I'm not so sure about I have here a piece of PHP code that deletes a directory and all files in it if present.
However, I'm not too sure about it, it looks to me like it'll delete all sub-maps too and then files in those and so on...
I basically want to give and optional true/false parameter to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I retrofit a GUI to an existing C program? I've been working on a project of porting an old solaris CL program to run on Linux, and barring some unrelated hardware issues, that's finished. Now I want a GUI for it, so the user can choose among the various options with drop downs and check boxes, as well as som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Generic Data Access functions What is the best way to code the following generic data access functions (ADO.NET, C# or VB, SQLServer or OLEDB)
*
*Execute SQL on a connection
*Open a DataReader
*Open a DataSet (any ideas on this one?)
Such that I can call these functions from anywhere in my program. I'm not i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trouble with ActionScript 3, not working, and i have no idea why, flash CS4 I'm very new to ActionScript 3, and I've followed this toturial on adobe TV. But I don't get it to work. The thing is that I want the box to move left/right when I click the buttons, but nothing happens.
You can download the .fla file here:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why have MX records? I previously asked a question regarding MX records (and appreciate the thoughtful answers I received from SO'ers). Now that that problem is resolved, I want to step back and ask why there are MX records in the first place.
Specifically: Why does SMTP get special treatment by DNS?
We don't have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Limit Access To a Spring MVC Controller -- N sessions at a time We've licensed a commercial product (product not important in this context), which is limited by the number of concurrent users. Users access this product by going through a Spring Controller.
We have N licenses for this product, and if N+1 users acces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: No PHP for large projects? Why not? I've read a few posts where people have stated (not suggested, not discussed, not offered) that PHP should not be used for large projects.
Being a primarily PHP developer, I ask two questions:
*
*What defines a "large project"?
*Why not? What are the pitfalls of using PHP
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Best practice to fill an object hierarchy from a flat database resultset? This is a frequently recurring problem of generating a tree from a flat list. I have caught myself relying on the two-level method described below.
I would appreciate anyone suggesting a better approach that could be easily extended to multip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What measurements to you use to improve your processes? This question was originally asking 'What KPIs do you use to in a software development organisation'. Unfortunately it seems that KPI is a four-letter word, and the immediate assumption is that KPIs are always mis-used (maybe they are?).
So, I've hopefully impr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Return Json to jQuery with ASP.NET MVC I have this code..
Models.Person p = new testmvc.Models.Person { Firstname = "yongeks", Lastname = "ucab" };
Models.Person p2 = new testmvc.Models.Person { Firstname = "lyn", Lastname = "torreon" };
string q = JavaScriptConvert.SerializeObject(new Stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows Gadgets & Jquery I am creating a Vista Gadget and I haven't been able to get JQuery to work. I have tried a few very simple calls like this:
$(function() {
$('a').click(function() {
$('#box').html("test");
});
});
I know you can use JavaScript so it doesn't make much sense to me why yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: When I run "who am i" at a UNIX prompt, what does "tty" and "ttys" stand for? I know this is a simple question, I'm just curious.
A: Teletype.
When Unix was first developed, built-in displays for computers were quite rare. I/O was accomplished by sending characters to another device. The teletype was the oldest and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using Objects across methods
Edit again:
I think I get it now. All I need to do then is use the current class colon the class I want to be able to access? Person : Student, or person : teacher
Is that correct?
I'm currently trying to learn the ins and outs of object oriented programming. Currently I have a ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does the $SHELL command do besides output the shell when I type it at the command prompt? I know this is supposed to output what kind of shell I'm using, which I think it does, because it outputs "bash-3.2", but it doesn't quite do that, because it actually changes my prompt to "bash-3.2$". What else is going ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best toolkit for new Web application (odd requirements) I need to write a new application, and have no experience with any new technology, framework, or language. Here are the requirements:
*
*HTML front end (best if it's cross-browser friendly)
*Web deployable, but also ideally want to be able to install as sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I send a custom header with urllib2 in a HTTP Request? I want to send a custom "Accept" header in my request when using urllib2.urlopen(..). How do I do that?
A: Beside the other solutions mentioned already, you could use add_header method.
So the example provided py @pantsgolem will be:
import urllib2
req... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: JQuery UI datepicker in Asp.Net MVC I have tried to use some of the widgets in JQuery UI on an Asp.Net MVC site without luck.
For example the basic datepicker from jQuery UI - functional demos.
I have created a simple MVC project and added the script references in Site.Master like this:
<script src="../../Scripts/jq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Slow SelectSingleNode I have a simple structured XML file like this:
<ttest ID="ttest00001", NickName="map00001"/>
<ttest ID="ttest00002", NickName="map00002"/>
<ttest ID="ttest00003", NickName="map00003"/>
<ttest ID="ttest00004", NickName="map00004"/>
.....
This xml file can be around 2.5MB.
In my source code I wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MYSQL - Cant connect to MYSQL server on 'localhost' (10061) Ive install wamp server on my PC(it has no internet or intranet connection, Windows XP -OS).
But when I access MYSQL this error popup.
Can you give any idea on how can i resolve this error.
thank you very much.
Cant connect to MYSQL server on 'localhost' (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: C++ Overloading Operator < with an int parameter (comparing to a type that isn't guaranteed to be an int) I want to overload operators < and > to allow the searching of an int value inside a BST (which ain't designed to store ints but rather words).
For those who are wondering why is this overload being done on the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to do a custom asp.net routing (hardcoding the controller) I'm trying to create a route for the following urls:
www.mysite.com/user/username
www.mysite.com/user/username/pictures
I tried doing that with the following code:
routes.MapRoute(
"UserProfile",
"user/{sn}/{action}",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Efficient maths algorithm to calculate intersections For a game I am developing I need an algorithm that can calculate intersections. I have solved the problem, but the way I have done it is really nasty and I am hoping someone here might have a more elegant solution.
A pair of points represent the end points of a l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: PHP date issues with daylight saving I've got a very strange bug cropping up in some PHP code I've got. The page is managing student enrolments in courses. On the page is a table of the student's courses, and each row has a number of dates: when they enrolled, when they completed, when they passed the assessment and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: dropping trailing '.0' from floats I'm looking for a way to convert numbers to string format, dropping any redundant '.0'
The input data is a mix of floats and strings. Desired output:
0 --> '0'
0.0 --> '0'
0.1 --> '0.1'
1.0 --> '1'
I've come up with the following generator expression, but I wonder if there's a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: What setting in vim counteracts smartindent's refusal to indent # comments in shell scripts? I recently started using vim 7 (previously vim 6) and the smartindent setting. For the most part, it works well, though I'm so used to typing a tab after an open brace that it is almost counter-productive.
However, there is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Java/JSP Image upload. Where to keep these image files? I am writing a simple application that lets a user upload images. After the upload, the user can tag them or remove them.
I figured out how to upload the files and save them once the files are uploaded. I am keeping tracking of a global path where images are ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to use PHP for large projects? The question has been asked: No PHP for large projects? Why not? It's a recurring theme and PHP developers--with some cause--are forced to defend PHP.
All of these questions are valid and there have been some responses but this got me thinking. Based on the principle that you can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Is there a way to access a cache or session from a static method? How would you access the cache from a jQuery ajax call?
I'm using jquery to do some data verification and quick data access. I have a static web-method that jquery is calling via json to return a value. I don't want to call to the database everytime ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Intermediate ado.net dataservice in Silverlight We're using Silverlight 2 with ADO.NET dataservices and to test the silverlight page we used a service in the same domain which works fine. We then decided to try use a proxy or intermediate service (sitting in the same domain as the Silverlight app) which basically ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the different types of encapsulation? What are the different types of encapsulation?
Am I right in thinking this basically refers to central OO concepts such as Abstraction, Polymorphism and Inheritance?
My understanding of encapsulation is that it is a method of hiding data / functionality, but I never rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What requests do browsers' "F5" and "Ctrl + F5" refreshes generate? Is there a standard for what actions F5 and Ctrl+F5 trigger in web browsers?
I once did experiment in IE6 and Firefox 2.x. The F5 refresh would trigger a HTTP request sent to the server with an If-Modified-Since header, while Ctrl+F5 would not have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "412"
} |
Q: User Breakpoint from nowhere I have some code in MS VC++ 6.0 that I am debugging. For some reason, at this certain point where I am trying to delete some dynamically allocated memory, it breaks and I get a pop up message box saying "User Breakpoint called from code at blah blah".. then the Disassembly window pops u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to kill off a pending APM operation If you have a pending operation, eg
stream.BeginRead(_buffer, 0, _buffer.Length, _asyncCallbackRead, this);
and you close the stream provider, eg
serialPort.Close();
you unsurprisingly cause an exception.
Is there an preferred method by which one might cancel a pending APM ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Python 3 porting workflow? I have a small project I want to try porting to Python 3 - how do I go about this?
I have made made the code run without warnings using python2.6 -3 (mostly removing .has_key() calls), but I am not sure of the best way to use the 2to3 tool.
Use the 2to3 tool to convert this source code to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/385394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.