text stringlengths 8 267k | meta dict |
|---|---|
Q: How do you stop a PHP class from executing? I'm looking for something like break for loops.
Here's some example code (using Symfony's lime) where stop() would not let the class continue and I_DONT_WANT_THIS_TO_RUN() would not be executed.
$browser->isStatusCode(200)
->isRequestParameter('module', 'home')
->isReq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I install IronPython 2.0 with NGEN'ed binaries? Does anyone know how to install IronPython 2.0 with NGEN'ed binaries using the MSI package? The official IronPython homepage says that the NGEN option will greatly improve startup time, but for some reason it is not enabled by default. It doesn't actually stat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating relationships between posts in WordPress Is there a way to create an exlicit relationship between two posts in WordPress regarless of what categories those posts might be in?
The idea is that within the post template it would be obtain and list the related posts for the current post.
I'm guessing you could ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: which were your achievements in programming in 2008? which were your achievements in programming in 2008?
what technologies surprise you or learn this year and what do you expect in programming terms in 2009
Edit:
Changed to Wiki
A: *
*I wrote 2 VB.NET language features that will ship as part of VS 2010.
*I desig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: LINQ to Object Help I have the following entity structure:
public class Party
{
public Int32 PartyId { get; set; }
public List<PartyRelationship> RelationShips { get; set; }
}
public class PartyRelationship
{
public Int32 PartyId { get; set; }
public Int32 RelatedPartyId { get; set; }
}
Now if I cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Populating Selects from the Database using Zend_Form What is the best way to populate a select element that is part of Zend_Form?
I've used populate() to fill in various form element values but the select statements do not get populated.
My solution, which works but I suspect is not ideal, is as follows:
In the ini... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delphi: App initialization - best practices / approach I run into this regularly, and am just looking for best practice/approach. I have a database / datamodule-containing app, and want to fire up the database/datasets on startup w/o having "active at runtime" set to true at design time (database location varies). ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to update SPItemEventReceiver assembly version for a list in SharePoint? We have an SPItemEventReceiver compiled into its own assembly.
We are using STSDev to package up a SharePoint solution with this EventReceiver as a feature. I am not assigning the SPItemEventReceiver to a specific ListTemplateId within t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Online Java Book Is there an online Java book like Dive into Python for learning Python?
Other resources online besides the standard Java documentation (which is awesome but almost too technical)
.
A: Hard to tell if you meant this by "standard online documentation" but the Java Tutorial is excellent and what many ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Aligning images - horizontally If you go to my site: www.ryancoughlin.com - and if you see the Google, Yahoo, etc. RSS buttons on the right side of the page. I am trying to get them to align evenly, they are all the same image height and I have been trying to get them to evenly line up. But I have had no success.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Delphi visual component - moving away from TFrame base? I have a visual component that I built from a TFrame (but then registered to the palette, etc); it works great and I loved being able to build it VISUALLY using the IDE.
I would now like to create a "family" of related components, and to do so, would like to cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I intercept property accesses in Groovy with ProxyMetaClass? The ProxyMetaClass and Iterceptor classes for intercepting arbitrary Groovy method calls is well documented. Is there also a way to intercept property accesses? When I try to do this by intercepting "getProperty", I still get the error message:
g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Do I need to release IBOutlets when using loadNibNamed: method? I have a .xib file containing a UIView and 2 UILabel subviews linked to a class named Note with outlets assigned to each label appropriately, the definition for this class contains the following.
@interface Note : UIView {
IBOutlet UILabel *time;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: how to get batch file parameters from Nth position on? Further to How to Pass Command Line Parameters in batch file how does one get the rest of the parameters with specifying them exactly? I don't want to use SHIFT because I don't know how many parameters there might be and would like to avoid counting them, if I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Latex using eps images builds slowly Working with a latex document with eps images as in the example below...
\documentclass[11pt]{paper}
\usepackage[dvips]{graphicx}
\usepackage{fullpage}
\usepackage{hyperref}
\usepackage{amsmath}
\DeclareMathSizes{8}{8}{8}{8}
\author{Matt Miller}
\title{my paper}
\begin{documen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rotating a Div Element in jQuery Trying to rotate a div element...This might be DOM blasphemy, could it work possibly with a canvas element? I'm not sure - if anybody has any ideas of how this could work or why it doesn't, I'd love to know. Thanks.
A: yeah you're not going to have much luck i think. Typically acros... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Separate Class vs Method Quick design question.
ClassA has a method called DoSomething(args)
In DoSomething(), before it can actually do something, it needs to do some preparatory work with args. I believe this should be encapsulated within ClassA, (as opposed to doing the prep work outside and passing it in) as no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: In what contexts do programming languages make real use of an Infinity value? So in Ruby there is a trick to specify infinity:
1.0/0
=> Infinity
I believe in Python you can do something like this
float('inf')
These are just examples though, I'm sure most languages have infinity in some capacity. When would you act... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Fonts in pdf documents screwed up when generated with latex (specifically, pdflatex) on mac osx My colleague suggests that texniscope is somehow to blame and that I should try purging it from my system. I really hope not to have to resort to that!
Possible clues:
*
*This wasn't an issue till I upgraded to Leopar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: High level architecture Even if you are using Agile, you would need a high level architecture before you can start implementing the project.
By high level architecture, I mean dividing project into small parts, infrastructure stuff, distributed/web-based/thick client etc...
Are there any books/articles on this topi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: System Resource Monitor/Graph I'm looking for an app that does about the same thing at the Performance tab on Task Manager, but on a per-process basis and with more plotted values. At a minimum, I would like to be able to plot CPU and memory usage but it would be nice if it could plot:
*
*Network usage
*File sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a tool to directly edit the contents of a Jackrabbit repository? I have a file system based Jackrabbit repository which I would like to view and edit directly. Is there an existing tool that allows me to view/edit/delete/add nodes directly?
A: If it's behind a WebDAV server, mount it as a file system.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is @measured a standard decorator? What library is it in? In this blog article they use the construct:
@measured
def some_func():
#...
# Presumably outputs something like "some_func() is finished in 121.333 s" somewhere
This @measured directive doesn't seem to work with raw python. What is it?
UPDATE: I s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Comparing existing data entries in Java I have a HashMap relating Keys to Strings, and I need to compare some of the Strings against each other. However, some of the Strings may or may not be in the HashMap.
Example: Let's say I have 4 Strings that I plan to compare to each other if possible, but only 3 of them end... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Absolute paths for PHP include Ok I'm at my work this friday setting up a table that will have data in it that will come from a separate file called values.php. When I write it like this, the divs turn up blank. I think I have the "include" written wrong, does an absolute path not work?
<?php include('http://www.n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can the CheckStyle module "NeedBraces" work with nested if/else blocks? We are using CheckStyle to enforce our style standards. One of the style rules we opted to include was the NeedBraces module.
NeedBraces specifies that every block type statement (such as if, else, for) must have opening and closing curly brace... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How does the syndication part of RSS work? I understand how to make an RSS file. The XML for it is simple enough. But do I have to anything special for updates to get distributed or do I just need to update the file periodically and the rest will take care of itself? All of the stuff I've found on rss talk about wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are the differences between using an iframe and ajax to include the contents of an external page? I have been reading up on this, and it seems that if you use ajax you can only bring in content that resides on the same domain whereas with an iframe you can bring in content from any domain. Is that the case? W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is meant by the term "web stack?" While I see the relevance of "web" in the phrase "web stack," I'm left wondering what "stack" refers to in this context.
A: It refers to the components or technologies/languages/operating sytems/etc used to build a web site. For instance the "LAMP" stack is: Linux, Apache, M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How can I position a div over two iframes where one iframe has external (different domain) content? I am looking for a way to position a div (it would be a pop-up that would be activated by a user hovering and/or clicking much like lightbox) over an a split iframe where the top iframe is content from my server and t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Good NumericUpDown equivalent in WPF? I'm looking for a simple NumericUpDown (a.k.a. number spinner) control in WPF. This seems to be another lacking control in WPF. There must be some existing ones out there and I don't like to re-invent the wheel.
A: A control that is missing from the original set of WPF controls... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: IIS hang state Any suggestion to detect flaws in VB6 components running under IIS. IIS becomes unstable and after some time enter in a state of hang. The problems occur in the most part only in the production environment. We have many modules running. Probably there are components with bugs and need to identify them... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Space in IE - FF displaying fine At my personal website while viewing a single post, i have an overview DIV, and in FF it has no space between the main header and the excerpt, but in IE there is a space there. Any idea on how I can get rid of that?
I have FireBug for FF and i installed IE Developer Toolbar on my oth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to import word documents into wiki? Anyone knows? Because i think one of the stumbling blocks for people to embrace wiki is of the fact that they need to separately upload the images to the wiki instead of just doing simple copy/paste to the word document
A: OpenOffice can save as a Mediawiki text file, ready t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Returning more than one value from a sql statement I was looking at sql inner queries (bit like the sql equivalent of a C# anon method), and was wondering, can I return more than one value from a query?
For example, return the number of rows in a table as one output value, and also, as another output value, return t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When to write web-based application and when to write desktop-based application? Now is time to write all for web-based applications? Write web applications is slower than winforms-based applications?
When to write web based and when to write desktop based?
A: You should write all your applications with the logic i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.net MVC on EC2 Does Amazon EC2 support ASP.net MVC?
A: Yes you will need to install .NET 3.5 SP1 and configure IIS6.0. But you have full control over the instance so it is all possible.
A: It can run full Windows Server 2003, so yes
A: (disclaimer, I'm co-founder of AppHarbor)
You can definitely run ASP.NET ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the easiest approach to synchronize and duplicate oracle db schema? I find it hard to generate the dbscripts from TOAD. I get errors when executing the scripts things like looping chain of synonyms or certain statement not abel to exceute etc.
Is there any seamless way in said like connecting a remote oracle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Escaping double quotes with tcsh alias I'm trying to run the following commands:
replace -x "must " A2input.txt
replace -x " a" -f -s ## A2input.txt
replace -x to -s ## -a A2input.txt
replace -x faith -f "unequivocal" A2input.txt
And it'd be nice if I could just alias it to something short and simple like "a", "b",... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: MVC ModelBind ListBox With Multple Selections How do I submit the ListBox selections to the ModelBinder?
<%=Html.Hidden("response.Index",index)%>
<%=Html.ListBox("response[index].ChoiceID",
new MultiSelectList(gc.choice,"ChoiceID","ChoiceText") )%>
'gc.choice' is a List
I can get the fisrt selecte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IE7 missing Atom feed autodiscovery I've been showing a website to a customer who insists on using IE and found out, to my surprise, that IE7 does not autodiscover the Atom newsfeed.
The feed is linked to within the HEAD element of a valid HTML 4.01 Strict page with <link rel="alternate" type="application/atom+xml" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Compiling Massive VB.NET Project To compile my current project, one exe with ~90,000 loc + ~100 DLL's it takes about a half hour or more depending on the speed of the workstation.
The build process is one of running devenv from Powershell scripts. This works very well with no problems.
The problem is that it is sl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is my cloned dataset blank? I'm using TClientDataset.CloneCursor to implement different views of the same data. I have a master dataset, and several clones, each of which contains a different subset of the master dataset's fields. But when I try to display data from the clones, they come up empty. The master ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Emacs equivalent of Vim's foldmethod = indent Question: Does Emacs have a canonical equivalent of Vim's Folding with Foldmethod=indent?
I am particularly interested in something that can work alongside any Emacs major mode and any file. The Emacs searches have not turned up a definitive answer.
A: Seems like it can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to configure JNDI for Jetty 7.0pre5 I am getting this error when starting up Jetty that uses Mysql Connection Pool. Could someone help me out please?
[root@localhost test]# java -DOPTIONS=plus,ext.default -classpath %CLASSPATH% -jar /usr/src/jetty7/start.jar myjetty.xml
2008-12-20 18:24:08.138::INFO: Logging t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Teaching systems analysis and design - how much programming experience is needed? I teach a one semester University course in systems analysis and design. Topics include design patterns, UML, OOP, software development lifecycles, and the history, benefits and drawbacks of various methodologies (such as Agile/SCRUM/B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: mod_perl vs mod_fastcgi I'm developing a web app in Perl with some C as necessary for some heavy duty number crunching. The main problem I'm having so far is trying to decide if I should use mod-perl, mod-fastcgi or both to run my scripts because I'm having a difficult time trying to analyze the pros and cons of eac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: ADO.NET Entity : limiting data selection based on View Consider following example:
SQL Table Customer:
ID: Primary Key
Name: Name
SQL View ViewCustomerSelection:
ID: Link to Customer ID
SomeOption: Not important
I'd like to create ADO.NET an entity that only selects customers that have corresponding values in View... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Emacs keybinding for "\C-' " How do you set a function to \C-' ? when I try to do :
(global-set-key "\C-'" 'myfunct)
it gives me "Invalid modifier in string".
A: For any key sequence you want to use, press C-h k and then press the key sequence you want to use. Then it tells you the name of the key. That name is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Destructor C++: type '***' argument given to 'delete', expected pointer I declared a private variable
vector<SomeClass> theVector;
someplace inside my SomeClass class.
Why can't I say: delete theVector inside my SomeClass destructor?
The compiler error says:
type `class Vector<SomeClass>' argument given to `delet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: super() function in JAVA Button class:
class SubmitButton extends JButton implements ActionListener {
public SubmitButton(String title){
super(title);
....
Where I declare it:
SubmitButton submit = new SubmitButton("Submit");
submit.setBounds(530+150, 200, 100, 25);
How does super(title) set th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Launching java classes via windows drag-and-drop I have a java class file with a main method. In Windows, I would like to be able to drag files onto a desktop icon/short/etc that would call supply the filenames to my main method. Basically, I want to allow users to drag-and-drop files at program execution instead of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I convince skeptical colleagues about proper namespaces in .Net? My team is working on a conversion project to convert one product (but with many facets) from VB6 to .Net (we have over ~300k LOC). Before I got on board, the decision was made that regardless of the location of the assembly, or folder structur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you read dot notation in JavaScript? For the sake of an example, is this statement
window.Number.constructor.prototype.constructor();
read like a path?
C:\Users\Vista\Documents\Work\text.txt
From left to right
window:\Number\constructor\prototype\constructor()
where window is the root object, Number is an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Standalone java base java formatter Is there a Java-based program (executable-jar) that can format java code (indenting/spacing)?
If it would be configurable, that would be great.
A: You bet: JIndent.
A: CheckStyle is another and FREE.
CheckStyle:Indentation.
A: https://github.com/google/google-java-format
Google... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replacing accented/umlauted characters with their unadorned counterparts in C# Duplicate of 249087
I have a bunch of user generated addresses that may contain characters with diacritic marks.
What is the most effective (i.e. generic) way (apart from a straightforward replace) to automatically convert any such chara... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to add nodes to a WPF treelist using VB.net (2008) I need to create a wpf treeviewlist to look something like this:
AAAA
BBBB
....CCCC
....DDDD
.......EEEE
FFFFF
(where the dots above are indents)
I need to do this from vb.net (2008) code.
I've spent an embarrassingly long amount of time trying to figure t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Keyup Event After a Time Interval I have this jQuery code that queries an API on a keyup event (via keyterms.php). It works as it is, but I'm trying to figure out how to implement a "pause" so to speak such that it will only do a query after a certain amount of time (say 2sec.) after the last keyup. Any help will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to apply Test Driven development for GUI application(VC MFC)? Can I use TDD for gui application?
How to do it.
A: Why not. Here is a good article, from object mentor.
Found another blog post, TDD - Introduction to Moq. Its related to C# and VB.NET.
Checking out Myth and Misconception regarding TDD is a must.
He... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Entity Framework - associated entities question I've noticed that if i have an Pk/FK association, the FK ID is removed from the entity in the designer. How do I join query statements?
Basically I'm looking for some good Linq to Entity video tutorials (sorry, I'm an audio/visual learner)
A: Say you have a 'review... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AS3 Timeline Variable issues I'm trying to get a dynamic movie clip from the timeline.
I have a timeline of unknown length with a movie clip with instance name "blah" on one of the key frames (assumed 88 in this case).
No matter what I do, I cannot get a reference to the said movie clip.
Here's what I tried:
trace(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I set parent-child relation on same table using ActiveRecord? How can I set parent-child relation on same table?
Id int,
title string,
ParentId int ---> this is refer to Id
A: What ActiveRecord implementation are you using?
In Castle ActiveRecord, if your table looked like this:
table Document (
Id i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In Mac OS X, is there a programmatic way to get the machine to go to sleep/hibernate? Is there some command line or AppleScript that I can write/run to make the machine go to sleep automatically or even better, into hibernate mode?
I can run the program as root.
A: osascript -e 'tell application "Finder" to sleep'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why do compilers not warn about out-of-bounds static array indices? A colleague of mine recently got bitten badly by writing out of bounds to a static array on the stack (he added an element to it without increasing the array size). Shouldn't the compiler catch this kind of error? The following code compiles clean... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How do you handle scheduled tasks for your websites running on IIS? I have a website that's running on a Windows server and I'd like to add some scheduled background tasks that perform various duties. For example, the client would like users to receive emails that summarize recent activity on the site.
If sending o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: "Repair" network connections programmatically/from command line Does anyone know exactly what Windows XP does when you click "Repair" on a network connection? I'd like to do the same programmatically or from a command line.
I did a Google search and found this article, which has a good explanation, but I don't think... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Using Python's ctypes to pass/read a parameter declared as "struct_name *** param_name"? I am trying to use Python's ctypes library to access some methods in the scanning library SANE. This is my first experience with ctypes and the first time I have had to deal with C datatypes in over a year so there is a fair le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do stl containers get deleted? How does container object like vector in stl get destroyed even though they are created in heap?
EDIT
If the container holds pointers then how to destroy those pointer objects
A: If you have a vector<T*>, your code needs to delete those pointers before delete'ing the vector: other... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Are there any tools for diffing HTTP requests/responses? I am trying to debug some problems with very picking/complex webservices where some of the clients that are theoretically making the same requests are getting different results. A debugging proxy like Charles helps a lot but since the requests are complex (lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Decision between storing lookup table id's or pure data I find this comes up a lot, and I'm not sure the best way to approach it.
The question I have is how to make the decision between using foreign keys to lookup tables, or using lookup table values directly in the tables requesting it, avoiding the lookup table ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: GWT lazy loading Does GWT has LazyPanel .I can not see it .Please let me know .If it got lazyPanel ,please lemme know version
A: I agree with rustyshelf on the principle of Google search, but since StackOverflow is also a reference in itself, here is a more detailed answer:
By default, the LazyPanel is not display... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is "Put Scripts at the Bottom" Correct? In the Best Practices to improve web site Performance http://developer.yahoo.com/performance/rules.html, Steve Souders mentioned one rule "Move Scripts to the Bottom". It's a little confusing. Actually, I notice that a lot of web pages that doesn't put script at bottom, while ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Winforms: Is it safe to delete the code in the automatically created Dispose() method created by Visual Studio for Windows Forms Background
In Visual Studio 2008
Create a new Windows Forms Application, this will create a skeleton project with a class called "Form1". VS2008 automatically creates a Dispose() method.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to change the target table of a SQL insert statement? How would you write a sql statement that allows you to insert data obtained from a form but will be entered in either one tabe or another depending on what is selected on the form? I know how to insert the data from a form to a specified table but I need to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Data Transfer I need to transfer data from one table to the same table in another server which has been truncated. What is the easiest way to do this?
A: Setup linked servers and then use the following on the destination database:
INSERT INTO existingTable (col1,col2..)
SELECT col1,col2...
FROM linkedserver.db... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rails Schema creation problem I am using Jruby and rails 2.2.2. My problem is I have a migration that is not being correctly written to the database schema.
Here is my migration:
class CreateNotes < ActiveRecord::Migration
def self.up
create_table(:notes, :options => 'ENGINE=MyISAM') do |t|
t.string :... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Accessing SQL Server Express 2005 database via 2008 64bit SSMS I have a 64bit Vista laptop. Initally, I tried to Install a 64bit version SQL Server Express 2005 on my computer, but no matter what I tried, only the 32bit version seemed to work...so that is what got installed.
The 32bit SQL Server Express 2005 was wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django: How can I use my model classes to interact with my database from outside Django? I'd like to write a script that interacts with my DB using a Django app's model. However, I would like to be able to run this script from the command line or via cron. What all do I need to import to allow this?
A: Depending ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Iterating multiple $_POST arrays I have the following code:
<tr>
<td width="60%">
<dl>
<dt>Full Name</dt>
<dd>
<input name="fullname[]" type="text" class="txt w90" id="fullname[]" value="<?php echo $value; ?>" />
</dd>
</dl>
</td>
<td wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I pass variables between view controllers? i'm having a hard time with Xcode; for some reason, it just won't let me pass a variable from one view controller class to another. It should work, i was basically just copying/pasting from my other classes (it works on all of them... except this one). I've been at i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to change color of Image at runtime I would like to know is there any way by which we can change the Image color at runtime.
for e.g lets say I am having a JPG bind to an Image control of ASP.Net. Next I am having a dropdown List which gives me the various color option like red,gree,etc. I would now like to chan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Assertion messages: assume failure, or assume success When testing in any language, how does everybody phrase their assertion messages?
I see three obvious ways:
# assume failure
assert (4-2) == 2, "Subtracting 2 from 4 doesn't equal 2"
# describe success
assert (4-2) == 2, "Subtracting 2 from 4 should equal 2"
# ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: jQuery - How Do I Place a DIV On Overlay? I'm trying to make a modal dialog in the least amount of jQuery code as possible because my project already has a bit too much jQuery loaded into it.
So, I first needed an overlay, which is achieved with:
$('body').wrapInner('<div />')
.css('opacity','0.5')
.css('z-index','2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: ASP.NET MVC and Mootools Do you know of any examples of MooTools and ASP.NET MVC?
A: ASP.NET MVC includes JQuery which seems to have Microsofts approval. However there really isn't a great deal of overlap (as yet) with the client side Javascript framework and the server-side MVC architecture specifically.
The use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to model an Association Class in Core Data? I have a relationship in a Core Data model that feels like it wants an association class. Specifically, I have a Person object, and a Location object. There is a many-to-many relation between these two classes, which has some properties, such as how ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Legality of 3rd party IM APIs Is it legal to write instant message software that implements MSN Messener, Yahoo! Messener, or AIM protocols and receive money for it through ads?
A: Part 4 of the MSN Terms of Use says this (shortened down):
4 How You May Not Use the Service.
use any unauthorized third party softwar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How To Divide Gotten Data from A Datatable And Bind Some Of Them To Headertemplate of Datalist May be the subject is complicated, so I'll try to explain:
I get some data from database which some of them has TypeId=1 and some has TypeId=2. I want to take data which TypeId=1 to header template and TypeId=2 to itemtemp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best IDE setup for web development? I am starting a little side project which consists of building a small-medium sized, django-based, website.
However, last time I was actually in the business of websites, was a few good years ago. So while still technologically capable, I'm still rusted on the tools/ID... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: To use thread in programming in vb6 I am programming to generate keys in hexadecimal using different random function and write it in the text file. I have only two cmd buttons and status bar which displays the current time and the status of the process. Now on clicking the cmd button for keygeneration the form gets ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to retrieve duration of MP3 in .NET? I have build a WPF application where users can drag and drop MP3 files onto a listbox. I need a way to calculate the total duration of the playlist.
Any libraries I should use? Or is it possible using only the .NET framework?
A: I wrapped mp3 decoder library and made it avai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why should I use inline coding to develop MVC ASP.NET? I reviewed some examples about MVC ASP.NET and all of them use the inline coding method.
Is there a big reason to use this method and ignore my preferred code behind method?
A: A nice quote from Derek Whittacker. Couldn't but it better myself
Also refer to thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to write a desktop app that would read/write data to a symbian phone connected to the PC I would like to create a desktop application (preferably in c#, running on .net or mono) that would read/write information (phone book, calendar, calls, text messages, etc.) from/to my connected (usb/bluetooth) symbian phone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Correct prototype chain for Function What is the correct output (meaning correct by the ECMA standard) of the following program?
function nl(x) { document.write(x + "<br>"); }
nl(Function.prototype);
nl(Function.prototype.prototype);
nl(Function.prototype.prototype == Object.prototype);
nl(Function.prototype.prototy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: QX11EmbedContainer and QProcess problem I've been trying to put a QX11EmbedContainer in my app, and I need to start a terminal within it (because with konsolepart I can practically do nothing).
QX11EmbedContainer* container = new QX11EmbedContainer(this); // with or without "this" I got the same result
container->sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generating pop up in JSF I'm new to JSF world please help me out in generating a pop up window in the page.
Here is my requirement I will be having a list of links in my master page(parent) on click of each link I need to show a pop up which contains some details, which I need to get from DB in the pop up mbean. I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JavaScript - check if in global context When a function is attached to an object and called:
function f() { return this.x; }
var o = {x: 20};
o.func = f;
o.func(); //evaluates to 20
this refers to the object that the function was called as a method of. It's equivalent to doing f.call(o).
When the function is called... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: JavaScript implementation that allows access to [[Call]] The ECMA standard defines a hidden, internal property [[Call]], which, if implemented, mean the object is callable / is a function.
In Python, something similar takes place, except that you can override it yourself to create your own callable objects:
>>> clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Compile Views in ASP.NET MVC I want an msbuild task to compile the views so I can see if there are compile time errors at well... compile time. Any ideas?
A: The answer given here works for some MVC versions but not for others.
The simple solution worked for MVC1 but on upgrading to MVC2 the views were no longer b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "582"
} |
Q: What's more important, as little http requests as possible or splitting files for easy development? A lot of times when reading about web developping on the internet I hear that you should split up your javascript and css files into multiple files.
Like split up your css files in a:
*
*clear.css
*base.css
*page... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Handling a Unicode String in Delphi Versions <= 2007 Background: This question relates to versions of Delphi below 2009 (ie without Unicode support built in). I have a specification that requires me to transmit a Unicode encoded string over a TCP connection but I do not have Delphi 2009.
Question Is there a single ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.