text string | meta dict |
|---|---|
Q: What's the best way to iterate through columns of a matrix? I want to apply a function to all columns in a matrix with MATLAB. For example, I'd like to be able to call smooth on every column of a matrix, instead of having smooth treat the matrix as a vector (which is the default behaviour if you call smooth(matrix))... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to install and run Ramazes Rapaste easiest? I'm pretty familiar with Ruby and Ramaze, but I wanted to provide my Admins with an install howto, since they're more familiar with Tomcat and standard Apache installations.
I tried it locally first and it got pretty long:
sudo aptitude install ruby1.8 ruby1.8-dev ruby... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: online private source control system I am looking for a private online source control system. Basically what I want is a private version of Google Code or SourceForge. Private in the sense that only me and the person I invite can view the source code. The source code in the source control should not be exposed to se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: In editor XML formatting Hi Anyone know of a simple system of getting xml formatted inside an editor. I mainly use textpad so that would be my main interest. What I'm really asking is that when I paste an xml string from a logfile or something into textpad that I can use a plugin or a third party tool to format th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Charts in webpages What I'd like to accomplish is to present charts on webpages. For example aspx pages gridviews that present a two column table are able to be copied & placed into Excel then a chart created. The pages I currently use most are ASP.NET 3.0 or SharePoint team sites with stored procedures. People are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Moving complex conditional statements to code behind I was just wondering, if by moving complex if else statements and the resulting html markup to the code behind violates some 'MVC' law?
It seems like a great option when faced with inline if else statements that can become extremely unreadable.
A: It's not horrib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: windows service startup timeout Is there a way to set a different value for service startup timeout per service?
I can change it using the ServicesPipeTimeout registry key, but it's per machine (http://support.microsoft.com/kb/824344).
At the moment the only thing I thought about was to do all the time-consuming sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Why var_dump a Doctrine Objects kill my Apache? I have a very strange problem, when I try to var_dump (or print_r) a Doctrine Object, my Apache responses with an empty blank page (200 OK header). I can var_dump a normal php var like:
$dummy = array("a" => 1, "b" =>2);
And it works fine. But I can't with any object ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Determining realloc() behaviour before calling it As I understand it, when asked to reserve a larger block of memory, the realloc() function will do one of three different things:
if free contiguous block exists
grow current block
else if sufficient memory
allocate new memory
copy old memory to new
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you organize code in embedded projects? Highly embedded (limited code and ram size) projects pose unique challenges for code organization.
I have seen quite a few projects with no organization at all. (Mostly by hardware engineers who, in my experience are not typically concerned with non-functional aspects o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Cross Domain User Tracking We have several websites on different domains and I'd like to be able to track users' movements on these sites.
*
*Obviously cookies are not feasable, because they don't cross domain borders.
*I could look at a combination of IP address and User Agent, but there are some cases where t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: SharePoint and Firefox 3 I think most of the SharePoint developers and administrators know that with the change form Firefox 2 to Firefox 3 some functionality of SharePoint have became unavailable.
Especially adding Webparts to a site and using the PeoplePicker don't work anymore with Firefox 3. So I want to know h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: GCC and ld can't find exported symbols...but they're there I have a C++ library and a C++ application trying to use functions and classes exported from the library. The library builds fine and the application compiles but fails to link. The errors I get follow this form:
app-source-file.cpp:(.text+0x2fdb): undefine... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Help with using TypeConverters for enums in an Excel PIA assembly I would like to use a TypeCoverter to regionalise output for enums in an assembly that is a PIA loaded into Excel.
I can run this and it works on an assembly in a test project I created with an explicitly referenceed assembly, however when running a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can replace the string [Foo alloc] with [[Foo alloc]]
*
*Is there a key shortcut for this in XCode?
*Can I implement an Applescript for this and run it within XCode?
A: You can probably do that using a script (check out the relevent piece of Xcode documentation). Also see the "Insert Text Macro" menu item…
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Gettext: Is it a good idea for the message ID to be the english text? We're getting ready to translate our PHP website into various languages, and the gettext support in PHP looks like the way to go.
All the tutorials I see recommend using the english text as the message ID, i.e.
gettext("Hi there!")
But is that rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: NHibernate custom SQL object creation Somewhat-simplified example situation: I have entities A and B which are incredibly "heavy" domain objects. Loading one from the database is a pretty big deal. Then I have an entity C, which is a very simple object that has a label string, one A, and one B -- both lazy.
I'm doin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I enumerate all the defined variables in a groovy script I have a groovy script with an unknown number of variables in context at runtime, how do I find them all and print the name and value of each?
A: Actually, Ted's answer will also work for 'def'ed variables.
def foo = "abc"
def bar = "def"
if (true) {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How close are development webservers to production webservers? Most python frameworks will have a development webserver of some kind that will have a warning that it isn't for use as production servers. How much different do they tend to be from their production equivalents?
I haven't quite decided which framework ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What does extern inline do? I understand that inline by itself is a suggestion to the compiler, and at its discretion it may or may not inline the function, and it will also produce linkable object code.
I think that static inline does the same (may or may not inline) but will not produce linkable object code when i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "110"
} |
Q: Profiling WebMethods services? What techniques are available to profile services running in WebMethods Integration Server?
That is, to obtain data which would indicate which parts would benefit most from optimisation.
A: Check the 'Service Profiler for webMethods Integration Server' from http://www.wrightia.com/ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sum and Group By in Linq to SQL? Just getting started with Linq to SQL so forgive the newbie question. I'm trying to reproduce the following (working) query in Linq to SQL (VB.NET):
Select
f.Title,
TotalArea = Sum(c.Area)
From Firms f
Left Join Concessions c on c.FirmID = f.FirmID
Group By f.Title
Order by S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Object Oriented Best Practices - Inheritance v Composition v Interfaces I want to ask a question about how you would approach a simple object-oriented design problem. I have a few ideas of my own about what the best way of tackling this scenario, but I would be interested in hearing some opinions from the Stack Over... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: What is the best practice for passing variables from one HTML page to another? I'm relatively new to web application programming so I hope this question isn't too basic for everyone.
I created a HTML page with a FORM containing a dojox datagrid (v1.2) filled with rows of descriptions for different grocery items. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I format to only include decimal if there are any What is the best way to format a decimal if I only want decimal displayed if it is not an integer.
Eg:
decimal amount = 1000M
decimal vat = 12.50M
When formatted I want:
Amount: 1000 (not 1000.0000)
Vat: 12.5 (not 12.50)
A: decimal one = 1000M;
deci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do I uniquely identify computers visiting my web site? I need to figure out a way uniquely identify each computer which visits the web site I am creating. Does anybody have any advice on how to achieve this?
Because i want the solution to work on all machines and all browsers (within reason) I am trying to creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "213"
} |
Q: SYN packets dropped occasionally on Linux We're running a Debian with a 2.6.16 kernel, with iptables enabled. The system is running a custom made HTTP proxy, which is subjected to a mild load (it works fine with the same load on other sites). The system comprises of 4 servers that are preceded by a load balancer wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why exactly isn't MEF a DI/IoC container? It's been said on the blogosphere and by Microsoft themselves that MEF isn't another IoC container.
OK...but why? It seems the same to me. Maybe it's not as good as Unity or Castle Windsor, but it still fits the definition, doesn't it?
Why isn't MEF an IoC Container like Uni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: "Endless scrolling" effect in a HTML table I am displaying a scrolled data table in a web page. This table has several thousands of dynamic rows, so it is loaded from the server (via AJAX).
The user can scroll up and down, so what I need is to detect when the user reaches the end of the scrollbar (that is, the last... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Html.BeginForm and adding properties How would I go about adding enctype="multipart/form-data" to a form that is generated by using <% Html.BeginForm(); %>?
A: As part of htmlAttributes,e.g.
Html.BeginForm(
action, controller, FormMethod.Post, new { enctype="multipart/form-data"})
Or you can pass null for acti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "143"
} |
Q: postgreSQL mysql oracle differences I'm having to start building the architecture for a database project but i really don't know the differences between the engines.
Anyone can explain whats the pros and bads of each of these three engines? We'll have to choose one of them and the only thing I actually know about th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Dictionary API or Library Does anyone know of a good dictionary API or ruby library to lookup the definitions of words?
I'm thinking it should work something like:
*
*I call get_definition(word)
*It returns the definition for that word (ideally in some way to easily format the definition for display.
Thanks
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How to create a string or formula containing double quotes in Excel? How can I construct the following string in an Excel formula:
Maurice "The Rocket" Richard
If I'm using single quotes, it's trivial: ="Maurice 'The Rocket' Richard" but what about double quotes?
A: I use a function for this (if the workbook alre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "349"
} |
Q: WPF with Windows Forms - STAThread I am a newbie to WPF and have a couple of questions about WPF and Windows Forms integration.
I have an existing Visual C# Windows Forms application. I would like to integrate it with a WPF window, that can be shown on a button click. This was not possible as WPF expects the calli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Graphs on Windows Forms using C# (.NET 2.0) Is there an Open Source Free Graph Control for Windows Forms .NET 2.0?
A: I have been using ZedGraph for a while. You can generate various types of graphs that look very professional.
A: I would recommend nPlot
| {
"language": "en",
"url": "https://stackoverflow.com/questions/216641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Group by date in a particular format in SQLAlchemy I have a table called logs which has a datetime field.
I want to select the date and count of rows based on a particular date format.
How do I do this using SQLAlchemy?
A: I don't know of a generic SQLAlchemy answer. Most databases support some form of date form... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating an MJPEG video stream in c# I have images being sent to my database from a remote video source at about 5 frames per second as JPEG images. I am trying to figure out how to get those images into a video format so I can stream a live video feed to Silverlight.
It seems to make sense to create a MJPEG stream ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Emulate MySQL LIMIT clause in Microsoft SQL Server 2000 When I worked on the Zend Framework's database component, we tried to abstract the functionality of the LIMIT clause supported by MySQL, PostgreSQL, and SQLite. That is, creating a query could be done this way:
$select = $db->select();
$select->from('mytable')... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: What is a good and known JavaScript MVC pattern? What is the best way to manage the JavaScript files and the functions/objects context in an ASP.NET MVC app?
A: Google says http://javascriptmvc.com/
A: If you're looking for something like that, you should definitely check out MooTools as they implement classes alm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the best way to test an iPhone game for iPod Touch? I've developed a game for the iPhone... on my iPhone. When I submitted it to the store I marked it as "iPhone only". Now I'm getting emails asking "Why not iPod touch?".
The game doesn't use any iPhone only features btw. So...
I'd like to test it on an ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Structuring a winforms C# solution So i am reorganizing a winforms C# solution to help decouple and make it cleaner and more organized. The solution tracks a small business orders,etc . .
I have broken out the projects so far into
App.View - all GUI Related Code
App.Data - just data structures and interfaces. No ot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I get a status report of all files currently being uploaded via a HTTP form on an Apache Server? How do I get a status report of all files currently being uploaded via HTTP form based file upload on an Apache Server?
A: I don't believe you can do this with Apache itself. The upload looks like nothing more th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: call OpenFileDialog from powershell When I run the following, PowerShell hangs waiting for the dialog to close, even though the dialog is never displayed:
[void] [Reflection.Assembly]::LoadWithPartialName( 'System.Windows.Forms' )
$d = New-Object Windows.Forms.OpenFileDialog
$d.ShowDialog( )
Calling ShowDialog on a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: No rule to make target consoleio.c In a recent issue, I've found that DJGPP can only accept the DOS command line character limit. To work around this limitation, I've decided to try to write a makefile to allow me to pass longer strings. In the process of hacking together a makefile and testing it, I've come acros... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What do I need to test on the iPod touch (besides the actual device)? I've tested my iPhone app on the iPhone. Now I want to test it on the iPod touch. Assuming I have an iPod touch what else do I need?
I just want to make sure all the certificates and stuff that I used for the iPhone will work for the iPod touch ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pros and cons of using nested C++ classes and enumerations? What are the pros and cons of using nested public C++ classes and enumerations? For example, suppose you have a class called printer, and this class also stores information on output trays, you could have:
class printer
{
public:
std::string name_;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: Can't create xmlns reference to other project in XAML I have a WPF project defined like this:
MyApp.sln
MyAppWPF
MyApp.Domain
In one of my xaml files in the MyAppWPF project I'm trying to reference a class defined in MyApp.Domain project. I have a project reference in MyAppWPF to MyApp.Domain. I am trying to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Understanding performance hit of an application role in SQL with ASN.NET I use MS SQL Server 2005 application roles in an application. I execute the sp_setapprole to start the SPs role and to finish sp_unsetapprole.
"connection pooling doesn't work" with application pooling, and there is no way to react on connecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I play a sound file in Java ME on Samsung mobile phones? File formats I would like to play include .wav, .mp3, .midi.
I have tried using the Wireless Toolkit classes with no success. I have also tried using the AudioClip class that is part of the Samsung SDK; again with
A: If this device supports audio/mpeg ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get using php? I know that this is a simple question for PHP guys but I don't know the language and just need to do a simple "get" from another web page when my page is hit. i.e. signal the other page that this page has been hit.
EDIT: curl is not available to me.
A: If curl wrappers are on (they are per d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Address Standardization/Correction/Geocoding My place of employment is looking into buying a third party tool, for batch based US and Canadian Address correction, with Geo-coding.
*
*What Products have you used?
*What do you like about them?
*What do you not like about them?
Note that, We are a C/C++ Unix Sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Skipping primary key conflicts with SQL copy I have a large collection of raw data (around 300million rows) with about 10% replicated data. I need to get the data into a database. For the sake of performance I'm trying to use SQL copy. The problem being when I commit the data, primary key exceptions prevent any of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: spring + tomcat + axis2 == jax-ws web service? I'm looking for a straightforward example / tutorial for implementing a JAX-WS (soap1.1 and soap1.2) web service based on wsdl definition using spring, axis2 and tomcat.
hint anyone ?
-- Yonatan
A: There is no such thing as "straightforward" in the world of SOAP. Any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Log4j, configuring a Web App to use a relative path I have a java webapp that has to be deployed on either Win or Linux machines. I now want to add log4j for logging and I'd like to use a relative path for the log file as I don't want to change the file path on every deployment. The container will most likely be Tom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "80"
} |
Q: What's the best way to get the last inserted id using sqlite from Java? What's the best way to get the last inserted id using sqlite from Java? Google is giving me different answers--some say select the last-insert-rowid; others say call statement.getGeneratedKeys(). What's the best route to take? (I just want to re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Big O Notation Homework--Code Fragment Algorithm Analysis? For homework, I was given the following 8 code fragments to analyze and give a Big-Oh notation for the running time. Can anybody please tell me if I'm on the right track?
//Fragment 1
for(int i = 0; i < n; i++)
sum++;
I'm thinking O(N) for fragment 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Embed a website/page into Silverlight Yes that sounds backwards. I want to create an area or frame in my Silverlight app to host another page from my site. I've seen it done before but I can't seem to find any examples.
This way I can control the entire page layout using SL but still use existing aspx pages.
thanks
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: call FolderBrowserDialog from powershell Similar to this question, after running the following code the browser dialog does appear with all the correct buttons, but the selection area that usally displays available folders is missing:
[void] [Reflection.Assembly]::LoadWithPartialName( 'System.Windows.Forms' )
$d = N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ImageUrl lost on postback with dynamic controls, but textboxes keep their value I have a button that adds an already defined usercontrol programtically. I am rebuilding each control on Postback and they show up fine. If I put text in the textbox it shows up fine, however my images are losing their url. Any idea wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does a debugger work? I keep wondering how does a debugger work? Particulary the one that can be 'attached' to already running executable. I understand that compiler translates code to machine language, but then how does debugger 'know' what it is being attached to?
A: As I understand it:
For software breakpoin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "208"
} |
Q: What different ways can you write this There are some cool and exciting features in .NET 3.5/C# 3.0, and with those features comes some darn interesting ways to write the exact same line of code.
Using the above stated tool set (and by extension .NET 2.0 stuff), what are the different ways the below code snippet cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to trim an std::string? I'm currently using the following code to right-trim all the std::strings in my programs:
std::string s;
s.erase(s.find_last_not_of(" \n\r\t")+1);
It works fine, but I wonder if there are some end-cases where it might fail?
Of course, answers with elegant alternatives and also left-trim ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "979"
} |
Q: How do I find the running time given algorithm speed and computer speed? I'm currently working through an assignment that deals with Big-O and running times. I have this one question presented to me that seems to be very easy, but I'm not sure if I'm doing it correctly. The rest of the problems have been quite diffi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I convert a boolean to Yes/No in a ASP.NET GridView I have a ASP.NET GridView with a column mapped to a boolean. I want do display "Yes"/"No" instead of "True"/"False". Well actually I want "Ja"/"Nej" (in Danish).
Is this possible?
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="false">
<co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: Source control system for small database dev team I am responsible for a small development team and we deal mainly with database development. We are currently using MS Visual Source Safe as our source control system, but it has its limitations and we are seriously thinking about changing. What system would you cho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How does Mono work I have used C# in Visual Studio with .NET, and I have played around a little with Mono on openSUSE Linux, but I don't really understand how it works.
If I write an app in Windows on .NET, how does this relate to Mono? I can't just execute an a Windows .exe file on Linux without Wine, so it doesn't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: What are some good resources for understanding SNMP MIBs? I know a little about SNMP, but not enough. I need to develop an application that can read standard SNMP MIBs and read/write the various properties. The network end is no problem, but the actual MIBs and exactly what they may contain is something of a black a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: #undef-ing in Practice? I'm wondering about the practical use of #undef in C. I'm working through K&R, and am up to the preprocessor. Most of this was material I (more or less) understood, but something on page 90 (second edition) stuck out at me:
Names may be undefined with #undef,
usually to ensure that a routi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Trim whitespace from middle of string I'm using the following regex to capture a fixed width "description" field that is always 50 characters long:
(?.{50})
My problem is that the descriptions sometimes contain a lot of whitespace, e.g.
"FLUID COMPRESSOR "
Can somebody provide a reg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Changing cgi to Fastcgi How feasible is to change a C/C++ cgi application to Fastcgi? Does this require only change in code? Or will it require a change in the setup of apache server?
What will be the obvious benefits of the change? Is the change from cgi to Fastcgi worth the benefits?
A: The major benefit of switc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the applications of the ## preprocessor operator and gotchas to consider? As mentioned in many of my previous questions, I'm working through K&R, and am currently into the preprocessor. One of the more interesting things — something I never knew before from any of my prior attempts to learn C — is the ## pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: Force .NET webservice to use local object class, not proxy class I have a webservice that I'm calling from a windows forms application (both .NET, both in the same solution), and I'd like my webservice to return a custom object from elsewhere in the project - it's a common object that they both share a reference to,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Repairing wrong encoding in XML files One of our providers are sometimes sending XML feeds that are tagged as UTF-8 encoded documents but includes characters that are not included in the UTF-8 charset. This causes the parser to throw an exception and stop building the DOM object when these characters are encountered... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Get an OutputStream into a String What's the best way to pipe the output from an java.io.OutputStream to a String in Java?
Say I have the method:
writeToStream(Object o, OutputStream out)
Which writes certain data from the object to the given stream. However, I want to get this output into a String as easily as p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "653"
} |
Q: Can pixel shaders be used when rendering to an offscreen surface? I'm considering integrating some D3D code I have with WPF via the new D3DImage as described
here:
My question is this: Do pixel shader's work on offscreen surfaces?
A: Rendering to an offscreen surface is generally less constrained than rendering di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way in .Net to programatically generate a DTD from an existing XML file? I've been looking around the System.Xml namespace, but don't see anything that would support this. Does anyone know if it's built into .Net, or would I have to obtain a third party library to do it?
NOTE: I wish it were as simple as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Excel Conditional formatting with weighted total I have sets of values in rows in Excel
First row contains weights of how much each value in each column contributes to weighted total.
Now, I want to mark in each following row the value that contributed to the weighted total the most, by changing its background. I pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the difference between an asp.net web method and a wcf service? I'm new to .Net and do not understand the difference. Can someone point me in the right direction?
A: They are two different frameworks for writing services. WCF is generally more flexible and provides configurable options for what protocols ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: Thoughts on TUDBC Has anyone used TUDBC? This looks interesting, but I wonder how valuable it would be for me to investigate. I'm curious about anyone's good or bad experience.
A: Looks like a solution looking for a problem. Yes, it sounds great but I'm not going to use Java w/ TUDBC. I'll stick with the "standar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I only show items that belong to a certain user (using restful_authentication)? I have a web application with users and their documents. Each user can have many documents:
user.rb:
has_many :documents
document.rb:
belongs_to :user
document_controller.rb:
def index
@documents = Document.find(:all)
end
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Fastest way to determine where PHP script exits Say you have a large PHP project and suddenly, when attempting to run it, you just end up with a blank page. The script terminates and you want to find exactly where that is with as little effort as possible.
Is there a tool/program/command/IDE that can, on PHP script ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: What does it mean if a Python object is "subscriptable" or not? Which types of objects fall into the domain of "subscriptable"?
A: As a corollary to the earlier answers here, very often this is a sign that you think you have a list (or dict, or other subscriptable object) when you do not.
For example, let's say you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "592"
} |
Q: ASP.NET Key/Value List I'm doing a custom 404 page for a large website that's undergoing a redesign. There are about 40 high-use pages that customers may have bookmarked, and our new site structure will break these bookmarks.
On my custom 404 page, I want to alert them to the new URL if they attempt to navigate t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I use inverse or negative wildcards when pattern matching in a unix/linux shell? Say I want to copy the contents of a directory excluding files and folders whose names contain the word 'Music'.
cp [exclude-matches] *Music* /target_directory
What should go in place of [exclude-matches] to accomplish this?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "376"
} |
Q: Python/editline on OS X: £ sign seems to be bound to ed-prev-word On Mac OS X I can’t enter a pound sterling sign (£) into the Python interactive shell.
* Mac OS X 10.5.5
* Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
* European keyboard (£ is shift-3)
When I type shift-3 in the Python interactive shell, I seem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flash CS3 movie fails in browser My AS3-heavy project tests fine in the IDE, but some parts don't work in the browser when published. Any ideas what could be causing this?
A: It might help if you provide some more specific information on what's not working. Can you post a link? Furthermore, are any parts of your ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Neural Networks or Human-computer interaction I will be entering my third year of university in my next academic year, once I've finished my placement year as a web developer, and I would like to hear some opinions on the two modules in the Title.
I'm interested in both, however I want to pick one that will be relev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Cannot create an array of LinkedLists in Java...? I'm working on a sparse matrix class that needs to use an array of LinkedList to store the values of a matrix. Each element of the array (i.e. each LinkedList) represents a row of the matrix. And, each element in the LinkedList array represents a column and the store... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: Response.Redirect causes IsPostBack to be true I have a button on an ASP.Net page that will call Response.Redirect back to the same page after performing some processing in order to re-display the results of a query. However, for some reason, the page comes up blank. It seems that IsPostBack is returning true after ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I add query parameters to a GetMethod (using Java commons-httpclient)? Using Apache's commons-httpclient for Java, what's the best way to add query parameters to a GetMethod instance? If I'm using PostMethod, it's very straightforward:
PostMethod method = new PostMethod();
method.addParameter("key", "value");... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Partial sort of std::list I have a linked list that I want to sort part of, eg:
std::sort(someIterator, otherIterator, predicate);
std::sort requires random-access iterators so this approach doesn't work. There is a specialisation std::list::sort, but that can only sort the entire list. I don't think I have enough ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Parsing input with scanf in C I've been having a lot of problems trying to figure out how to use scanf(). It seems to work fine with integers, being fairly straight forward scanf("%d", &i).
Where I am running into issues is using scanf() in loops trying to read input. For example:
do {
printf("counter: %d: ", co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: looking for a UTF-8 text editor I am looking for a (simple) text editor that can handle text in different encodings in the same document.
I need to develop some sites with mixed Japanese and English text and the editors I have now (on an English Windows system) are unable to display the Japanese text.
Jedit files do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET MVC and WCF I'm working my way into MVC at the moment, but on my "To learn at some point" list, I also have WCF.
I just wonder if WCF is something that should/could be used in an MVC Application or not? The Background is that I want a Desktop Application (.NET 3.5, WPF) interact with my MVC Web Site, and I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Deadlock detection in Java Long time ago, I saved a sentence from a Java reference book: "Java has no mechanism to handle deadlock. it won't even know deadlock occurred." (Head First Java 2nd Edition, p.516)
So, what is about it? Is there a way to catch deadlock case in Java? I mean, is there a way that our code und... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: Can I find out the return value before returning while debugging in Eclipse? Is it possible to see the return value of a method after the line has been run and before the instruction pointer returns to the calling function?
I am debugging code I can't modify (read: don't want to re-compile a third party library), an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "102"
} |
Q: What can it mean if an object is scriptable? Exactly what the title says. Note, this is not about "subscriptable" objects.
A: It means nothing in Python as scriptable objects are provided by Enthought's Traits module.
From Application Scripting Framework, which mentions that:
A scriptable type is a sub-type of
H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Controlling size of forms So I have an Access application, and I'd like some forms to be maximised when they are opened, and others to be medium-sized when they are opened. However, if I try something like this:
Private Sub Form_Activate()
DoCmd.Maximize
End Sub
or
Private Sub Form_Activate()
DoCmd.Restore
End... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ STL: Container Recreation or Reuse after clearing? In programming we face various situations where we are required to make use of intermediate STL containers as the following example depicts:
while(true)
{
set < int > tempSet;
for (int i = 0; i < n; i ++)
{
if (m.size() == min && m.size() <=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I determine the display idle time from Python in Windows, Linux, and MacOS? I would like to know how long it's been since the user last hit a key or moved the mouse - not just in my application, but on the whole "computer" (i.e. display), in order to guess whether they're still at the computer and able to ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/217157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |