No good... I've just read on Slashdot that the first virus released based on exploits found by reviewing the recently leaked Microsoft Windows source code has been released. Slashdot says that:
"A vulnerability was reported in Microsoft Internet Explorer (IE) version 5. A remote user can execute arbitrary code on the target system. It is reported that a remote user can create a specially crafted bitmap file that, when loaded by IE, will trigger an integer overflow and execute arbitrary code.
The flaw reportedly resides in 'win2k/private/inet/mshtml/src/site/download/imgbmp.cxx'. The report indicates that IE 5 is affected but that IE 6 is not affected."
More detailed information on this virus and how it exploits Internet Explorer 5 can be found on the Security Tracker website. Now the question is if Microsoft will decide to fix this bug or not (expecially because IE 5 is not so recent). This is the first bug caused by a review of the leaked code... will be the beginning???
Yes, this is my problem of the day...
For an application that we're developing at work, I need to catch a doubleclick on a datagrid row and, after that, displaying details about the selected row. I've just discovered that catching a doubleclick on a datagrid row is not so simple...
On Syncfusion I've found a little explanation for this problem:
The problem is that the first click of a double click may be caught by the datagrid (and used to activate the cell) while the second click goes to the TextBox for the columnstyle object. This means the TextBox thinks this is a singleclick, and does not fire its doubleclick event. One solution is to mark the time of the click caught by the datagrid. Then look at this time in the TextBox's mousedown handler to see if in fact the single click being looked at by the TextBox is part of a double click.
So, after that, I've tryed the solution described as follows:
During the Datagrid format, I've added this ColumnStyle (for each column):
Private
Sub AddCustomDataTableStyle()Dim ts1 As DataGridTableStyle
ts1 = New DataGridTableStyle()
ts1.MappingName = "Customers"
' Set other properties.
ts1.AlternatingBackColor = Color.LightGray
' Add textbox column style so we can catch textbox mouse clicks (this code for every column in the Datagrid)
Dim TextCol As DataGridTextBoxColumn
TextCol = New DataGridTextBoxColumn()
TextCol.MappingName = "custID"
TextCol.HeaderText = "CustomerID"
TextCol.Width = 100
'Add handler
AddHandler TextCol.TextBox.MouseDown, New MouseEventHandler(AddressOf TextBoxMouseDownHandler)
AddHandler TextCol.TextBox.DoubleClick, New EventHandler(AddressOf TextBoxDoubleClickHandler)
ts1.GridColumnStyles.Add(TextCol)
End Sub
The Events are declared as follow:
Private
Sub TextBoxDoubleClickHandler(ByVal sender As Object, ByVal e As EventArgs)MessageBox.Show("This is a True DoubleClick")
End Sub
Private Sub TextBoxMouseDownHandler(ByVal sender As Object, ByVal e As MouseEventArgs)
If (DateTime.Now < gridMouseDownTime.AddMilliseconds(SystemInformation.DoubleClickTime)) Then
MessageBox.Show("This is a Grid DoubleClick")
End If
End Sub
Is there an other possible solution to this problem? I don't like a lot the solution described above... How can I catch a Doubleclick? Is it possible that there's no property or events for doing that?
OpenOffice, the open source project through which Sun Microsystems is releasing the technology for the popular StarOffice productivity suite, is now ready with a new Windows Version (1.1.1b).
It's really interesting because it runs on all major platforms and provides access to all functionality and data through open-component based APIs and an XML-based file format. It works really good (totally compatible with Microsoft Office) and it's Open Source (free).
Features (from OpenOffice Official Site):
What's in the suite?
WRITER Is a powerful tool for creating professional documents, reports, newsletters, and brochures. You can easily integrate images and charts in documents, create everything from business letters to complete books with professional layouts, as well as create and publish Web content.
CALC is a feature-packed spreadsheet which can turn boring numbers into eye-catching information. Calculate, analyse, and visually communicate your data quickly and easily. Use advanced spreadsheet functions and decision-making tools to perform sophisticated data analysis. Use built-in charting tools to generate impressive 2D and 3D charts.
IMPRESS is the fastest, most powerful way to create effective multimedia presentations. Your presentations will truly stand out with special effects, animation and high-impact drawing tools.
DRAW will produce everything from simple diagrams to dynamic 3D illustrations and special effects.
The Database User Tools give you all the tools you need for day to day database work in a simple spreadsheet-like form. They support dBASE databases for simple applications, or any ODBC or JDBC compliant database for industrial strength database work.
Curious, the number of websites running
Windows Server 2003 overtook those running on Windows NT4 earlier this month (1.25 million hostnames now running Microsoft's newest OS). Good luck Win2003 :)
An interesting (and powerful) feature of Google is the search capabilities by File Type.
With the filetype: query qualifier, you can restrict your Google search to files whose names end with a particular extension. For example, if you open Google and write pdc filetype:doc , you can obtain a list of Word files (.doc) that contains the word PDC on it...
Google is really powerful!!!
The Mono Project has released an interesting document that describes some common tricks to improve the performance of your Mono or .NET application. Check it here!
They have also released a small bug-fix of Mono, 0.30.1.