instruction
stringlengths
0
30k
MS Team Foundation Server in distributed environments - hints tips tricks needed
|tfs|teamfoundationserver|
Is anyone out there using Team Foundation Server within a team that is geographically distributed? We're in the UK, trying work with a team in Australia and we're finding it quite tough. For example, things are being checked out to us without us asking on a get latest. Even when using a proxy, most thing take a wh...
|tfs|teamfoundationserver|visual-studio|
|visual-studio|tfs|teamfoundationserver|
Is anyone out there using Team Foundation Server within a team that is geographically distributed? We're in the UK, trying work with a team in Australia and we're finding it quite tough. Our main two issues are: 1. Things are being checked out to us without us asking on a get latest. 2. Even when using a prox...
|visual-studio|tfs|
VS 2008 - Objects disappearing?
|visual-studio|teamfoundationserver|.net|
I've only been using VS 2008 Team Foundation for a few weeks. Over the last few days, I've noticed that sometimes one of my objects/controls on my page just disappears from intellisense. The project builds perfectly and the objects are still in the HTML, but I still can't find the object. Any one else notice this?
|.net|visual-studio|teamfoundationserver|
I've only been using VS 2008 Team Foundation for a few weeks. Over the last few days, I've noticed that sometimes one of my objects/controls on my page just disappears from intellisense. The project builds perfectly and the objects are still in the HTML, but I still can't find the object. Any one else notice this? ...
|.net|visual-studio|tfs|teamfoundationserver|
|.net|visual-studio|tfs|
If you have a byte[] you should be able to use the BinaryReader class and set values on NewStuff using the available ReadX methods.
I had followed a different tutorial on setting up my xen on ubuntu before 8.04 but now upgraded to 8.04. I used the extra line in my cfg as folows: extra = ' TERM=xterm xencons=tty console=tty1' It allows me to "xm console hostname" from dom0. I think this was from a problem with the xen setup in the version ...
My first instinct would be the rather unhelpful "Install Linux". You are somewhat <a href="http://tirania.org/blog/archive/2006/Jan-11.html">swimming against the current</a> to try and develop in mono under windows. Installing GTK and everything is a bit of a bother in my experience. If you do feel like using linux,...
You can't check for changes without some sort of audit mechanism. You are looking to extract information that ha not been collected. If you just need to know when a record was added or edited, adding a datetime field that gets updated via a trigger when the record is updated would be the simplest choice. If you al...
From what I can see in that context, you don't need to copy SomeByteArray into a buffer. You simply need to get the handle from SomeByteArray, pin it, copy the IntPtr data using PtrToStructure and then release. No need for a copy. That would be: NewStuff ByteArrayToNewStuff(byte[] bytes) { GCHan...
From what I can see in that context, you don't need to copy SomeByteArray into a buffer. You simply need to get the handle from SomeByteArray, pin it, copy the IntPtr data using PtrToStructure and then release. No need for a copy. That would be: NewStuff ByteArrayToNewStuff(byte[] bytes) { GCHan...
|java|java-io|
VB.NET Empty String Array
|.net|vb.net|string|
How can I create an empty one-dimensional string array?
Like the others, I'm not sure that's such a good idea, but if you really want to do it, then you can create a subclass of SynchronizationContext that allows posting and sending delegates to the target thread (if it's a WinForms thread the work is done for you as such a subclass already exists). The target thread will h...
Not sure why you'd want to, but the C# way would be string[] newArray = new string[0]; I'm guessing that VB won't be too dissimilar to this. If you're building an empty array so you can populate it with values later, you really should consider using List<string> and converting it to an array (if...
> Without profiling we cannot tell which bit of the program needs optimizing. If you were in a large system, then one would use a profiler to find that the prime number generator is the part that needs optimizing. Profiling a loop with a dozen or so instructions in it is not usually worth while - the overhead of...
JavaFX video encoding
|video|encoding|javafx|
On [JavaFX's Wikipedia][1] > In May 2008 (...) Sun Also announced a > multi-year agreement with On2 > Technologies to bring comprehensive > video capabilities to the JavaFX > product family using the company's > TrueMotion Video codec. Do you know if it will include encoding capabilities like Flash or just...
On [JavaFX's Wikipedia][1] > In May 2008 (...) Sun Also announced a > multi-year agreement with On2 > Technologies to bring comprehensive > video capabilities to the JavaFX > product family using the company's > TrueMotion Video codec. Do you know if it will include encoding capabilities for webcam video l...
Which font is it? Try using ClearType, not Standard font smoothing. It's in Display properties, Appearance, Effects.
Dim strEmpty(-1) As String
Could it be a problem with the color combination? Some fonts look really ugly on high contrast combinations with a black background. Also, can you see the difference in the fonts in any other application? Which font is it?
I don't think SQL Express would be overkill if you want to learn real-world skills - quite the opposite in fact! That'd be my choice, and whatever I chose, I'd stay clear of Access. Good luck
How do I fire an event when a iframe has finished loading in jQuery?
|jquery|javascript|iframe|
I have to load a pdf within a page (don't ask...) Ideally I would like to have a loading animated gif which is replaced once the pdf is loaded. Thanks
|javascript|jquery|
The first thing to remember is that the cursor can be in three states - a regular insertion cursor at a specific position - a text selection that has a certain bounded area - not active: textarea does not have focus. Has not been used. The IE model uses the Object [document.selection][1], from this we can ge...
The first thing to remember is that the cursor can be in three states - a regular insertion cursor at a specific position - a text selection that has a certain bounded area - not active: textarea does not have focus. Has not been used. The IE model uses the Object [document.selection][1], from this we can ge...
[Dr. Dobbs Journal][1] is a pretty good broad-based programmer's journal. Covers all manner of material. [1]: http://ddj.com
According to [this blog post by Vance Morrison][1], RuntimeTypeHandle is a value type (struct) that wraps an unmanaged pointer, so Type.GetTypeHandle(obj).Equals(anotherHandle) is faster to use for strict "is exactly the same type" comparisons than obj.GetType().Equals(anotherType) -- the latter creates System.Type ins...
Whats the difference between RuntimeTypeHandle and Type?
|c#|.net|
And why would I use one over the other in my code?
|c#|.net|reflection|
Launching a Python interpreter instance just to select the right binary to run would be much heavier than you need. I'd distribute a shell .rc file which provides aliases. In /shared/bin, you put the various binaries: /shared/bin/toolname-mac, /shared/bin/toolname-debian-x86, /shared/bin/toolname-netbsd-dreamcast, ...
Maximum number of inodes in a directory?
|linux|unix|bash|command|ls|
Is there a maximum number of inodes in a single directory? I have a directory of 2 million+ files and can't get an the ls command to work against that directory. So now I'm wondering if I've exceeded a limit on inodes in Linux. Is there a limit before a 2^64 numerical limit?
I don't know what the performance would be like for large datasets, but open office has a database program (Base), which is an Access clone and may just be what you are looking for.
The venerable [Dr. Dobbs Journal][1] is still pretty good. It covers multiple platforms, and mixes some fairly hard-core technical articles with lighter fare (interviews with notables, a "Developer Diaries" column that profiles regular-Joe (and Jane) developers from a range of fields). If you are employed and have auth...
> @DrPizza - this is a very good question, and one that strikes right to the heart of the problem. There are a few reasons why QueueUserWorkItem and the Windows NT thread pool was ruled out (although the Vista one does look interesting, maybe in a few years). Yeah, it looks like it got quite beefed up in Vista, quit...
"the only way I can return this is as an IEnumerable, so I lose my strong typed goodness" that is incorrect. In fact your query is strongly typed, it is just an anonymous type. I think the query you want is more like: var emps = from e in Employees join m in Employees on e.Ma...
A (left) inner join only shows rows if there is a matching record on the other (right) side of the join. A (left) outer join shows rows for each record on the left hand side, even if there are no matching rows on the other (right) side of the join. If there is no matching row, the columns for the other (right) side ...
@Brian -1 is a good choice for the default value since no "real" rows are likely to have identities less than zero. If it defaulted to 0 or 1 then there'd be a chance that it'd clash with an existing row, causing a primary key violation. For applications that stay offline and create multiple rows before saving, a co...
The iPhone SDK is documented to require an Intel-based Mac. Even if some people may be able to have gotten it to run on some other hardware doesn't mean that it will run correctly, that Apple will fix bugs you report, or that it is a supported environment.
Having worked with both approaches (shared domain objects and DTOs) I'd say the big problem with shared domain objects is when you don't control all clients, but from my past experiences I'd usually use DTOs unless it development speed were of the essence. If there's any chance that you won't always be in control of...
From what I can see in that context, you don't need to copy SomeByteArray into a buffer. You simply need to get the handle from SomeByteArray, pin it, copy the IntPtr data using PtrToStructure and then release. No need for a copy. That would be: NewStuff ByteArrayToNewStuff(byte[] bytes) { GCHan...
From what I can see in that context, you don't need to copy SomeByteArray into a buffer. You simply need to get the handle from SomeByteArray, pin it, copy the IntPtr data using PtrToStructure and then release. No need for a copy. That would be: NewStuff ByteArrayToNewStuff(byte[] bytes) { GCH...
For C code, you definitely should definitely use [Flexelint][1]. I used it for nearly 15 years and swear by it. One of the really great features it has is that warnings can be selectively turned off and on via comments in the code ("/* lint -e123*/"). This turned out to be a powerful documentation tool when you want...
MySQL/Apache Error in PHP MySQL query
|php|mysql|
I am getting the following error: > Access denied for user 'apache'@'localhost' (using password: NO) When using the following code: <?php include("../includes/connect.php"); $query = "SELECT * from story"; $result = mysql_query($query) or die(mysql_error()); echo "<h1>Delete...
Note: this answer describes how to get the **character co-ordinates** of the text-cursor/caret. To find the pixel-co-ordinates, you'll need to extend this further. The first thing to remember is that the cursor can be in three states - a regular insertion cursor at a specific position - a text selection that h...
AFAIK, Linq to SQL is MSSQL server provider specific. To be honest, SQL Express is pretty lightweight on todays machines. BTW don't confuse LINQ with Linq to SQL. Linq is the underlying technology to provide "query" like support to .NET (amongst other things), where as L2S is effectively a Data Access technology bui...
Not sure how credible that source is, but: [http://www.builderau.com.au/program/windows/soa/Getting-started-with-Windows-Server-2008-Core-edition/0,339024644,339288700,00.htm][1] > The Windows Server 2008 Core edition can: > > |> Run the file server role. > > |> Run the Hyper-V virtualization server role. ...
The following (C#) code should do the trick Uri uri = new Uri("http://www.mywebsite.com:80/pages/page1.aspx"); string requested = uri.Scheme + Uri.SchemeDelimiter + uri.Host + ":" + uri.Port;
I'm going to assume you mean "workspace", not "workstation", as your question doesn't quite make sense to me otherwise. In Visual Studio, go to the Source Control Explorer (View->Other Windows->Source Control Explorer). At the top of the source control explorer window you should have a toolbar with a few buttons. ...
You should try [BustaName][1]. It basically combines words to create available domain names. You are able to choose similar words for the words that you previously entered. Also try these links out: 1. [Naming a company][2] 2. [77 ways to come up with an idea][3] 3. [Igor Naming Guide][4] (PDF) [1]:...
The best solution I have found in my remoting work was to keep the server list in a config file on the client systems and make it updateable. Not the easiest to maintain but was fast and no broadcasting.
I agree with Joseph, my experience with ClickOnce is its great for the vast majority of projects especially in a corporate environment where it makes build, publish and deployment easy. Implementing the "forced upgrade" to ensure users have the latest version when running is so much easier in ClickOnce, and a main re...
Implementing a log watcher
|c++|c|file|io|
I wondering how in C/C++ you can implement a program (similar to tail -f) that watches for new lines added to a log file and then process them?
See here: [http://stackoverflow.com/questions/18632/how-to-monitor-a-text-file-in-realtime#18635][1] You could either call out to tail and retrieve the stream back into your app, or as it's open source, maybe try to pull it into your own code. Also, it is possible in C++ iostream to open a file for viewing only a...
I shun redundant delegate declarations. private void mCoolObject_CoolEvent(object sender, CoolObjectEventArgs args) { if (InvokeRequired) { Invoke(new Action<object, CoolObjectEventArgs>(mCoolObject_CoolEvent, sender, args)); return; } // do the ...
If you *are* using the GAC, you can at least do `iisapp.vbs /a "App Pool Name" /r` instead of `iisreset` (it's quicker to recycle a single app pool than to restart IIS).
Coding magazines
|magazines|resources|
So, we have [coding books][1], [coding RSS feeds][2], and [music to code by][3]. Are there any coding magazines that anyone would recommend? [1]: http://stackoverflow.com/questions/1711/what-is-the-single-most-influential-book-every-programmer-should-read [2]: http://stackoverflow.com/questions/5119/what-are...
|magazines|resources|
|magazines|resources|off-topic|
|magazines|resources|
|resources|magazines|
I subscribe to MSDN magazine, it's a bit thinner now than in years past, but for .NET it covers a variety of topics, it's a good way to keep abreast of new Microsoft offerings. All the content is available online on MSDN, and of course online resources/blogs are a lot more up to date, but sometimes it's nice to have...
I would go with the file system approach. No need to create or maintain a DB with images, it will save you some major headaches in the long run.
There is an firebox add-on called [Password Exporter][1]. It can export to XML or CSV files that can be imported in another browser or computer. [1]: https://addons.mozilla.org/en-US/firefox/addon/2848
This extension will do it for you: [https://addons.mozilla.org/en-US/firefox/addon/2848][1] [1]: https://addons.mozilla.org/en-US/firefox/addon/2848
[Game Developer Magazine][1] has lots of very good articles, though as you might expect they tend to skew towards C++. [1]: http://www.gdmag.com/
The best way is to print out the code, crumple it up, and throw it out. Don't even recycle the paper. You've got an application that is written in 1,000+ line long JSPs. It probably has a god-awful Domain Model (if it even has one at all) and doesn't just MIX presentation with business logic, it BLENDS it and sits t...
Not sure how credible [this source is][1], but: > The Windows Server 2008 Core edition can: > > - Run the file server role. > > - Run the Hyper-V virtualization server role. > > - Run the Directory Services role. > > - Run the DHCP server role. > > - Run the IIS Web server role. > > - Run the DNS s...
//author[contains(text(), 'Ritchie')]
Programming WPF by Chris Sells and Ian Griffiths is an excellent way to learn WPF. 5 star rated on Amazon with 50+ reviews. <http://www.amazon.com/Programming-WPF-Chris-Sells/dp/0596510373>
G'day, What about using vi mode instead? Just enter set -o vi Then you can go to the word you want to change and just do a cw or cW depending on what's in the word? Oops, forgot to add you enter a ESC k to o to the previous line in the command history. What do you normally use for an editor? cheers, Ro...
G'day, What about using vi mode instead? Just enter set -o vi Then you can go to the word you want to change and just do a cw or cW depending on what's in the word? Oops, forgot to add you enter a ESC k to o to the previous line in the command history. What do you normally use for an editor? cheers, Ro...
G'day, What about using vi mode instead? Just enter set -o vi Then you can go to the word you want to change and just do a cw or cW depending on what's in the word? Oops, forgot to add you enter a ESC k to o to the previous line in the command history. What do you normally use for an editor? cheers, Ro...
**Application.Run** method displays one (or more) forms and initiates the standard message loop which runs until all the forms are closed. You cannot force a return from that method except by closing all your forms or forcing an application shutdown. You can, however, pass an **ApplicationContext** (instad of a new ...
SciTE http://www.scintilla.org/SciTE.html