Yeah kinda what I thought too. I reckon it could be useful for example if Google's OS was just its Chrome browser running at boot time on say a netbook (believe that is what they are targeting, netbooks that is). The remote file system and basic apps could be enough for a normal user!
Aurelius1664
Posts
-
OS written in JavaScript Crazy or Cunning? -
OS written in JavaScript Crazy or Cunning?Anyone seen this windowed JavaScript OS? Reckon it works or could ever be useful? http://www.skylightproject.com or videos in action.. Demo of it's Photo Editor http://www.youtube.com/watch?v=P18zL-UmRag Demo of it's SpreadSheet http://www.youtube.com/watch?v=TpxM4DKlpVA
-
Grouping breakpoints?You could probably do this using condition break points. If you right click on your breakpoint and do set conditions you can type in a few lines of code. You could probably say set a variable iDebugMode then set the break point condition to iDebugMode == 0 etc.
-
From Form to DLL - How Do I Package Resource Icons and Files?If you add a resource file controled by .net you can access the images in code using the resource file name. For example if you add an image (MyImage.jpg) to a resource file (MyResources.resx) you will be able to access it like below (check your compiler warnings and click enable strongly typed resources if you see it).
Image myImage = MyResource.MyImage;
However, I suspect you may be having problems with the namespaces of your code. To access resources you must correctly know the namespace. You can embed resources just like you mentioned by changing the build options in properties. If you do this you would need to do the following to access the image. Note that the resource name includes the full namespace which will by default include any sub folders used to store the image.Assembly assemblyExecuting; Stream streamImage; Image imageMine assemblyExecuting = Assembly.GetExecutingAssembly(); streamImage = assemblyExecuting.GetManifestResourceStream("MyNameSpace.Folder.FileName.jpg"); imageMine = Image.FromStream(streamImage); streamImage.Close();
-
load xml+xsl in htmlDo the xml namespaces in the more complex xml and those in the more complex xslt match? This often happens when moving from a test document to a real live one. We can't see the problem unless you want to put up an example of the simple xml/xslt and then the more complex failing ones.
-
Downloading a file - and why it sometimes doesn't workYou could try using the content-disposition header to set the filename. We had some similar problems and this seemed to resolve them. Additionally, are the failing cases on Windows Vista/Ie7? I believe there are security features that prevent some downloaded files types from being opened in certain cases (think it's something to so with the user the isolation tricks IE7 uses).
-
NotifyIcon does not respondI'm guessing your loop is preventing you main window from processing messages. You could identify this by putting an Application.DoEvents() line into the loop which should resume processing. However, this is bad and should not be seen as a solution only a test to see if it is message processing. The better approach would be to have your okay button start a timer rather than wait in a loop. You can use a timer control which should be able to do what you require.
-
System.Drawing.Image to System.web.UI.ImageYou would have to create a seperate page or preferable an http handler for you image. You would set the image url on your tree view to this page with, for example, a query string parameter identifying the image in the database to be retrieved. e.g.
ImageUrl = "MyImagePage.aspx?ImageId=XX";
Then inside your MyImagePage.aspx you would write some code along the lines of that shown below. Note: You must make sure no other content is sent down along with the bytes i.e. no html in the code infront if you use an aspx page (which is one reason why a handler would be better).// Get image bytes from database based on query string byte[] abImageData = (byte[])command.ExecuteScalar(); // Write image to stream Response.ContentType = "image/jpeg"; Response.Write(abImageData); Response.End();
-
Horizantal problem in CSSFor horizontal centering you need to set the style "text-align:center;" on the outer DIV and then "margin-left:auto;margin-right:auto;" on the inner DIV. This should work for all elements in Firefox as well as Internet Explorer.
-
IsNumericYou could use
int.TryParse(..)
which will tell you if a string can be parsed into a number. -
how to create popup menu in IEDo you mean a popup menu for your web site or in the Internet Explorer right click context menu (as in where you get the "Open In New Window"/"Add To Favourites" options etc. If the later then you should check out the link below which contains a microsoft tutorial. http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/ext/tutorials/context.asp[^]
-
McAfee and Async SocketsThanks for your help, I tried enabling the
UseOnlyOverlappedIO
property on the Socket but it did not seem to have any impact. When the BeginConnect is executed I still receive the error "The attempted operation is not supported for the type of object referenced". If I remove McAfee this line works fine. Below is a code snippet in case I am missing something. I have raised this with McAfee and Microsoft but I suspect it's going to be a case of bug ping pong for a while.// Create remote end point and prepare socket (m_sHost="www.google.co.uk" m_iPort=80) ipendRemote = new IPEndPoint(Dns.GetHostEntry(m_sHost).AddressList[0], m_iPort); m_sockDestination = new Socket(ipendRemote.AddressFamily, SocketType.Stream, ProtocolType.Tcp); // Attempt Mcafee fix m_sockDestination.UseOnlyOverlappedIO = true; // Start the connection process m_sockDestination.BeginConnect(ipendRemote, new AsyncCallback(this.OnConnected), m_sockDestination);
-
McAfee and Async SocketsPossible Problem With Sockets 2.0 Implementation in .NET 2 with McAfee Software? McAfee (Privacy Filter and Personal Firewall) installs it's own TCP/IP driver layer. This new driver does not seem to support sockets correctly. When attempting to connect to a remote server IPv4 TCP/IP using the Async BeginConnect you get "not supported on this object type" (unistall the Mcafee driver and it all works fine). If you do a sync connect using Connect the connection is established . However, if you then try to do an async send after connecting you don't just get an exception you get a full blown unmanaged general protection fault. This seems to be a pretty big problem has anyone else out there experienced it or maybe got a work around?