I need to disable check-in operation for several projects in my solution. I need it to safe myself from uploading changes to read-only projects. Does this option exist for Team Explorer?
I try to use the UIActionSheet within my iPhone App but have the following problem. When I tap the cancel button "I don't", the app crashes. When I remove the NSLog statement from the actionSheet:clickedButtonAtIndex: it does not. The "Yes, do it" button works just fine and I see the log statement in the console. What's wrong?
- (void)…
We have a C++ unmanaged application that appears to cause a UAC prompt. It seems to happen on Win7 and NOT on Vista
Unfortunately the UAC dlg is system modal so I can't attach a debugger to check in the code where it is, and running under msdev (we're using 2008) runs in elevated mode.
We put a message box at the start of our…
I have a large raw data file (up to 1GB) which contains raw samples from a USB data logger.
I need to store extra information relating to the file (sample rate, description, trigger point, last seek position etc) and was looking into adding this as a some sort of header.
The header file should ideally be human readable and…
One particular quirk of the (otherwise quite powerful) re module in Python is that re.split() will never split a string on a zero-length match, for example if I want to split a string along word boundaries:
>>> re.split(r"\s+|\b", "Split along words, preserve punctuation!")
['Split', 'along', 'words,', 'preserve',…
A List does not work in the way that I want. The way that I want is that WeakReferences are automatically removed from the list when the object they weakly reference is garbage collected.
ConditionalWeakTable does not do what I want either, because although its keys and values are weakly referenced and collectable, you…
I am getting Drupal messages stuck permanently in session, so that after being displayed they are not cleared. The unsetting code in function drupal_get_messages in bootstrap.inc is firing - It's as if the session is sleeping (i.e. serializing to disk) before the messages array is cleared.
Have you witnessed such a…
I need to import either csv or excel file into a dbase. The column headers will match but I will want to compare the file against the dbase using an ItemID field, list the rows to be affected and the differences, then allow an update to all the rows with the matching ID.
Hello,
i have a strange problem with a VB.Net Windows Application.
On my computer(the development PC) it executes the newest version of the exe and dll's but on the computer of my fellow(he is not a developer and cant debug it) an older version is executed. He has overwritten all files with the new version:
I…
I wonder how to list the content and remove some directories in an archive file?
For example, I have an archive file data.tar. I would like to list its content without extracting it. I also would like to remove some directories inside it matching "*/count1000"
Thanks and regards!
I do not want to double post a question; I was trying to post an add-on to my first question that I was looking for additional help. How does one go about this?
Here is the original question. jQuery Hover Fade Button with an Active State
Was hoping to see if there is a solution to the glitch I found.
The…
Hi,
how can I search for geo-objects in a certain perimeter ? E.g. I have several objects with Lat/Lon coordinates stored in my DB. Now I want to retrieve all the objects which lie in a specific perimeter (10 miles or 20 miles) around a given point.
I guess what I would have to do is to form some query…
I wonder how to specify to the command find for searching files with names matching some string or some other string.
For example, if I want to look for files that match either *dat or *txt under current directory, how to specify?
Thanks and regards!
I'd like to accomplish what this (invalid I believe) regular expression tries to do:
<p><a>([^(<\/a>)]+?)<\/a></p>uniquestring
Essentially match anything except a closing anchor tag. Simple non-greedy doesn't help here because `uniquestring' may very well be after another…
I have the following code:
public class Parent
{
public string MyField { get; set; }
}
public class Child : Parent
{
protected new int MyField { get; set; }
}
I try and access this with:
static void Main(string[] args)
{
Child child = new Child();
child.MyField = "something";
}
…
I am a C++/C# developer and never spent time working on web pages. I would like to put text (randomly and diagonally perhaps) in large letters across the background of some pages. I want to be able to read the foreground text and also be able to read the "watermark". I understand that is probably…
Hi all,
My desktop application should update my facebook status.
Is there an API that allows to update the status with a login and pwd ?
Thanks in advance for your answer
Is there a way in PHP5 to only allow a certain class or set of classes to call a particular function? For example, let's say I have three classes ("Foo", "Bar", and "Baz"), all with similarly-named methods, and I want Bar to be able to call Foo::foo() but deny Baz the ability to make that call:
…
I was wondering how to make a python script portable to both linux and windows?
One problem I see is shebang. How to write the shebang so that the script can be run on both windows and linux?
Are there other problems besides shebang that I should know?
Is the solution same for perl script?
…
Related:
While coding, how many columns do you format for?
Is there a valid reason for enforcing a maximum width of 80 characters in a code file, this day and age?
I mostly use C, however this question is language agnostic. Its also subjective, so I'll tag it as such.
Many…
When i switch an ASP.Net Formview from readonly mode to edit mode it takes more than 6 seconds(from edit to readonly takes a split second).
I have no idea whats the reason for it. The EditItemTemplate contains a lot of controls(table,textboxes,dropdownlists) but in fact not more than the…
In python (it's a Django filter), I'm doing this:
lReturn = re.sub(r'\[usecase:([ \w]+)]', r'EXTEND WITH <a href="/usecase/%s/\1/">\1</a>' % pCurrentProjectName, lReturn)
I'd like to use a function instead of a string (so I can check that the usercase is a valid name), so…
I'm looking at the pros and cons of these three primary methods of coming up with primary keys for database rows.
So assuming I am using a database that supports more than one of these methods, is there a simple heuristic to determine what the best option would be for me?
How do…
My jQuery code sets the height of an element to 0px as soon as the page loads, then animates it to 500px.
In my CSS, this element is already set to 500px (in case anyone has javascript turned off).
I tried 'DEFER' on the tag where I link to the stylesheet so that the CSS loads in…