hacks

Is there an SVN command to find the difference between two local files?

What is the SVN command to find the difference between two files on the hard disk (neither of which are in the repository)? What is the command to find if one of the file is in a particular revision of SVN? What are some of the cool things you do using SVN commands? ...

How would I go about prevent DLL injection.

So the other day, I saw this: http://www.edgeofnowhere.cc/viewtopic.php?p=2483118 and it goes over three different methods of DLL injection. How would I prevent these from the process? Or at a bare minimum, how do I prevent the first one? I was thinking maybe a Ring 0 driver might be the only way to stop all three, but I'd like to see...

Deep copy of PHP array of references

So $array is an array of which all elements are references. I want to append this array to another array called $results (in a loop), but since they are references, PHP copies the references and $results is full of identical elements. So far, the best working solution is: $results[] = unserialize(serialize($array)); which I fear t...

What does this CSS value mean?

While viewing the source of a web page, I came across this CSS, applied to a span within a button: .whatever button span { position: absolute; left: -1e+7px; } What does left: -1e+7px; mean? Is this some trick I should be aware of? ...

retrieving a variable's name in python at runtime?

is there a way to know, during run-time, a variable's name (from the code) ? or do var names forgotten during compilation (byte-code or not) ? e.g. >>> vari = 15 >>> print vari.~~name~~() 'vari' note: i'm talking about plain data-type variables (int, str, list...) ...

What exactly is a rainbow attack?

I was reading a few articles on salts and password hashes and a few people were mentioning rainbow attacks. What exactly is a rainbow attack and what are the best methods to prevent it? ...

Scripts(iframes and javascript) being added to site

My website is being hacked. iframes and JS is being added even after I have been manually searching for and removing them for the past couple of days. Why is this happening and what can I do to prevent it? I have set all index files to permission 444 and most other files to 644. There are a few pages that have flash content being added...

Is there any way to modify the HTTP headers for IE6?

I need to be able to modify the HTTP headers for Internet Explorer for testing purposes. Basically, I want to achieve the exact same thing that the Modify Headers plugin for Firefox does. ...

Override namespace in python

Hi all, Say there is a folder '/home/user/temp/a40bd22344'. The name is completely random and changes in every iteration. I need to be able to import this folder in python using fixed name, say 'project'. I know I can add this folder to sys.path to enable import lookup, but is there a way to replace 'a40bd22344' with 'project'? May b...

Debugging assembly to find a static pointer for reference to a value in a game...

I previously asked a question on here, but I was unregistered and wasn't able to edit my entry (not sure if you can) or add any information about the issue. I'm going to attempt to be more thorough this time so I can hopefully get an answer... I'm trying to find a static pointer and a list of offsets so that I can easily find informati...

Css Hacks a right way?

Is there is any way to write html and css with out using css hacks which will work in all the browsers including ie6? Only using with div and not with table? I want to have the page both html and css with w3c compatible. ...

CSS Hack to Target Firefox 3.5+?

Firefox 3.5 now supports the nth-* pseudoclass, which was what I was using to target my css for Safari and Chrome. Now Firefox reads those too, causing minor layout issues. Does anyone know a way to specifically target FF 3.5+? BODY:nth-of-type(1) #topsearch input[type=submit] /* Safari 3.1+ and Chrome */ { height:19px } ...

Hide a C# program from the task manager?

Is there any way to hide a C# program from the Windows Task Manager? EDIT: Thanks for the overwhelming response! Well I didn't intend to do something spooky. Just wanted to win a bet with my friend that I can do it without him noticing. And I'm not a geek myself to be able to write a rootkit, as someone suggested though I'd love to know...

Are memory addresses for a specific program consistent between computers?

I have used trainers in the past to gain things like extra lives in games, it is my understanding that trainers work by hacking or freezing the memory address that the game uses to track such things. My questions are: Could memory hacks be used to manipulate controls in a program (i.e. play, pause, next song for a media app)? And are ...

Casting between unrelated congruent classes.

Suppose I have two classes with identical members from two different libraries: namespace A { struct Point3D { float x,y,z; }; } namespace B { struct Point3D { float x,y,z; }; } When I try cross-casting, it worked: A::Point3D pa = {3,4,5}; B::Point3D* pb = (B::Point3D*)&pa; cout << pb->x << " " << pb->y << " " << pb-...

WordPress: Assigning widgets to individual pages

Are there any plugins or hacks that allow assigning widgets to individual pages? EDIT: Using self-hosted (.org) 2.8.4 An example of use would be: when you're editing a page in the admin, you'd ideally have the ability to assign widgets to that specific page. The default WP behavior is more "all or nothing" in that you assign widgets to...

Dirty Coding Tricks to Deliver Project on Time

Just read a good article about dirty coding hacks used by game developers to get a game out the door: http://www.gamasutra.com/view/feature/4111/dirty_coding_tricks.php Has anyone here had to pull a quick and dirty trick to save a project? ...

Setting borders around tbody, thead and tfoot with IE8

Hi, I've designed a table in html that uses tbody, tfoot and thead. I would like to put a border-bottom and border-top on my tbody. Which works perfectly well with Firefox and Google Chrome. However Internet Explorer 8 does not display the borders at all. After searching on the internet I haven't found any solution that did not involve...

Php multithread

Php, isn't really made for multithread but do you have any workarround to deal with threads in php. ...

Javascript Tricks and Hacks

Hi, I would like to gather some ideas how you can implement Javascript in a site that don't allow you to put javascript. Site's I'm talking about are community sites like MySpace, That only allows you to put HTMLs. some of their implementation I've seen is something like this. <img src="imagesource" onerror="javascript: find head and ...