Use PowerShell To Find Resource Hogs

Tools IconHere’s a quick tidbit for any and all Windows jockeys out there. Need to figure out what is chewing up all of your system resources? Need to do it quickly and easily? Have no fear, Laz and the PowerShell are here. Some of you may know this already, so let those who don’t have some air!

OK, bring up the PowerShell (*note, this is different from the DOS “like” Command Prompt and can usually be installed through Windows Update). Once the PowerShell is open, you can use the ‘ps’ command to get a list of the currently running pr0cesses, but believe you me there are a lot of them and they scroll by all unformatted and hard to read and stuff. All in all you get a bunch of info that is hard to understand!

“So, what are we doing here?” you ask. Well, this is where just like with the ‘ps’ command (and the PowerShell in and of itself too), Windows takes some inspiration from UNIX and not only adds some nifty commands to help wrangle all that information that goes scrolling by, but also the idea of “piping” commands or a more simpler analogy, a way to link commands together. Making them talk to each other, work together and share information like never before. You pipe commands together with the ‘|’ character, and it allows you to run a command and take that output and send it to the next command. You will see this in the final command we will use, take a look:

ps | sort -desc cpu | select -f 20 | ft -a;

So, let’s take a look at what this command or set of commands really, does. First off the ps command gets the current list of processes running on the machine along with certain information about each and every one of them like the ‘Process ID’, the ‘ProcessName’ and the amount of ‘CPU’ time it’s using to name just a few. We then take all of that ‘ps’ data and “pipe” or feed it into the ‘sort’ command, telling sort to … well, sort that information by the ‘CPU’ column in “Descending” order. We then take all that sorted data and use the ‘select’ command to only grab or select the top ’20’ items in the list. Last but not least, we use the ‘ft’ command to “format” the list that we have now, which has been cut down to just the top 20 processes sorted by how much of your CPU they are using starting with the most at the top of the list and then listing the top 20 going down from there.

Ultimately, you run this command just like you see it above and you will get a list of the top processes that looks like this:

PS C:\temp> ps | sort -desc cpu | select -f 20 | ft -a;

Handles NPM(K)   PM(K)   WS(K) VM(M)   CPU(s)   Id ProcessName
------- ------   -----   ----- -----   ------   -- -----------
    197     14    6700   11456    92 1,008.66 2744 AODAssist
    422     15    6272   11572    53   886.27 1112 svchost
   2398   1032  115224   10804   420   863.37 2020 AvastSvc
    827     48  253744  247248   371   641.55 1388 svchost
   1132    106   86252  118472   421   575.07 3596 explorer
    140     69   45028   49456   173   572.51 5012 Everything
    485     47   46612   69228   284   565.83 9608 explorer
   1535     90   33912   49260   433   453.93 1460 svchost
    717     52   29416   27460   124   451.45 1352 svchost
    363     43   41048   11472   176   370.32 4436 svchost
    909     63   94836  129776   726   366.38 6388 dopus
    596     54   24476   26196   248   364.06 5136 avastui
    684     44   22172   23564   241   352.66 1048 svchost
    140     13  119472  113980   183   328.48 6972 vmware-usbarbitrator64
    300     13    9940   14796    64   306.90 6516 WmiPrvSE
    346     31   35176   29280   203   302.42 4688 tlbHost
    225     24 1431016 1339160  1460   263.47 1500 stacsv64
    865     81   27488   36708   149   216.86 1420 svchost
    202     16    7300   15020    96   215.45 1744 WHSTrayApp
    110     10    7144   10368    58   200.74 3252 BitMeterCaptureService

There you go, a nice handy little list of your top offenders! If you keep a PowerShell handy, it can be a very fast way to take a quick look at what’s going on under the hood of your PC. Enjoy!

Cool Tools: Trello – Organize Anything

Trello LogoI have found one of the coolest apps ever for making lists, using a virtual whiteboard, taking and re-arranging notes, outlining and even more stuff I haven’t even figure out yet. It’s an app called ‘Trello‘ and I originally found it on my iPhone for iOS. A few days later I was sitting here at my computer wishing I had it to use on my computer too. Low and behold I went to their website and it’s a web app as well that you can use on any PC/Maz/UNIX/Linux box that has a web browser and an Internet connection! Imagine my surprise!

So, finding that I could use it on my PC and my iPhone (you can use it on Android too, BTW), I just had to share this so everyone could get the benefits of this amazing application too. Now, before you get started, just one thing to share because this irks me when I run into it most of the time, and that is that you will be asked to create an account or log in with Google. Normally, I don’t like this because I figure why do I need to create an account just to use an app, right? Then when I realized I could use it in a browser on my PC the reason became clear. That’s how I can have all of my data in both places. So, YES you can indeed work on the same set of lists, the same data, all the same stuff between your mobile device and your PC at home. Cool, huh?

