text stringlengths 8 267k | meta dict |
|---|---|
Q: MVC and OpenID Redirection Problems When I get AuthenticationStatus.Authenticated (DotNetOpenId library)
response from myopenid provider, i'd like to redirect user from login page
to another one using MVC Redirect(myurl). But unfortunately, instead of
getting to myurl, user is redirected to empty page:
myurl?token=A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Spring tag I have
<bean id="dao" class="......">
<property name="foo">
<props>
<prop key="me">Homer</prop>
<props>
<property>
</bean>
I want to use my current properties file, name-value pair, to change "Homer"
I cannot figure it out...
A: Use the PropertyPlacehold... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: gartrip calibration file format/generation I need to generate calibration files* for the Gartrip program. Does anyone known where I can find the file format it uses or, better yet, code for generating them?
I'm not to picky on the language.
If no one point me at anything better, I'm working on getting some examples ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Crawler/parser for Xapian I would like to implement a search engine which should crawl a set of web sites, extract specific information from the pages and create full-text index of that specific information.
It seems to me that Xapian could be a good choice for the search engine library.
What are the options for a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: rm not freeing diskspace I've rm'ed a 2.5gb log file - but it doesn't seemed to have freed any space.
I did:
rm /opt/tomcat/logs/catalina.out
then this:
df -hT
and df reported my /opt mount still at 100% used.
Any suggestions?
A: Restarting Tomcat will release any hold Tomcat has on the file. However, to avoid re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: "Atomically" changing a System.Threading.Timer Let's say I have an existing System.Threading.Timer instance and I'd like to call Change on it to push it's firing time back:
var timer = new Timer(DelayCallback, null, 10000, Timeout.Infinite);
// ... (sometime later but before DelayCallback has executed)
timer.Change(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Where can I find an example unzipper using zlib? I'm looking for a bare bones simple example C app for unpacking a zip file using zlib. It must support fairly new version of .zip and must have source right down to the zlib calls.
A: The zlib-bin source package on my system (linux) has some example programs called "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I wake up my Windows monitors once turned off by power settings? So my Vista machine is set to turn off it's monitors after 10 minutes. (Note : machine is not suspended, or hibernated)
I have a .Net application running, that needs to "wake" the system at a specified time. As a human, you just move the mouse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Forwarding only on a single port 8080 to localhost (windows) possible? I know how to set up a local webserver using xampp on windows... I enter my alias and target on the hosts file (c:\windows\system32\drivers\etc\hosts) and then add a respective entry on my apache vhosts config file. This way, assuming that my web... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Connect from C# to a digital scale I'm trying to figure out a method of connecting from C# code to a digital scale. The particular scale is an Ohaus SP202 digital scale which comes with a USB connection. I would like to read the weight measured on the scale programmatically. I don't have the scale yet, I'm just doi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: 'Desirable Characteristics of Design' in code complete Here are the points that seem vague to me :
"High-Fan in" : have a high number of classes that use a given class; good use of utility classes at the lower levels.
"Low fan-out" : don't use too much other classes in a given class.
Does that mean you can't even ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is the Table in Use? How to figure out if a table is in use in SQL (on any type database)? if somebody is already using it, or have it "open" then its in use.
A: Generally speaking, the correct way to find out whether someone else is using the table and will prevent you from doing whatever you want is to try doing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: simple linq to sql has no supported translation to SQL i have this in my BlogRepository
public IQueryable<Subnus.MVC.Data.Model.Post> GetPosts()
{
var query = from p in db.Posts
let categories = GetCategoriesByPostId(p.PostId)
let comments = GetCommentsByPostId(p.P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Events Overwritten in ASP.AJAX on IE7 Greetings!
I'm calling a Web service from Javascript when a user clicks on a link. I need to get the coordinates where the user clicked so that I can display a DIV in an appropriate location. My client-side script looks like the following:
var g_event;
function DoWork(event, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a centralized list of country names that can be used for web drop down boxes (and validation) There are examples online with web select boxes that have a huge list of countries and that probably will be good enough for me to use. However, by Murphy's law, there's bound to be some random country that someone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: ASP.NET application exhibits strange behaviour through firewall This problem has been solved thanks to your suggestions. See the bottom for details. Thanks very much for your help!
Our ASP.NET website is accessed from several specific and highly secure international locations. It has been operating fine, but we have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: I'm looking for a way to search the values in a .net hashtable using wildcards I've got a whole host of values stored in a .net 2.0 hashtable. What I would really like to find is a way to, essentially, do a SQL select statement on the table.
Meaning, I'd like to get a list of keys whose associated values match a v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fast Entity Grouping (by location) algorithm I'm dealing with a large group of entities that store locations. They are displayed on a map. I'm trying to come up with an efficient way to group near located entities into one entity when viewed from a higher location. So, for example, if you are very high, when looking... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: NHibernate Eager Fetching Over Multiple Levels I have a 3-leveled hierarchy of entities: Customer-Order-Line, which I would like to retrieve in entirety for a given customer, using ISession.Get(id). I have the following XML fragments:
customer.hbm.xml:
<bag name="Orders" cascade="all-delete-orphan" inverse="false" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Float or Double Special Value I have double (or float) variables that might be "empty", as in holding no valid value. How can I represent this condition with the built in types float and double?
One option would be a wrapper that has a float and a boolean, but that can´t work, as my libraries have containers that st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the best way to get config variables into a class in php 5? This is for my DB class. I am new to OO, been a procedural lad for some time, so I'm still a bit murky.
My first idea was using a bunch of setter functions/methods.. but after writing a whole bunch, I thought about using PHP's define function, like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Range describes a group of non-adjacent cells My app needs to build a buffer from all the selected cells on a worksheet. I have it working correctly when the selected cells are all one contiguous group, but if the user selects a group of cells, then holds down the control key and selects other cells that are not co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: General Help on Visual Studio using Common Controls I know this sounds very basic but I just started with visual studio and I am looking for instructions on the basic control functions. In general, what the different options do. I am just trying to get familiar with some of the functions and I am not completely un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ping a site in ruby? What replacements are available for pinging an ip address in Ruby? The stdlib "ping" library seems to be pretty limited in functionality. I'm not interested in rolling my own code here. Are there good gems available? Should I just suck it up and live with it?
(I'm coding in Ruby 1.8.6 on Linux)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Artificial Neural Network Question Generally speaking what do you get out of extending an artificial neural net by adding more nodes to a hidden layer or more hidden layers?
Does it allow for more precision in the mapping, or does it allow for more subtlety in the relationships it can identify, or something else?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Threadsafe UITableView I'm using a UITableView to show some data from an array. This array can be changed at any time by other threads. (I believe that whether the array is mutable, or just replaced entirely, doesn't make a difference.) Access to the array itself is threadsafe.
What's the proper way to ensure thread... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is Yacc still used in the industry? The software base I am developing for uses a signficant amount of yacc which I don't need to deal with. Some times I think it would be helpful in understanding some problems I find but most of the time I can get away with my complete ignorance of yacc.
My question are there enough... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Ruby gets function won't accept empty line more than once I'm trying to write a simple ruby function that can prompt the user for a value and if the user presses ENTER by itself, then a default value is used.
In the following example, the first call to the Prompt function can be handled by pressing ENTER by itself a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MVC Javascript error I have configured my default page to be say "abcd.aspx" and is under ~/View//abcd.aspx and I have my javascripts under ~/Contents/Scripts/.js
For some reason, only "../Content/Scripts/.js" works for including the js file on the page and "~/Contents/Scripts/.js" does not. This works only when i a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ajax GridView - multiple select support I am looking for a Ajax Grid control that can be used easily for binding data using js methods. I have tried using the GridView in AjaxDataControls, and it's okay - but I am also looking for multiple select support in the GridView. Any pointers would be much appreciated.
A: H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MVC: How to Route Search Term with . (Period) at the end I get a 404 response from .Net MVC when I try to make a request where my search term ends with a . (period). This is the route that I'm using:
routes.MapRoute(
"Json",
"Remote.mvc/{action}/{searchTerm}/{count}",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Capturing heavyweight java components? I have a desktop application having heavyweight components (JxBrowser) in a JFrame. How can I make a snapshot from the GUI and save it to for example a png file?
Note: The method using Graphics2d and Component.paint()/paintAll()/print/printAll works only for lightweight compon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: using "onclick" with radio button in appengine Here's a code snippet. . .
<form name="FinalAccept" method="get"><br>
<input type="radio" name="YesNo" value="Yes" onclick="/accept"> Yes<br>
<input type="radio" name="YesNo" value="No" onclick="/accept"> No<br>
Clearly, what I'm trying to do is call the routine link... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Recompile with -fPIC option, but the option is already in the makefile I get this error when I do the make:
relocation R_X86_64_32 against `vtable for Torch::MemoryDataSet' can not be used
when making a shared object; recompile with -fPIC
It says that I should recompile with the -fPIC option. I did that, adding
t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: phpmyadmin displays japanese characters as a bunch of question marks even if i set charset and collation to utf8_unicode_ci okee, I followed all instructions I could find here
and i could display all kinds of multilingual characters on my pages...
The problem is in phpmyadmin the japanese characters are replaced by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reverse Engineering Crystal Reports Definition Files We're creating a metamodel of our report definitions within our central metadata repository. We know how to "harvest" SSRS reports since they are XML. IS there any easy way to do the same for Crystal Reports. We're interested in getting to anything CR understan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Maintain scroll position of treeview How can I maintain the scroll position of a treeview control in .NET application? For example, I have a treeview control and go through a process of adding various nodes to it tacking them on to the bottom. During this process, I can scroll through the treeview and view different... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: General Purpose Filter As You Type (aka typeahead, Incremental find, autocomplete) is it out there? Background
Lately I've become a fanatic that everything I type while working on a computer should be compatible with "DRY". If there's anything I have to type more than once in any context, I want some kind of user-aw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I have one XML Schema (XSD) include another XML-Schema? I currently have two XSD schemes and one is a "light" version of the other. Right now I have everything in the "light" version repeated in the "complete" schema, but this becomes a pain when I need to make a change, and it goes against the DRY principle any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Pitfalls of accessing a webserver on 127.0.0.1 from js with a public site I'm thinking about exploring the idea of having our client software run as a service on a high port and listen for simple http GET requests from 127.0.0.1. The theory is that I would be able to access this service via js from a web page that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Equivalent of varchar(max) in MySQL? What is the equivalent of varchar(max) in MySQL?
A: TLDR; MySql does not have an equivalent concept of varchar(max), this is a MS SQL Server feature.
What is VARCHAR(max)?
varchar(max) is a feature of Microsoft SQL Server.
The amount of data that a column could store in Microsof... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "216"
} |
Q: Useful regular expression tutorial Is there a good tutorial on using regular expressions, especially with grep? I tried googling for some, but most tutorials are too basic and cover things I already know.
A: Regular-expressions.info has a tutorial section. This site is pretty comprehensive for regular expressions i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How costly is boxing when explicitly implementing an interface The current guidlelines for explicit member implementation recommend:
*
*Using explicit members to approximate private interface implementations. If you need to implement an interface for only infrastructure reasons and you never expect developers to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Development Cost of Procedural Programming vs. OOP? I come from a fairly strong OO background, the benefits of OOD & OOP are second nature to me, but recently I've found myself in a development shop tied to a procedural programming habits. The implementation language has some OOP features, they are not used in optim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How can I get a header that will work with IIS 6, 7 and Apache? I am trying to get a header that will work with Apache, IIS 6, and IIS 7. I won't go into the reason for that here. Let's just say that it's not as easy as I thought it would be :-)
Anyway, the problem has something to do with NPH. In our code (origi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VB.NET Extension Methods when I apply the tag above my methods I get the error
Type System.Runtime.CompilerServices.Extension is not defined.
Here is my sample
<System.Runtime.CompilerServices.Extension()> _
Public Sub test()
End Sub
Where am I going wrong?
Edit ~ Straight from the MSDN Article here, the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: BizSpark deployment license hosting I have signed up with BizSpark and it is a great deal, especially for people like myself in perennial startup mode. As part of BizSpark you get 3 year deployment licenses for software such as Windows Server and SQL Server. Is there any dedicated hosting companies that will allow y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Why and how do Databases use a single file to store all data? Many databases I've encountered (Like SQL Server) use a single file to store the entire database. This seems to be a pretty common approach. What are the advantages to storing the entire database in a single file, as opposed to breaking up the data into ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Are flat file databases any good? Informed options needed about the merits of flat file database. I'm considering using a flat file database scheme to manage data for a custom blog. It would be deployed on Linux OS variant and written in Java.
What are the possible negatives or positives regarding performance fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Are ActiveRecord/nHibernate SQL generation "safe"? I'm doing this system Stacked and I am creating the search function. And in that process it occurs to me that maybe AR/nHibernate Expression.Like (and siblings) might maybe not be 100% "safe" in that you can create stuff like;
"\r\ndrop database xxx;---" and similar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Parsing command line arguments in a unicode C++ application How can I parse integers passed to an application as command line arguments if the app is unicode?
Unicode apps have a main like this:
int _tmain(int argc, _TCHAR* argv[])
argv[?] is a wchar_t*. That means i can't use atoi. How can I convert it to an integ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: how to control datagridview cursor movement in C# I'd like my datagridview cursor to move right to the next column instead of moving to the next row after entering data to a cell.
I've attempted to take control of the cursor by capturing the keys via dataGridView1_KeyDown event but this does not prevent the cursor ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Check variable type in C++ So I am currently learning C++ and decided to make a program that tests my skills I have learned so far. Now in my code I want to check if the value that the user enters is a double, if it is not a double I will put a if loop and ask them to reenter it. The problem I have is how do I go ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Detect Drag'n'Drop file in WPF? Is it possible to have a WPF window/element detect the drag'n'dropping of a file from windows explorer in C# .Net 3.5? I've found solutions for WinForms, but none for WPF.
A: Try the following :
private void MessageTextBox_Drop(object sender, DragEventArgs e)
{
if (e.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Visual C++ App crashes before main in Release, but runs fine in Debug When in release it crashes with an unhandled exception: std::length error.
The call stack looks like this:
msvcr90.dll!__set_flsgetvalue() Line 256 + 0xc bytes C
msvcr90.dll!__set_flsgetvalue() Line 256 + 0xc bytes C
msvcr90.dll!_getptd_noex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does this linq query run on every iteration of the for-each loop? In another question on SO I answered with code like the one below and got a comment that the LINQ-query probably was evaluated in every iteration of the for/each. Is that true?
I know that LINQ-querys does not executes before its items is evaluated so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: F# XML parsing this c# code is probably not the most efficient but gets what I want done.
How do I accomplish the same thing in F# code?
string xml = " <EmailList> " +
" <Email>test@email.com</Email> " +
" <Email>test2@email.com</Email> " +
" </EmailList> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Encode URL in JavaScript How do you safely encode a URL using JavaScript such that it can be put into a GET string?
var myUrl = "http://example.com/index.html?param=1&anotherParam=2";
var myOtherUrl = "http://example.com/index.html?url=" + myUrl;
I assume that you need to encode the myUrl variable on that second li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2809"
} |
Q: What is the purpose of LongLength for .Net Arrays? What is the purpose of the LongLength property for arrays in .Net. Using a standard integer for length, you could accommodate up to 2 billion indices. Are there really people using .Net to maintain a single array with more the 2 billion elements. Even if each ele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Where is the Location of Microsoft.Sharepoint.dll I just installed the SharePoint SDK on my machine, but I can't seem to find the location of Microsoft.Sharepoint.dll so I can add a reference to it.
It's not in the GAC or C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\ and a search com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Merge Multiple SVN Projects I'm administering a svn repo for a project where the source wasn't imported with a single top level directory. As a result, there are about 15 separate 'projects' instead of one. How can I merge these into one folder while maintaining the change history?
*hint: svn move doesn't work in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java Protected Access Not Working In java, there's three levels of access:
*
*Public - Open to the world
*Private - Open only to the class
*Protected - Open only to the class and its subclasses (inheritance).
So why does the java compiler allow this to happen?
TestBlah.java:
public class TestBlah {
publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best Windows Server 2008 configuration for a .NET development environment? I want to give Windows Server 2008 a try as a .NET developer and a database environment.
I was wondering which configuration would be the most appropriate for the server in terms of:
*
*Services: Which ones are unnecessary and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a graceful way to stop svnserve -d I'm looking for something like:
svnserve stop
A: You can use the start-stop-daemon program to do it :
/sbin/start-stop-daemon --stop --exec /usr/bin/svnserve
To start it :
/sbin/start-stop-daemon --start --chuid svn:svn --exec /usr/bin/svnserve -- -d -r /var/svn
Of c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: XML/Parser.php installation I recently signed up to shared web hosting with godaddy using Linux and PHP 5. I want to work with multiple RSS feeds. I previously had this all functioning under Apache, however, the host supplied the PEAR installation. Now I have to do this myself and I am in unfamiliar territory.I in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why are my visual studio .obj files are massive in size compared to the output .exe? As a background, I am a developer of an opensource project, a c++ library called openframeworks, that is a wrapper for different libraries, like opengl, quicktime, freeImage, etc. In the next release, we've added a c++ library call... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why is CharInSet faster than Case statement? I'm perplexed. At CodeRage today, Marco Cantu said that CharInSet was slow and I should try a Case statement instead. I did so in my parser and then checked with AQTime what the speedup was. I found the Case statement to be much slower.
4,894,539 executions of:
while not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What's Up with O(1)? I have been noticing some very strange usage of O(1) in discussion of algorithms involving hashing and types of search, often in the context of using a dictionary type provided by the language system, or using dictionary or hash-array types used using array-index notation.
Basically, O(1) means ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Detecting that a DB Connection is in error As part of our unit tests, we restore a blank database when the tests start . The unit tests then perform their tests by calling web services (hosted in the Visual Studio ASP.NET host).
This works fine for us the first time the unit tests are run, however if they are re-ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where is the Visual Studio 2008 Crash Log? I have Visual Studio 2008 with SP1 installed and it is crashing when I'm using lambda expressions in the Moq Framework.
At first I thought the problem was Resharper...but now that I have uninstalled it, VS 2008 still crashes. I'm able to replicate the issue every time.
I'm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Check whether an array is a subset of another Any idea on how to check whether that list is a subset of another?
Specifically, I have
List<double> t1 = new List<double> { 1, 3, 5 };
List<double> t2 = new List<double> { 1, 5 };
How to check that t2 is a subset of t1, using LINQ?
A: Use HashSet instead of List if wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "165"
} |
Q: Accessing the Response object from my WCF service In my WCF service class which is in the same project as my WebSite I inherit from System.Web.UI.Page so that I have access to the Page.Response object but when I use it I get the error:
"Response is not available in this context."
I want to save to a file the results... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: survey results in sharepoint how do i get a list of user that have completed or not completed or not responded to a survey.
so i have a survey, lets say "survey A". in this survey i have a list of people or groups that must fill the survey. sharepoint already gives us a list of respondents, but i want to make a lis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Access to multiple data sources using Oracle Brio Trying to build a dashboard using Oracle's Brio. I have to access 6 different databases to grab the same type of data, aggregate it and display it. Except that when I do it, Brio grabs the data from the first source just fine. When I grab the data from the second ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get IIS6 to serve JSON files (inc. POST,GET)? By default, IIS6 does not serve .json (no wildcard MIME type).
Therefore a 404 not found is thrown. I then add a new MIME type (.json, text/plain or application/x-javascript or application/json) which works fine.
However, when you then add a new mapping (Home Directory -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Optimize feed fetching I'm working on a site now that have to fetch users feeds. But how can I best optimize fetching if I have a database with, lets say, 300 feeds. I'm going to set up a cron-job to which fetches the feeds, but should I do it like 5 every second minute or something?
Any ideas on how to do this the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Starting process in new Terminal window on Mac On Windows I can do CreateProcess(..., CREATE_NEW_CONSOLE, ...) and my child process (which is console app, not GUI) will be launched in a new window. What is the easiest way to emulate this on Mac OS?
A: open -a Terminal.app $(which program) gets a new terminal runnin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/332995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C++ class identification question I'll phrase this in the form of an example to make it more clear.
Say I have a vector of animals and I want to go through the array and see if the elements are either dogs or cats?
class Dog: public Animal{/*...*/};
class Cat: public Animal{/*...*/};
int main()
{
vector<Animal*> st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Open source or free financial analysis programs/libraries I'm looking for something containing similar functions to Matlab’s financial and financial derivatives toolbox but don’t have the cash to spend on matlab. I would appreciate any info on free or open source libraries or programs that will let me easily calcula... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is this safe? - NUnit base class opens and rollsback a TransactionScope I was thinking it would be nice to create a base class for NUnit test fixtures that opens a TransactionScope during the SetUp phase, then rolls back the transaction during tear down.
Something like this:
public abstract class TestFixtureBase... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Use of threads in C++ Can you tell me how can I use threads in C++ programs, and how can I compile it as it will be multithreaded? Can you tell me some good site where I can start from root?
Thanks
A: For Unix/Linux/BSD, there's pthread library: tutorial.
I guess there are equivalent in Win32 API.
*
*Process an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Regarding Passing Many Parameters I have around 8-9 parameters to pass in a function which returns an array. I would like to know that its better to pass those parameters directly in the function or pass an array instead? Which will be a better way and why?
A: Pass them individually, because:
*
*that is the type... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I use frozen Capistrano? Backstory
I'm on Rails 2.1 and need to freeze the Capistrano gem to my vendor folder (as my host has broken their cap gem dependencies and I want to make myself as independent as possible).
On my local windows machine I've put the following my environment.rb
config.gem "capistrano", :... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a UPnP Library for .NET (C# or VB.NET)? I'm working on a P2P application, and I need to get it to communicate through NAT Routers / Firewalls using UPnP. However, it doesn't seem that the .NET Framework includes support for UPnP.
Is there a UPnP Library for .NET? C# or VB.NET?
UPDATE: I have since found the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Preventing a page to be shown outside a iframe I have a page which work like a navigation and a iframe in this page which show the content.
Now there are some situation when the inner page is directly shown in the browser.
eg: if somebody types the inner page's url in the browser address bar, the page is displayed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Common C# source code for Windows and Windows Mobile I have a goal to build an application with UI that would run on both Windows Mobile and "normal" desktop Windows. The priority is for it to "look good" under Windows Mobile, and for desktop Windows it is OK if it distorted. Before I invest days trying, I would lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Integer (representing a sequence of bits) reinterpretation as Character Array in Python I've written some C code that I would like to port to python, as I feel python is a better 'concept' language.
In my C code, I use memory reinterpretation to achieve my goals, for example:
sizeof(int) is 4 byte
sizeof(char) is 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Build Tar file from directory in PHP without exec/passthru So I have a client who's current host does not allow me to use tar via exec()/passthru()/ect and I need to backup the site periodicly and programmaticly so is there a solution?
This is a linux server.
A: At http://pear.php.net/package/Archive_Tar you can do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: ASP.NET default button I have a master page with a search box and button at the top. This search functionality is taking over the "enter" key for all my web forms that use this master page. That is, if I have a login page that uses this master page and the user enters in their username/password and hits "enter", i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Which Data Mining Algorithm is the best? Long time listener, first time caller.
I'm a full time SE during the day and a full time data mining student at night. I've taken the courses, and heard what our professors think. Now, I come to you - the stackoverflowers, to bring out the real truth.
What is your favorite ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: svnserve with LDAP I would like to know how to setup an SVN repository with LDAP authentication.
I do not want to use Apache DAV though.
A: Since it took me some time to find the pieces to do this, I wanted to post how I did this on a RHEL5 server:
*
*install CollabNet rpms (client, server, and extras).
*run /o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Java: How to pass byte[] by reference? You can do it in .NET by using the keyword "ref". Is there any way to do so in Java?
A: Java uses pass by value for method arguments.
*
*Primitives (int, boolean, etc.) are special cases in Java.. not objects per se. In this case, a copy of the primitive (argument) is pass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: how to set MSBuild VC++ Directories I have a solution of mixed VB.NET and C++ projects. When using Visual Studio 2005 you can set the "Tools->Option->Projects and Solutions->VC++ Directories" to help the compiler find your include files. When building the same solution with MSBuild I don't see how to pass these sett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to bind a GridView to a list of multiple types? I get this error:
System.Reflection.TargetException: Object does not match target type.
when trying to bind a List<IEvent> where an IEvent can be an appointment, a birthday, or a few other calendar related event types.
A: ChanChan,
GridView does not support bindin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: "out of memory" exception in CRecordset when selecting a LONGTEXT column from MySQL I am using CODBCRecordset (a class found on CodeProject) to find a single record in a table with 39 columns. If no record is found then the call to CRecordset::Open is fine. If a record matches the conditions then I get an Out of Mem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reparent non-modal form to existing application I would like to be able to show a non-modal form in an already existing application. At the moment I can do something like:
myform.ShowDialog(handleToApp);
but that will create a modal form parented to the application and what I'm really looking for something that is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a way of making strings file-path safe in c#? My program will take arbitrary strings from the internet and use them for file names. Is there a simple way to remove the bad characters from these strings or do I need to write a custom function for this?
A: If you want to quickly strip out all special charact... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "111"
} |
Q: Filling Datagrid And Sql Query I have 3 tables in database shown below. And I want to make a report just like shown link below. How can I do it with datagrid or datalist? Which one is the best chois? I have tried to do it for a week.
COMPANY: ID_COMPANY, COMPANY_NAME
PRODUCT: ID_PRODUCT, PRODUCT_NAME
PRODUCT_SALE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What type of scope does Haskell use? I'm trying to figure out if Haskell uses dynamic or static scoping.
I realize that, for example, if you define:
let x = 10
then define the function
let square x = x*x
You have 2 different "x's", and does that mean it is dynamically scoped? If not, what scoping does it use, and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: MVC lots of services make the controller constructor very large . i wind up having about 20 different parameters in the constructor of the model class, one for each service? Is this normal or a sign that something is off.
A: I think, categorically, that your controller is interacting with too many services. I've ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/333188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.