Feeds:
Posts
Comments

How do you recursively remove the hidden attribute on files in Windows? If you are coming from a Linux background, you may be surprised to find out that you can do this from the crusty old Windows command line. Usually such power is reserved for, ahem, real shells and command-line tools which, until PowerShell came along, were sorely lacking on Windows. I mean, the Linux command line is so powerful, it must be possessed by a daemon or something.

Command Line Attributes

In any case, there are a few good reasons (and probably some not-so good reasons) why you might need to recursively add or remove the hidden attribute on a bunch of files. If you ever find yourself in need of this, never fear! attrib is here!

Remove Hidden Attribute Recursively

First, open up a command prompt. Then “cd” into the directory where you want to start applying the attribute changes. Finally, enter the following command:

attrib -H /S

That will remove the hidden attribute from all files in the current directory, then it will recurse down to do the same thing in all the subdirectories. If you also want to remove the system attribute (which you cannot do in the file properties dialog), type this:

attrib -H -S /S

Easy! No extra app required. You can also add attributes and modify directories as well as files (I know, this much fun should be outlawed.) To get a list of options, enter:

attrib /?

The Shrew’s got some love for the corporate crowd. Chances are, your company-recommended VPN client is seriously behind the times. Fortunately, this little guy’s got your back. 32-bit. 64-bit. No problem. Windows 7, Linux, and BSD. Righteous.

RSA VPN Key FobAnd it even works with that keychain random-number-generator thingy they make you carry around. Too bad they can’t just let you use your iPhone. Or maybe they can.

Get the Shrew Soft IPsec VPN Client

Go Have a Look at D

Go, shmo. I still prefer Walter Bright’s D as a neo systems programming language. For starters, it actually has real classes. From the overview:
D is not a scripting language, nor an interpreted language. It doesn’t come with a VM, a religion, or an overriding philosophy. It’s a practical language for practical programmers who need to get the job done quickly, reliably, and leave behind maintainable, easy to understand code.
But I admit it. I’m biased. My views are tainted by fond memories of writing ML algorithms in D at BYU. For which I got an A. Go figure.
[advertisement] Learn to Tango with D

10,000 Sprites

I’ve been prototyping some scenarios for the Cupcake 2D game engine using SFML, and I’m pretty pleased with the performance so far. Here is a screenshot of animating 10,000 sprites at 1280x1024x32 using the Radeon HD3200 built into my motherboard:

10000-sprites

The FPS shown is actually an average over the total time the animation was running (about 10 seconds at the point I took the screenshot). The individual frame rate got a little slower as the camera zoomed in, and sped up as it zoomed out.

You’ll notice that all the images are the same, albeit scaled to different sizes. When creating a 2D game, you will often make use of the same graphics over and over again, just changing the way it’s scaled or colored (think backgrounds, bullets, particle effects). So, I thought this would be a good initial performance test for the sprite engine.

Of course, dropping down to a more reasonable number of sprites (4,000) puts the FPS at around 50, depending on the zoom level.

Not bad.

Linux H4X0Rz

Netbooks get some love from Moblin (for you) and Sugar on a Stick (for the kiddies). Does it get any better? One tip: don’t buy Acer (I have no idea how they are beating Dell in sales).

Windows Fans

XP and Vista are obsolete. No more excuses. What you need to do, my friend, is upgrade to Windows 7.

Once you have that taken care of, banish IE to the far corners of the earth and install Google Chrome. It simply looks and feels like it was made for Windows 7. Simple. Elegant. Fast. And it even does that Aero glass thing.

Next, throw away your buggy, slow Windows anti-virus software. If this prevents you from sleeping at night, and/or you frequently browse, uh, questionable websites, Microsoft has some love for you. Or you could just stop going to those websites.

Once you’ve taken care of that nasty business, please end on a high note with some cool apps and gadgets, and a beautiful twitter client. And don’t forget the games.

Mac Fans

You should try dual-booting or virtualizing Windows 7. Really, it’s not evil. And it lets you play more games (for the 5-10 minutes a day when you aren’t on your iPhone). Of course, there’s still some cross-platform indie love out there. You do like robots, don’t you? I thought so.

[advertisement] What do Apple and Pixar have in common? iCon Steve Jobs: The Greatest Second Act in the History of Business

« Newer Posts - Older Posts »

Follow

Get every new post delivered to your Inbox.