Jump to content

  • Log In with Google      Sign In   
  • Create Account

Nypyren

Member Since 19 Aug 2002
Online Last Active Today, 03:45 PM

Topics I've Started

Bug? Occasional script-like junk above banner

02 November 2015 - 01:27 PM

The following text occasionally loads at the top of the page, perhaps once a day or so...

I'm using Internet Explorer 11 on Windows 7.

ode on iOS5+ if (hasTouch && document.querySelectorAll && !iOS5) { var i, len, element, dropdowns = document.querySelectorAll("#dark li.drop > a"); function menuTouch(event) { // toggle flag for preventing click for this link var i, len, noclick = !(this.dataNoclick); // reset flag on all links for (i = 0, len = dropdowns.length; i < len; ++i) { dropdowns[i].dataNoclick = false; } // set new flag value and focus on dropdown menu this.dataNoclick = noclick; this.focus(); } function menuClick(event) { // if click isn't wanted, prevent it if (this.dataNoclick) { event.preventDefault(); } } for (i = 0, len = dropdowns.length; i < len; ++i) { element = dropdowns[i]; element.dataNoclick = false; element.addEventListener("touchstart", menuTouch, false); element.addEventListener("click", menuClick, false); } } });document.observe("dom:loaded", function() {var FAVE_TEMPLATE = ''; var ajaxUrl = ipb.vars['base_url'] + "app=search&module=ajax§ion=taginfo&md5check=" + ipb.vars['secure_hash']; ipb.hoverCardRegister.initialize( 'taginfo', { 'w' : '300px', 'delay': 750, 'position' : 'bottomLeft' , 'getId': true, 'setIdParam': 'tag', /*'ajaxUrl' : ajaxUrl,*/ 'callback' : initTagLike } ); function initTagLike(hoverCardObject, id) { var ajaxUrl = ipb.vars['base_url'] + "app=search&module=ajax§ion=taginfo&md5check=" + ipb.vars['secure_hash'] + "&tag=" + encodeURIComponent($(id).readAttribute('hovercard-id')); new Ajax.Request( ajaxUrl, { method: 'post', evalJS: 'true', onSuccess: function(t) { hoverCardObject.card.update(t.responseText); ipb.delegate.register('.ftoggle' , ipb.like.clicked ); ipb.delegate.register('._fsubmit', ipb.like.save ); ipb.delegate.register('._funset' , ipb.like.remove ); ipb.delegate.register('._fmore' , ipb.like.more ); /* Make sure hcards work */ ipb.like.resetEvents(); } }); } }); var _gaq = _gaq || []; var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js'; _gaq.push(['_require', 'inpage_linkid', pluginUrl]); _gaq.push(['_setAccount', 'UA-279474-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); 
Using the DOM inspector, this text starts here:

<body id="ipboard_body">ode on iOS5+

GUI: Direct3D and clipping child controls

02 March 2007 - 09:40 AM

I'm trying to plan out a GUI system implemented in Direct3D that functions similarly to how Windows handles things, where perhaps the most important feature I'd need to replicate is that child windows are clipped inside their parents client area, whether they're text, other controls, or any 3D object. In Direct3D, the first thing that came to mind was to use the stencil buffer actually *as* it is named -- prepare a rectangular (or in fact any renderable shape) upon which I could render child controls. However I'm worried about deeply nested controls having to paint to the stencil buffer too much (fill rate problems?) There may be some trickery I can figure out with this approach to help solve that. In DirectDraw you could specify a universal clipping rectangle (at least in windowed mode, you pretty much had to do this if you didn't want to accidentally write to the desktop). Does Direct3D have a similar way to specify a universal clipping rectangle for area of the screen?

English: 'doubt' vs. 'question' (Lexical Police Attack!)

21 October 2006 - 11:57 AM

There's a strange trend among people who aren't native English speakers: The use of the noun 'doubt' in place of the noun 'question'. "I have a doubt: How do I install <program>?" That's not a doubt. That's a question. I've never seen native English speakers get these confused. A doubt is a belief that a concept is probably false. A question is a request for more information. You can also use 'question' as a verb, in which case it means basically the same thing as the verb 'doubt'. A friend who works at Microsoft (which employs quite a lot of people who aren't native English speakers) originally pointed this out, and he says that this mix-up happens ALL the time there (it drives him nuts). So, where do people learn this improper usage? Mixing up the dictionary entry for the noun and verb forms? Or are English language courses actually teaching this backwards as well? Occasionally this mix-up comes up on these forums. Has anyone else noticed this?

Buffer Overflows and Stack Direction

03 October 2006 - 06:40 AM

From my understanding, the main way that buffer overflows can lead to code execution is by overwriting the return pointer that's on the stack:
before:
[local variables (buffers go here)][return address][pushed arguments] (previous function's stuff here)

after:
[buffer OVERFLOWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW][pushed arguments](previous function's stuff here)
This is all because "push" moves the stack pointer in the negative direction. What if push moved in the positive direction? buffer overflows would continue forward in the "unused" area and would hit the guard page.
before:
(previous function's stuff here)[pushed arguments][return address][local variables (including buffers)]

after:
(previous function's stuff here)[pushed arguments][return address][local variaBUFFER OVERFLOWWWWWWWWWWWWWWWWWW]
Unfortunately the way the "push" "pop" and "ret" instructions work on x86 machines won't let you do this. There's nothing stopping you from doing everything without using those particular instructions though... Is anyone else familiar with other types of problematic overflows? Does anyone know if there's any advantage to stack 'growing negative' like this (other than by silly convention)? Back in the day, the stack would grow in the opposite direction of the heap so that they could share one large region of memory. In modern applications, the stack is usually COMPLETELY isolated with nothing else around.

Ethics of Decompilers

28 August 2006 - 11:22 AM

Let's pretend for a minute that in the near future, someone completes a multiplatform decompiler which can output C code with a high degree of accuracy. Now, let's say they release the decompiler for free to the general public; anyone can download it, and with some tinkering, can decompile almost everything released to date. What kind of consequences of this would you anticipate? How would this impact software piracy? Cheating? Corporations stealing other games' ideas? It doesn't work... YET... Discuss...

PARTNERS