Is it possible in TFS 2008 to alter the parent of a branch? I've heard this will be available in 2010, but was wondering if there was an equivelent in 2008 (even if it's more long winded)?
A good thing in LINQ to SQL was a fast and reliable way to map database tables and convert them into classes accessible from c# project. However it is no longer recommended to create projects using LINQ to SQL.
What is its substitute? What kind of tool should I use in VS 2010 today if I want to have the same functionality as I had with LINQ to SQL?
hi
i try to run this query:
select * from WorkTbl
where ((Tdate = '20100414' AND Ttime = '06:00') and (Tdate <= '20100415' AND Ttime <= '06:00'))
i have this date: 14/04/2010 and time: 14:00
i cant see hem, how to fix the query ?
thank's in advance
I am transforming an XML document. There is an attribute @prettydate that is a string similar to "Friday, May 7, 2010". I want to split that string and add links to the month and the year. I am using the exslt:strings module and I can add any other necessary EXSLT module.
This is my code so far:
<xsl:template match="//calendar">
<xsl:variable name="prettyparts">
<xsl:value-of select="str:split(@prettydate,', ')"/>
</xsl:variable>
<table class='day'>
<thead>
<caption><xsl:value-of select="$prettyparts[1]"/>,
<a>
<xsl:attribute name='href'><xsl:value-of select="$baseref"/>?date=<xsl:value-of select="@highlight"/>&per=m</xsl:attribute>
<xsl:value-of select='$prettyparts[2]'/>
</a>
<xsl:value-of select='$prettyparts[3]'/>,
<a>
<xsl:attribute name='href'><xsl:value-of select="$baseref"/>?date=<xsl:value-of select="@highlight"/>&per=y</xsl:attribute>
<xsl:value-of select='$prettyparts[4]'/>
</a>
</caption>
<!--etcetera-->
I have verified, by running $prettyparts through a <xml:for-each/> that I am getting the expected nodeset:
<token>Friday</token>
<token>May</token>
<token>7</token>
<token>2010</token>
But no matter which way I attempt to refer to a particular <token> directly (not in a foreach) I get nothing or various errors to do with invalid types. Here's some of the syntax I've tried:
<xsl:value-of select="$prettyparts[2]"/>
<xsl:value-of select="$prettyparts/token[2]"/>
<xsl:value-of select="exsl:node-set($prettyparts/token[2])"/>
<xsl:value-of select="exsl:node-set($prettyparts/token)[2]"/>
Any idea what the expression ought to be?
Hi All,
I have "Friday, April 02, 2010" as date now I want to display "04/02/2010" if browser language is selected english and "02.04.2010" if browser language is selected as German.
All I want, is to display the date as per the browser format.
Any Idea how this can be done?
f# interactive throws System.OutOfMemoryException when loading large objects into memory.
Exception is thrown at approximately 1.3 gigs. Data set is 2.2 gigs, and loads fine in debugger mode.
Using VS2008 with April 2010 CTP
This is mostly a java library that is being used via ikvmc, but if that were an issue, it shouldn't be running in the debugger either.
I am trying to setup a dev environment at home. My primary development environment is VS.NET 2008 (now it is VS 2010 Premium) with SQL Server 2008.
Objectives / Requirements :
- Should be simple and lightweight
- Should have a Visual Studio plugin (cost should be less than $50, if its not free)
- should work just fine with continuous integration systems like TFS and CruiseControl.NET
- VSS is not an option.
Thanks in advance,
SK
I just read Spolsky's last piece about Distributed vs. Non-Distributed version control systems (http://www.joelonsoftware.com/items/2010/03/17.html). What's the difference between the two? Our company uses TFS. What camp does this fall in?
i have following format of json in which i want to asscess 0.4 , kem , 2 , 2000 values
but it seems it doesn't have name index so how one can access it in jquery.
when i paste following code in json viewer then i am getting numerical index for 0.4 , kem , 2
"td": [
{
"@attributes": {
"class": "odd"
},
"span": [
"3",
"7"
]
},
"0.4",
"Kem",
"24\/04\/2010",
"2000",
"2",
"14000",
"Good",
"Buckley",
"56.0",
"2:05.32",
"36.65",
"54.5"
]
}
where can I find the silverlight 4.0 for the production server ?
For this need to install vs 2010 ?
or only need to install 4.0 from where can I find the 4.0 for the production server ?
is there any license for the same or its free ?
Is there any way to enable debugging from within the Windows Forms Designer in Visual Studio (any version, up to and including 2010)?
What I mean is, say I have some custom user control, and this control has certain validation that it performs when I set a particular property. I'd like to be able to set a breakpoint somewhere within that code, and step through it to see what happens when I set the property from the designer.
Given a date of birth, how would I go about calculating an age in C?
For example, if today's date is 20/04/2010 and the date of birth given is 12/08/86, then age will be 23 years, 8 months, and 8 days.
Any suggestions would be appreciated.
Thanks!
Hi guys,
Im just trying to attach a collection from another tfs server(both 2010), but this collection was not detached before restoring on to the new server. Now the problem is that
when i try to attach the collection it return an error saying the collection was not detached properly.Make things worse, the old tfs server has been removed completely.
Is there a way to force attach such collections..
Thankz in advance
Lasa
How do I close SQL Server output subwindow which appears when I run a T-SQL script from inside Visual Studio 2010? It neither has nay kind of control buttons like [x] or[-=] visible, nor any other obvious means of closing.
Default syntax for Header set Expires is
Header set Expires "Wed, 21 May 2010 20:00:00 GMT"
and default syntax for ExpiresDefault is
ExpiresDefault A2592000
OR
ExpiresByType image/gif A60
I want to use such a syntax for Header set Expires, that is I want to pass an expires time in seconds after access. how can i do this ?
I'm creating an email using String Template but when I print out a date, it prints out the full date (eg. Wed Apr 28 10:51:37 BST 2010). I'd like to print it out in the format dd/mm/yyyy but don't know how to format this in the .st file.
I can't modify the date individually (using java's simpleDateFormatter) because I iterate over a collection of objects with dates.
Is there a way to format the date in the .st email template?
Hi all
refer to these post : here1 and here2 at last I solve my problem by build a asynchronous solution,and it work well!!! but there is a problem that i face with it,now my code is like this:
class MyProcessStarter
{
private Process process;
private StreamWriter myStreamWriter;
private static StringBuilder shellOutput = null;
public String GetShellOutput { get { return shellOutput.ToString(); }}
public MyProcessStarter(){
shellOutput = new StringBuilder("");
process = new Process();
process.StartInfo.FileName = "sqlplus";
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;
process.OutputDataReceived += new DataReceivedEventHandler(ShellOutputHandler);
process.StartInfo.RedirectStandardInput = true;
process.StartInfo.RedirectStandardOutput = true;
//process.StartInfo.RedirectStandardError = true;
process.Start();
myStreamWriter = process.StandardInput;
process.BeginOutputReadLine();
}
private static void ShellOutputHandler(object sendingProcess,DataReceivedEventArgs outLine)
{
if (!String.IsNullOrEmpty(outLine.Data))
shellOutput.Append(Environment.NewLine + outLine.Data);
}
public void closeConnection()
{
myStreamWriter.Close();
process.WaitForExit();
process.Close();
}
public void RunCommand(string arguments)
{
myStreamWriter.WriteLine(arguments);
myStreamWriter.Flush();
process.WaitForExit(100);
Console.WriteLine(shellOutput);
Console.WriteLine("============="+Environment.NewLine);
process.WaitForExit(2000);
Console.WriteLine(shellOutput);
}
}
and my input is like this:
myProcesStarter.RunCommand("myusername/mypassword");
Console.writeline(myProcesStarter.GetShellOutput);
but take a look at my out put:
SQL*Plus: Release 11.1.0.6.0 - Production on Thu May 20 11:57:38 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
=============
SQL*Plus: Release 11.1.0.6.0 - Production on Thu May 20 11:57:38 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Enter user-name:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
as u see the output for run a function is not same in different time!So now would you do me a faver and help me that how I can wait until all the output done in other mean how I can customize my process to wait until output finishing ?? because I want to write a sqlcompiler so I need the exact output of shell.
plz help me soon.thanxxxxxxxxxxxx :X
I am getting ready to perform a migration of SharePoint 2007 to 2010, and during the migration horus, i will want to prevent anyone form adding content anywhere, but yet I would like for people to read the content. Is there a way to make the sharepoint 2007 site read only?
Whether anyway to find first date and last date in a month. Suppose have the date today as 21-04-2010, i want to find the first and last date of this month in php. I did this in mysql, but i need in php. Any one can help, Thanks in advance.
I have a complex inheritance structure in my data model. A majority of classes in my model (which is designed in VS 2010 with a DB generated by it after) are derived from 3 basic classes. And only these 3 classes can be found among the context members. How do I use all the derived classes at all?
strdate=15/06/2010
DateTime dt = DateTime.Parse(strdate, System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat);
i cannot able to get the datetime value as dd/mm/yyyy.
it is giving exception 'string is not recognized as a valid datetime'
oly if it is in 06/15/2010 it is working. how to get the same format in dt.
Since the release of VS 2010 I've seen F# more strongly advertised by Microsoft. What are the core benefits of using this language? What problems does it most naturally lend itself to? What is the learning curve like?
Hello,
I am trying to parse dates in RFC1123 format (Thu, 21 Jan 2010 17:47:00 EST).
Here is what I tried but none worked:
DateTime Date = DateTime.Parse(dt);
DateTime Date = DateTime.ParseExact(dt, "r", null);
Could you please help me out with this?
Thanks,
Ruby :)
I want to convert a tab delimited text file to a XML file. I was able to do it with a single character delimiter. But how do i extend it to tabs? I am coding in C# and using Visual Studio 2010.