I highly recommend this app and service, it’s really cool and very productive, it really does a great job of organizing my data. You can create these lists and then move the data elements around by clicking and dragging, and etc. Plus you can drill down to and within each individual element and add more data to each one. It is just amazing what it can do, and therefore what you can do with it. So go try it out … NOW!!

Check out Trello today, you will thank me!

Midnight ramblings – probly shouldn’t even read this

It’s pretty strange to me that on those rare occasions when I watch TV I see lots of commercials on from Microsoft comparing Bing to Google claiming that Bing is better when really, it’s a matter of personal preference and taste. I mean, people search the Internet for various and different things and sometimes even the same things but that doesn’t mean that they are seeking the same thing, and even if they are seeking the same thing, they may not want the same results. That’s one of the beauties of the ‘net, it’s ALL subjective! Bing is no better than Google, no more than Google is better than Bing. It’s up to the user, not some fake dork looking geek yelling “Bing it ooooooon” through a megaphone. Give me a break.

It’s about like the Internet Explorer commercials saying that they give you the power to do more, or something about family moments or whatever. I mean, Internet Explorer is pre-installed (or included, or built-in, or whatever, take your pick) on EVERY Windows™®© installation everywhere, and it is still a solid third place contender. For a long time it was second place behind Firefox, but then Chrome surfaced from Google, and now IE has slid to third. Currently, and since about March 2012, the list has Chrome in the lead with 53.2%, Firefox holding on to second with 27.8% and Internet Explorer in third with 12.1% – and that’s while still being the default and only browser on new installs of Windows. If someone wants Chrome or Firefox or anything else they have to use Internet Explorer to go get it! I know, I know, you all already know that. I just don’t know how Microsoft can even think that they have the top end product when it STILL won’t render HTML5 properly.

When we shift the subject to operating systems, the subject becomes even more based on the user and their personal preferences. But then, that’s really yes and no, because most users are pretty much held captive by Windows, and that’s nothing bad or nefarious on Microsoft’s part. It’s just that the majority of computer users out there just don’t know enough to use any other operating system. They know enough about Windows to use it, to get along, and so that’s what they choose. In most cases it’s not even a conscious choice, it’s the only choice, most don’t even know there’s an alternative. Although that’s starting to change a bit since Apple and OSX came to town. Apple took a page from Jean-Louis Gassée’s book with OSX. Jean-Louis Gassée is the man who created the best operating system known to mankind, BeOS. He had the idea that it would be easier to make UNIX user friendly rather than make Windows stable, and created a UNIX based operating system with a beautiful and incredible use interface. Ultimately BeOS didn’t make it, but OSX followed in the same foot steps in my opinion, it’s a UNIX based operating system that is beautiful and easy to use and is becoming more and more popular to date. A year or two ago (I don’t know if it’s still true), Apple was the largest seller/distributor of UNIX based computers in the world. Not bad for a company that almost went under a few years prior!

What does all of my useless rambling mean? Not a darn thing! LOL Except that ultimately, despite what big companies might try to tell us, and what we might believe ourselves, it’s the consume that has the power in the end to drive the industry, and we simply have to vote with our dollar bills. Buy the good stuff and ditch the bad, and for free stuff and open source stuff, it’s pretty much the same, support the good and ignore the bad.

It is my opinion that the Internet is the great playground leveler. Whether it is technology, or entertainment, singing or playing an instrument, dancing or whatever on YouTube, if it’s good … people will like it and view it and share it and it will come to the top. Whereas the bad will fall off into obscurity. The Internet gives even the little guy the chance to be a star at whatever it is that he has chose as his arena fight in. Now, go get some sleep!

Is Wi-Fi Sniffing Wiretapping?

wardialingIs Wi-Fi Sniffing Wiretapping? The (not so) Supreme Court thinks so. They seem to be looking at this from a … well, I am not sure what point of view they are seeing this from. Surely not a logical point of view, nor a technical one. How about we let someone with a brain look at this question, shall we? Good.

First of all, before we even go into the technical parts of each one, or should I say the differences, one must look at the intent behind the act. When you “wire tap” someone, or in more general term, “tap their phone”, you are specifically singling out someone and then taking measures to specifically monitor that person and their communications. In most cases you must have some type of legal paper or permission before you can do this, although we have seen that, naturally the “Government” can always find ways around that little detail. No one wants to hinder their fun, ‘eh? The point is, in the case of wire tapping, you are specifically choosing someone for some reason, one person or entity that you want to monitor. You then take action to monitor that person. You take specific action to monitor that person or entity and that one only, no one else. You don’t tap the phone at 405 West Chester Street and in the process say “Oh, hell, let’s just tap the whole damn street while we are here!” No, you focus on that one person.

Now, in the case of Wi-Fi sniffing, it is much different. In fact it couldn’t be more different. With Wi-Fi sniffing, you are simply sitting there, or you might be mobile, wandering around “sniffing” (testing the location to see if a Wi-Fi signal happens to be available) to see if something pops up. If it does, if you happen to catch hold of a signal, you take a look and see what you have found, kind of like fishing. Sometimes you get a good one, and sometimes you throw it back.

