Q: Kyek modified a Greasemonkey plugin to allow you to see if an Appulous IPA link was dead before you clicked it. The original plugin was the ___ Links Checker
A:cavern
avebrahimi
Q: Kyek modified a Greasemonkey plugin to allow you to see if an Appulous IPA link was dead before you clicked it. The original plugin was the ___ Links Checker
A:cavern
avebrahimi
Function RetrieveLinkerTimestamp(ByVal filePath As String) As DateTime<br /> Const PeHeaderOffset As Integer = 60<br /> Const LinkerTimestampOffset As Integer = 8<br /><br /> Dim b(2047) As Byte<br /> Dim s As Stream<br /> Try<br /> s = New FileStream(filePath, FileMode.Open, FileAccess.Read)<br /> s.Read(b, 0, 2048)<br /> Finally<br /> If Not s Is Nothing Then s.Close()<br /> End Try<br /> <br /> Dim i As Integer = BitConverter.ToInt32(b, PeHeaderOffset)<br /> <br /> Dim SecondsSince1970 As Integer = BitConverter.ToInt32(b, i + LinkerTimestampOffset)<br /> Dim dt As New DateTime(1970, 1, 1, 0, 0, 0)<br /> dt = dt.AddSeconds(SecondsSince1970)<br /> dt = dt.AddHours(TimeZone.CurrentTimeZone.GetUtcOffset(dt).Hours)<br /> Return dt<br />End Function<br />

Dim myBuildInfo As FileVersionInfo = FileVersionInfo.GetVersionInfo(Application.ExecutablePath)
MsgBox(“Product build part number: ” & myBuildInfo.FileVersion)
Source : http://www.astahost.com/info.php/vb-net-how-find-application-build-version_t5147.html

It’s a deceptively simple programming task. How do you capture a string of characters between single or double quotes?
Several times I’ve needed to grab name / value pairs of data entered by the user. For example, title="This is the Title", weight="28", etc. Using regular expressions, this would seem to be straightforward. The regular expression would simply match a string of characters in a manner similar to this:
<code>(\w+)="([^"]*)"<br /></code></pre> <p>Here’s a visual representation of what the above regular expression matches:</p> <p><img src="http://ad.hominem.org/docs/regex1.gif" width="327" height="49" /></p> <h3>The Problem</h3> <p>However, what if our string of characters looks like this? </p> <pre><code>title="A Review of \"A Tale of Two Cities\""</code></pre> <p>Here the string of characters we want to capture <em>itself has quotes in it</em>; these quotes have been “escaped” using the backslash character <code>\</code>. What we want to “grab” out of the above string is <em>everything</em> between the first and last quotes, so we get the string <code>A Review of "A Tale of Two Cities"</code>. However, our original regular expression won’t grab that. It only matches up to the first quote character it encounters: the string <code>A Review of \</code>. </p> <p>Obviously this is problematic, because we need a regular expression that grabs as many “escaped characters” (that is, a backslash followed by another character) as possible. It needs to work even with something like this:</p> <pre><code>title="A Review of \"A Tale of Two Cities\" and \"Moby Dick\""<br /></code></pre> <h3>The Solution</h3> <p>The trick is to divide the string into consistently divisible parts. The string above, for example, divides into an (optional) initial string of characters, followed by repeated groupings that each start with <code>\"</code>, like so:</p> <p><img src="http://ad.hominem.org/docs/regex2.gif" width="327" height="35" /></p> <p>By constructing a regular expression that matches this sequence zero or more times, we now have a solution. Our original regular expression, now modified, looks like this:</p> <pre><code>(\w+)="([^"\\]*(\\.[^"\\]*)*)"<br /></code>
Represented visually:

Source : http://ad.hominem.org/log/2005/05/quoted_strings.php

Ever engaged with virtualized listboxes and treeviews in WPF, while playing with MVVM, check Bea Stollnitz blog, the lady who looks like Julia Roberts,
http://bea.stollnitz.com/blog/

Just check this :
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width=”{Binding ElementName=GrandGrid, Path=ColumnDefinitions[0].Width}“/>
</Grid.ColumnDefinitions>
<Rectangle Grid.Column=”0″/>
</Grid>

Thanks god for adding a feature to me :
I can sleep nearly everywhere/everytime/every condition, quickly.
Just now I woke up from a 28 min nap, in midst of programming WPF and challenging VirtualizingStackPanel <> SelectedItem.

You can simply find current line number :
int actual = 0;
MyRichBox.CaretPosition.GetLineStartPosition(-1000000, out actual);

There is a semi-long article on building a simple circular saw jig for ripping narrow cuts, on Reader’s Digest
As a “a picture=1,000 words”, I include just the final scheme of the jig :
