Saturday, March 26, 2005

Koders - Source Code Search Engine

Koders - Source Code Search Engine

A cool programmers search engine. Many languages and licenses available.

Friday, March 25, 2005

Access-based Enumeration in Windows Server 2003 SP1

Hide folders underneath a share where the user has no permissions

"Now the word is spread, so I can blog that as well: Windows Server 2003 SP1 (and the x64 Version) will finally introduce the feature that folders underneath a share can be hidden when the user browsing the parent folder or share has no read-permissions on that folder. It's been requested for years, and finally made it's way to Windows Server. This feature is called Access-based Enumeration.

You can switch this on and off for every share with a commandline-tool (abetool.exe) and in the final version this is supposed to be supported by the GUI as well. ..."


Very nice. I'm a believer that if you can't access something you shouldn't see it to begin with. And it's bugged me that folder enum/listing didn't support this.

I've written tools that wrapped folder listings with an initial "can this user read+ this folder" check and if not, not list it. Mostly done to avoid social engineering ("Why I can access folder XYZ?" "Who is BlaBla and what do they have in their Folder..." "I'm So And So and I don't have access to folder ABC [when the person is really Am Not So And So]" etc, etc, etc.). Security by obscurity, but also least privilege. If you don't have access, why should you even see it?

Now it looks like the OS will support this natively, which is pretty cool...

MIT Builds Alarm Clock That Hides

BetaNews | MIT Builds Alarm Clock That Hides

"MIT Media Lab might have the answer for individuals who just can't get out of bed in the morning. Research associate Gauri Nanda has created an alarm clock, called 'Clocky,' that drives off a bedside table and hides as soon as the snooze button is pressed. And to ensure its owner awakes, Clocky hides in a different spot each day. ..."

LOL... I SO have to get one of these for my son...

sp_MSforeachtable

Raymond Lewallen : Using sp_MSforeachtable

"...sp_MSforeachtable will loop through all the tables in the database, performing a command. In our case above, we want to run 2 commands: 1 to set NOCHECK on all CONSTRAINTs, and another to DISABLE all TRIGGERs.

sp_msforeachtable 'ALTER TABLE ? NOCHECK CONSTRAINT all'
sp_msforeachtable 'ALTER TABLE ? DISABLE TRIGGER all'

The '?' serves as a place holder for the table name. Once your data is loaded, just turn everything back on:

sp_msforeachtable 'ALTER TABLE ? CHECK CONSTRAINT all'
sp_msforeachtable 'ALTER TABLE ? ENABLE TRIGGER all'

You can be a bit fancier and run more than 1 command per call to sp_msforeachtable (limited to 3 commands) by passing in parameters of commands you want to execute per table.

sp_msforeachtable @command1='ALTER TABLE ? CHECK CONSTRAINT all', @command2='ALTER TABLE ? ENABLE TRIGGER all'

Another great use for this sp is for DBCC commands on tables or database, as there is also a sp_MSforeachdb stored procedure too.

sp_msforeachtable 'dbcc checktable ('?')'"


Cool...

I guess I'll have to rework my procedures that use a cursor against the information_schema.tables view... :|

Thursday, March 24, 2005

New Home for Monoppix Training Videos

The Mono videos I posted about here, href="http://coolthingoftheday.blogspot.com/2005/03/monoppix-video-tutorials.html">Monoppix Video Tutorials, have moved to a new home, Monoppix Training Videos

With a free registration comes more cool videos and related resources...

Registered User Downloads

"Registered User downloads are much more complete than the free downloads. In addition to the video demonstration, the registered user downloads include full source and executable code and a user manual. As a time saving mechanism, each of the parts can be downloaded individually or all together as a single package.

The video demonstrations lead you from beginning to end for each project. They illustrate the various methods and techniques required for developing cross-platform Mono applications while using Monoppix as the Linux distribution.

The source and executable code includes all files which were created during the recording of the video demonstration. In addition to the project and solution files, you'll also get all the source code as well as the compiled executable code so you can run the demonstrations on your own system.

The user manual is a document describing the development process, the underlying details which are necessary but perhaps unrelated to the video demonstration, printed source code and screenshots of the development routine."


(via markdotnet - Different Location for Monoppix training)

Wednesday, March 23, 2005

Sometimes They ARE Around When You Need Them...

iriggs blog ENTRY 1149

"brand new BWM SUV with dealer plates flies up on the left with no blinker on. I'm fuckin amazed that she's there, but then i realize that she's on her cell phone. She can't turn on her blinker, cause she would have to take the phone away from her left ear. I'm figuring that she's also driving on the shoulder, cause she has no clue that the lane she was in was an exit lane. So this is where it gets funny. She is slowing down, honking, and swerving directly into the side of my car like she's going to make the lane change into my driver's side door. She slams on her brakes, (still no signal) swerves and cuts off the guy behind me, drops behind me, gets directly on my rear bumper, and starts to give me the finger.

