hack

What are your coolest/most unusual hacks using a distributed version control system?

I have been working with git for a few months and I find that most of the things that have transformed my everyday work for the better can be attributed to the flexibility and lack of enforced default policy in a distributed VCS. Quite a few people seem to have felt the same way and have built upon this kind of flexibility I have read...

Lighting Control with the Arduino

I'd like to start out with the Arduino to make something that will (preferably) dim my room lights and turn on some recessed lighting for my computer when a button or switch is activated. First of all, is this even possible with the Arduino? Secondly, how would I switch on and off real lights with it? Some sort of relay, maybe? Doe...

How to make CSS visible only for Opera

Hello! Is there a way to make some CSS rules visible only for Opera (9.5 +)? Thank you! ...

Where do I start making a linux input hack?

When you hold "shift" and scroll with your mouse on a mac, it interprets your vertical scroll motion into horizontal scroll actions. This is my most missed feature when working on linux, and I would love to bring it to linux (since I have looked thoroughly and nobody else seems to have done so yet). I hope this can be done with some sor...

[JavaFX] AWT bridge's "Hello World"

Hi everyone, I've heard about the JavaFX->AWT bridge (or hack) for a moment now. But examples I find are quite fuzzy or blur to me. So, if anyone knows an "Hello World" example for this bridge I'd be really interested ! (Just to be clear I don't need a way to embed a Swing component in a JFX animation or to launch a JFX from a Swing b...

Is this code vulnerable to hacker attack?

Hi all, I am really new to online web application. I am using php, I got this code: if(isset($_GET['return']) && !empty($_GET['return'])){ return = $_GET['return']; header("Location: ./index.php?" . $return); } else { header("Location: ./index.php"); } the $return variable is URL variable which can be easily changed by hacker. E...

How to remove error "Reported Attack Site" in Firefox web browser?

My site was hacked few days back and was banned by google. I have cleaned the database and its a bug free site now. But how do i remove the Reported Attack Site box? I scanned my local pc then i had cleaned the all iframe codes in local files and delete all server files then i uploaded i can view my website internet explorer but still ...

Improvizing a drop-in replacement for the "with" statement for Python 2.4

Can you suggest a way to code a drop-in replacement for the "with" statement that will work in Python 2.4? It would be a hack, but it would allow me to port my project to Python 2.4 more nicely. EDIT: Removed irrelevant metaclass sketch ...

Initial iPhone virtual keyboard display is slow for a UITextField. Is this hack around required?

I have an app with a UITextField, amongst other things. When the user first taps on the text field, there is a noticeable delay before the virtual keyboard appears. On a 3GS it isn't too obvious, but on an older iPhone the delay can be around 1 second. After that the keyboard always pops up instantly. The delay is only the first time...

Strip tags using jQuery?

HTML: <table> <tr> <td> <a href="#">link</a> </td> </tr> </table> I want to: FIND 'link' in 'a' and STRIP ALL parent tags except/until 'table'. I know its not the ideal way to do it, but sometimes you just can't modify the markup so it'd be great to know a jquery hack for this. ...

How to check if pdf was modified

I have a pdf generated by 3rd party system. Using pdf editor or els software I have modified it. Is it possible to detect if pdf file was modified, without original file? 0 vote down check I will add some more details. There is no encryption and no signature features. Document is created by IT system. User receives document and mo...

how to enable SQL trace for a closed source app running on jboss and using ojdbc14.jar

Hello Hackers! I have a java app (deployed on Jboss/ WebLogic) that I have to use, it uses ojdbc14.jar to talk to oracle, it's is a neat app but the documentation sucks, a lot of magic happens behind the scenes. I need to trace all SQL calls. I have complete control on DB, App servers, DBA rights, admin rights everything. How do I do ...

Any hack to get cell id on iPhone 3.0 ?

There was a hack for previous firmware using a reverse engineering of Code Telephony but it does not work anymore. ...

Detect URL Abuse and Hack Attempts.

I have a website that seems to get more than it's fair share of hacking attempts. It has not been broken yet, but I'd like to build into the system a good way to detect the attempt and block the IP. Would the best way to detect this be to simply do a string search for phrases like "varchar" and "sysobjects"? Offending URL: http://www....

how do aim bots in fps games work?

I was curious if anyone had any experience/knowledge about aim bots in online FPS games such as Counter-Strike. I am curious and would like to learn more about how the cursor knows how to lock on to an opposing player. Obviously if I wanted to cheat I could go download some cheats so this is more of a learning thing. What all is involved...

Some script is inserted by hacker in home page

How can it be done? Did you ever experienced something like this? ...

jquery select siblings 'until'

I have a DOM in the form of <input class="parent"></div> <input class="child"></div> <input class="child"></div> <input class="parent"></div> <input class="child"></div> ... which I know is not Right and the right way to do this would be to reform the HTML, but lets say that is not possible. How can I get jquery to select all childr...

What kind of SQL injections do you know?

I'll provide a simple one here: $query = "select id from accounts where email='$_POST[email]' and psw='$_POST[password]'"; $result = mysql_query($query,$con); if($row = mysql_fetch_assoc($result)) return true; else return false; If the password is 1' or '1'='1,then will do the trick! What other tips have you known? ...

OpenX ads hacked

We use OpenX for serving ads on our websites. Received a complaint (with a screenshot) from one of our clients - "Why do I get the ad on your homepage linking to an adult site?". Everything seems fine on the server side and none of us could replicate the problem on the server. Looks like it is a client side issue. Is it some type of a ...

How to set css position absolute for Firefox and Chrome and relative for IE

Hi y'all... What is the IE hack for setting the position property : relative in "not-a-browser"IE and position : absolute in other browsers (FireFox, Chrome).. Thanks everyone..!!! ...