text stringlengths 8 267k | meta dict |
|---|---|
Q: Blogs to freshen up my math (in practice) My question, his question, but blogs as resources to be specific.
I find blogs great to keep up to date... refresh material...
So do you know any blogs who tackle math-related programming problems...
A: Following MIT Open Courseware is another good computer-based way to lea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Inheritance, Parent-Child and Overriding Just came across this quote in a book on OOP that I'm reading,
A child is only allowed to augment
functionality and add functionality.
A child is never allowed to remove
functionality. If you do find that a
child need to remove functionality,
this is an indicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Eclipse debug-time classpath problem: How do you include a dependent project's output into a web project's runtime classpath? So I started with a web services project (just a dynamic web project) that builds and debugs correctly from eclipse. We've pulled a chunk of common code out that we want to put into a shared... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Can you mock requests with NUnit in webforms? Can you do mock page requests with NUnit with webforms?
what about web service testing?
A: TypeMock's Ivonna plug-in could help.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/326692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Difference between Hashing a Password and Encrypting it The current top-voted to this question states:
Another one that's not so much a security issue, although it is security-related, is complete and abject failure to grok the difference between hashing a password and encrypting it. Most commonly found in code whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "159"
} |
Q: Embed Tag in HTML - How can I know in Javascript that the .wav file is done playing? Right now I'm trying to add a button to a webpage that when pressed will start playing a .wav file by dynamically adding an embed tag to the DOM. The text switches to "Stop" while the sound plays, and I'd like to be able to switch i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: NSApplication delegate and Preference Panes It seems that I can't control the NSApp delegate from within a System Preferences pane, which is understandable. Is there any other way I can have my object notified when the program becomes active?
A: Most delegate methods in the Cocoa frameworks are simply notification ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to update C# hashtable in a loop? I'm trying to update a hashtable in a loop but getting an error: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
private Hashtable htSettings_m = new Hashtable();
htSettings_m.Add("SizeWidth", "728");
htSettings_m.Add("SizeHeight... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Shortcut for specifying an order and limit when accessing a has_many relation? Is there a shortcut for giving a limit and order when accessing a has_many relation in an ActiveRecord model?
For example, here's what I'd like to express:
@user.posts(:limit => 5, :order => "title")
As opposed to the longer version:
Pos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PHP array in object converting to string (so far as I can tell) I'm developing front-end code for a web application, and ran into an odd piece of trouble with a custom object. When I request the object and use print_r() I get this (the object is a lot bigger; just cut it to the relevant code):
MemberInfo Object
(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I dynamically get the set of classes from the current python module? I have a python module that defines a number of classes:
class A(object):
def __call__(self):
print "ran a"
class B(object):
def __call__(self):
print "ran b"
class C(object):
def __call__(self):
print ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best "official" scripting language for Windows programmers Suppose there were several projects mostly maintained by smart interns, who eventually leave after a period of time. Scripts are used here and there in key parts, for example, to back up a database, rename it, zip it, move it over ssh, unzip it, and then to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I debug this weird IE JavaScript Problem OK,
Here is my problem, I have a master page with a HEAD section that contains my JS includes. I have one JS include
<script src="Includes/js/browser.js" language="javascript" type="text/javascript"></script>
In my page i consume it like this:
<body>
<form id="form1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Something similar to PHP's SimpleXML in Python? Is there a way in Python to handle XML files similar to the way PHP's SimpleXML extension does them?
Ideally I just want to be able to access certain xml datas from a list object.
A: There is a long list of libraries associated with XML processing on the Python wiki. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best way to calculate if there is a 1/4 chance something will happen in C++? I was wondering if there is a smart way to find out
There is a 1/4 chance something happens.
I know we can do this with rand() % 4 and checking if it is equal to 0, but is there a way without using rand()? In c++, thanks.
A: Never ever use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can you two-way bind a checkbox to an individual bit of a flags enumeration? For those who like a good WPF binding challenge:
I have a nearly functional example of two-way binding a CheckBox to an individual bit of a flags enumeration (thanks Ian Oakes, original MSDN post). The problem though is that the bindin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How to validate domain credentials? I want to validate a set of credentials against the domain controller. e.g.:
Username: STACKOVERFLOW\joel
Password: splotchy
Method 1. Query Active Directory with Impersonation
A lot of people suggest querying the Active Directory for something. If an exception is thrown, then yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "93"
} |
Q: Methods and Anonymous Types I know that you cannot return anonymous types from methods but I am wondering how the Select extension method returns an anonymous type. Is it just a compiler trick?
Edit
Suppose L is a List. How does this work?
L.Select(s => new { Name = s })
The return type is IEnumerable<'a> where 'a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: need to explain why checkboxes look funky in Safari Everyone in my office uses Macs and therefore most use Safari.
We have a page that has 30 checkboxes on it, I didn't even do the HTML myself but no matter if I use the html input checkbox with a label or an asp:Checkbox usig the text property for the label my boss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: XmlSerialization of collections I want to serialize the following Xml structure:
<XmlRootElement>
<Company name="Acme Widgets LLC">
<DbApplication name="ApplicationA" vendor="oracle">
<ConnSpec environment="DEV"
server="DBOraDev1201"
database="App... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I programmatically pass args to yield in Ruby? How can I pass a variable number of args to a yield.
I don't want to pass an array (as the following code does), I'd actually like to pass them as a programmatic number of args to the block.
def each_with_attributes(attributes, &block)
results[:matches].each_w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Effects on htmlText in a TextField In Flash when you set text in a TextField object with the htmlText property, changing the alpha value no longer works. Is there a way around that?
A: Some confusion here.
*
*Whether alpha works or not depends on whether the text field uses device fonts, not whether it uses HT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MVC.NET for the desktop Is there any reason that MVC isn't equally useful for desktop apps as for web apps?
What would be required to make an ASP.NET MVC directory tree implementable as a desktop app?
A: Prism
A: I've always thought of the term MVC as the same as a n-layer application - so correct me if I'm wron... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Cannot use smtpclient to send mail with localhost iis site I have an asp.net mvc app running on a local iis website that is failing to send mail using SmtpClient from System.Net.Mail. I am trying to send a mail to my hotmail address and I get a socket exception. Any idea what the problem might be?
using(var message ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Git Woes: edited on windows, now w/ problems on linux Problem:
edited files on windows, using git-bash, to fix IE7 problems
committed, pushed to github repo
booted back into linux
pulled from repo
merge conflict in dozens of files
used 'git reset --hard'
What can I do to get back on track?
UPDATE: please look ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I pipe output when debugging in Visual Studio? For example, if I wanted to do it from the command line I would use "a.exe > out.txt". Is it possible to do something similar in Visual Studio when I debug (F5)?
A: In project properties:
*
*enter command line arguments "> out.txt"
*Disable the hosting proce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JInternalFrame Does Not Fully Maximize Under Mac OS X I'm working with JInternalFrame's under Mac OS X Java 5 and when maximizing a JInternalFrame within a JDesktopPane the window doesn't fully maximize, but the property to allow maximizing is definitely set to true. This is the result I'm getting when maximized:
S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the best practices for Hardware Description Languages (Verilog, VHDL etc.) What best practices should be observed when implementing HDL code?
What are the commonalities and differences when compared to more common software development fields?
A: Sort of an old thread, but wanted to put in my $0.02. This i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: Help - Enabling ASP.NET for IIS7 on Vista is failing I am actually not able to install any windows feature through the "Turn Windows features on or off" dialog. I am trying to get ASP.NET working for IIS7 on Vista Ultimate.
I also tried running aspnet_iisreg -i but got an unspecified error.
I checked several plac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to unit test (in memory) entity framework? As in the topic...
I was thinking about something like "in memory changes".
On recent blogs by Jaroslaw Kowalski i have found similar approach
but i was thinking about sth much simpler
A: If the framework consists of (abstract) classes, you can create dummy concrete ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: A loop to create neighbor nodes in 3d space I want to create the 26 neighbors of a cubic-voxel-node in 3-d space. The inputs are the x,y,z position of the node and the size of the cube side . I am trying to do this using a for loop but haven't managed yet. I am quite newbie in programming please help me.
A: for (in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I automatically set a user's locale in PHP? Is there an easy way to parse the user's HTTP_ACCEPT_LANGUAGE and set the locale in PHP?
I know the Zend framework has a method to do this, but I'd rather not install the whole framework just to use that one bit of functionality.
The PEAR I18Nv2 package is in beta a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there any way to detect, through WSH, which workstations, in a windows domain, has a locked session? Is there any way to detect, through WSH, which workstations, in a windows domain, has a locked session?
A: http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1115.mspx
If you scroll down, ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: retrieve unicode using asp from sqlserver 2005 I'm using the following code to retrieve a message from the database and then write it out to a html page:
Dim strDSN, cnn, cmd
strDSN = "Driver={SQL Server};" & "Server=(local)\sql2k5;" & ...
set cnn = Server.CreateObject("ADODB.Connection")
cnn.ConnectionString = str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Running unit tests on nested functions I come from the Java world, where you can hide variables and functions and then run unit tests against them using reflection. I have used nested functions to hide implementation details of my classes so that only the public API is visible. I am trying to write unit tests agai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Disabling button with javascript: FF vs IE I have a row of buttons, which all create a pdf file which I want to open in a new tab.
This way the button page stays on top, and the pdf's open to get printed. To prevent clicking a button twice I disable the button, like this (I use python):
<input type='submit' value='F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: using curses with raw_input in python In my python linux console application I use curses to handle displaying of data. At the same time I'd like to have an input line to enter commands, pretty much in good ol' irssi-style. With default curses getch() I'd have to do a lot of coding just to get the basic funcionality... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Subversion: How to merge only specific revisions into trunk when multiple consecutive changes are made in a branch? I have been using TortoiseSVN, svn, and subclipse and I think I understand the basics, but there's one thing that's been bugging me for a while: Merging introduces unwanted code. Here's the steps.
trun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Is there a way to generate word documents dynamically without having word on the machine I am planning on generating a Word document on the webserver dynamically. Is there good way of doing this in c#? I know I could script Word to do this but I would prefer another option.
A: You'd be better off generating an rtf ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How can I get my bash script to work? My bash script doesn't work the way I want it to:
#!/bin/bash
total="0"
count="0"
#FILE="$1" This is the easier way
for FILE in $*
do
# Start processing all processable files
while read line
do
if [[ "$line" =~ ^Total ]];
then
tmp=$(echo ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Can I atomically rename/replace 2 or more tables and views? Given a table X and a view Y (that has the same structure as X) is there a way to rename X to Z and Y to X atomically so that no query will ever see nothing named X? Renaming X and creating the view would also be valid.
The point would be to, as part of a s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linux web front-end best practices I want to build a web based front-end to manage/administer my Linux box. E.g. I want to be able to add users, manage the file system and all those sorts of things. Think of it as a cPanel clone but more for system admin rather that web admin.
I was thinking about creating a service... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I write an addition of two items in a string representation? For example I want to add two expressions e1 and e2
toString (Plus e1 e)= ??
I am guessing it would be something like
toString (Plus e1 e)= ((toString e1) ++ "+" ++ (toString e2))
A: I've made a few assumptions about how Plus is defined. With ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Comparing 2 XML docs and applying the changes to source document Here's my problem.I have 2 xmlfiles with identical structure, with the second xml containing only few node compared to first.
File1
<root>
<alpha>111</alpha>
<beta>22</beta>
<gamma></gamma>
<delta></delta>
</root>
File2
<root>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you use usercontrols in asp.net mvc that display an "island" of data? I am trying to find out how to use usercontrols in asp.net mvc. I know how to add a usercontrol to a view and how to pass data to it. What I haven't been able to figure out is how do you do this without having to retrieve and pass the dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Do I need to specify a SQL data type when using a SqlCommand? Is there any provable reason why I should always specify the SQL data type for SqlCommand paramenters?
A: The only time I've run into a case when I had to specify a data type was when passing in DBNull. When I wasn't specifying a data type, it defaulted... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting all zip codes within an n mile radius What's the best way to get a function like the following to work:
def getNearest(zipCode, miles):
That is, given a zipcode (07024) and a radius, return all zipcodes which are within that radius?
A: There is a project on SourceForge that could assist with this:
http://s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Debugging a Full-Screen Application Given that I only have one monitor, what's the best way to debug a program which uses the entire screen (such as a DirectX application)? Tools such as the step-by-step debugger seem useless in this context. Also, printing to the console isn't as effective, since you can only look ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/326992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Which is faster in Python: x**.5 or math.sqrt(x)? I've been wondering this for some time. As the title say, which is faster, the actual function or simply raising to the half power?
UPDATE
This is not a matter of premature optimization. This is simply a question of how the underlying code actually works. What is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "244"
} |
Q: using a vector of column names, to generate a sql statement A problem that we need to solve regularly at my workplace is how to build sql statements based on user supplied table/column names. The issue I am trying to address is the commas between column names.
One technique looks something like this.
selectSql =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I setup up JFileChooser for single click behavior in java Swing? How do I change the JFileChooser behavior from double-click selection to single-click selection mode?
I'm developing an application to run with either a single-click interface (nothing requires a double-click, just like the KDE interface mode) o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Attribute BOLD doesn't seem to work in my curses I use something like this:
screen.addstr(text, color_pair(1) | A_BOLD), but it doesn't seem to work..
However, A_REVERSE and all others attribute does work!
In fact, I'm trying to print something in white, but the COLOR_WHITE prints it gray.. and after a while of se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to implement background/asynchronous write-behind caching in PHP? I have a particular PHP page that, for various reasons, needs to save ~200 fields to a database. These are 200 separate insert and/or update statements. Now the obvious thing to do is reduce this number but, like I said, for reasons I won't both... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to apply texture to glutSolidCube I can find tutorials about mapping textures to polygons specifying vertices etc. but nothing regarding how to apply a texture to a cube (or other stuff) drawn with glut (glutSolidCube).
I am doing something like:
glTexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, decal);
glTexParam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What is the most efficient way to create HTML elements using jQuery? Recently I've been doing a lot of modal window pop-ups and what not, for which I used jQuery. The method that I used to create the new elements on the page has overwhelmingly been along the lines of:
$("<div></div>");
However, I'm getting the fee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "433"
} |
Q: Cruisecontrol.NET & IIS7 Static File Handler Problem I'm trying to get Cruisecontrol.NET running with Server 2008/IIS7 and when I try and navigate to the dashboard I get the following error:
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.
I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I query data in CakePHP using HABTM relationships? I'm working on a CakePHP 1.2 application. I have a model "User" defined with a few HABTM relationships with other tables through a join table.
I'm now tasked with finding User information based on the data stored in one of these HABTM tables. Unfortunately, w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Dynamic logical expression parsing/evaluation in PHP? I have a need to evaluate user-defined logical expressions of arbitrary complexity on some PHP pages. Assuming that form fields are the primary variables, it would need to:
*
*substitute"varibles" for form
fields values;
*handle comparison operators,
minimal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: XML parsing and transformation in PHP? I have a custom XML schema defined for page display that puts elements on the page by evaluating XML elements on the page. This is currently implemented using the preg regex functions, primarily the excellent preg_replace_callback function, eg:
...
$s = preg_replace_callback("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: EXC_BAD_ACCESS signal received When deploying the application to the device, the program will quit after a few cycles with the following error:
Program received signal: "EXC_BAD_ACCESS".
The program runs without any issue on the iPhone simulator, it will also debug and run as long as I step through the instructions... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "297"
} |
Q: add custom DLL search path @ application startup I'm racking my brain trying to come up with an elegant solution to a DLL load problem. I have an application that statically links to other lib files which load DLLs. I'm not loading the DLLs directly. I'd like to have some DLLs in another folder other than the folder... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: asp.net mvc RedirectToAction("Index") vs Index() Say I have a controller with an Index Method and a Update Method. After the Update is done I want to redirect to Index(). Should I use return RedirectToAction("Index") or can I just call return Index()? Is there a difference?
public ActionResult Index()
{
return Vie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Simple encryption in PHP I'm building a with-source system which I am giving out on the 'net for providing adoptable virtual pets. The system will be owned mainly by kids. Since I want it to be usable for absolute beginner programmers, there are several complexity constraints on my system: It can't use libraries tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Removing a file in a Restricted Folder in Linux I have been attempting to create a new directory for my apache server. As I tried to access the new directory, I type:
sudo /etc/init.d/apache2 restart
But I obtain this error in the Ubuntu Terminal:
Syntax Error on line 1 of /etc/apache2/conf.d/fqdn.save:
ServerName t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: @Rails users: have you tried web2py? Pros? Cons? web2py to is a Python framework but shares the "convention over configuration" design that Ruby on Rails has. On the plus side it packages a lot more functionality with its s standard distribution and we claim it is faster and easier to use.
Has any Rails user tried ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: event scope Given
@interface Canvas:NSView {
NSNumber * currentToolType;
...
}
declared in my .h file
and in the .m file
- (id)initWithFrame:(NSRect)frame {
self = [super initWithFrame:frame];
if (self) {
currentToolType=[[NSNumber alloc]initWithInt:1];
}
return self;
}
an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way to sync 2 sqlite tables over http and json? I have a fairly simple sync problem. I have a table with about 10 columns that I want to keep in sync between a sqlite file on 3 different clients: an Iphone client, a browser client, and a Ruby on Rails client. So I need a simple sycing solution tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: MC++ interop array access Using Managed C++ (VS 2005), how would you pass a array< unsigned char > to a function as a unsigned char*?
ref class Utils
{
public:
static void A(array<unsigned char, 1> a)
{
//How do I call B()????
}
static void B(const unsigned char* a)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I enable Emacs key bindings in Microsoft Visual C# 2008 Express Edition? How can I enable Emacs key bindings in Microsoft Visual C# 2008 Express Edition?
A: It seems that the Emacs keybinding file (Emacs.vsk) it's not included on Visual Studio Express Editions, however you might be able to find it and use i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Redirect 'myapp.com' to 'www.myapp.com' in rails without using htaccess? Using Morph Labs' Appspace to deploy a site means no automated way to redirect 'myapp.com' to 'www.myapp.com' (and no access to .htacess).
Is there an in-rails way to do this? Would I need a plugin like subdomain-fu?
More specifically, I'm tryi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: What's the *best* wireless keyboard / mouse set for programmers? I've considered the following:
Logitech Desktop MX 5500
Microsoft Wireless Entertainment Desktop 8000
But I'd like see what other programmers would recommend.
A: I know you're looking for a set, but these two topics might be of interest:
*
*https:/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Rewriting eMbedded Visual Basic App I'm looking at rewriting an eMbedded Visual Basic app I wrote years ago. I'm unsatisified with it because of various problems clients keep having with it now and then over the years, mostly along the lines of the app not loading anymore because a required dll/activex control has g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multiple Django Admin Sites on one Apache... When I log into one I get logged out of the other I have two Django projects and applications running on the same Apache installation. Both projects and both applications have the same name, for example myproject.myapplication. They are each in separately named director... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I hide a repeater in ASP.NET C# if the DataSource contains no items? I have an ASP.NET page that uses a repeater nested within another repeater to generate a listing of data. It's to the effect of the following:
<asp:Repeater>
<ItemTemplate>
<span><%#Eval("Data1") %></span>
<!-- and many ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: encrypting soap in .net I have been trying to encrypt soap message and send to the server, so that the server can decrypt, process the message, encrypt the response again and send back to the client...
I short i want to implement security in ASMX web services....
Please help me
Thanks
Sandeep
A: What's wrong with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How far can you really go with "eventual" consistency and no transactions (aka SimpleDB)? I really want to use SimpleDB, but I worry that without real locking and transactions the entire system is fatally flawed. I understand that for high-read/low-write apps it makes sense, since eventually the system becomes consi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What would cause my application to lose access to the resource (.resx) file Winforms c# application running on terminal server. All images for buttons and menu items are stored as resources in the .resx file. After some heavy use, opening and closing windows while using the system, an "index out of range" exceptio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a "one-liner" way to get a list of keys from a dictionary in sorted order? The list sort() method is a modifier function that returns None.
So if I want to iterate through all of the keys in a dictionary I cannot do:
for k in somedictionary.keys().sort():
dosomething()
Instead, I must:
keys = somedicti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Should I get rid of bots visiting my site? I have been noticing on my trackers that bots are visiting my site ALOT. Should I change or edit my robots.txt or change something? Not sure if thats good, because they are indexing or what?
A:
Should i change or edit my robots.txt or change something?
Depends on the bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: IDA Pro and editing executables This is kind of an unorthodox question.
I'm kinda new to using IDA Pro.
Is there a way to edit the assembly code and then have IDA save the result as an executable?
Is there some kind of plugin maybe that does that? because it seems that IDA doesn't want to save as an EXE.
Or do I n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C# Table Adapter Update Not Working I am trying to serialize an object to a sql compact database. I am using VCS Express 2008. Every time I run a test to see if my data is sent to the database, nothing is in the database. My code:
string inputForDB = null;
QuizCategoryTableAdapter quizCategoryAdap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What will we do after Access? Microsoft seems hell-bent on deprecating the swiss-army-knife of database tools. What else comes close for facading/file-swapping/cloning/name-your-acronym-connecting arbitrary database servers/spreadsheets/CSV's/flatfiles?
What weird kinds of functionality have you squeezed out of Acce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: JSCocoa and the iPhone Now I have a stack of free time on my hands, I wanna get into iphone dev fo real.
But Objective C scares me (a bit). It feels I'm going a bit back in time. I say this because I've spent the last 8 months coding in C++.
JSCocoa looks awesome, but does this actually work on the iphone?
What woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In mvc pattern how to show another view Hi im developing an winform application using mvc pattern,
If i have a windows form as a view with a button in it, and i want to show another view(winform) on click of button in the first form.
In this case whether the view should should notify the button click to the control... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How would you implement the pilloried function in the Daily WTF? The Daily WTF for 2008-11-28 pillories the following code:
static char *nice_num(long n)
{
int neg = 0, d = 3;
char *buffer = prtbuf;
int bufsize = 20;
if (n < 0)
{
neg = 1;
n = -n;
}
buffer += bufsize;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Spline, B-Spline and NURBS C++ library Does anyone know of a library or set of classes for splines - specifically b-splines and NURBS (optional).
A fast, efficient b-spline library would be so useful for me at the moment.
A: 1.) For B Splines - You should check Numerical Recipes in C (there is book for that and it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Will taskDelay(0) yield the CPU to a lower priority task If there are 3 tasks(T1,T2,t3) with priority P1 P2 P3.
P1 is pended.
Assume that task P2 is doing some computation. During its execution, it wants to Yield the CPU to other tasks in the system.
Will TaskDelay(0) still works in this condition? or it works only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Memory Efficient Alternatives to Python Dictionaries In one of my current side projects, I am scanning through some text looking at the frequency of word triplets. In my first go at it, I used the default dictionary three levels deep. In other words, topDict[word1][word2][word3] returns the number of times these w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Mapping SQL 2008 datetimeoffset using nhibernate Is there any supported way of mapping datetimeoffset the new datatype in SQL 2008 to the System.DateTimeOffset using nhibernate?
A: NH 2.1 (or compiling from NHibernate trunk) supports this and more out-of-the-box. Check it out
A: (Assuming google didn't turn of any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Best way to display data via JSON using jQuery i am trying to find the best way to display results on my page via an Ajax call using jQuery, do you think the best way is to pass it as JSON or plain text? I have worked with ajax calls before, but not sure which is preferred over the other and for the JSON version wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: grouping the rows in excel I have designed one web page in asp.net. In that i have used the css file and excel generation button. While i am cliking the button for populating the data from database to excel. It is showing the problem in uploading the css file like that .What will i do the for removing the that error... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Seeking examples of workflow using git-format-patch and git am I'm thinking of asking my students to use git for pair programming. Because student work has to be secret, a public repo is out of the question. Instead, each student will have a private repo they maintain themselves, and they will need to exchange pat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Why is the Python readline module not available on OS X? The documentation of the Python readline module says "Availability: Unix". However, it doesn't appear to be available on OS X, although other modules marked as Unix are available. Here is what I'm using:
$ uname -a
Darwin greg.local 8.11.1 Darwin Kernel Versi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: In Selenium, how do I turn off logging? I am using the following method:
set_browser_log_level 'off'
but my log level continues to include INFOs.
I am trying to suppress both logging and the "Last 4 commands" display for when my test enters a login password.
http://release.seleniumhq.org/selenium-remote-control/0.9... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I write an .aspx app on Windows XP? I'm planning to write a aspx pages on Windows XP machine. I have IIS 7.0 enabled and virtual directory setup. Are aspx page developments allowed on Win XP?
A: Yes, you can develop ASP.NET pages (.aspx) on Windows XP. XP only runs IIS 5.1, however you don't even need IIS insta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL Prepared statements with a variable size variable list How would you write a prepared MySQL statement in PHP that takes a differing number of arguments each time? An example such query is:
SELECT `age`, `name` FROM `people` WHERE id IN (12, 45, 65, 33)
The IN clause will have a different number of ids each ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: UITextField converts non-breaking spaces to spaces? It seems UITextFields convert all non-breaking spaces (nbsp, U+00A0) to spaces (U+0020). This causes problems for the editing of locale specific numbers. For instance, in the French/France locale, the non-breaking space separates 1 and % to form "1 %". However, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Hopefully simple question about modifying dictionaries in C# I have a huge dictionary of blank values in a variable called current like so:
struct movieuser {blah blah blah}
Dictionary<movieuser, float> questions = new Dictionary<movieuser, float>();
So I am looping through this dictionary and need to fill in the "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I make some items in a ListBox bold? In Visual c# Express Edition, is it possible to make some (but not all) items in a ListBox bold? I can't find any sort of option for this in the API.
A: You need to change listbox's DrawMode to DrawMode.OwnerDrawFixed. Check out these articles on msdn:
DrawMode Enumerat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How are Python's Built In Dictionaries Implemented? Does anyone know how the built in dictionary type for python is implemented? My understanding is that it is some sort of hash table, but I haven't been able to find any sort of definitive answer.
A: Here is everything about Python dicts that I was able to put tog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "416"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.