Is there a simple way to invert a WPF GridView so that items are bound to columns instead of rows? Or would it be necessary to write a custom view mode?
I have created activex control in vb6. It has standard label with its backstyle property set as transperant. Also activex control form itself has property backstyle set as transperant. In Vc++ I placed this activex control in property sheet page. But i am not getting this activex control displayed in running mode. If we change backstyle property to opaque then it is working fine. How to resolve this issue
web.config:
<customErrors mode="On" defaultRedirect="~/Foo.aspx" />
When Foo.aspx.cs is running, how can I know that an uncaught exception is what sent me to Foo.aspx?
Hi,
I'm using godaddy shared hosting, with IIS7, Integrated mode, and published up a bog standard MVC2 app to dev.lazygekko.com created with Visual Web Developer 2010.
It all works, however when any of the links are clicked, they point to dev.lazygekko.com/dev/..., dev being the folder it is pointing at.
Can anyone shed some light on what I may be doing wrong?
Many thanks.
Is it possible to read stdin as binary data in Python 2.6? If so, how?
I see in the Python 3.1 documentation that this is fairly simple, but the facilities for doing this in 2.6 don't seem to be there.
If the methods described in 3.1 aren't available, is there a way to close stdin and reopen in in binary mode?
I have a table view and want to allow rearranging of all cells, however there are certain cells that i do not want to be allowed to be deleted. when the UiTableView is put into deletion mode i do not want the red '-' button to appear on the left hand side, and do not want the swipe gesture to bring up the Delete button of these cells but want it to happen for the others. Any ideas?
Hi
I am new to iphone development. In my application, i want to draw a road map(driving/walking mode) from current location (wherever we are in) into target place which is given by user via textfield. All things should be done inside my application. Is there any idea? or any sample?
We have some code that works and it's a Win32 app with a GUI, but I would like to be able to trigger it from the command line as well (silent mode). Is there any easy way to do this? Or do I have to create another project as a command line application?
So, I Have the following very simple map.r file.
I'm trying to have the user type "click" in interactive mode and then have the function .
Since it's a function, the user has to type "click()" how can I make it so that they only have to the word (w/o parentheses), and then have that function do something with the img.
So the user types:
mydist("image.pnm")
click
//And then the function click does what it's supposed to
mydist <- function(mapfile) {
img <- read.pnm(mapfile)
plot(img)
}
click <- function() {
//Prompt user to click on img
}
I am using a Jquery dialog for both viewing a record and editing a record. When in edit mode the user can change the date using the datepicker. In viewmode I need to hide the datepicker icon and only show the date. Is there a way to toggle the datepicker icon on and off as needed?
i have a j2me application ,
it does the File IO operation, but every time it performs it , it asks user for permission.
is there any way to bypass it?
i heard that suppose if i make this application certified then i would be able to run it in max. secure mode to bypass such issues.
I have this POGO ( simple putter getter) class that I am trying to read in PowerShell
using System;
using System.Runtime.Serialization;
namespace MyApp.VM
{
[Serializable]
public class MyClassVM
{
public Int64 CtrId { get; set; }
public string CtrName { get; set; }
public string CtrPhone { get; set; }
public string CtrZip { get; set; }
public DateTime AddDate { get; set; }
}
}
Here is the ps1 code that is trying to read the class from a file.
function Build-Pogo
{
$FileDir = "D:\YourDirectoryOfPogo"
$ClassName = "MyClassVM"
$FileName = $FileDir + "\" + $ClassName + ".cs"
# Build the class from the file
$AllLines = [string]::join([environment]::newline, (Get-Content $FileName))
Add-Type -TypeDefinition $AllLines
# spin thru each property for class
$ClassHandle = New-Object -typeName $ClassName
$ClassHandle | ForEach-Object {Write-Host $_.name -foregroundcolor cyan}
}
*Note the last line is placeholder for more complex logic to come later.
This breaks at the Add-Type with this error message for each get/set in the file.
'MyApp.VM.MyClassVM.CtrId.get' must declare a body because it is not marked abstract or extern
Any info on what I'm doing wrong will be greatly appreciated.
I'm using C# and probably .Net compact framework. How should I design mobile news reader (RSS, Atom...).
What are risks I should be aware before I start?
What libraries are there to help me read and parse data and synchronize it when going from offline mode?
In my web.config I have the following:
<customErrors mode="RemoteOnly" defaultRedirect="/error.aspx"/>
When an error occurs, the user is redirected to /error.aspx?aspxerrorpath=/somepage where I can get user's name, name of the page, date, but... I can't get the error message!
I can get it via the OnException method, but then I won't be able to get the name of the page which is very important for me.
How can I get both the page and the error message?
I need to display the selecteditems in a label
I am using VB 2005
I set the selection mode to multi-extended
It did work selecting only one item with the following code:
me.xresultslabel.text= me.xlisttextbox.text.selectedItem.tostring
But when I tried to display more than one item using the following code:
me.resultlabel.text= me.xlisttextbox.text.selectedItems, I get the following string on the label:
system.windows.forms.listbox+selectedobjetcollections.
any help will be highly appreciate
The goal is to learn whether to use abstract or interface or both...
I'm designing a program which allows a user to de-duplicate all images but in the process rather then I just build classes I'd like to build a set of libraries that will allow me to re-use the code for other possible future purposes.
In doing so I would like to learn interface vs abstract and was hoping someone could give me input into using either.
Here is what the current program will do:
recursive scan directory for all files
determine file type is image type
compare md5 checksum against all other files found and only keep the ones which are not duplicates
Store total duplicates found at the end and display size taken up
Copy files that are not duplicates into folder by date example Year, Month folder with filename is file creation date.
While I could just create a bunch of classes I'd like to start learning more on interfaces and abstraction in php.
So if I take the scan directory class as the first example I have several methods...
ScanForFiles($path)
FindMD5Checksum()
FindAllImageTypes()
getFileList()
The scanForFiles could be public to allow anyone to access it and it stores in an object the entire directory list of files found and many details about them. example extension, size, filename, path, etc...
The FindMD5Checksum runs against the fileList object created from scanForFiles and adds the md5 if needed.
The FindAllImageTypes runs against the fileList object as well and adds if they are image types.
The findmd5checksum and findallimagetypes are optionally run methods because the user might not intend to run these all the time or at all.
The getFileList returns the fileList object itself.
While I have a working copy I've revamped it a few times trying to figure out whether I need to go with an interface or abstract or both.
I'd like to know how an expert OO developer would design it and why?
I noticed that some enumerations have "None" as a enumeration member.
For example what I mean
enum Mode
{
Mode1 = 1,
Mode2 = 2,
Mode3 = 3,
None = 4
}
Why do they use it ? In what cases solution with a none member is more preferable (less preferable) ?
Can anyone suggest a non java replacement for SQL Server Management Studio for OSX?
I currently use Parallels in Crystal mode and run SSMS, but it seems like there should be something better.
I have a column defined like this:
<DataGridTextColumn Binding="{Binding Path=FileSizeBytes, Mode=OneWay}" Header="Size" IsReadOnly="True" />
But instead of displaying the file size as a big number, I'd like to display units, but still have it sort by the actual FileSizeBytes. Is there some way I can run it through a function or something before displaying it?
hi
I have created an application in VStudio. It ran nicely in debugging mode, but my computer became slower and slower as I worked until it finaly became frozen.
after I manualy restarted it, the app wasn't running any more in debug and I get this execption in the browser.
Only I am connected right now to the app.
I have restarted the computer so there coudn't be any instance of a client connected
I have removed and reinstalled the IIS
what is wrong?
my laptop is starting up and produces the normal screen due to abrupt power failure and when i click to start normally or in safe mode, the blue screen splashes and then disappears and then it tries to reboot again and the same problem takes place. it was running on xp service pack 2. could anyone help
Hy,
I was looking for a software to model an application, because is becoming too big.
Like this:
Class - A
Methods - a, b, c, d, e
Class - B
Methods - a, b, c, d, e
This should be in graphical mode, Classes are some boxes, and the methods are in the box.
Then I would like to be able to make a arrow from one method to another.
Do you know some good software?
thanks
hello
i installed ubuntu using wubit inside the windows and started working on it then i got this error afer updating
[0.8879153] kernel panic -not syncing VFS unable to mount fs unknow block (8.3)
and i can't user rescue mode and it's give me another error
no filesystem could mount root .....
i looked at grub folder and didn' find any file on disks/boot/grub/
so i tryed to user super grub to fix it but it didn' work and it keep giving me.
any idea plz .
My application is not saving users settings after I install it. When I test my app in debug or release mode it works fine. However after compiling, linking and installing the My.Settings.Save() does not seem to be working.
I can manually change a setting in the config file and the app runs accordingly. So I know it’s reading the config file on application startup.
What am I doing wrong?
Thanks