text stringlengths 8 267k | meta dict |
|---|---|
Q: using #include directives in Platform Builder DAT files So I know I can use #include in BIB and REG files to pull in other files like this:
#include $(_PLATFORMROOT)\MYPLATFORM\FILES\MYBIB.BIB
but it seems that I can’t get DAT files to behave the same way. Am I missing something here? I have a component that has ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery $(document).ready and ASP.NET MVC Partial I have quite a few partials in my application, and some of them need to do some jQuery goodness at $(document).ready time.
The problem is, if I put the $(document).ready directly into a script block for the partial, then this gets overridden if another partial does th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What's a good way for figuring out all possible words of a given length I'm trying to create an algorithm in C# which produces the following output strings:
AAAA
AAAB
AAAC
...and so on...
ZZZX
ZZZY
ZZZZ
What is the best way to accomplish this?
public static IEnumerable<string> GetWords()
{
//Perform algorithm
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: DropdownList.selectedIndex always 0 (yes, I do have !isPostBack) (Scroll down to bottom of post to find solution.)
Got a asp.net page which contains a
Datalist. Inside this datalist, there
is a template containing a
dropdownlist and each time the
datalist is filled with an item, a
ItemCreatedCommand is called. The
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Providing an iterator for the first element of a container of pairs I have a container filled with pairs. I want to iterate in it using the STL generic algorithms (in my case it would be inner_product, but consider it as a generic problem).
The algorithm I am using expects iterators first and last. Can I provide spe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Change the location of the ncb file in Visual C++ 2008 (9.0) I´ve tweaked the VC++ settings so that all of my actual code will go to one place, while compiler generated binaries will go to another. This ncb file is the exception though. It is a quite large IDE generated binary file (Intellisense database). I can´t s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ideal design for winforms connecting to SQL Server . I have a winforms application that is doing the following:
on each query:
*
*Db connect
*Db query
*Db disconnect
as we are trying to avoid having to keep the db connection open. This suffers from performance as we have to connect / disconnect everytime.
W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I track plugin dependencies in maven2? I am trying to locate an evil plugin that includes a stoneage version of a certain jar file. How do I do that ?
A: mvn dependency:resolve-plugins gives a list of dependencies for each plugin
A: also, mvn -X will spit out all kinds of info, i believe it includes depende... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How accurate is the triangulated GPS of the non-3G iPhone? Does anyone have any experience with the triangulated GPS used by the non-3G iPhone? How does it compare with 3G positioning? Does the iPhone 3G use triangulation in the event that there is no GPS signal available? Is there anyway to determine the accuracy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: TDD with Episerver What is the best way to abstract the episerver infrastructure for easier testing?
A: I have written a post about TDD with EPiServer recently.
Basically the idea is to use Model-View-Presenter design pattern to isolate as much logic as you can from asp.net runtime.
A: Perhaps this post will hel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SqlCommandBuilder using table name instead of view I am using a SqlCommandBuilder object to generate update statements from Select statements in a SqlDataAdapter.
My problem is that in my Select statement I am selecting from a view called vwUsers. the SqlCommandBuilder object I used generated an update statement for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do screensavers support multiple monitors? If i were developing a screensaver using a windows.form in C# how would i support multiple monitors? obviously i need a way to enumerate the monitors and maybe create forms for them too or just fade to black? Has anyone solved this?
Any insight would be helpful, what's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is using a class as a struct bad practice in Java? We recently had a code review . One of my classes was used so that I could return/pass more than one type of data from/to methods . The only methods that the class had were getters/setters . One of the team's members ( whose opinion I respect ) said that having ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Upgrading from FPDF 1.53 to 1.6--any problems? As I think most people know already, or if you don't, FPDF released a new version, 1.6 this past August after almost 4 years without a release. I'm wondering if anyone has had any problems upgrading from 1.53 to 1.6?
A: I haven't had any problems with my scripts updati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Proper .NET DLL structure for app ...if there is such a thing. Here's an image of two approachs for structuring DLLs/references in a .NET application: http://www.experts-exchange.com/images/t80668/compArch.png. The app can be a website (it is in this case) or a winform. Each box represents a DLL. For the winfor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the Pros/Cons of Flash Builder vs. FlashDevelop? I want to play around a bit with FLASH for app development. I'm looking for a good IDE for that. Someone suggested Flash Develop.
A: Major reason to use FlexBuilder: has a real debugger you can set breakpoints and single step and watch/edit variables.
Unles... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Python equivalent of continuations with Ruby What is the Python equivalent of the following code in Ruby?
def loop
cont=nil
for i in 1..4
puts i
callcc {|continuation| cont=continuation} if i==2
end
return cont
end
> c=loop
1
2
3
4
> c.call
3
4
Reference: Secrets of lightweight development success,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to integrate NSURLConnection with UIProgressView? I'm trying to integrate a NSURLConnection object with UIProgressView, so I can update the user while a file download is happening in the background.
I created a separate object to download the file in the background, and I'm having problems figuring out how to up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: WF project: express edition Is there a visual studio express edition to develop WF applications?
A: The designers for workflow are missing in the express editions. But you still can do workflow.
For an example look at this link.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/312803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Upload document to specific folder in a SharePoint Document library using WebClient I have some client side code that uploads an Outlook email to a document library and as long as the path is pointing to the root of the doc library it works just fine.
@"https://<server>/sites/<subweb>/<customer>/<teamweb>/<Document... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Must I use all tables in an Entity Framework model? I am building an Entity Framework model for a subset of the Pubs database from microsoft. I am only interested and publishers and books, not publishers and employees, but there is a foreign key constraint between the publishers and emoloyees tables. When I remove t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Who's responsible for creating the MainViewController instance in the iPhone NavBar example I'm exploring the NavBar example from the iPhone dev center.
More specifically, I'm trying to understand where the MainViewController object is instantiated and I simply can't find where this is happening.
The only references... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How would you design a docking library for WPF? I want to implement a docking library in wpf with behavior similar to Adobe Photoshops CS3.
You can attach floating Panels to other Panels or Docks by mouse dragging. Docks have a fixed location.
Would you use a central Docking Manager class? How would the message flow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I use the email component from a model in CakePHP? I have a very simple model. I want to add a send email routine to on of the methods for the model:
$this->Email->delivery = 'smtp';
$this->Email->template = 'default';
$this->Email->sendAs = 'text';
$this->Email->from = 'email';
$this->Email->to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can I use confstr to set up two nameservers? I am trying to set two dynamic nameserver IP addresses in my QNX system. I have been able to use confstr to set up an address by setting a _nameserver=xxx.xxx.xxx.xxx string into _CS_RESOLVE. Then res_search returns the correct IP address for a given name. I actually ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NDepend CQL Query for missing IDisposable implementation I realize that the query this question is looking for won't be enough to find every little problem with IDisposable implementations, but every early warning counts, so I'll take what I can get.
I'd like to know if anyone has come up with a CQL query for NDepen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How Can I Convert Types at Runtime? My scenario should be simple... the type I want to convert FROM is ALWAYS 'string'. What I want to convert to... could be many things - ints, DateTimes, ... strings, etc.
This would be easy:
string valueToConvertFrom = "123";
int blah = Convert.ToInt32(valueToConvertFrom);
Howev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How to use Grails j2d plugin to scale an image I'm using grails j2d which in turns uses GraphicsBuilder to make a simple service to scale an image. My problem is specifically accessing the downloaded image height and width attributes in order to pass the correct parameters to the scale method. How do I access these ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pivot using SQL Server 2000 I put together a sample scenario of my issue and I hope its enough for someone to point me in the right direction.
I have two tables
Products
Product Meta
I need a result set of the following
A: If your database engine is 2005 and your database is in 2000 compatibility mode, you can w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Proper way of converting int to LPCWSTR (Win32) I'm attempting to learn basic Win32 programming and running into a frustrating problem. I wish to convert a variable (Call it NumClicks) and display it as the application name (as part of a string).
From what I've seen, going from int + some block of text to a char* is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Asp.Net Rating Control I can't get the ASP.NET Rating control's selected value(CurrentValue) in javascript. I am using Rating control in datagrid and do anyone know how can I get the CurrentValue of ASP.NET Rating in javascript?
A: Can you provide any code snippet of Javascript where you want to use the current val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: popups from embedded .swf cross-browser Situation: you've got a .swf embedded in an html page, and when you click on something in the .swf, it needs to popup a chromeless window. Normally this would be fairly easy - but consider Safari, which completely disables all 'window.open' functionality while its popup-blocke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Actionscript3 to JavaScript communication: best practices On a more abstract level then a previous question, in my experience there are 3 ways to call a javascript function on an html page from an embedded .swf using AS3: ExternalInterface, fscommand, and navigateToURL.
Let's compare and contrast these methods (and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I run a file on localhost? How do I actually run a file on localhost?
I know it is working, but how do I run a file on it, and how do I verify that the file is in fact running on localhost?
Server newbie here, additional questions (I have xampp running Apache 2.2):
From your responses it sounds like I have to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: What are signals and slots? Can someone explain in simple terms the "signals and slots" pattern?
A: Imagine having a GUI in your application. Most of the time, control flow wouldn't be very linear, i.e. instead of having a clear sequence of actions you'd have a user that interacts with the GUI (like buttons, menus ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: UI Useability - Reordering and merging columns I'm writing a little web-based utility for my brother who needs to merge columns in a CSV file. I know things like this surely exist somewhere, but a large part of this is that is a fun little exercise.
Anyways, I'm trying to figure out the best/neatest way to present t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the right balance between unit vs. functional testing in a typical web application? Unit tests are cheaper to write and maintain, but they don't cover all scenarios. What is the right balance between them?
A: it is important to distinguish between the intent and scope of these two types of tests:
*
*a un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to get a .NET CCW assembly to load configuration from a dll.config I have a .NET component exposed as a CCW (Com Callable Wrapper) and being loaded into an unmanaged IIS application (ATL server). The assembly is installed and registered with COM using regasm /codebase.
The component requires configuration such ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Algorithm for merging sets that share at least 2 elements Given a list of sets:
*
*S_1 : [ 1, 2, 3, 4 ]
*S_2 : [ 3, 4, 5, 6, 7 ]
*S_3 : [ 8, 9, 10, 11 ]
*S_4 : [ 1, 8, 12, 13 ]
*S_5 : [ 6, 7, 14, 15, 16, 17 ]
What the most efficient way to merge all sets that share at least 2 elements? I suppose this is si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Procmail Troubles I've been trying to solve this for weeks...
My Goal is to search my inbox for the following messages:
Hello
Hi
Hey
Im using three files to do this for me. The first, a .forward file in my $HOME
"|IFS=' '&&exec usr/bin/procmail||exit 75 #username"
And these two are in my ~/.procmail directory
.pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pressing Enter on TextBox in Silverlight I am working on a silverlight app that you need to enter information into a textbox and then just hit enter. Well there is no onclick event, that I could find, so what I did was use the onkeypressup event and check if it was the enter key that was pressed if so do "blah".
It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Django authentication and Ajax - URLs that require login I want to add some Ajax-niceness to my Django-coded website.
In my Django code, I use the @login_required decorator from django.contrib.auth.decorators to mark which view requires authentication. The default behavior when a not authenticated user clicks it is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: Python as FastCGI under windows and apache I need to run a simple request/response python module under an
existing system with windows/apache/FastCGI.
All the FastCGI wrappers for python I tried work for Linux only
(they use socket.fromfd() and other such shticks).
Is there a wrapper that runs under windows?
A: You... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Windows Forms ProgressBar: Easiest way to start/stop marquee? I am using C# and Windows Forms. I have a normal progress bar working fine in the program, but now I have another operation where the duration cannot be easily calculated. I would like to display a progress bar but don't know the best way to start/stop th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: Does the virtual keyword in Flex 3 cause a performance hit? As the title says really. Does the virtual keyword cause a performance hit?
A: First off, in Actionscript you don't need to explicitly mark a method to be overridden as virtual as you do in C#, the compiler will do this for you. This is why the keyword doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UML Use-case diagram postcondition implementation (with diagram) I'm learning UML by trying to simulate how a car service garage works with diagrams and documentation. One problem I have is with postcondition (or rather, GOTO) statements.
Is the dashed line << include >> relationship only for preconditions? Can Use-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Silverlight Design Architecture Is there a good Silverlight Design Architecture?
A: There is Prism it was originally designed for WPF but there is now a Silverlight release.
A: Also there is Caliburn, an "Application Framework for Silverlight and WPF".
A: You could take a look at Rocky Lhotka's CSLA.NET for Sil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Pass value to form in .Net I want to pass an integer value to a form in .Net so that it can load the right data. I'm using this so that when I double click on a record in a list, a form opens with the data from that record loaded so it can be edited. What is the best way to do this? Should I create a property and se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How would I use the >> and << operators for binary data in C++? Is there a way to use these operators to input and output binary data? The reason I want to do this is that it makes the code readable.
Ex: infile >> filedecrypter >> metadataparser >> audiodecoder >> effects >> soundplayer;
A: Just to be clear, are y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Keeps fading in after, mouseover I am trying to fade in a on mouseover and fade out on mouseout:
$("p.follow").mouseover(function(){
$(this).fadeTo("slow", 1.00);
})
$("p.follow").mouseout(function(){
$(this).fadeTo("fast", 0.50);
})
If you go to ryancoughlin.com and on the right side, if you go ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to fix Apache instability? I have configured a simple LAMP stack on Debian and I am experiencing some problems with the Apache web server.
Each 3-4 hours the web server is entering a deadlock and all the requests that hit the database block. The server is creating a new child for each request. The number of pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regex to parse querystring values to named groups I have a HTML with the following content:
... some text ...
<a href="file.aspx?userId=123§ion=2">link</a> ... some text ...
... some text ...
<a href="file.aspx?section=5&user=678">link</a> ... some text ...
... some text ...
I would like to parse that and get a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/312989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IE CSS positioning problem I have some markup for a popup menu that works in firefox but not IE. The problem is that the popup pops under other elements and is impervious to the z-index value. A complete runnable example is below.
Now, I know that one fix is not to position the divs as relative, but I can't do tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Strange Choppy WPF Animation I am making an app that scrolls information on the desktop. The window is transparent. I am starting out simple, trying to find the lowest CPU use for animating things and I am starting with a simple TextBlock.
On my development machine, I get a very smooth animation across the screen ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to consistently organize code for debugging? When working in a big project that requires debugging (like every project) you realize how much people love "printf" before the IDE's built-in debugger. By this I mean
*
*Sometimes you need to render variable values to screen (specially for interactive debugging).
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Equivalent of sprintf in C#? Is there something similar to sprintf() in C#?
I would for instance like to convert an integer to a 2-byte byte-array.
Something like:
int number = 17;
byte[] s = sprintf("%2c", number);
A: EDIT: I'm assuming that you want to convert the value of an integer to a byte array and not the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How do I draw a point using Core Graphics? I see APIs in Quartz for drawing lines and circles. But all I want to do is to specify the (x,y) cartesian coordinate to color a pixel a particular value. How do I do that?
A: Draw a very small ellipse/circle and fill it!
CGContextAddEllipseInRect(Context,(CGRectMake (x_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do I easily identify classes that implement IDispose in Visual Studio? Is it possible to identify classes that implement IDisposable. I was hoping to do so in the Visual Studio Color settings or with an addon.
I don't use Resharper and I have heard that FXcop has this feature. I was looking for something differe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rhino Mocks: How to return conditional result from a mock object method I would like to do something like the following but can't seem to get the syntax for the Do method quite right.
var sqr = new _mocks.CreateRenderer<ShapeRenderer>();
Expect.Call(sqr.CanRender(null)).IgnoreArguments().Do(x =>x.GetType() == typeof... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Generic class used as constraint to generic method in C#? Am I doing something wrong or is it not possible to specify a generic class as a constraint to a generic method?
I have been playing around with generics and db4o (open source object database) and am writing a test program (see code below) to store and retrie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SharePoint and Office Open XML interaction question I've been frustrated by this for the entire weekend, plus a day or two, so any help would be significantly appreciated.
I'm trying to write a program that can programmatically go into a SharePoint 2007 doc library, open a file, change the contents of the file, then... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I set prototype of instantiated function? This fails with 'X.m is not a function'...
var Y = function () {
this.m = function () {
alert('this is m');
};
};
var X = new function () { };
X.prototype = new Y();
X.m();
It would certainly work if I skipped the new keyword in the X definition and th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Django Admin Interface Does Not Use Subclass's __unicode__() (Django 1.x, Python 2.6.x)
I have models to the tune of:
class Animal(models.Model):
pass
class Cat(Animal):
def __unicode__(self):
return "This is a cat"
class Dog(Animal):
def __unicode__(self):
return "This is a dog"
class AnimalHome(mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Learning Silverlight as a non .NET developer There are several people about (myself being one of them) who have been developing RIA for a while now using Flex and AJAX. However Silverlight is now on the scene and worth picking up.
Question is, as someone who has never looked at .NET before, should I just dive in Si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to get the parent control from an assigned context menu using C#? I have a few listview controls on a windows form and i've assigned a common contextmenustrip to them all using the properties grid in VS2005.
Now when a selection is made from the contextmenu in any listview, is there a way i can get the correct h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: PNG Transparency with PHP Hey having some trouble trying to maintain transparency on a png when i create a thumbnail from it, anyone any experience with this? any help would be great, here's what i am currently doing:
$fileName= "../js/ajaxupload/tees/".$fileName;
list($width, $height) = getimagesize($fileName);
$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Providing a common interface to SVN and CVS SVN and CVS are two very different systems that aim to address the same basic issue - source control.
They both work in distinct ways, so it's probably difficult to deal with them exactly the same.
What I'm wondering is, would it be conceivable to develop a programming lib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is PHP or vanilla Perl CGI faster? I'm developing a web app for an Apache shared hosting server. I have already written some code in Perl but I recently found out, to my surprise, the shared hosting provider does not provided mod_perl or a way to install it.
I have been a bit worried that running a Perl web app thr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the Best Way to Measure Memory Use from a Program? I've been trying to optimize the Windows program I am developing, trying to find the best data structures that will minimize memory use. It loads large blocks of data, so with huge files, it can use a large amount of RAM.
For memory measurement, I have been u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the best interface features of a CMS you have used? There are a million and one CMS' that do a good job but the interface and usability of it let the entire system down (like a lot of websites out there).
Whenever I need to develop a bespoke system for content management I always try and draw on my past exp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ppening an HTML file on localhost in XAMMP/apache 2.2 using subdirectories under htdocs I have a site directory for html (dreamweaver CSS3) with lots of subdirectories that contain HTML files for a number of drop down menus. They work fine where they are, but they all have menus that are JavaScript and could be kept... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: reading FAT12 image file in C I have a FAT12 image file and I have to open it and read it. I would like to view this image file(directories/files with in) so I can have an idea of what outcomes I should be getting. Anyone know of a good software that would let me view this FAT12 image file? Also can someone guide to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: wxWidgets: Is there any way to avoid or to speed up wxBitmap::ConvertToImage()? To get some smooth graphics, I want to draw oversampled by factor 2 and scale down afterwards.
So what I am doing is to draw oversampled on a wxBitmap in a wxMemoryDC, and then scale it down before copying to my dc. The code below works ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a /dev/null on Windows? What is the equivalent of /dev/null on Windows?
A: According to this message on the GCC mailing list, you can use the file "nul" instead of /dev/null:
#include <stdio.h>
int main ()
{
FILE* outfile = fopen ("/dev/null", "w");
if (outfile == NULL)
{
fputs ("could... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "478"
} |
Q: WPF UserControl expose ActualWidth How do I expose the ActualWidth property of one of the components of my user control to users?
I have found plenty of examples of how to expose a normal property by creating a new dependency property and binding, but none on how to expose a read-only property like ActualWidth.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: .net and multicores From the .net 4.0 previews I have read until now there has been lots of talk on how the next .net version will handle and use cpus with multiple cores. We will have additions like plinq that will help us make use of multiple cores. My question is why should I have to bother my mind with handling ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I define a BigInt primary key with Rails 2.1 and MySQL? Since Rails 2.1, if you define a new column in a migration with the type set to :integer and the :limit set to 5 or more, the column actually created in your MySQL database will be of type BigInt. That's perfect.
But I cannot figure out how to create a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using django how can I combine two queries from separate models into one query? In my specific case, I have two kinds of "messages" that I need to retrive and paginate.
Let's omit the details, and just say that the first kind is in a model called Msg1 and the other is called Msg2
The fields of these two models are c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I shrink the size of a tag Pretty new to css and trying to make the tags on my page smaller on all sides. What are the best settings to modify? Margin doesn't seem to do what I want.
.story .content .tags .tag
{
margin: 10px 5px 10px 5px;
background-color: #99FF33;
font-weight: 500;
color: #33... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: static_cast confusion caused by inconsistencies Why whenever I compile and run the following code in Visual Studio 2008:
double value1 = 10.5;
double value2 = 15.5;
int whole_number = value1 + value2;
Console::WriteLine(whole_number);
I get an incorrect value of 26 while the answer is 25.
However when I use static ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Debug issue with Git in windows (MsysGit) I'm running into a recurrent problem with git on windows (I'm running MSysGit from package Git-1.6.0.2-preview20080923.exe, i tried as well with Git-1.5.6.1-preview20080701.exe and the results are the same).
It happens very offen that some files are shown as changed when I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can jconsole be used with Java EE? All the examples I see are for Java SE applications by passing your JAR file at the command line. Can JConsole attach to a WAR or EAR and monitor application performance?
A: JConsole is for monitoring JVMs. I'm assuming that you would like to monitor the performance of your applic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: asp.net CMS solution: best mechanism for storing the data in SQL I've worked on a number of CMS systems using the .NET platform (the CMS management system is in ASP.NET, and the site which renders the content is both ASP.NET and PHP).
I've traditionally stored the generated content in classes that serialize to XML, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Migrate from rails 2.1.1 to 2.2.2 I am working on a project using rails 2.1.1. With the new release of 2.2.2 I want to migrate to the new version. Is there anything I need to change to migrate my 2.1.1 controllers, views, and models?
A: Don't forget to run the update Rake task
rake rails:update
That will go ahea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's the best way of doing dos2unix on a 500k line file, in Windows? Question says it all, I've got a 500,000 line file that gets generated as part of an automated build process on a Windows box and it's riddled with ^M's. When it goes out the door it needs to *nix friendly, what's the best approach here, is there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to host a WPF control in an MS Access VBA Form? We have a large MS Access project that requires GUI functionality that is difficult / impossible to do in the VBA / access forms environment.
Over time, we wish to re-write / migrate to a managed C# environment with WPF as the presentation layer.
The only practica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best development "add on" for browsers I know FireBug with YSlow has to be by far my personal favourite. I also use IE developer toolbar when forced to test pages in IE. Is there any other jewels out there hiding??
A: Well you already mentioned FireBug, so the next web-related tool I use a lot would be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Empty $_POST array in PHP 5.2.6 / IIS CGI I am running into a very strange issue with PHP 5.2.6 w/ IIS on Windows XP (have tried both CGI and ISAPI). I am running a fresh installation with the default php.ini settings.
First, assume the following (ugly, but effective) HTML code:
<form action="<?php echo $_SERVER['P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sql Transactions: Best Way to Implement in ASP.Net I have an application that has many different types of objects that each persist themselves back to the db. This has worked fine so far without transactions and I'm not looking to go hog wild adding them. But there is an occasional need to start a transaction before... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Techniques for Caching SQL Query Data Having read some on this subject:
Caching MySQL queries
http://www.danga.com/memcached/
My SQL Caching problem:
http://www.petefreitag.com/item/390.cfm
http://framework.zend.com/manual/en/zend.cache.html#zend.cache.introduction
I have a very unique (narrow) set of Queries and I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Asp.Net/C# static variable persistence When I update the .dlls in my C# ASP.Net application, the transition is handled gracefully and the users are allowed to finish their requests before the code is switched over to the new code.
My question is do the static variables reset when that is done or do they persist thro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the coolest mashup you've built? What's the coolest mashup you've built? What APIs did you use? How was the mashup better than the sum of its parts?
A: Although probably not a true mashup, I created a script hat would read the Apple Movie Trailer RSS feed, and then visit the links in the feed to download ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to solve "Must be MarshalByRefObject" in a good but multiple-inheritance amputated language like C#? How to solve "Must be MarshalByRefObject" in a good but multiple-inheritance amputated language like C#?
The problem is very simple, in several cases you just have to inherit from this class (infrastructure requi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Displaying different data depending on login status - client side I was just wondering what the best way to do this is and if it could be bypassed.
These are my thoughts.
I have a bunch of links that when clicked open up a detail panel underneath which displays more information. This is done ajaxy. The thing is howe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why doesn't keysDownRepeat() in libnds seem to work when calling it multiple times? I have code like this to move the player in my game left, right, up, and down:
keysSetRepeat(20, 5);
while (lives) {
scanKeys();
if (keysDownRepeat() & (KEY_LEFT | KEY_RIGHT | KEY_UP | KEY_DOWN)) {
u8 new_x = x;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Migrate VB.NET 2.0 Winform to 3.5 WPF Is it possible to migrate a VB.NET Winform solution to a 3.5 WPF solution. If so, any suggestions how to do it?
Thanks in advance!
JFV
A: Straight answer is a big No.
If you want to take all the real power of the new platform, you need to rebuild the entire Win forms UI side a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Serving contextual based ads on sites built entirely in Flash? What's the status of adsense (or equivalent) being able to serve contextual based ads on sites built entirely in Flash?
A: Check out Mochiads. Adsense ish type of service for embedding into Flash applications.
(they're behind mochiweb, the erlang web se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I have a catch all route with the following route? I have the default that vs.net creates in a MVC app:
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", acti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to create a new message within a Biztalk Orchestration? I'm looking for your best solutions for creating a new message instance based on a pre-defined XSD schema to be used within a Biztalk orchestration.
Extra votes go to answers with clear & efficient examples or answers with quality reference... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to make Eclipse prompt me for command line arguments I know I can configure command line arguments in the Run configuration but I want to run a java file multiple times with different command line arguments. It's a pain to change the Run Configuration every time.
Is there a way I can make Eclipse prompt me for c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.