Jump to content

laxer

Member
  • Posts

    683
  • Joined

  • Last visited

Posts posted by laxer

  1. Did you try /F to forcefully close it?

    C:\Users\Geoff>taskkill /?TASKKILL [/S system [/U username [/P [password]]]]         { [/FI filter] [/PID processid | /IM imagename] } [/T] [/F]Description:    This tool is used to terminate tasks by process id (PID) or image name.Parameter List:    /S    system           Specifies the remote system to connect to.    /U    [domain\]user    Specifies the user context under which the                           command should execute.    /P    [password]       Specifies the password for the given user                           context. Prompts for input if omitted.    /FI   filter           Applies a filter to select a set of tasks.                           Allows "*" to be used. ex. imagename eq acme*    /PID  processid        Specifies the PID of the process to be terminated.                           Use TaskList to get the PID.    /IM   imagename        Specifies the image name of the process                           to be terminated. Wildcard '*' can be used                           to specify all tasks or image names.    /T                     Terminates the specified process and any                           child processes which were started by it.    /F                     Specifies to forcefully terminate the process(es).    /?                     Displays this help message.Filters:    Filter Name   Valid Operators           Valid Value(s)    -----------   ---------------           -------------------------    STATUS        eq, ne                    RUNNING |                                            NOT RESPONDING | UNKNOWN    IMAGENAME     eq, ne                    Image name    PID           eq, ne, gt, lt, ge, le    PID value    SESSION       eq, ne, gt, lt, ge, le    Session number.    CPUTIME       eq, ne, gt, lt, ge, le    CPU time in the format                                            of hh:mm:ss.                                            hh - hours,                                            mm - minutes, ss - seconds    MEMUSAGE      eq, ne, gt, lt, ge, le    Memory usage in KB    USERNAME      eq, ne                    User name in [domain\]user                                            format    MODULES       eq, ne                    DLL name    SERVICES      eq, ne                    Service name    WINDOWTITLE   eq, ne                    Window title    NOTE    ----    1) Wildcard '*' for /IM switch is accepted only when a filter is applied.    2) Termination of remote processes will always be done forcefully (/F).    3) "WINDOWTITLE" and "STATUS" filters are not considered when a remote       machine is specified.Examples:    TASKKILL /IM notepad.exe    TASKKILL /PID 1230 /PID 1241 /PID 1253 /T    TASKKILL /F /IM cmd.exe /T    TASKKILL /F /FI "PID ge 1000" /FI "WINDOWTITLE ne untitle*"    TASKKILL /F /FI "USERNAME eq NT AUTHORITY\SYSTEM" /IM notepad.exe    TASKKILL /S system /U domain\username /FI "USERNAME ne NT*" /IM *    TASKKILL /S system /U username /P password /FI "IMAGENAME eq note*"

    If no luck a simple restart will do the trick as well.

  2. I would use water crystals...

     

    They absorb water and expand. You would need much less than 60 pounds of them I would think to fill a swimming pool.

     

    They wouldn't be as colorful but would get the job done. You could always add food coloring to the mix to get some color I guess....

     

    Here is the closest to bulk I could find: http://www.amazon.com/Soil-Vigor-Retention-Granules_Crystals-Absorbent/dp/B00BZZHKGG/ref=sr_1_7?ie=UTF8&qid=1435531212&sr=8-7&keywords=water+crystals

  3. You  could probably get around it if you really wanted to.

     

    Something like: Take ownership of all of the files under C:\Windows\System32

     

    Then force delete the whole folder...

     

    ------

     

    I used to have a similar script for XP for trolling people at school(the machines were ghosted and booted off the network so it was fine after reboot)

     

    W7 step up a lot of security so it may no longer work...

     

    -----

     

    A fun thought for you: If you replace the windows help program that is run on startup from the login page it automatically runs as admin, doing this may allow you to delete the folder.

     

    -----

     

    Remember, I'm not responsible for anything you do  ;)

  4. I do not have enough time to give you a full response but,

     

    The method you are doing right now should work fine.

     

    If you haven't invested too much time into the project I would suggest switching to the HTML Agility Pack.

     

    It was designed specifically to work and extract information from pages and gets rid of a lot of the awkward string manipulations.

     

    You can grab the packaged using Nuget assuming you are running a newer copy of visual studios. If not you may need to install the Nuget Plugin

  5. You have to nest it correctly

    <?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><rewrite>  <rules>   <rule name="html rewrite">      <!--Removes the .html extension for all pages.-->      <match url="(.*)" />      <conditions logicalGrouping="MatchAll">     <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />     <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />      </conditions>     <action type="Rewrite" url="{R:1}.html" />   </rule>  </rules></rewrite></system.webServer></configuration>

    I think that is pretty close to correct, I am at work and cannot test it.

  6. Something like:

    <rule name="html rewrite">      <!--Removes the .html extension for all pages.-->      <match url="(.*)" />      <conditions logicalGrouping="MatchAll">        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />      </conditions>     <action type="Rewrite" url="{R:1}.html" /></rule>

    Just create a web.config file in the same folder as your html file and add that to it.

     

    IIS should look at the file before processing the request and adjust the url

  7. For IIS you typically set it up in the web.config file (rewrite)

     

    For apache you can set it up in the .htaccess file (mod rewrite)

     

    http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module

     

    Cheers.

     

     

    -----------------------

     

    Edit, unless you are talking about your root page(index.html, Default.html, etc) in which case you can just leave it out of the link

  8. I am also in Portland.

     

    I generally take my car to either Jiffy Lube or Oil Can Henry's.

     

    Oil Can Henry's are definitely more thorough and a nicer experience but it does tend to cost a little bit more.

     

    If you care about your car they would be my choice.

  9. The threshold can be pretty subjective so I doubt you will find a solid line.

     

    For desktops I would draw the line right around $750 as I stated above. I could see people arguing this up to about $1,200 but I don't think any AMD build is sensible above that.

     

    For laptops my line is at $0, for the time being I will never own an AMD laptop. The power and power efficiency is so much better on an Intel based system that there is no competition in my mind.

  10. -Snip-

     

    To jump in, I completely agree with his points.

     

    IPC is instructions per clock cycle. Which Intel absolutely destroys AMD on. (In other words, you can do way more per clock cycle on an Intel chip than AMD)

     

    Note: A processors clock speed is in cycles per second.

     

    -----

     

    I will let him answer the question about single core performance as it is a can of worms I do not want to open. :D

  11. In general,

     

    AMD based platforms are better for entry level gaming machines due to the lower cost to performance ratio.

     

    In regards to PCI gen 2 vs 3, gen 3 supports roughly 2 times the throughput but it shouldn't really impact any single card system.

     

    IMO if you're spending more than $750 on a desktop your better off going with Intel regardless of what your use case is.

  12. Side note, I would use Enum types for the suit and ranks.

     

    I was also going to make this comment but I wasn't sure if he had a valid reason for using string arrays...

×