Seagate’s CEO Bill Watkins: “It’s the content that’s important”

Being undoubtedly true, the important understating of the role of content is still neglected by many. Bill told great about this:
http://money.cnn.com/2006/11/30/magazines/fortune/obrienseagate.fortune/index.htm?section=money_latest

The media: “People worry that newspapers are going out of business. So what? It’s the content that’s important. No one gives a shit about the delivery mechanism. Think about mail. You had the pony express, truck delivery, airmail, email. You don’t care how it gets to you. I read more now than I ever did, but I get it off my PC. I don’t need to go down to the end of the driveway and pick up the newspaper. It’s the content that’s most important.”

How to use native window classes (controls) in resource dialog templates in ATL and WTL

Having custom controls implemented as window classes, it is convenient to use them directly in resource dialog templates. Visual Studio resource editor allow to add custom control item to dialog. This custom control has a Class property which defines window class name of the control. Should native C++ implementation of window class be registered, it can be used in dialog templates.

image101.png

Continue reading →

How to add scrolling to a property page in ATL and WTL

Sometimes you may get into situation when you cannot put all the required controls into property page of fixed size (for example there are several property pages in a sheet and you cannot expand one so that other look ugly with new empty space).

Adding scrollbar that scrolls the controls might be a good solution for the problem. With CScrollablePropertyPageT template based on WTL’s CPropertyPageImpl it’s even easier.

image001.png

Continue reading →

Replace in Clipboard: a regular expression based text replacement utility

Replace in Clipboard is an application which monitors clipboard usage and test strings copied into clipboard against predefined patterns. In case the clipboard string matches the pattern, a replacement is offered via system tray icon tool tip. User may accept replacement by clicking the tip, or reject it by ignoring the tip.

For example, “C:\Inetpub\wwwroot\MyDirectory\Sample.jpg” string is put into clipboard and the utility would suggest a replacement to “http://localhost/MyDirectory/Sample.jpg“:

image003.png

The patterns are defined in accompanying .ini file (should reside in the same directory as the utility application) and are flexible to configure:

  • regular expressions are based on ATL syntax
  • Ignore Case” and “Global Match” options are supported
  • patterns may defined to be recursive

Below is an example of configuration file with comments:

[http] // pattern identifier “http”
required=global // required identifiers to activate pattern; “global” means top level pattern
recourse=dash-to-slash-needed // patterns to apply recoursively on replaced text
find=^C\:\\Inetpub\\wwwroot\\{.+}$ // find pattern
replace=http://localhost/\1
// replace pattern, \1 stands for text inside first {…} brackets in find pattern
ignorecase=1 // ignore case or not
globalmatch=0 // global match means stop at first occurrence
;multiline=0 // multiline is not supported yet

[dash-to-slash] //
required=dash-to-slash-needed // this pattern is only applied on [http] replaced substrings
recourse=
find=\\
replace=/
ignorecase=1
globalmatch=1
;multiline=0

The application does not required installation/uninstallation.

Application Name: Alax.Info Replace in Clipboard
Latest Version: 1.0.0
Download Link: Replace in Clipboard 1.0.0.58

How to choose a name for a server?

It may appear to be funny, but it’s an RFC, RFC 1178 actually:

In order to easily distinguish between multiple computers, we give them names. Experience has taught us that it is as easy to choose bad names as it is to choose good ones. This essay presents guidelines for deciding what makes a name good or bad.

Britain is becoming ‘Big Brother’ society

http://news.yahoo.com/s/afp/20061102/tc_afp/britainsecuritycctv_061102140345

Britain is becoming a “surveillance society”, where CCTV cameras, credit card analysis and travel movements are used to track people’s lives minute by minute. […] The nation has up to 4.2 million CCTV (closed-circuit television) cameras, or about one for every 14 people.