Camera is already sitting on my seat

She makes another quick swerve lane change and gets into the middle lane. She's pulling up on my right side now, to give me a piece of her mind i believe. What she does not know is that a CHP unit is in the right lane. He's been there since the 5 freeway interchange. I saw him pull on the freeway there, and i've been driving steady at 55 along with the rest of traffic.

She pulls directly next to me. Cell phone still on her left ear. Right hand comes across to give me the finger. At this point i have the camera already snapping shots. She's so into giving me the finger, that she does not notice the CHP unit drop in behind her and light her up.

It was a bright day with beautiful clouds, so the pictures were not too clear of her, but there is no doubt, she's got no hands on the wheel."


Beautiful! I see this kind of crap ALL the time (spend 2 1/2+ hours a day on LA Freeways and you see ALOT). Nice to see someone pay the price for their stupidity.

Click through to see the pictures... :)

(Via LA Observed - Freeway justice)

Creating project item code templates for Visual Studio.Net

The Code Project - Creating project item code templates for Visual Studio.Net - .NET

"This article describes how new project item code templates work in Visual Studio.Net 2003 and presents a component that makes it easy to write new templates

...

This article describes how the code templates that are used when adding new project items in Visual Studio.Net work. There are several other articles on CodeProject that touches on this subject (a few are listed in the References section at the bottom) but the goal of this article is to describe in more detail how it works.

A component, called Krevera Template Manager, is also introduced that makes it (fairly) easy to create custom templates and it's functionality is described. Included with the component are templates for strongly typed collections and strongly typed dictionaries for C#, VB and C++.

If needed, this component can be extended to create even more powerful templates.

... "


Interesting... Lots of nice information on VS templates.

I'm 13 percent of the way there.

I'm 13 percent of the way there.

"Next time your random manager asks how far through that (indefinite) task she (sort of) assigned you, just answer:

I'm 13 percent of the way there, boss.

This is the perfect answer. No one ever knows what response to give to thirteen percent. Clearly you're underway, but clearly there's a lot of work to be done. Better leave you alone..."


Perfect... I'll make sure to note that on my next TPS report...

Tuesday, March 22, 2005

Cool Gauge Widget (in C#)

The gauge

"Wanted a different sort of progress indicator cq counter for myself and the result became a customizable gauge. Its needle needs some more work, but for now this one suits me fine.

The class can either create an image (on a baseimage or from ground up) or paint on a graphics object directly (as done in the example project).

In this example the background is just the plain old control colour, but don't mind that. Since the gauge can be drawn on any image, the background can be set as pleased."


Cool, simple circular gauge winform widget written in C#. Click through for a screenshot and to download the source.

What's New Web Part for SharePoint Sites

GotDotNet User Sample: What's New Web Part for SharePoint Sites

"Source code for a Web Part that walks through an entire site using the WSS object model and returns the most recently changed entries."

Sounds like an interesting way to learn part of the Sharepoint object model...

Open Source C# Project Directory

Open Source Software in C#

A cool directory of open source C# projects. This is a step above a raw link list in that each project has its own page, with links to articles, tutorials and resources. Also there are links to related projects.

Now what it needs is a couple RSS feeds... ;)

(via Ryan Rinaldi's Blog - Open source C# Project directory)

Use Your Instant Messenger To Query Amazon

Use Your Instant Messenger To Query Amazon

"Riaan van Schoor from InsideC has released a new Instant-Messenger based application, this one is for querying Amazon. To use it, just add 'amazon@insidec.com' to your list of messenger buddies (or if you use AOL, add 'InsideAmazon' to your list)."

Kind of cool... Click through to see some screenshots.

We're starting to see more and more of these class of apps. But I wonder how long before the API's get locked down to help spIM control, etc?

But until then I guess we can play... :)

SimpleTech 128 GB Solid State SATA Drives : Gizmodo

SimpleTech 128 GB Solid State SATA Drives : Gizmodo

"SimpleTech has announced their new Serial ATA Solid State Drive called the Zeus. Lacking any moving parts, it's effectively a gigantic flash drive with an SATA interface. The Zeus will be offered in capacities up to 128 gigabytes with read and write rates reaching 60 megabytes per second. (Being a solid state drive, though, it's true speed is in the seek time, which is negligible.) The drives are also only 9.5 millimeters tall, making them easily stackable and expandable. No word on price, but assume it will require a second mortgage, considering their 8GB CF card was selling for $6,000 last year. "

New must have for uber-gaming machines?

LibCheck [Assembly Diff]

