text string | meta dict |
|---|---|
Q: Formatting dict.items() for wxPython I have a text box in wxPython that takes the output of dictionary.items() and displays it to the user as items are added to the dictionary. However, the raw data is very ugly, looking like
[(u'BC',45)
(u'CHM',25)
(u'CPM',30)]
I know dictionary.items() is a list of tuples, but I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Refactoring "to hit" values for a game I'm making a game and one of the methods calculates a character's base hit numbers based on skill values. The method currently calculates each value individually, since each skill can be used at short, medium, and long range.
I originally thought I could combine the skills into... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to draw a filled envelop like a cone on OpenGL (using GLUT)? I am using freeglut for opengl rendering...
I need to draw an envelop looking like a cone (2D) that has to be filled with some color and some transparency applied.
Is the freeglut toolkit equipped with such an inbuilt functionality to draw filled geome... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Differences between .NET versions (predominantly c#) Ive recently been asked to recommend a .NET framework version to use in a (GUI based) project for an XP machine.
Can anyone explain the differences between all the .NET versions?
OR,
Does anyone have a good reference to a site that details (briefly) the difference... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: RedirectStandardOutput is buffering lines instead of being instantaneous? Ok, I am trying to use Tail to monitor a log file, but I cannot get the same behavior programatically as when I manually run it through cmd prompt using the same parameters.
When run through cmd prompt it displays the new lines instantly. Prog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: adding multiple views to view controller inside a tab controller I have a tabview controller to which I added a UIViewController to each tab. I want to have multiple UIViews inside the UIViewController.
So in the implementation of the UIViewController class I added [self.view addSubView:uiview1] and [self.view addSu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to convert xsd to human readable documentation? We have a few XML based interfaces that is quite well documented in XSD schemas. The interfaces are now going to be publicly available and we would like to create reference documentation for them.
Is there a tool that can automatically convert XSD files into some m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: How do I index and make available reusable code? I have many small files containing code fragments, pseudo-code algorithms, classes, templates, SQL-samples, etc., and I obviously cannot put all these into libraries. I need a practical method to index all of them, and to be able to make this index available to others... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: WPF BitmapImage Width/Height are always 1? I don't understand...
BitmapImage img = new BitmapImage(myUri);
Console.WriteLine("Width: {0}, Height: {1}", img.Width, img.Height);
Output: "Width: 1, Height: 1".
I've tried PixelWidth/PixelHeight, I've tried manually creating it with BeginInit/EndInit and also setting Pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I get my dependencies inject using @Configurable in conjunction with readResolve() The framework I am developing for my application relies very heavily on dynamically generated domain objects. I recently started using Spring WebFlow and now need to be able to serialize my domain objects that will be kept in f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Full-text search relevance is measured in? I am making a quiz system, and when quizmakers insert questions into the Question Bank, I am to check the DB for duplicate / very highly similar questions.
Testing MySQL's MATCH() ... AGAINST(), the highest relevance I get is 30+, when I test against a 100% similar string.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: ASP.Net MVC - redirecting to route gives Redirect Loop This is probably one of those easy questions.. I'm trying to redirect the user after they've successfully authenticated, or return them back to the login page. But the Success page is on a different route and I can't get the redirection to work..
Here are my ro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is std::safe_string? An answer to one of my questions included the following line of code:
label = std::safe_string(name); // label is a std::string
The intent seems to be a wrapper around a string literal (so presumably no allocation takes place). I've never heard of safe_string and neither, apparently, has g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to change url for some sites automatically in Firefox 3 I want some particular urls like "springer.com" to automatically convert to "springer.com.proxy1.mycollege.edu". The second url takes me to springer site through my college library gateway; I am able to access some parts that would otherwise be restricted.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Storing code snippets in eclipse I'm a recent semi-convert to Eclipse after 20 years of using vi and gvim. One of the things I miss about gvim is that I could cut a bunch of different snippets of code into named buffers, and paste them at will when doing something like repeating a common idiom. For instance I'd ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: Vertices and Lost Devices In a Direct3D application (managed), should I recreate the vertex buffer every time I lose my device?
The application I am developing is a windows CAD application. Not a game. I was thinking I could generate the vertex buffer when my 3D Model changes. But should I redo it when I lose my dev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/237988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replace Line Breaks in a String C# How can I replace Line Breaks within a string in C#?
A: Use replace with Environment.NewLine
myString = myString.Replace(System.Environment.NewLine, "replacement text"); //add a line terminating ;
As mentioned in other posts, if the string comes from another environment (OS) then... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "600"
} |
Q: Quickest way to setup this asp.net page against MS Access DB . . I have an access database with 3 tables.
*
*People
*Gifts
*PeopleGifts
Using VS 2008, what is the quickest way to get a page up and running which allows me to run queries against these tables and do basic inserts.
I want to have comboboxs bou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Relative performance of std::vector vs. std::list vs. std::slist? For a simple linked list in which random access to list elements is not a requirement, are there any significant advantages (performance or otherwise) to using std::list instead of std::vector? If backwards traversal is required, would it be more eff... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: How do I do inline assembly on the IPhone? How is it done? What steps do I need to take and what pitfalls and gotchas are there to consider?
A: I've gotten this to work, thanks to some inside help over at the Apple Devforums, you should sign up if you're a dedicated IPhone developer.
First thing's first, it's __asm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Invoking windows batch file from Linux I have an application running only on Windows and a batch file that launches it.
I want to invoke this batch file from Linux, meaning something like Linux batch will launch the windows batch with parameters and this in its turn run my application.
Can I do that? How?
A: You co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Peer to peer replication in SQL Server 2005/08 Has anyone had any experience in setting up peer to peer replication using SQL Server 2005 or 2008?
Specifically, I'm interested in whether other options/alternatives where considered and why P2P replication was ultimately chosen.
If you have used P2P replication:
*D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Java HTML Parsing I'm working on an app which scrapes data from a website and I was wondering how I should go about getting the data. Specifically I need data contained in a number of div tags which use a specific CSS class - Currently (for testing purposes) I'm just checking for
div class = "classname"
in each l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: What artifacts to save for a released build? So, I now know what to save from nightly builds. What about when I give something to customers?
For example, I probably want to save debugging information (e.g. PDB).
What else?
A: We use:
*
*installers
*binaries
*pdbs
*tag of source files
*any other source fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using SQL Server 2008 Geography types with nHibernate's CreateSQLQuery I am trying to issue a SQL update statement with nHibernate (2.0.1GA) like this:
sqlstring = string.Format("set nocount on;update myusers set geo=geography::Point({0}, {1}, 4326) where userid={2};", mlat, mlong, userid);
_session.CreateSQLQuery(s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can an iPhone or iPod Touch communicate with another device in the same room? I'm new to developing applications for the iPhone and iPod touch. Is it possible to communicate directly between 2 devices in the same room by using WiFi or perhaps even BlueTooth on the iPhone?
I've seen a demo of a fire application wher... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the simplest way to format a timestamp from SQL in PHP? What is the simplest, fastest way to complete the PHP code below such that the output is in a user-friendly format (for example, "October 27, 2006")?
$result = mysql_query("SELECT my_timestamp FROM some_table WHERE id=42", $DB_CONN);
$row = mysql_fetch_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to add a progress bar to a shell script? When scripting in bash or any other shell in *NIX, while running a command that will take more than a few seconds, a progress bar is needed.
For example, copying a big file, opening a big tar file.
What ways do you recommend to add progress bars to shell scripts?
A: You ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "526"
} |
Q: How do you log server errors on django sites So, when playing with the development I can just set settings.DEBUG to True and if an error occures I can see it nicely formatted, with good stack trace and request information.
But on kind of production site I'd rather use DEBUG=False and show visitors some standard erro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "185"
} |
Q: Pattern matching of lists in Python I want to do some pattern matching on lists in Python. For example, in Haskell, I can do something like the following:
fun (head : rest) = ...
So when I pass in a list, head will be the first element, and rest will be the trailing elements.
Likewise, in Python, I can automaticall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Another Synergy issue: screen lock on Windows Server 2003 I have set up Synergy on Unix systems with no problems, however when I set up a Synergy server on a Windows Server 2003 box using I get an error message that the mouse cursor is locked when trying to move to the client system. I use a Microsoft Natural keybo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Anonymous Types in a signature I am trying to get the signature on the method below to work. As this is an Anonymous Type I have some trouble, any help would be great.
When I looked at sortedGameList.ToList() in a QuickWatch window I get the signature
System.Collections.Generic.List<<>f__AnonymousType0<System.Date... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best practice for profiling a SharePoint application When the SharePoint application you are working on has unsatisfactory response times how do you pinpoint the causes and in which sequence? So far I have not yet found any open source or commercial profiling tools specific for the SharePoint segment, so any pointer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a windows implementation to python libsvn? Because windows is case-insensitive and because SVN is case-sensitive and because VS2005 tends to rename files giving them the lower-case form which messes my repositories' history, I've tried to add the pre-commit hook script from http://svn.collab.net/repos/svn/t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Implementing a SQL Server 2008 User-defined function in managed code for geocoding The goal:
To create a .NET dll i can reference from inside SQL Server where i can pass in an address & get back a geocode string that i can stick into a geography data type as a POINT using STPointFromText() in t-SQL.
I'm using Virtu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Worst Java practice found in your experience? Similar to this question...
What are the worst practices you actually found in Java code?
Mine are:
*
*using instance variables in servlets (it's not just bad practice but bug, actually)
*using Collection implementations like HashMap, and not using the appropriate in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Cross-compiling with SBCL I have SBCL running on a Ubuntu machine. I want to write a little program that I want to give to a friend who has only Windows running. What is the quickest way to cross-compile it on my machine into a "standalone" windows program (i.e. the usual runtime+core combination)?
A: SBCL is abl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to add "Select Data Source" to my Excel application? I need the "Select Data Source" dialog added to my application so that the user can manually select a range (or ranges) in Excel and the range is pasted in my text box. This functionality is everywhere in Excel (most notably when selecting a range for a chart)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is possible to change the default diff tool in Mercurial? Every time I do an hg diff file.ext I end up using a console diff application. I would like to use Kdiff3 or WinMerge (I'm using Windows).
Is there a way to change that? I can't find a reference in Mercurial documentation (I'm not talking about merge!).
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Define an interface method that takes different parameters My application uses measurement instruments that are connected to the PC. I want to make it possible to use similar instruments from different vendors.
So I defined an interface:
interface IMeasurementInterface
{
void Initialize();
void... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to create a function in my Windows context menu I use jsmin to compress my javascript files before uploading them to production.
Since I tend to have one "code-behind" javascript file per page, I wind up doing this a lot.
I installed a Windows Powertoy that adds a context menu item in Windows Explorer, so I can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to bind Xml Attribute to Treeview nodes, while databinding XDocument to WPF Treeview I have an XML that needs to be databound to a WPF TreeView. Here the XML can have different structure. The TreeView should be databound generic enough to load any permutation of hierarchy. However an XAttribute on the nodes (cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to change Word.Range text without losing format Anyone knows how can I change the text of a Word.Range object but still keeping it's format?
For example if I have "this text" and I change it to "that txt", txt will still be in bold.
I'm looking for a way to change the whole text of the range, not just a single w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML to PostScript Conversion I'm searching for a free component or library that could convert HTML to PostScript ( .ps file format ). I'm using .Net framework 1.1. Any one have experience with situation like this ?
A: You could use the HTML viewer control and print the html to a PostScript printer that outputs to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Match unicode in ply's regexes I'm matching identifiers, but now I have a problem: my identifiers are allowed to contain unicode characters. Therefore the old way to do things is not enough:
t_IDENTIFIER = r"[A-Za-z](\\.|[A-Za-z_0-9])*"
In my markup language parser I match unicode characters by allowing all the cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to calculate the bounding box for a given lat/lng location? I have given a location defined by latitude and longitude.
Now i want to calculate a bounding box within e.g. 10 kilometers of that point.
The bounding box should be defined as latmin, lngmin and latmax, lngmax.
I need this stuff in order to use the pan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "121"
} |
Q: What is your naming convention for stored procedures? I have seen various rules for naming stored procedures.
Some people prefix the sproc name with usp_, others with an abbreviation for the app name, and still others with an owner name. You shouldn't use sp_ in SQL Server unless you really mean it.
Some start the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "131"
} |
Q: How to copy text programmatically in my Android app? I'm building an Android app and I want to copy the text value of an EditText widget. It's possible for the user to press Menu+A then Menu+C to copy the value, but how would I do this programmatically?
A: Here is some code to implement some copy and paste function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "260"
} |
Q: When have you used dynamic programming in the field? When have you ever directly applied the concepts of dynamic programming to solve a problem in the field? It's sometimes not evident how it can be applied when using it to solve a made-up instance of the knapsack problem.
A: It's probably a lot more common to use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: question about java interfaces Let's say I have the following ruby code :
def use_object(object)
puts object.some_method
end
and , this will work on any object that responds to some_method,right?
Assuming that the following java interface exists :
interface TestInterface {
public String some_method();
}
Am ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ActionLink not working but RouteUrl does I have a route
// Sample URL: /Fixtures/Team/id
routes.MapRoute(
"Fixtures-by-TeamID",
"Fixtures/Team/{teamId}",
new { controller = "Fixtures", action = "GetByTeamID", },
new { teamId = @"\d{1,3}" }
);
and I am trying to use ActionLink in ASP.net MVC p5. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Database : best way to model a spreadsheet I am trying to figure out the best way to model a spreadsheet (from the database point of view), taking into account :
*
*The spreadsheet can contain a variable number of rows.
*The spreadsheet can contain a variable number of columns.
*Each column can contain one sing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Algorithm/pattern for selecting sub-collections using LINQ and C# I have a C# collection of strings. Each string is a sentence that can appear on a page. I also have a collection of page breaks which is a collection of int's. representing the index where the collection of strings are split to a new page.
Example: Ea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create an options screen similar to Office 2007 in .NET I think the options screen in Office 2007 is much preferrable to the "traditional" fixed-size options dialog with multiple tabbed pages. What would be the best way to create a similar options screen for my own .NET application? Is there an existing con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Big number in C++ I am trying to place a big number in a C++ variable. The number is 600851475143
I tried unsigned long long int but got an error saying it the constant was too big.
I then tried a bigInt library called BigInt -> http://mattmccutchen.net/bigint/
The problem is I can't compile the code as I get many ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Headache getting php and sql server 2005 to run together Below is the code that i cannot get to work. I know i have established a connection to the database but this returns nothing. What am i doing wrong?
$result = "SELECT * FROM images WHERE path = ?";
$params = array("blah");
$row = sqlsrv_query($conn, $result, $... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I get the loginRedirect from multiple login locations in CakePHP? I'm trying to get authentication working to my liking in a CakePHP app and running into a snag.
I want to let the user login from either the home page or from a dedicated login page. I'm using the Auth component to manage login and right now t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: WCF variable lifetime/state I'm hosting my first WCF service in IIS. I have two methods, 1 to set a string variable on the WCF Service, and the other to retrieve it. The interface used is:
[OperationContract]
string ReturnText();
[OperationContract]
void SetText(string s);
BasicHttpBinding is used. Stepping throug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting the first item out of a For loop I am writing my own Joomla component (MVC), its based heavily on the newsflash module, because I want to display the latest 5 content items in a sliding tabbed interface, all the hard work is done, but I am having real difficult getting content out of the for loop.
Here is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How would one share data between a parent and forked child process in Haskell? How would I even go about forking a child process using Haskell in the first place?
Also, if pipes are an obvious solution to the data sharing question - is there any other way to do it besides using pipes? I'm familiar with the use of sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Updating referenced columns in Postgres When there are one of more columns that reference another, I'm struggling for the best way to update that column while maintaining referential integrity. For example, if I have a table of labels and descriptions and two entries:
Label | Description
----------------------------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Downsampling and applying a lowpass filter to digital audio I've got a 44Khz audio stream from a CD, represented as an array of 16 bit PCM samples. I'd like to cut it down to an 11KHz stream. How do I do that? From my days of engineering class many years ago, I know that the stream won't be able to describe anyth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Using ActiveX objects in Javascript in Linux (in Firefox) It's not quite a "programming" question, but I hope its related closely enough.
Do you know if it is possible to configure the browser in Linux (e.g. Firefox) to use Wine to create ActiveX objects? I would like to handle web pages that use:
var xmlDocument = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Subreport source in Crystal Reports for .Net I am using several sub-reports in a Crystal Reports solution in .Net. I created a stand-alone report, then imported that report into several other reports as a sub-report. Changes to the stand-alone version are not incorporated into any of the reports leveraging it. Will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where can I learn more about pthreads? I am asked to work on a piece of code which relies heavily on pthreads. So many calls are made to this library that I know nothing of. I have learnt the basics of pthread and have tried out a few examples like creating joining etc. but dont know the depths of it.
I have learnt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Lambda Expression Tree Parsing I am trying to use Lambda Expressions in a project to map to a third party query API. So, I'm parsing the Expression tree by hand.
If I pass in a lambda expression like:
p => p.Title == "title"
everything works.
However, if my lambda expression looks like:
p => p.Title == myaspdropdow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What technology should I use to create a distributed Accounting Software? Here are my current options.
*
*.Net : Using WPF, Visual C#, SQLServer
*Java : Using Spring, Hibernate, Enterprise DB, web-based
Can you suggest which one is better?, especially with regards to building complex forms.
A: Wow, .NET vs. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I pass multiple objects to ViewPage in ASP.NET MVC? I think I know the answer, but I would like to bounce around some ideas.
I would like to pass several (in this instance 2) somewhat different pieces of data to a View. My initial thought is simply to wrap-up the various objects into a containing object and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why does AuthorizeAttribute redirect to the login page for authentication and authorization failures? In ASP.NET MVC, you can mark up a controller method with AuthorizeAttribute, like this:
[Authorize(Roles = "CanDeleteTags")]
public void Delete(string tagName)
{
// ...
}
This means that, if the currently logge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "273"
} |
Q: Can a C compiler rearrange stack variables? I have worked on projects for embedded systems in the past where we have rearranged the order of declaration of stack variables to decrease the size of the resulting executable. For instance, if we had:
void func()
{
char c;
int i;
short s;
...
}
We would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do I configure SQL Server 2005 Reporting Services (SSRS) to email a report via a remote SMTP server? How do I configure SSRS/Windows Server 2003, so that I can setup email delivery via a remote SMTP server that requires username and password.
I can configure SSRS with an SMTP address and other parameters, but no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Help setting up php for Eclipse I'm trying to set up Eclipse for php web development. What I would like to do is preview a php web page from within Eclipse, but I cannot figure out how to do this. Is there an integrated web server of some sort that allows this, or do I have to set up IIS/Apache to do it? If so, d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: C++ RTTI Viable Examples I am familiar with C++ RTTI, and find the concept interesting.
Still there exist a lot of more ways to abuse it than to use it correctly (the RTTI-switch dread comes to mind). As a developer, I found (and used) only two viable uses for it (more exactly, one and a half).
Could you share some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: ASP.NET MVC Beta 1: DefaultModelBinder wrongly persists parameter and validation state between unrelated requests When I use the default model binding to bind form parameters to a complex object which is a parameter to an action, the framework remembers the values passed to the first request, meaning that any subseq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Static or dynamic linking the CRT, MFC, ATL, etc Back in the 90s when I first started out with MFC I used to dynamically link my apps and shipped the relevant MFC DLLs. This caused me a few issues (DLL hell!) and I switched to statically linking instead - not just for MFC, but for the CRT and ATL. Other than large... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: DataGridView combo box How do you access the items collection of a combo box in a specific row in a DataGridView?
I'm populating the combo as follows:
Dim VATCombo As New DataGridViewComboBoxColumn
With VATCombo
.HeaderText = "VAT Rate"
.Name = .HeaderText
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone SDK: Advancing from one view to another using a button tap I want to make a really simple iphone app: one screen with a single button... when the button is tapped a new screen appears. That's it. No animations, nothing,
I've tried endlessly to make the NavBar sample project do this... and it works but only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to configure C# Typed Datasets when calling OracleDataAdapter.Update() on Oracle Stored Procedures? I am writing a C# Windows Forms application which calls Oracle stored procedures.
I chose to use typed datasets in the application, these correctly populate various datagrids, but I am having trouble when invoking... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: StackOverflowException caused by a linq query edit #2: Question solved halfways. Look below
As a follow-up question, does anyone know of a non-intrusive way to solve what i'm trying to do below (namely, linking objects to each other without triggering infinite loops)?
I try to create a asp.net-mvc web application, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I limit calls for a WCF service within a time span? I want to write a WCF service that can't run more than X times per hour. I want the service to suspended messages to a queue if the service was called more than x time in the last 60 minutes.
Any ideas how can one limit the service?
I am willing to write c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Linq to Sql - Loading Child Entities Without Using DataLoadOptions? Is it possible to load child entities in a single query without using DataLoadOptions?
I am using one data context per request in an asp.net web application and trying to get around the linq to sql limitation of not being able to change dataloadopti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Developing asp.net mvc applications as a team? I don't know if this has been discussed.
Let's say you are in a three developer team. How would you share:
*
*models - views - controllers
*by controllers
*by use cases
*something else?
Maybe someone says this has nothing to do with asp.net mvc but I think it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's a quick way to trace the entry and exit of functions in a Visual Studio 2005 c++ multithreaded program? I have intermittent crashes occurring in my ActiveMQ libraries due to the way I'm using the activemq-cpp API. It'd be much easier to debug the issue if I could observe every function being called leading u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to obtain warnings from javadoc when something missed in javadoc-comments? Accidentally I may forget to describe some parameters or exception throwing (or something else) when documenting methods or classes, etc.
Is it possible to run javadoc in such a way that it warns me about missing documentation ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is Python and pygame a good way to learn SDL? If I want to move to C++ and SDL in the future, is Python and pygame a good way to learn SDL?
A: pygame abstracts the SDL interface quite a lot, therefore I don't think there's much of an advantage carried over.
A: You can learn some techniques, ways to implement game ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Missing ant-javamail.jar file on Macintosh I've been running the built-in Ant from the command line on a Macintosh (10.5.5) and have run into some trouble with the Mail task. Running the Mail task produces the following message:
[mail] Failed to initialise MIME mail: org.apache.tools.ant.taskdefs.email.MimeMailer
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C++ performance of accessing member variables versus local variables Is it more efficient for a class to access member variables or local variables? For example, suppose you have a (callback) method whose sole responsibility is to receive data, perform calculations on it, then pass it off to other classes. Performan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: SimpleModal containerCSS not working in Firefox or Chrome I tried to override the settings in the default stlyesheet that comes with the simplemodal jquery plugin with containerCSS which is working fine in IE7 but not Firefox or Chrome. Not sure if this is a bug or I am doing something wrong.
jQuery code:
$(document... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I check for null values in Access? I am new to Access. I have a table full of records. I want to write a function to check if any id is null or empty. If so, I want to update it with xxxxx.
The check for id must be run through all tables in a database.
Can anyone provide some sample code?
A: I'm not sure ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Looking for books on Information Science, Information Retrieval Here's what I have on my list so far. I'd like to know of others in the same vein, perhaps more technical, perhaps less
Blown to Bits: Your Life, Liberty, and Happiness After the Digital Explosion - Ableson, Leeden, and Lewis
Glut: Mastering Informat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you Programmatically Download a Webpage in Java I would like to be able to fetch a web page's html and save it to a String, so I can do some processing on it. Also, how could I handle various types of compression.
How would I go about doing that using Java?
A: All the above mentioned approaches do not downl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "122"
} |
Q: Mac Console paste generating trash text On mac os console, when doing paste of large quantities of text (for example an sql database) I get loads of trash and corrupted text. But when doing the same under windows or into a text box, this doesn't happen and the text comes out ok.
Is this a buffer problem or something... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I get the value of MemberInfo? How do I get the value of a MemberInfo object? .Name returns the name of the variable, but I need the value.
I think you can do this with FieldInfo but I don't have a snippet, if you know how to do this can you provide a snippet??
Thanks!
A: Although I generally agree with Mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: (Windows) Exception Handling: to Event Log or to Database? I've worked in shops where I've implemented Exception Handling into the event log, and into a table in the database.
Each have their merits, of which I can highlight a few based on my experience:
Event Log
*
*Industry standard location for exceptions (+)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I support wildcards in user-defined search strings in Python? Is there a simple way to support wildcards ("*") when searching strings - without using RegEx?
Users are supposed to enter search terms using wildcards, but should not have to deal with the complexity of RegEx:
"foo*" => str.startswith("foo")
"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I get a file's size in C? How can I find out the size of a file I opened with an application written in C ?
I would like to know the size, because I want to put the content of the loaded file into a string, which I allocate using malloc(). Just writing malloc(10000*sizeof(char)); is IMHO a bad idea.
A: Ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "447"
} |
Q: C# Web Server Connection Problem I'm trying to make a simple C# web server that, at this stage, you can access via your browser and will just do a "Hello World".
The problem I'm having is that the server can receive data fine - I get the browser's header information - but the browser doesn't receive anything I send... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Case-insensitive filename handling in Mercurial I'm using TortoiseHg 0.5 (which includes Mercurial 1.0.2) on Vista64. My understanding from the Mercurial Book is that Mercurial should handle filenames in a case-insensitive manner on a case-insensitive filesystem (such as NTFS, which is what I'm on). However I find t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: defined? method in Ruby and Rails I have a quite old templating system written on top of ERB. It relies on ERB templates stored in database. Those are read and rendered. When I want to pass data from one template to another I use the :locals parameter to Rails render method. For setting default variables of those va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How do I associate a nib (.xib) file with a UIView? I have a subclass "s" of UIView. I want to put some buttons and labels on s. How do I associate my UIView subclass with a nib file?
A: In my case, I didn't want my view controller to have any knowledge of the IBOutlets from my view's .xib. I wanted my view subcl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |