Can anyone Explain how this is Possible?

Page 3 of 4 FirstFirst 1234 LastLast

  1. Posts : 242
    Windows 7 Ultimate 64-bit RTM
       #21

    mikinho said:
    (...) if you really want to get an accurate CPU utilization use Native APIs (yes undocumented). WMI is great for quick scripts but I wouldn't use it for a real-time monitoring software.
    Good advice.
      My Computer


  2. Posts : 4,573
       #22

    I did not suggest he use WMI scripting, just that I believe the "error" is produced by a bad calculation drawn from WMI.
      My Computer


  3. Posts : 83
    Win 7 Pro
       #23

    holo88 said:
    your cpu is so unfathomably awesome that is uses compressed time and space to preform tasks, instead of the cpu, itself? i want one!
    Dr.Who fan I surmise :) Or perhaps one who knows about the
    restaurant at the end of the Universe :)

    Too funny LOL!
      My Computer


  4. Posts : 397
    6x W2K8 R2 (x64), 6x W7 7600 (x64), 2x Gentoo (x64), 1x Ubuntu 9.04 (x64), 1x pfSense (FreeBSD)
       #24

    Antman said:
    I did not suggest he use WMI scripting, just that I believe the "error" is produced by a bad calculation drawn from WMI.
    Sorry, I didn't mean to imply you suggested that. Quite the contrary actually, your posts speak for themselves in terms of vast experience and knowledge.

    I just deal with a lot of developers who started as script kiddies (no derogatory implications intended) and attempt to use WMI for everything. I can’t help but comment, even when out of context, on coding best practices.

    Edit: Sorry I can't help myself but add more to my own statement. Using undocumented APIs is generally considered a bad programming practice but in terms of real-time monitoring it is a must.

    Same thing with dll injecting and LSASS hijacking, Native APIs are needed =D
      My Computer


  5. Posts : 242
    Windows 7 Ultimate 64-bit RTM
       #25

    mikinho said:
    Edit: Sorry I can't help myself but add more to my own statement. Using undocumented APIs is generally considered a bad programming practice but in terms of real-time monitoring it is a must.
    It's ok, you're among fellow programmers. :)

    I'm a software engineer working for Penn State. I've done my share of API and regular windows apps, though I do mostly web apps these days.
      My Computer


  6. Posts : 2,899
    Windows 7 Ult x64(x2), HomePrem x32(x4), Server 08 (+VM), 08 R2 (VM) , SuSe 11.2 (VM), XP 32 (VM)
    Thread Starter
       #26

    ChuckR said:
    Each core shows different 'clock multipliers'...

    This doesn't strike me as kosher.
    Seems they should be 'ballpark' to each other...

    You doin' some overclocking experiments with the hw ?
    actually the showing different clock multipliers is a feature from these AMD turion processors and no i cant overclock this tablet (since there is no

    Antman said:
    OK, so you are not playing with us. The negative value is generated from a poorly written calculation drawn from WMI (single core is a good clue here). Because this condition appears to be related to a media file, with the limited data available, I suspect the file was either compressed with a faulty codec, is being read by a faulty codec, or is corrupted.
    hmm you might be unto something...
    this is was after i finished some converting on 2 videos...
    (memory corruption?)
    i wouldnt think any overflow or underflow since i believe either DEP or Windows itself would have crashed (i have DEP enabled for almost every process except those that wouldnt work)

    Antman said:
    It seems that you are playing with a new codec.

    Is the problem on the machine with the HD3200 or with the integrated video?

    I found a utility to identify supported DXVA modes, but it is in Japanese. Have not examined it. Yes, I understand that you have probably investigated your supported modes already. I am looking for a way to isolate what is making the call/calculation.
    actually the hd3200 is a IGP solution...
    yes dxva checker was to check if the ATI driver does offer Avivo (that is what the Hw acceleration technology is called while nvidia calls it PureVideo) on their Win 7 drivers (which i eventually found later is that the converter is the one that is not supported....)


    DJG said:
    I'm getting confused here - the problem is on the tablet, no?

    OMG! 84 processes??! I take it you're running all the out-of-the-box bloatware. I'm a tablet + workstation dude too, but I'm only running 56-58 processes on my Lenovo tablet, which out-of-the-box also shows up with 80+ processes, probably including one that lets you know when you should go to the bathroom ...

    I just run the stuff that enables the special buttons, screen rotation, the power manager, plus I use Ritepen instead of the TIP.

    Edit: In your system specs some of the entries are flipped between what's in the tablet & the home server ... I take it you didn't somehow embed an ATI HD3200 PCI-E card into your tablet, right? Cause that could really make your CPU flip out .
    yes this is on the tablet

    lol yeah i was hard at work multitasking....
    actually i usually have 65 -70 processes...
    those 80 is because i finished some converting)(or actually trying to finshing converting)...
    i actually dont have any of that bloatware but i am running full touchscreen (that is an extra 5 processes)
    Fingerprint software (extra 2)
    monitoring software ( Process Explorer, which is 2 extra since im running 64 bit)
    Ati and its process (which accounts for another 4)
    Synaptic touchpad software (another 2)
    modem software (another one, [windows keep nagging me to install the modem software...:rolleyes]
    and my security monitoring software (secunia psi)

    and AFAIK left is the tablet specs and right are my server specs...
    mikinho said:
    Not useful to this conversation but with all the mention of poor coders I wanted to add that if you really want to get an accurate CPU utilization use Native APIs (yes undocumented). WMI is great for quick scripts but I wouldn't use it for a real-time monitoring software.

    Edit: This is the Native API ZwQuerySystemInformation
    i would think WMI is more of alerts (you know such as remote email alerts and such)
    the info is usefull, well at least to me...:)

    lol on the native API's though.
    i never thought how much work has to be done in order to bring a proper real-time resource monitoring program...

    mikinho said:
    Sorry, I didn't mean to imply you suggested that. Quite the contrary actually, your posts speak for themselves in terms of vast experience and knowledge.

    I just deal with a lot of developers who started as script kiddies (no derogatory implications intended) and attempt to use WMI for everything. I can’t help but comment, even when out of context, on coding best practices.

    Edit: Sorry I can't help myself but add more to my own statement. Using undocumented APIs is generally considered a bad programming practice but in terms of real-time monitoring it is a must.

    Same thing with dll injecting and LSASS hijacking, Native APIs are needed =D
    yeah it seems that way (i havent done any wmi scripting, just right onto basic and java programing head on...)
    as for undocumented API's it seems to be a gray area...
    the programers that i heard that are for using these are saying that they API's are there for a reason why not use them...
    the ones against are just as you saying that they are bad programming practices and they should only never be used unless absolutely necessary...
    my view is that these API's allow a chance for security flaws (since they are not tested vigorously as the well documented api's....
    i am very conscious of this (which is why i am thinking of planning to eventually migrate from programing in C and C++ (eventually when i get there) to programing in C#...)

    ciphernemo said:
    It's ok, you're among fellow programmers. :)

    I'm a software engineer working for Penn State. I've done my share of API and regular windows apps, though I do mostly web apps these days.
    so as engineer (just a quick question)
    which language do you think is being most used?
    i would think java or are javascript (which is pretty much the backbone of almost every single page in the internet...)


    in the end i was thinking of memory corruption and was thinking of dumping a whole memory image but i forgot and shutdown the whole thing....
    Last edited by darkassain; 22 Jul 2009 at 17:58.
      My Computer


  7. Posts : 397
    6x W2K8 R2 (x64), 6x W7 7600 (x64), 2x Gentoo (x64), 1x Ubuntu 9.04 (x64), 1x pfSense (FreeBSD)
       #27

    darkassain said:
    my view is that these API's allow a chance for security flaws (since they are not tested vigorously as the well documented api's....
    i am very conscious of this (which is why i am thinking of planning to eventually migrate from programing in C and C++ (eventually when i get there) to programing in C#...)
    The biggest problem with undocumented APIs is that you risk them breaking in every hotfix and\or service pack. Native APIs are the core of every Windows API (typically called Win32 APIs but most technical writers are trying to update references to Windows API). Since they are undocumented Microsoft can and will tweak them as needed for new features without worrying about breaking anything as they will update their own legacy APIs to use the the new format and introduce a new API for the additional features or a new interface.

    In terms of Java versus JavaScript. JavaScript. An incredible language when used properly. If interested I consider "JavaScript: The Definitive Guide," by David Flanagan to be the JavaScript book. The comp.lang.javascript group is a great resource but be prepared for some rather arrogant individuals (hopefully I'm not coming across this way). A good place to start is comp.lang.javascript FAQ.
      My Computer


  8. DJG
    Posts : 1,008
    Windows 7 RTM x64
       #28

    mikinho said:
    The biggest problem with undocumented APIs is that you risk them breaking in every hotfix and\or service pack.
    That pretty much sums my experience with documented APIs .

    That's why XML was invented. The perfect API that never breaks.

    It allows you to cram all the pertinent crap you need into one neat generic text package everybody can pass through, digest and excrete .

    Edit:

    As far as Java vs. Javascript, in my book they're apples and oranges. The right tool for the right job. There are many places you can't use one or the other, and not too many where both apply in similar fashion, in my experience. Javascript is great in browser coding. I use it all the time with Dreamweaver. I wouldn't want to write a servlet or Java Bean with Javascript . But you probably knew that already .
      My Computer


  9. Posts : 242
    Windows 7 Ultimate 64-bit RTM
       #29

    darkassain said:
    so as engineer (just a quick question)
    which language do you think is being most used?
    i would think java or are javascript (which is pretty much the backbone of almost every single page in the internet...)
    Well, the language being used the most isn't relevant too much. Programming is of such a high level today that code is translated and compiled back and forth all the time from one language to another. The differences are how libraries are used and referenced such as .NET and Mono, and how calls are made to dlls and other collections of code via APIs, etc.

    The way most people use Javascript these days doesn't classify it as a language. Granted, javascript is a language itself, but it is used as a tool (ie: additional layer) for other languages. For example, Microsoft's ASP.NET with AJAX will compile everything written in C#, VB.NET, or similar language into javascript for browsers to understand and execute. PHP is a crossover that works well with javascript. At least that's the client-side of things. ASP.NET web applications still need a .NET server, such as Microsoft IIS, to run .NET web applications.

    As for a language that is also a library and set of tools, look to Java if you're interested in being more platform-independent (both for your development system and your servers).

    For purchasing web hosting and running your own site, you'll pay a little more for things such as ASP.NET and MS-SQL because the hosting provider has to pay more for a Microsoft license to use these. To skip that and favor the open-source mentality, I'd recommend learning php (and java), mysql, and running on apache server with operating systems such as Linux or BSD. This is commonly known as "LAMP" for Linux-Apache-MySQL-PHP".

    But many business are Windows-dominated and use Windows Server, Microsoft IIS (Internet Information Services), Microsoft-SQL, and ASP.NET (C# or VB.NET languages).

    Both of these worlds can use (and do use) javascript, but not always directly.

    If you're interested in learning/focusing on specific languages, knowing the basics of the C language will get you far because javacript, Java, php, C#, and C++ are all based on C. In fact, Linux is very C friendly because it includes its own C compiler by default. :)

    If you plan to do any sort of work professionally, knowledge of SQL (Ansi) and/or T-SQL (Microsoft Transact-SQL) will be a great help. I personally hate SQL (I think it's an evil, b*stardized language invented by database admins, not programmers), but I have to use it for my work. I often say to heck with some of the separation of business logic, database, ui, etc. when it comes to SQL. I'll sometimes end up writing a couple of simple SQL stored procedures to get/update/add data and doing the rest of the data manipulation in code.

    (And my rant for non-database people doing database work: stop deleting rows! Mark something as active/enabled or not)
      My Computer


  10. DJG
    Posts : 1,008
    Windows 7 RTM x64
       #30

    It is precisely because of these points you bring up I have created a new universal programming language I call C-QL, pronounced zee-quel .

    Well, you're right to a large extent. Structured Query Language wasn't really meant to be a programming language, but a DB description & query language for DB admins . Of course now you have stored procedures which combine both and provide your *******ized environment . Thank you, Oracle. OTOH, saves you having to do rountrips between the app & DB servers sometimes. Unfortunately there's always somebody trying to drive the nail in with the screwdriver . Look at the numerous Inventory Management and General Ledger Systems that came into existence written entirely in a report generation language .

    Which brings me to point out you left out RPG, a time honored PL. OK, more of a multiple choice version of a PL, but time-honored just the same . My problem is I have gone through so many languages all the syntaxes start to blend and merge .

    PS - I always though it was better to just get rid of the offending data so it doesn't confuse you, plus, you gain all that extra space back! Bigger plus, you can get rid of the evidence of your short-sightedness! Who cares if you hosed referential integrity - it's overrated anyway. Also, make sure you use business data that can change as part of your primary key - makes it easier to find those offending rows you want to get rid of.
      My Computer


 
Page 3 of 4 FirstFirst 1234 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:39.
Find Us