text stringlengths 8 267k | meta dict |
|---|---|
Q: LINQ To SQL: Delete entity (by ID) with one query I've been working with LINQ To SQL for a little while now and when it comes to removing an entity from the DB, I've always called the table's .DeleteOnSubmit and passed in the entity. Sometimes I've found myself writing something like:
db.Users.DeleteOnSubmit(db.User... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: glProgramStringARB causing GL_INVALID_OPERATION....or Help with fragment programs I am trying to write a fragment program that will take a texture and clamp the texels between two values. That is, if the min value is say 0.2 and the max value is 0.6, any texel less than 0.2 will become 0, any texel greater than 0.6 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Data not filtering before a join A puzzler from a coworker that I cannot figure out...
update btd.dbo.tblpayroll
set empname = ( select b.Legal_Name
from ( SELECT Legal_Name,
Employee_ID
FROM Com.dbo.Workers
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does my simple fastCGI Perl script fail? I'm not of the Perl world, so some of this is new to me. I'm running Ubuntu Hardy LTS with apache2 and mod_fcgid packages installed. I'd like to get MT4 running under fcgid rather than mod-cgi (it seems to run OK with plain-old CGI).
I can't seem to get even a simple Per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you unzip very large files in python? Using python 2.4 and the built-in ZipFile library, I cannot read very large zip files (greater than 1 or 2 GB) because it wants to store the entire contents of the uncompressed file in memory. Is there another way to do this (either with a third-party library or some oth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How much of a performance difference is there between a Partial Method and overriding a virtual method in a base class? I'm updating my code generator and have a choice between implementing a method stub as a Virtual Method in a base class or a partial method in the generated code. Is there any performance differen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Allowing dangerous query strings I need to be able to allow query strings that contain characters like '<' and '>'. However, putting something like id=mi<ke into the the URL will output an error page saying:
A potentially dangerous Request.QueryString value was detected from the client (id="mi<ke").
If I first url e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C#/Java portability What mainstream frameworks, patterns, and tools would you choose to develop two projects in parallel, one in C#, one in Java, in order to minimize the total effort. (Disregard the obvious cases of interchangeable or equivalent tools, like SCC, Unit Testing, etc. Also assume generic broad RDBMS su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the difference between using IDisposable vs a destructor in C#? When would I implement IDispose on a class as opposed to a destructor? I read this article, but I'm still missing the point.
My assumption is that if I implement IDispose on an object, I can explicitly 'destruct' it as opposed to waiting for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "114"
} |
Q: VSTO "Value does not fall within the expected range." I'm getting an error compiling my VSTO (Visual Studio Tools for Office) project in VS.
It says "Value does not fall within the expected range." and "There was an error during installation"
A: Gotcha. The path of my project was too deep.
Ans: Move it a few folde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can the iPhone SDK obtain the Wi-Fi SSID currently connected to? In the iPhone SDK I don't see the same SCDynamicStore used on Mac OS X to get the SSID name that your wireless network is currently connected to isn't available.
Is there a way to get the SSID name that the iPhone is currently connected to?
I see so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do I get rid of .. Replace(Replace(Replace(Replace(Replace( …? I’m selecting data on an old database which has an abused status column. The status column has multiple pieces of information in it. Values are like ‘New Contact YYYY’, ‘Online YYYY’, ‘Updated YYYY’, ‘Withdrawn YYYY’, etc…. As you may have guessed,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tomcat authentication using SPNEGO/Kerberos and delegation Is there an apache module that implements Kerberos authentication for use by Tomcat and also supports Kerberos delegation?
I've already looked at mod_spnego and it throws away the SSPI context it creates only keeping the principal name. Instead, I'm looking... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: RoR: FasterCSV to hash I'm really struggling with grasping how to effectively use FasterCSV to accomplish what I want.
I have a CSV file; say:
ID,day,site
test,tuesday,cnn.com
bozo,friday,fark.com
god,monday,xkcd.com
test,saturday,whatever.com
I what to go through this file and end up with a hash that has a counter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: "Unrecoverable build error" on any MSI Setup project Some time ago I got this error when building ANY Visual Studio Deployment project.
"Unrecoverable build error"
I thought my VS installation was corrupted or I deleted some important files, but ...
A: We had this problem, and the solutions above didn't work for u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: xsl:for-each loop counter How do I save the iterations that have occurred in an xsl:for-each? (variables in XSL are immutable)
My goal is to find the MAX number of children for any node at a particular level.
For example, I might want to print that there are no more than 2 Response nodes for any Question in this sur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: ASP.NET session - How can I tell if a session is new due to expiration or initial visit? We have a page of search results which the user can hit in several ways. 90% of the ways will set up a 'Search Criteria' session object, which the results page will use to retrieve the search results.
When the session object is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I render a partial of a different format in Rails? I'm trying to generate a JSON response that includes some HTML. Thus, I have /app/views/foo/bar.json.erb:
{
someKey: 'some value',
someHTML: "<%= h render(:partial => '/foo/baz') -%>"
}
I want it to render /app/views/foo/_baz.html.erb, but it will only ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "124"
} |
Q: Is there a way to programmatically concatenate excel files? The scenario: we have a web system that automatically generates office 2003 excel files "on the fly" (using the 2003 XML file format, not the binary format.) These files do get kept on the web server for various things.
Now, we're in a situation where the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why are cellspacing and cellpadding not CSS styles I don't know why this bothers me so much, but when I create websites, I always try to do all my styling with CSS. However one thing I always have to remember to do when I'm working with tables is add cellspacing="0" and cellpadding="0"
Why is there not a CSS proper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Extracting individual digits from a float I have been banging my head on this one all day. The C++ project I am currently working on has a requirement to display an editable value. The currently selected digit displays the incremented value above and decremented value below for said digit. It is useful to be able... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which do you like - Visual SVN or Ankhsvn? Putting aside the fact that one is open-source, which tool is more feature rich and performant for SVN support within Visual Studio.
A: I've recently switched back to Ankhsvn (2.0) from VisualSVN. Prior to VisualSVN I was using Ankhsvn (1.0).
I prefer AnkhSVN 2.0 because i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Flex - does anyone have an example of the use of the VideoDisplay control events The Flex 3 docs are fairly basic. Can someone post a more complete example that uses the control's events? I'm still trying to get my head around ActionScript events.
A: You could find an interesting article concerning stateChange & pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Silverlight web page architecture New to silverlight. Traditionally if I were to design a wizard-like process where a user had to go through 3 or 4 steps, I'd have each step as a separate aspx page. Using silverlight, would you do it all in one component, or would you have 3 separate pages each with a different s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a drupal function to jump out of the page rendering process and return a page not found? I would like to have the choice in a variable_load function (as used to load variables from menu arguments) to circumvent the remainder of the page rendering process and give the user a "page not found."
I could use a d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to commit to Subversion I have a client who had to rebuild his automated build server. He checked out his project folder from my subversion server but is now no longer able to commit - he gets this error:
Error: Commit failed (details follow):
Error: Cannot write to the prototype revision file of transactio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Delphi RTTI trouble: GetPropInfo returns nil with {$METHODINFO ON}? Is there any possibility that GetPropInfo returns nil even if the given class is declared with correct {$METHODINFO} directives.
type
...
...
{$METHODINFO ON}
TMyClass = class
private
fField: integer;
published
pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: MySQL/PHP - escaping characters that may slow my database down (or make it perform unexpectedly) I run all my integers through a (int)Integer to make them safe to use in my query strings.
I also run my strings through this function code:-
if(!get_magic_quotes_gpc()) {
$string = mysql_real_escape_string($s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it possible to undefine a variable in ruby? In ruby, is there a way to "undefine" a variable or constant once it's been defined?
In our rails environemnts, we define one of three contants to be true, depending on the environment: TESTING, DEVELOPMENT, or PRODUCTION. Then, in controller code, we use defined? to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: C# Syntax - Example of a Lambda Expression - ForEach() over Generic List First, I know there are methods off of the generic List<> class already in the framework do iterate over the List<>.
But as an example, what is the correct syntax to write a ForEach method to iterate over each object of a List<>, and do a Conso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: How Can I Create Rounded Rectangle Buttons in WM6? Yes, like those pretty buttons on the iPhone. ;)
I've been searching and reading for days now and everytime I find something that will get me close (like CreateRoundRectRgn), it blows up because Windows Mobile 6 GDI+ doesn't support it.
I can do the whole owner dr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP include file strategy needed I'm in the process of setting up a php project, but am not very familiar with how to properly use php's include/require commands. My layout currently looks like this:
/public --apache points into this directory
/public/index.php
/public/blah/page.php
/utils/util1.php -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Yet Another Divs vs Tables issue: Forms [Meta-note:] I was browsing the question page, getting really tired of "DIVS vs Tables" "When to use tables vs DIVS" "Are Divs better than Tables" "Tables versus CSS" and all the questions that ask THE SAME THING OMG PEOPLE but I would like to see all the ways people tackle th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Expression trees in .NET - Libraries? I have recently written a dynamic querying tool using expression trees and as I went the power of expression trees began to dawn on me. My querying tool could also form the basis of a reporting tool, a dynamic decision engine and maybe other cases where you need to work with dyn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Writing a compiler for a DSL in python I am writing a game in python and have decided to create a DSL for the map data files. I know I could write my own parser with regex, but I am wondering if there are existing python tools which can do this more easily, like re2c which is used in the PHP engine.
Some extra info:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Delphi Short Cut to add Date and Name Comment Does anyone know of a short cut to place my name and the date where the cursor is i.e.
//021208 DarkAxi0m
so i don't keep check what the date is when i'm adding comments.
Im using Delphi7, with CnPack And GExperts Installed.
I think it should be able to be done with o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Building Undo Into an Excel VBA Macro Excel macros do not seem to allow the use of "undo" after running them. Is there any way to bake undo functionality into a VBA macro in Excel?
A: My thought is pretty simple, as the first line in your macro save a copy in a backup directory then close that workbook and reopen t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Javascript form validation I'm trying to figure out what would be the simplest way to validate required fields without having to do an if statement for each element's name. Perhaps just with a loop and verify its class.
What I'm trying to accomplish is to check only the ones that have the class name as "required"
<i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Quick question about returning from a nested statement If I have something like a loop or a set of if/else statements, and I want to return a value from within the nest (see below), is the best way of doing this to assign the value to a field or property and return that?
See below:
bool b;
public bool ifelse(int i)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Disable AutoLoad for ? I embedded a default media player into my webpage with the following html
<object height="20" width="200">
<embed src="url to music" autostart="false" loop="false" height="20" width="200">
</object>
Everytime I go to the website, this object automatically downloads the music. How can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using Apache's mod_auth across multiple sub-domains for single sign-on? I have a domain and a group of sub-domains that require authentication to access. I am currently using mod_auth to authenticate users (mod_auth basic) at the domain.tld level. My goal is for single sign-on between the domain and all the sub-doma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Two questions on inner classes in Java (class A { class B { } }) Sorry for the bad title, but I couldn't think of a better one.
I'm having a class A and a class B which is kind of a sub class of A, like so:
(Is there actually a correct name for it? Isn't "sub class" reserved for inheritance?)
class A {
int i = 0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Set every cell in matrix to 0 if that row or column contains a 0 Given a NxN matrix with 0s and 1s. Set every row that contains a 0 to all 0s and set every column that contains a 0 to all 0s.
For example
1 0 1 1 0
0 1 1 1 0
1 1 1 1 1
1 0 1 1 1
1 1 1 1 1
results in
0 0 0 0 0
0 0 0 0 0
0 0 1 1 0
0 0 0 0 0
0 0 1 1 0
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "153"
} |
Q: c++ modify resources at runtime Is it possible to edit resources for an executable at runtime programmatically? If so, how? If not, is there another program that can easily be used to modify resources?
Thanks, Derek.
A: Yes, it is possible, though not especially easy. It basically requires writing a resource compi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: basic php form help I'm trying to make a calculator that will take inputs from users and estimate for them how much money they'll save if they use various different VoIP services.
I've set it up like this:
<form method="get" action="voip_calculator.php">
How much is your monthly phone bill?
<input name="month... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TransactionScope not rolling back transaction Here is the current architecture of my transaction scope source code. The third insert throws an .NET exception (Not a SQL Exception) and it is not rolling back the two previous insert statements. What I am doing wrong?
EDIT: I removed the try/catch from insert2 and i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Probs with ASP.NET MVC Postback + Callback Synchronously I am trying to create an upload control for ASP.NET MVC with jQuery progress bar. In ASP.NET the implementation works no problems, but in MVC the problem is that the server doesn't respond to my callbacks until the file is uploaded.
The upload control is based... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: XML editor with proper copy and paste? I'm looking for an XML editor that lets me type and copy and paste arbitrary text into an XML element or attribute without requiring me to go back through and escape any characters that must use reserved XML entities (ampersands, angle brackets, or quote marks). XMLSpy came up ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: LINQ to XML Newbie Question: Returning Nodes Values AND Decendant Values Greetings!
I have some XML like this:
<Root>
<AlphaSection>
.
.
.
</AlphaSection>
<BetaSection>
<Choices>
<SetA>
<Choice id="choice1">
<Title>Choice 1 Title</Title... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it good practice to hide web server information in HTTP headers? This question is more security related than programming related, sorry if it shouldn't be here.
I'm currently developing a web application and I'm curious as to why most websites don't mind displaying their exact server configuration in HTTP headers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: 'JQuery' is undefined I am working on a ASP.net project created with local file system settings. I am using MVC and Jquery. Jquery is working fine when I run the application in debug mode i.e. in ASP.net Development server. I am trying to host the application in IIS 7. In hosted mode, it does not recognize Jquery an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Does anyone know the .net odbc driver connection string for excel 2003's xml spreadsheets? I know this has a certain "send me teh codes" quality, but the internet has really been letting me down on this one. I have an excel file in excel 2003's xml format that I want to attach an odbc connection to.
And I can't see... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Server Transactional Replication, and different primary keys With SQL Server 2005 and transactional replication, can I remove the primary key constraints on the subscriber, while leaving the primary key constraints on the publisher?
Primary I want to do this because I want to cluster on different columns than th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I add sessions to my Perl web app? I want to maintain state in my Perl web app. How can I do this effectively? I looked at CGI::Session but it says that it doesn't work well with UTF-8 pages, which is a requirement. I'd also like to be able to pass some basic information to another Java application runnin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a .NET equivalent to Apache Hadoop? So, I've been looking at Hadoop with keen interest, and to be honest I'm fascinated, things don't get much cooler.
My only minor issue is I'm a C# developer and it's in Java.
It's not that I don't understand the Java as much as I'm looking for the Hadoop.net or NHadoop or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "100"
} |
Q: Remove single backslashes, convert doubles to single in string How best can I convert instances of double backslashes to a single backslash in a string, but remove any occurrences of single backslash?
So this:
\|Testing|ABC:1234\\1000-1\|
Should convert to this:
|Testing|ABC:1234\1000-1|
Ideally I want to avoid ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tag Cloud web service? Is there a public, free web service that generates tag clouds? I'm looking for something like Google Chart--URL in, image out.
A: I highly doubt it. A web service for this wouldn't make any sense.
There are tons of libraries though:
CodeIgniter: http://codeigniter.com/forums/viewthread/64498/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Lambdas with captured variables Consider the following line of code:
private void DoThis() {
int i = 5;
var repo = new ReportsRepository<RptCriteriaHint>();
// This does NOT work
var query1 = repo.Find(x => x.CriteriaTypeID == i).ToList<RptCriteriaHint>();
// This DOES work
var query1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I load arbitrary data from a url PHP? This question is simple. What function would I use in a PHP script to load data from a URL into a string?
A: I think you are looking for
$url_data = file_get_contents("http://example.com/examplefile.txt");
A: CURL is usually a good solution: http://www.php.net/curl
//... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP mySQL - Can you return an associated array with a number index? I have this method in my db class
public function query($queryString)
{
if (!$this->_connected) $this->_connectToDb(); //connect to database
$results = mysql_query($queryString, $this->_dbLink) or trigger_error(mysql_error());
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problems raising a ValidationError on a Django Form I'm trying to validate that a submitted URL doesn't already exist in the database.
The relevant parts of the Form class look like this:
from django.contrib.sites.models import Site
class SignUpForm(forms.Form):
# ... Other fields ...
url = forms.URLField(la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET Data Access Layer. Is using sqlhelper.cs bad? I'm about to start a new .net web project.
Previsouly for my n-layer web apps i've used the "Microsoft Data Access Application Block" (sqlhelper.cs) for the data access, then an interface class to interface with the object classes. I'm aware this technique is a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: VB.NET and type inference using "Dim" I'm coming from a C# background and I really like the type inference that C# 3.0 has. I'm trying to do similar things in VB.NET (some of which appear possible), but in some cases the compiler seems to be not nearly as good at inferring the type.
For example, I have a method th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Caching in Code Igniter I have read the documentation for the CI Caching but still don't understand much about it. What exactly does it do, and what is the use of caching a dynamic website?
A: From wikipedia:
... a cache is a collection of data duplicating original values stored elsewhere or computed earlier, whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I ensure a value being updated with Hibernate hadn't been changed in the meantime since I read it? I have a problem where I want to read an object from the database using Hibernate, change a value, and save the object. If changing the value takes some time, what's the best way to ensure the underlying object ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Stored Procedures - General or Specific What is the preferred way to use stored procedures between the following two methods and why:
One general SP such as 'GetOrders' which returns all the columns for the table Order. Several different parts of the application will use the same SP.
OR
Several more specific SPs su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Resolving Configuration Error in WCF AddressFilter Mismatch I am getting the following error and could use some help resolving it. Anyone have any ideas?
The message with To 'http://localhost:60078/BidService.svc/Query' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Are there any good tutorials for using sitemesh in a grails application? I'm a pretty experienced Grails developer, but most of my experience has been with using grails for serving up JSON/XML to a flex app and some relatively simple HTML websites.
I've been diving deeper into using the sitemesh integration in grail... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: multi tabbed SSH client using screen Is there an SSH client that can present a client side GUI interface to the screen* program?
I'm thinking of an SSH program that would hook in with screen's session handling and map client side actions (clicking on a tab, ctrl-tab, scrolling, possibly even allowing several tabs to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: HTML Background Images When I include an image as an <img> tag as well as a background image on a DOM element, the browser sometimes makes two requests for the same image. This also sometimes happens when using the hover pseudo-property. For example:
<html>
<head>
<style>
div{
background: transparent u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I find how much SVN traffic I'm using? At my office we have an SVN server set up and I'd like to know how much traffic it is using. I'm not interested in the bandwidth, just the total number of 1s and 0s the SVN service is sending/receiving.
The data will all be going via the svn:// protocol, and the server i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MS Access - Mass Emailing? I'm using MS Access to create a database with over 5000 contacts. These contacts are separated up into which employee the contact belongs to, and then again into categories for easy searching. What I want to do is create a button that will open up a query in table form (simple), then have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When/how to optimize generic code? When writing application code, it's generally accepted that premature micro-optimization is evil, and that profiling first is essential, and there is some debate about how much, if any, higher level optimization to do up front. However, I haven't seen any guidelines for when/how t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how to raise event from dynamically created usercontrol How do I raise an event from a user control that was created dynamically?
Here's the code that I'm trying where Bind is a public EventHandler
protected indDemographics IndDemographics;
protected UserControl uc;
override protected void OnInit(EventArgs e)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I remove the first line of a text file using bash/sed script? I need to repeatedly remove the first line from a huge text file using a bash script.
Right now I am using sed -i -e "1d" $FILE - but it takes around a minute to do the deletion.
Is there a more efficient way to accomplish this?
A: For those who ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "742"
} |
Q: Login error connecting to salesforce.com from Flex Has anyone suddenly encountered login errors from their users trying to connect to salesforce.com from a Flex app using as3salesforce.swc?
I get the following error... password removed to protect the innocent...
App Domain = null
Api Server name = na3.salesforce.com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the fastest way to parse text with custom delimiters and some very, very large field values in C#? I've been trying to deal with some delimited text files that have non standard delimiters (not comma/quote or tab delimited). The delimiters are random ASCII characters that don't show up often between the del... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: OpenCV Sample Program lkdemo reference, OpenCv\samples\c\lkdemo.c
Anybody know what does the following snippet of codes does ?
Code extracted from lkdemo.c
for( i = k = 0; i < count; i++ )
{
if( add_remove_pt )
{
double dx = pt.x - points[1][i].x;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: HTML over flash without stopping interaction with flash I have a html div layered on top of an interactive flash movie, but when the mouse moves over the div, it can't interact with the flash (the view changes as the mouse moves or is clicked). Is there a way to have the flash recieve the mouse movements and clicks ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JavaScript developer looking for inspiration from frameworks such as cocoa I'm a developer who builds mainly single page client side web applications where state in maintained on the client-side. Lately some of the applications have become very complex with very rich domain models on the client-side and increasingly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there someone who try to port Kigg asp.net mvc example to MVC beta I've downloaded Kigg example from codeplex, but it's seems to be outdated.
Is there a version for ASP.NET MVC Beta? Is there someone who try to port it(I've tried but without success because of lack of knowledge)?
A: I upgraded Kigg from Preview ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java session variables I'm hearing that some people believe storing info on the server in a session is a bad idea, that its not secure.
As a result, in a multi-page business process function, the application is writing data to a db, then retrieving the info when its needed.
Is there something necessarily unsafe abou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I get file info changes in a specified directory using FindFirstChangeNotification and FindNextChangeNofication instead of ReadDirectoryChangesW? I want to be notified when a specified directory has any changes in its files or subdirectories. I realize the function with the following simple code segment:
UINT my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: End-line characters from lines read from text file, using Python When reading lines from a text file using python, the end-line character often needs to be truncated before processing the text, as in the following example:
f = open("myFile.txt", "r")
for line in f:
line = line[:-1]
# do something with line
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: SVN repository and metadata At the moment we are checking out our php producation code straight into www. With this we get all the Netbeans meta data and project files that are needed for the site, we have to constantly rm the metadata files from www so they are not accessible from the browser, same goes for all the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to flatten this XML with XSLT INPUT
<logs>
<logentry revision="648">
<author>nshmyrev</author>
<date>2008-09-21T19:43:10.819236Z</date>
<paths>
<path action="M">/trunk/po/ru.pi</path>
</paths>
<msg>2008-09-21 Nickolay V. Shmyrev nshmyrev@yandex.ru * ru.po: Updated Russian translation.</msg>
</logentry>
<loge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passing object from controller to a view I'm following iPhone dev courses from Stanford Open-University, and I've been blocked for 2 days on assignment3, maybe someone can help me here?
The tasks are:
*
*Create a custom UIView subclass that will display your PolygonShape object
*Give your view class access to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: T-SQL Query Optimization I'm working on some upgrades to an internal web analytics system we provide for our clients (in the absence of a preferred vendor or Google Analytics), and I'm working on the following query:
select
path as EntryPage,
count(Path) as [Count]
from
(
/* Sub-query 1 */
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why Change [ ] to be { } in ASP.NET Routing? I noticed that there is one change about ASP.NET Routing. I cannot understand why such change.
In ASP.NET MVC Preview, the routing setting in Global.ascx is like "[controller]/[action]/[id]". Now, it is changed to be "{controller}/{action}/{id}". Why change [] to {} ? Is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Debugging Developer Fabric Issues - Service Not Starting Web Components I am trying to get the Azure SDK up and running on my dev PC and have been having some issues.
I have installed the SDK, tools for VS and am trying to run the samples. Every time I try to run the samples the Development Storage service starts a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does Javascript fire an event for unhandled/uncaught exceptions? I'm looking to log unhandled javascript exceptions. Is there an event that fires when an exception isn't caught? I'm looking to catch the exceptions before they cause javascript errors in the browser, but I'd rather not run my entire application inside... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Breaking out of "tail -f" that's being read by a "while read" loop in HP-UX I'm trying to write a (sh -bourne shell) script that processes lines as they are written to a file. I'm attempting to do this by feeding the output of tail -f into a while read loop. This tactic seems to be proper based on my research in Goo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Settings-style grouped table So it's trivial to create a Settings style table on the iPhone. The problem is, they add a great deal of code as your Settings have a gamut of options/styled cells. One section might have a check list, another might have cells with accessory disclosures to drill down further, another mig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I forward from one local port to another local port on OS X? I have a MySQL instance running locally on port 3306, but for some legacy apps I also want to make it available on port 3305 (don't ask). Is there an easy way to do this on OS X, so that if I try to connect on either 3305 or 3306 they will both go t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: .Net FileIOPermission & ApplicationData I'm getting a FileIOPermssion exception thrown when trying to create a folder in Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) on some computers. I've established that there is some form of antivirus running on the computer in question, but I haven't bee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I check website security for free? I've heard that there are some free applications that will check the vulnerability of a PHP website, but I don't know what to use. I'd like a free program (preferably with a GUI) for Windows that will analyze my site an give me a report.
Anyone know of a solution?
A: Nets... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: missing section title in ps but not in dvi A have the document with 23 figures and 46 tables (appendix to journal article). There are 23 sections created in the exactly same manner. When viewing compiled dvi everything is in order, but after creating ps file from the dvi one of the section title is missing. Producin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I use frozen Capistrano part 2? Following on from my question on using frozen Capistrano a couple of days back I'm still having issues running Capistrano frozen in my vendor folder.
When I try and run my frozen version of cap
ruby -r rubygems ./vendor/gems/capistrano-2.5.2/bin/cap deploy-with-migrations
I g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do i connect a VS2008 MVC project to Vista IIS7 localhost as the web server? I'm trying to connect my stock standard, default ASP.NET MVC (web) application to the Vista IIS7 localhost web server instead of using Cassini.
I'm trying to find some steps to set this up, etc.
I've installed Vista IIS7 and of course M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In Php when is Include/Require evaluated? With Php when does an included file get included? Is it during a preprocessing stage or is it during script evaluation?
Right now I have several scripts that share the same header and footer code, which do input validation and exception handling. Like this:
/* validate input... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.