I use blogger and I install a windows live writer, I don't know how to insert F# code.
I installed several code highlighter, none of which support ocaml or f#.
I have a simple Button control that contains an Image object as its content. I want so set the Image opacity to 0.5 when the Button is disabled to provide an additional visual cue as to the Button status.
What is the simplest way to accomplish that result in XAML? Thanks for your help.
I'm using the jQuery droppable/dragable to reorder a treeview (made up of ul/li items)
I have no problems making a element and dragging it into the tree
When I define the items to be draggable, the code doesn´t work any more (the items are classed as "droppables" but the drop event won´t run)
Isn't this supposed to be possible?
I have a class that I need to provide the datatemplate for. Currently I have two datatemplates, one for when Enabled == true and one for when Enabled == false. The datatemplate for the class is actually the one below which changes the template used based on a trigger:
<DataTemplate x:Key="ActionNodeTemplateSelector">
<ContentPresenter…
Win32 Virtual listviews (LVS_REPORT view) created with the LVS_OWNERDATA style are supposed not to scroll when LVSICF_NOSCROLL is used in the LVM_SETITEMCOUNT message or ListView_SetItemCountEx macro, according the MSDN documentation.
However, this doesn't seem work, and the list-view scrolls regardless of the use of LVSICF_NOSCROLL.
In these…
For some reason, when I try to use @synchronized in a static library for the iPhone, I get an error in the project that uses it:
Undefined symbols:
"___restore_vfp_d8_d15_regs", referenced from:
-[GVInbox addConversation:] in libGVKit.a(GVInbox.o)
"___save_vfp_d8_d15_regs", referenced from:
-[GVInbox addConversation:] in…
IIS 7.0 (Shared Hosting)
ASP.NET 2.0 Integrated Pipeline mode
MVC 1.0
I get a 404 on every url except /default.aspx.
I have this in my web.config:
<system.webServer>
<defaultDocument enabled="true">
<files>
<clear />
<add value="Default.aspx" />
</files>
</defaultDocument>
…
I have an issue and NO it is not homework, it's just a programmer who has been away from SQL for a long time having to solve a problem.
I have the following table:
create table students(
studentid int identity(1,1),
[name] varchar(200),
[group] varchar(10),
grade numeric(9,2)
)
go
The group is something…
My UITable is returning EXEC_BAD_ACCESS, but why!
See this code snippet!
Loading the UITableView works fine, so allXYZArray != nil and is populated!
Then scrolling the tableview to the bottom and back up causes it to crash, as it goes to reload the method cellForRowAtIndexPath
It fails on line: "NSLog(@"allXYZArray::count:…
I am using Telerik controls in my webforms and want to serialize object on the client. Since I am getting a stackoverflow error with Sys.Serialization.JavaScriptSerializer.deserialize I wanted to try JSON. With both JSON and and the MS library I get "Sys.Application is undefined."
Has anyone encountered this what did you do…
I am running Visual Studio 2010 and have installed the Silverlight 4 Toolkit, however on creating a Silverlight Application I don't seem to have the controls in my Toolkit?
Can someone please help me on this?
The Socket class has a method .AcceptAsync which either returns true or false.
I'd thought the false return value was an error condition, but in the samples Microsoft provide for Async sockets they call the callback function synchronously after checking for failure, as shown here:
public void StartAccept(SocketAsyncEventArgs…
I realise that there are many older questions addressing the general question of NUnit v MSTest for versions of Visual Studio up to 2008 (such as this one).
Microsoft have a history of getting things right in their 3rd version. For MSTest, that is VS2010.
Have they done so with MSTest? Would you use it in a new project in…
I'm looking for a programmatic interface to the Solaris ifconfig(1M) command.
Apparently Linux has the getifaddrs(3) command, but as far as I can tell this has not been ported to Solaris.
Short of attempting to use the code at the link above, is there any way to determine ifconfig(1M)-type data (network interface…
hi everyone,
I'm trying to implement a little function in my app. I am currently playing sounds as AVAudioPlayers and that works fine. What I would like to add is to control the sound's position (currentTime) with an UISlider: is there a simple way to do it ?
I looked at an Apple project but it was quite…
I'm using the tokenizing autocomplete plugin for jquery ( http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry ). I mostly use Ruby, and I'm really unfamiliar with javascript, though.
My basic setup looks like this, and works fine for a new, blank form:
$(document).ready(function…
I am creating a model-first Entity Framework 4 app that uses SQL CE as its data store. All is well until I call ObjectContext.SaveChanges() to save changes to the entities in the model. At that point, SaveChanges() throws a System.Data.UpdateException, with an inner exception message that reads as…
I have two tables A and B with a one-to-many relationship respectively.
On some pages I would like to get a list of A objects only. On other pages I would like to load A with objects in B attached.
This can be handled by setting the load options
DataLoadOptions options = new DataLoadOptions();…
Hi All,
I'm using swfobject to embed my flash. It's doing weird things.
I've created a simple textfield using FlexBuilder. It's an AS3 project, which extends Sprite. I've set its width to be 640 and height to 450. Then, in the swfobject parameters of the page, I've also set 640 x 450. I've…
I have just added the SherlockActionBar library to my android project. After some small changes (FragmentActivity - SherlockFragmentActivity, getActionBar() - getSupportActionBar(), imports) it all compiled nicely. After I run the app, however, the debugger stops, as though it had encountered…
For my first Silverlight app, I've written a program that sends user-supplied search strings to the Flickr REST API and displays the results in a DataGrid. Said grid is defined like so:
<data:DataGrid x:Name="PhotoGrid" AutoGenerateColumns="False">
<data:DataGrid.Columns>
…
Let's say I get a HBITMAP object/handle from a native Windows function. I can convert it to a managed bitmap using Bitmap.FromHbitmap(nativeHBitmap), but if the native image has transparency information (alpha channel), it is lost by this conversion.
There are a few questions on Stack…
I'd like to get a look at the differences between the Xbox 360 and Windows XNA assemblies. I know the 360 runs the .NET Compact Framework and I was under the impression that Reflector could read CF assemblies, but when I open them, all of the methods are blank and no internal classes…
I'm using Visual Studio 2010 and VSS.
Yes, I know VSS sucks. Hard. I'm attempting to force a move to TFS (since SVN integration with Expression and Sharepoint Designer is near impossible without forcing non-technical content managers to use TortoiseSVN), but that will not happen in…
Let's say I have code that uses the Asynchronous Programming Model, i.e. it provides the following methods as a group which can be used synchronously or asynchronously:
public MethodResult Operation(<method params>);
public IAsyncResult BeginOperation(<method params>,…