I just started programming with Racket and now I have the following problem.
I have a struct with a list and I have to add up all prices in the list.
(define-struct item (name category price))
(define some-items
(list
(make-item "Book1" 'Book 40.97)
(make-item "Book2" 'Book 5.99)
(make-item "Book3" 'Book 20.60)
(make-item "Item"…
I am receiving the following error in my code (c#, .Net 3.5, VS2008) when I try to connect to an Excel sheet and fill a OleDbDataAdapter with the results of a query. First the error:
Attempted to read or write protected memory. This is often an
indication that other memory is
corrupt.
And here is the code, which is honestly pretty…
Trying to show a label only when a certain item in a combo is selected. Code should pretty much explain it.
<ComboBox Name="comboMyCombo">
<ComboBoxItem>Don't show the label</ComboBoxItem>
<ComboBoxItem>Show the label</ComboBoxItem>
</ComboBox>
<Label…
I added a helpAbout menu item to my mfc app. I decided to make the ddlg derive from CDHTMLDialog.
I override the OnInitDialog() method in my derived class and the first thing I do is call the parent's OnInitDialog() method.
I then put in code that sets the title.
On some machines this works fine, but on others it…
I'm using the MLA style. I would like to print out a bibliography subdivided into different sections. I also want annotations on each source. Is this possible with BibLaTeX? Should I just do it manually?
I thought I would find decent questions and answers for this, but none really caught my eye...
I am a C++ developer and I own a few domains. I'd like to start off with simple web sites for each with a minimum of time and fuss and minimum learning. I have too many projects going and don't have the time to learn how…
I have a WPF application (KaleidoscopeApplication) organized as follows:
Solution (6 projects)
Cryptography (DLL)
Rfid (DLL)
KaleidoscopeApplication (buildable "startup project")
Basically, KaleidoscopeApplication contains a bunch of resources (sounds, images, etc) and your standard WPF junk (App.xaml,…
We're working on a Flash CS4 project where the main .fla file has ballooned in size and 'Publish' is taking forever. I suspect a large amount of the size (and at least some of the compile time) is due to the quantity of audio symbols in the library.
I would love to remove this unnecessary bloat from the…
I'm building a Web Service in C# with VS2008, and want to implement WS-Addressing, so the message headers look like eg below:
What do I need to add / do in VS2008 to make this happen?
http://messagehandler.org.com/sendmessage
http://www.thirdparty.com/address
…
Hi,
I have been playing around with the MS Source Server stuff in the MS Debugging Tools install.
At present, I am running my code/pdbs through the Subversion indexing command, which is now running as expected. It creates the stream for a given pdb file and writes it to the pdb file.
…
I like to format all my HTML with tabs for neatness and readability. Recently I started using PHP and now I have a lot of HTML output that comes from in between PHP tags. Those output lines all line up one the left side of the screen. I have to use /n to make a line go to the next. Is…
In MATLAB, how do you write a matrix into an image of eps format? It seems imwrite does not support eps?
convert is not working on the Linux server I am using
$ convert exploss_stumps.jpg exploss_stumps.eps
convert: missing an image filename `exploss_stumps.eps' @…
I am trying to implement a split view controller like UISplitViewController on the iPad, but I don't want the left pane to be hidden when the device is in portrait orientation.
So I've created a UIViewController subclass for this in IB and it works fine without any…
What does InitializeComponent() do, and how does it work? (WPF)
In general first, but I would especially be interested to know the gory details of order of construction, and what happens when there are AttachedProperties.
I'm working on implementing a reasonably simple XML serializer/deserializer (log file parser) application in C# .NET with VS 2008. I have about 50 unit tests right now for various parts of the code (mostly for the various serialization operations), and some of them…
Hi,
I just wonder how to add annotation in matlab plot? Here is my code:
plot(x,y);
annotation('textarrow',[x, x+0.05],[y,y+0.05],'String','my point','FontSize',14);
But the arrow points to the wrong place. How can I fix it? And any better idea for annotating…
I've looked over the Arel sources, and some of the activerecord sources for Rails 3.0, but I can't seem to glean a good answer for myself as to whether Arel will be changing our ability to use includes(), when constructing queries, for the better.
There are…
I made a custom handler that derives from MvcHandler. I have my routes using a custom RouteHandler that returns my new handler for GetHttpHandler(), and I override ProcessRequest() in my custom handler. The call to GetHttpHandler is triggering a…
Trying to setup a CodeIgniter based project for local development (LAMP stack), and once all the config file were updated (meaning I successfully had meaningful bootstrap errors for CodeIgniter), I get this error in my browsers:
Chrome
Error 330…
I would like to display different tooltip content for each of the areas defined in an image-map. Are there any jQuery plug-ins that have an API well-suited to use with image-maps? I would like it also be be flexible with regard to where the…
I have a list of items, being displayed in a series of DIVs. When someone clicks on an "edit" link, I want to replace the div with a form that will let them edit the contents of that item in a nice way.
I'm trying to think of the ideal way…
I was wondering what people's thoughts were on the CA1806 (DoNotIgnoreMethodResults) Static Code Analysis warning when using FxCop.
I have several cases where I use Int32.TryParse to pull in internal configuration information that was…