Download details: LibCheck

"This tool allows you to compare two versions of an assembly, and determine the differences. The tool reports the differences as a combination of 'removed' and 'added' APIs. The tool is limited to looking only at APIs (i.e., it can't check for behavioral changes), and only compares public differences, or changes which are deemed to be 'breaking.' The tool can be used to quickly determine what has changed between one version of your assembly and another, and can help ensure that you won't introduce any breaking changes to clients of your assembly. Instructions and intended use of the tool are described in the 'libcheck tool specification' document with the zip file."

Cool, an interface Diff for assemblies...

Monday, March 21, 2005

VS2003 Regions Add-In

Regions Add-In Updated

Richard Dudley points out a cool VS2003 addin, Regions Add-In.

"One of my favorite add-ins for Visual Studio is the Regions Add-In, and it's recently (well, Feb 11 anyway) been updated to version 2. The new version adds a region explorer, a list of region names (”Templates” as they're called), and some configuration options. If you haven't used this, it's a nifty tool that automatically creates #Region tags around a selected block of text..."

Pretty cool...

LOL - Nice...

Some people are just to stupid too exist

Made me "laugh-snort"... ;)

Cool Code Site: NetOMatrix

I came across this site while searching for Directory Services code snips, http://www.netomatix.com. It hosts a number of cool .Net code snips and utilities (most with source).

Check out their list of Directory Services code samples;
"How to create a file share using .Net framework
How to add a user to file access permissions
How to get file security information using DirectoryServices
How to get list of groups user is member of
How to get list of domains in Active Directory
How to get members of a windows group.
How to get user SID using DirectoryServices classes
How to add a new user account in your machine or domain?
How to get full name of logged in user.
How to display schema information of Active Directory object using Directory Services in ASP.Net
How to use Active Directory classes in ASP.Net to enumerate AD Users
How to use Active Directory classes in ASP.Net to enumerate AD Groups
How To Enumerate Web Application Directories in IIS Using DirectoryServices"


As for utilities, check out their Depends.Net;
"This is a utility that can hellp you in finisding out if the versions of assemblies you have in bin folder of your application are the same as the ones that the application or assembly was compiled with. We have found this utility to be of great help in large projects where you have lot of assemblies linked to one assembly or application. Here is an example that I will give you from my personal expereince. I was wroking on a project that uses about 20 other assemblies from the solution. Every time I will execute the application, at certain point it will throw an exception at me that the version of assembly X does not match the one that was used to compile the component Y. And as the project started growing this became more and more of a problem. Then I decided to create this utility for our internal use.

This version has very simply UI and usage. As the time goes we will add more functionality to it so that it can become a helpful tool in resolving the conflicts. "


Pretty cool...

Sunday, March 20, 2005

Blogcast - Create a Custom Transform for Office 2003 Deployment

Brian Tucker: Create a Custom Transform for Office 2003 Deployment

"The Office 2003 Resource Kit has a program called the "Custom Installation Wizard". The tool will help you configure a .MST transform file that will give the Office 2003 installation customized answers for all your computers. You can create multiple transforms for laptops, workstations and just about every type of Office deployment you organization needs. The Blogcast shows the basics of the transform creation process. You can then use the installation command line for SMS, Group Policy or any other means you have for deploying applications."

"Watch how to create an answer file that will custom install options for Office 2003. You will need the Office 2003 Resource Kit tools to create the .MST transform file."

Wow. Great timing. I need to deploy Office 2003 to a number of machines in the next couple weeks.

Note to self: Watch this tomorrow

theDailyCommute.com

theDailyCommute.com - PWOP Productions Inc.

"What is The Daily Commute?

Imagine waking up in the morning, grabbing your mp3 player, and on the way to work, listening to people read a personalized set of news headlines, the sources of which you can pick yourself from popular websites like SlashDot, Wired, CNet, or the BBC.

The Daily Commute is just that: a continuous podcast of news headlines and summaries read around the clock.

What makes us special?

You get your own personal podcast! You create your own podcast from various sources like SlashDot, Yahoo News, BBC, and Wired Online. Then pick the categories of story that you're interested in, and we do the rest! You get a custom podcast feed made just for you. When you wake up in the morning, you can listen to the news headlines on your daily commute. When you get to work, you can dive into the details online.

..."


Sounds kind of interesting.

I've not gotten on the podcast wagon yet (I can scan/read faster than I can listen), but I do have a very long commute to work (2.5 to 3.5 hours a day on the road... sigh) so do have some free listening time (and no matter how much I sing along with my CD's I'll never be a rock star ;).

Worth watching to see how it plays out.

RSS Update Feed - Subscribed.

(via Carl Franklin - The Daily Commute is online, but not complete)