Jump to content

NewsBot

Members
  • Posts

    10920
  • Joined

  • Last visited

Everything posted by NewsBot

  1. It's actually all in the subject line... More... View All Our Microsoft Related Feeds
  2. So I have some Linq code that returns some IQueryable. Now I want to take the query and return a DS (for some legacy systems that I dont have time to rewrite at the moment, but would still like to leverage the a common Linq framework). If the Linq is very basic, it is trivial to get a DataSet back, just use an extension method like: publicstaticDataSet LinqDS(thisIQueryable mySource) { ***DataSet ds = newDataSet(); ***using (SqlConnection connection = newSqlConnection(_connectionString)) ***{ ******using(SqlCommand command = newSqlCommand(mySource.ToString())) ******{ *********command.CommandType = CommandType.Text; *********command.Connection = connection; *********connection.Open(); *********SqlDataAdapter da = newSqlDataAdapter(command); *********da.Fill(ds); *********connection.Close(); ******} ******return<font size=2> ds; ***} } Call it by something like:var o = from*d in DB.MyTable ******select d; DataSet ds = o.LinqDS(); But if the Linq contains a where, this extension method won't work because of the way that Linq generates the sql query. var o = from*d in DB.MyTable ***where d.Column1 > 0 ******select<font size=2> d; Would generate SQL like: SELECT [t0].[Column1], [t0].[Column2] FROM [MyDB].[dbo].[MyTable] AS [t0] WHERE [t0].[Column1] <font color="#808080" size=2 face="Courier New"><font color="#808080" size=2 face="Courier New"><font color="#808080" size=2 face="Courier New">
  3. We all have our opinions about ms*- or we wouldnt be hanging around on an MS site. So to make everyones objectives/opinions clear - post them here. >>>>>>>>>>>>>>>>>>>>>>>>> * you all know mine: - fix branding / elevate Windows brand*= kill msn and yahoo and live - dont bring out cool new things like the ribbon or aero - without leaving in place the toolbars or luna (option) - respect / revive / make best of your past/legacy >>>>>>>>>>>>>>>>>>>>>>>>>>> those are mine.* so what's your argument?* :@ *yes... this is the right room... More... View All Our Microsoft Related Feeds
  4. <img alt="" height="1" width="1"> Will old software run on Windows Vista? Yahoo! Tech, CA - 9 hours ago After my most recent blog post about XP and Vista, many users who are finally considering upgrading to the new OS have emailed me with the same question: ... More... View All Our Microsoft Related Feeds
  5. http://www.channel9.ca/c9search.htm is it just me or does this work better than trying to search msdn or c9? i got it bookmarked (type your avatar name in it... under c9 - or try hta under msdn) *google custom search (beta) edit - just tried c9 park in channel9 one... perfect results - it also seems to take anything thats in a title and list it first.. [y] More... View All Our Microsoft Related Feeds
  6. Did SP3 increase the amount of memory visible to Windows? Task Manager with SP3 is reporting 3,930,080 Total Memory http://www.myveryownwebsite.com/pix/sp3mem.png More... View All Our Microsoft Related Feeds
  7. <img alt="" height="1" width="1"> Will old software run on Windows Vista? Yahoo! Tech, CA - 7 hours ago After my most recent blog post about XP and Vista, many users who are finally considering upgrading to the new OS have emailed me with the same question: ... More... View All Our Microsoft Related Feeds
  8. maybe this is old but i hadnt seen it.. made me laugh :) *i keep forgetting the youtube embed c9 code... More... View All Our Microsoft Related Feeds
  9. <img alt="" height="1" width="1"> Dell Will Offer XP Past Cut-off Date Slashdot - 1 hour ago hairyfeet writes "Despite Microsoft releasing Windows Vista more than nine months ago the adoption rate has not been as Microsoft hoped. ... More... View All Our Microsoft Related Feeds
  10. Hi all, So I watch all the video's about Live Mesh but one thing is still not very clear to me. LETS SAY: I have 2 machines (a desktop and a laptop) both running mesh client. And i share a folder on my desktop with 50GB of photo's. 1)First thing it does, it puts this folder in the local database on my desktop. 2) Then feedsync syncs my local database with the one in the cloud. 3) My laptop see's these changes en copie's them to his local database. 4) ?? the client gives me a notise there is a new folder with lots of data in it, but doesn't show begin copying the photo's yet ?? This is the traject of wat the META data (clean text) is doing, so this doesn't consume mush bandwith. But what road do the files (automaticly take?) So these are my questions: 1) Does mesh automatycly begin uploading all the photo's to the web (bandwith !!) ? 2) Does my laptop know that my desktop is on the same lan and begin copying those files trough the lan network, or does it ask the cloud to git it? 3) Does my laptop do this automaticly when i'm on the same lan ? 4) If my devices don't have an internet connection but both of them have a local, mesh database (dheu) and both of them are on the same LAN, do those two local databases sync ? Bandwith is a problem many of us suffer frome these days... More... View All Our Microsoft Related Feeds
  11. Hi everyone. It's been a long time since I've coded in C#, and to help sharpen my skills I am trying to create a Notepad "clone", if you will. I've got it all down, except the printing part. The code I have works, somewhat, but when I print more than one page it goes into a spooling loop and tries to spool hundreds upon hundreds of pages. It never seems to ever finish. Here is the code: privatevoid printToolStripMenuItem_Click(object sender, EventArgs e) { ***printDialog1.Document = this.printDocument1; ***printDocument1.DocumentName = "Notepad Document"; ***printDocument1.PrintPage += newPrintPageEventHandler(printDocument1_PrintPage); ***if (printDialog1.ShowDialog() == DialogResult.OK) ***{ ******printDocument1.Print(); ***} } privatevoid printDocument1_PrintPage(object sender, PrintPageEventArgs e) { ***int charCount = 0; ***int lineCount = 0; ***string strPrint = textBox1.Text; ***e.Graphics.MeasureString(strPrint, textBox1.Font, e.MarginBounds.Size, StringFormat.GenericTypographic, out charCount, out lineCount); ***e.Graphics.DrawString(strPrint, textBox1.Font, Brushes.Black, e.MarginBounds, StringFormat.GenericTypographic); ***strPrint = strPrint.Substring(charCount); ***if (strPrint.Length > 0) ***{ ******e.HasMorePages = true; ***} ***else ***{ ******e.HasMorePages = false; ***} } Much appreciation to anyone that helps! More... View All Our Microsoft Related Feeds
  12. <img alt="" height="1" width="1"> Dell Will Offer XP Past Cut-off Date Slashdot - 31 minutes ago hairyfeet writes "Despite Microsoft releasing Windows Vista more than nine months ago the adoption rate has not been as Microsoft hoped. ... More... View All Our Microsoft Related Feeds
  13. Zero-Day Vulnerability Reported in Apple's QuickTime for Windows ... - InformationWee <img alt="" height="1" width="1"> Zero-Day Vulnerability Reported in Apple's QuickTime for Windows ... InformationWeek, NY - 57 minutes ago "A remote vulnerability exists in the QuickTime player for Windows XP and Vista (latest service packs)," said company founder Petko D. Petkov in a blog post ... More... View All Our Microsoft Related Feeds
  14. Okay, someone straighten me out on this issue.* Every installer I've had to build, I built within Visual Studio. Through some politics I've blogged about but don't need to go into here, I got stuck on an InstallShield project.* I hate it. Further, now I'm coming under attack for defending Microsoft's product against IS. I know the VS installer does everything I need, but I feel I may need some more fuel if this issue escalates.* What's your favorite installer factory/package/system, and why? More... View All Our Microsoft Related Feeds
  15. Zero-Day Vulnerability Reported in Apple's QuickTime for Windows ... - InformationWee <img alt="" height="1" width="1"> Zero-Day Vulnerability Reported in Apple's QuickTime for Windows ... InformationWeek, NY - 17 minutes ago "A remote vulnerability exists in the QuickTime player for Windows XP and Vista (latest service packs)," said company founder Petko D. Petkov in a blog post ... More... View All Our Microsoft Related Feeds
  16. A nice toolkit for visualizing data http://flare.prefuse.org/demo/ Feel free to post more examples.... More... View All Our Microsoft Related Feeds
  17. <img alt="" height="1" width="1"> Enterprise Linux Log: A SearchEnterpriseLinux.com blog Search Enterprise Linux - 1 hour ago The thought of moving to Microsoft Vista has put many Windows users into a panic, writes Ubuntu Linux user and IT pro Fred Marsico, the chief technology ... More... View All Our Microsoft Related Feeds
  18. <img alt="" height="1" width="1"> Dell to offer Windows XP beyond June 30 InfoWorld, CA - 23 hours ago The computers available with the XP option will include the Windows Vista installation DVD in the box so users can later install Vista over XP under the ... More... View All Our Microsoft Related Feeds
  19. <img alt="" height="1" width="1"> Enterprise Linux Log: A SearchEnterpriseLinux.com blog Search Enterprise Linux - 39 minutes ago The thought of moving to Microsoft Vista has put many Windows users into a panic, writes Ubuntu Linux user and IT pro Fred Marsico, the chief technology ... More... View All Our Microsoft Related Feeds
  20. <img alt="" height="1" width="1"> Will old software run on Windows Vista? Yahoo! Tech, CA - 37 minutes ago After my most recent blog post about XP and Vista, many users who are finally considering upgrading to the new OS have emailed me with the same question: ... More... View All Our Microsoft Related Feeds
  21. Is there a link on msdn that shows all products and what their current release state is? More... View All Our Microsoft Related Feeds
  22. Assuming it's true, it's awful. I knew Xinhua was usually full of crap, but I wasn't expecting it to be that bad. More... View All Our Microsoft Related Feeds
  23. Running Vista's Media Center. Quick question: When I'm viewing Live TV I can switch channels by clicking +/-. Is there any way to access channels directly? (Right-click, Select Channel from a list or so..?) More... View All Our Microsoft Related Feeds
  24. Installing the 3.5 Framework and I was presented with this license agreement. WTF? Is this new? http://ms-os.com/Themes/AlmostGlass/images/icon-quote.gif .NET 3.5 Installer wrote: MICROSOFT SOFTWARE SUPPLEMENTAL LICENSE TERMS MICROSOFT .NET FRAMEWORK 3.5 FOR MICROSOFT WINDOWS OPERATING SYSTEM Microsoft Corporation (or based on where you live, one of its affiliates) licenses this supplement to you. If you are licensed to use Microsoft Windows operating system software (the “software”), you may use this supplement. You may not use it if you do not have a license for the software. You may use this supplement with each validly licensed copy of the software. The following license terms describe additional use terms for this supplement. These terms and the license terms for the software apply to your use of the supplement. If there is a conflict, these supplemental license terms apply. By using this supplement, you accept these terms. If you do not accept them, do not use this supplement. If you comply with these license terms, you have the rights below. 1. SUPPORT SERVICES FOR SUPPLEMENT. Microsoft provides support services for this software as described at www.support.microsoft.com/common/international.aspx . 2. MICROSOFT .NET BENCHMARK TESTING. The software includes the .NET Framework, Windows Communication Foundation, Windows Presentation Foundation, and Windows Workflow Foundation components of the Windows operating systems (.NET Components). You may conduct internal benchmark testing of the .NET Components. You may disclose the results of any benchmark test of the .NET Components, provided that you comply with the conditions set forth at . Notwithstanding any other agreement you may have with Microsoft, if you disclose such benchmark test results, Microsoft shall have the right to disclose the results of benchmark tests it conducts of your products that compete with the applicable .NET Component, provided it complies with the same conditions set forth at . More... View All Our Microsoft Related Feeds
  25. Howdy, I'm trying out the PowerShell hosting example application from here: Creating a Console Application that Implements PSHostUserInterface And I came across a problem when I set debugging: PowerShell Console Host Sample Application PSConsoleSample: Set-PSDebug -trace 2 PSConsoleSample: 1+1 2 PSConsoleSample: | In the PowerShell.exe host you see a debug message between the*"1+1" and the "2" that says "Debug: 1+ 1+1." So, my question is: How doI get the debug messages to show in my script host application? Thanks, H.V More... View All Our Microsoft Related Feeds
×
×
  • Create New...