The point is, that unlike wire tapping, with Wi-Fi sniffing you are not focusing on one specific person or entity. You are not specifically taking measures to monitor any one thing, or any thing for that matter. You are simply catching whatever signals are out there to be caught. If I am sitting at home and I see that there are several Wi-Fi networks around me that I can access, am I wiretapping? Hell no!

It really comes down to the people that are responsible for that Wi-Fi network. If you are responsible you will make that network secure so no one can come along and sniff it, find it, and do anything with it in the first place. Wi-Fi sniffing and wire tapping are two very different things and that the Supreme Court can’t seem to figure that out shows just how out of touch they really are, not just with technology, but with reality as well.

iOS7 is ready to install!

20130919-095455.jpgOK, iOS7 is finally here after much hype and banter from all sides of the park. I went ahead and took the plunge on my iPhone 5 and installed the new OS last night. This is a bit different from my normal way of doings because usually I wait a bit to see how it all shakes out. That way if there are major issues with the launch, or the OS itself, or whatever, I can wait until all the issues are resolved before jumping in.

OK, now I have already been hearing a lot of talk from folk on the ‘net about the new OS. I have been hearing grumblings from iDevice users that installed the upgrade (mostly about the way 7 looks), from Android fanbois that just want to trash anything Apple they can, and even users that like the upgrade and have positive things to say. I’m in the latter category, although you never know, things may change as time goes on, we’ll see.

I am going to continue to learn more about iOS7 (all I can really) and I will report back with everything that I can. From my impressions and advice, to tips and tricks, and whatever else I can think of.

Now, make no mistake, this upgrade is huge, and very different in how things look, how they work and how your device does things and responds to you the user. However, after having spent a few hours with the upgrade, I like it a lot and I plan on going into why that is in more detail in subsequent posts here soon.

For now, if you feel adventurous try it out, otherwise it sure as heck won’t hurt to wait a few days or more to see what things are like after it’s been out for more than one night. Stay tuned, more to come!

DVI De-Mystified – Dual-Link DVI versus Single-Link DVI Explained!

DVI Dual vs SingleToday I was doing some spec hunting for my PC, trying to track down exactly what make, model and frequency were supported by the Wi-Fi card that came with my machine. As I was doing so, and eyeballing the rest of the specs, I ran across the information for my video card. One thing that caught my eye was the description of the video or DVI port. Specifically it mentioned that the DVI port was a ‘dual-link’ DVI port. Well now, I consider myself pretty knowledgeable about computers, including hardware, but I hadn’t heard of a ‘dual-link’ DVI port before. Now, in my defense, I have spent the last many years concentrating on hardware by Sun, Hitachi, NetApp and the like. Things you will find in a full up data center, not at home in your desktop PC. I haven’t been knee deep in PC tech for a while, but I have kept up with most things.

So, naturally, I had to find out what ‘dual-link’ meant. I did some searching and found a wonderful article that explains what ‘dual-link’ is, what ‘single-link’ is, the differences between them and more. I am going to give you a brief summary (I don’t want to keep everyone in suspense), but I am also including a link to the original article, go read it and really get learned up.

Basically, the way I see it (the quick version) is like this:

  • Dual-Link DVI
    • Has 24 pins in the plug instead of 18
    • It uses two TMDS digital signal transmitters instead of one
    • It can transmit data faster using 8 wires instead of 4
    • It can support much higher resolutions up to 2560×1600
    • There is an increase in signal quality and refresh rates

 

  • Single-Link DVI –
    • Has 18 pins in the plug instead of 24
    • It has one TMDS digital signal transmitter
    • It transmits data of 4 wires instead of 8
    • It cannot support resolutions beyond 1920×1200
    • Basic signal quality and refresh rates are observed

And there you have it, a run down of the basic differences between ‘dual-link’ and ‘single-link’ DVI. I think finding out and learning information like this is way cool. I love to learn new things and figure out how stuff works, it’s a lot of fun in my book – but then, more than a few people have called me crazy because a day of fun to me is sitting and coding all day! LOL

DVI All Types

DVI Plugs
All Types
(Click to enlarge)

DVI - All Types of Plugs

DVI Plugs
All Types
(Click to enlarge)

Now, for the sake of completeness, even though this doesn’t really apply to the dual-link or single-link question, I wanted to include another image or two that show other versions of the DVI plug. Since you are likely to run into one or all of these plugs out there somewhere, I figured you might want to know what you are looking at. These two pictures (click to enlarge), show you that aside from the digital DVI-D plugs, there are also DVI-I plugs that are analog and digital, plus some other older plugs. Of these older plugs, the Super-VGA there on the bottom is very common and one that you probably will see a lot. It was used for many years before the DVI option became common. I have seen many video cards that have DVI and VGA on the same card.

Check out the article on DVI dual-link versus single-link here.