Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
D

dnuts69

@dnuts69
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • drupal module to show inline adsense
    D dnuts69

    Does there exist a Drupal module to show adsense/code of administrator's choosing automatically for every node on the Drupal system, without having to add tags to each piece of content? I hacked one together and put it here: adinline module Please let me know if this was reinventing the wheel. If it is, where can I find the already existing module? Also, what are everyones thoughts on using Drupal in general? It's pretty plain compared to the other CMS out there, but I like how it's clean and easy to modify. It's developer-friendly. FTS Technology Solutions

    Web Development php html com question discussion

  • Simple Question regarding Pointer Arithmetic
    D dnuts69

    Without knowing the microprocessor architecture + compiler optimization specifics, it's hard to give a "how much" answer. Working off a super-simplified instruction set, the first example can be generalized to the following. We'll assume that the architecture has branch prediction and that compiler optimization has rearranged the memory accesses so they effectively take just one spot in the pipeline. loop 1 x1 million: decrement dst1 compare/branch dst1 to stop decrement src1 read memory at src1 write memory at dst1 loop 2 x1 million: decrement dst2 compare/branch dst2 to stop decrement src2 read memory at src2 write memory at dst2 Second example loop x1 million: decrement dst1 compare/branch dst1 to stop decrement src1 read memory at src1 write mem at dst1 decrement src2 decrement dst2 read mem at src2 write mem at dst2 With this oversimplification, the second example will run at 9/10 the time of the first. If the memory accesses are the limiting factor in performance, then the difference between the examples will be negligible. Also, depending on the size of the data and the amount of physical memory available to your process, the first one example might possibly run faster since it better obeys the principle of spatial locality. If branching policy is the limiting factor, then the second example would perform even better (as in less time) than 9/10 the time of the first, since it has 1 million less branch instructions. Best way to check is to implement both and time a few typical data runs through both. :-) FTS Technology Solutions

    C / C++ / MFC performance question graphics docker data-structures

  • Terminating Process Error "Access Denied"
    D dnuts69

    The MSDN documentation here suggests that if you are trying to do OpenProcess with all access, you need to enable SeDebugPrivilege privilege. This is because all PROCESS_ALL_ACCESS includes access like reading/writing the target process' address space which is a privilege normally reserved for debuggers. If all you are doing is terminating the process, you should specify the minimum amount of access required to do that.

    FTS Technology Solutions

    C / C++ / MFC c++ json help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups