Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Confuser

Pages: [1] 2
Technical Help & Server Administration / Ports
« on: June 22, 2012, 06:34:05 AM »
So I just moved over from a single dedicated server, to 2 dedicated servers for minecraft. The previous one had everything set up including multicraft.

These 2 didn't. So I installed apache, mysql, java (<- all using yum), and multicraft (includes FTP). Its running Centos 5.8 (Final) btw.

I also opened up the ports in iptables

However I'm getting binding errors if the server ever crashes and attempts to restart itself
22.06 12:47:50 [Server] WARNING Perhaps a server is already running on that port?
22.06 12:47:50 [Server] WARNING The exception was: Address already in use
22.06 12:47:50 [Server] WARNING **** FAILED TO BIND TO PORT!
22.06 12:47:50 [Server] INFO Starting Minecraft server on x.x.x.x:25565
22.06 12:47:50 [Server] INFO Loading properties
22.06 12:47:50 [Server] INFO Starting minecraft server version 1.2.5
It works fine when I stop it and start manually though.

This is my iptables (pretty new to this but it seems to work)
Code: [Select]
-A INPUT -p tcp -m tcp --dport 3306 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 8193 -j ACCEPT
-A INPUT -j RH-Firewall-1-INPUT
-A OUTPUT -p tcp -m tcp --sport 3306 -m state --state ESTABLISHED -j ACCEPT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp -m icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p esp -j ACCEPT
-A RH-Firewall-1-INPUT -p ah -j ACCEPT
-A RH-Firewall-1-INPUT -d -p udp -m udp --dport 5353 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 25565 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m state --state NEW -m udp --dport 25565 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
I'm getting the problem on both servers so I'm assuming its something I've not done as I wasn't getting this problem on the previous one. Any ideas?

General Chat / Firefox 13
« on: June 12, 2012, 10:27:58 AM »
Just updated, seems to be really quick and much more responsive. I've got about 5 tab groups stored, each of them has over 20 tabs and memory usage seems to be considerably less than v 12; currently only using half a gb of RAM atm.

Anyone else updated yet?

Edit: Lifehackers speed test puts firefox on top  :D

How To's, Tips & Tricks, Scripts / Facebook Article Bookmark
« on: June 03, 2012, 10:53:08 AM »
Got fed up of all those articles/videos you see on facebook which when you click ask you to add their app to your account (requesting all your info etc). So I made a bookmark which lets you read the articles without signing up to the app.
Code: [Select]
javascript:function%20getParameterByName(name)%20{%20%20%20%20%20%20var%20match%20=%20RegExp('[?&]'%20+%20name%20+%20'=([^&]*)')%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20.exec(;%20%20%20%20%20%20return%20match%20&&%20decodeURIComponent(match[1].replace(/\+/g,%20'%20'));%20%20}%20javascript:window.location.replace(getParameterByName("redirect_uri"));All it does is find the redirect_uri parameter and redirect you to it

General Chat / EU Cookie Law
« on: May 25, 2012, 03:36:27 AM »
So the new EU cookie law comes into enforcement here in the UK tomorrow. Has anyone updated their sites to comply yet? If so, how? Theres very little practical information on which cookies should be opted in or opted out

General Chat / IE to silently update
« on: December 16, 2011, 08:37:27 AM »
From January, Internet Explorer (IE) users will be automatically updated to the latest version of the browser.


General Chat / do a barrel roll
« on: November 03, 2011, 12:54:28 PM »
Type that into google  ;D

Mobile Devices / Sony Tablet S
« on: October 15, 2011, 06:31:07 PM »
Bought one today, 32gb wifi model. Have to say, so far very impressed with it. Screen is very sharp, on par with the ipad 2 imo, even better in some respects like the camera. Only bad thing so far is fingerprints show up everywhere but its only noticeable when the screen is showing dark colours like the default blackish background.

Loving PS1 emulation (crash bandicoot woot), rumour has it they will be adding support for the ps3 controller :)

What makes this unique is that it has infrared on it, with the native remote app, been having fun controlling the blu ray player, the tv, the amp, even the sky+ box. Like a universal remote :)

Might not be the most aesthetically pleasing tablet on the market but sony have really gone to town on the ergonomics. Very comfortable to hold, almost feels like im holding a book/magazine when reading on Kindle/Reader. They have also made a few edits to honeycomb making it more intuitive to use.

Oh, and as soon as I connected google account etc, set up wifi connection there was an update to 3.2 available :) Only been out a few weeks and already newer android version :D

Technical Help & Server Administration / uni proxy
« on: October 03, 2011, 02:34:34 PM »
So i moved into halls last weekend, managed to get on the internet, insanely fast (100mb down).

Tried out Steam, couldnt connect, couldnt get any other online games to work, not even minecraft (cant even login to it, have to play offline mode).

I did some searching and stumbled upon a combination of Your Freedom and Proxycap but its incredibly slow and everything seems to be crashing ie steam, heroes of newerth when using it.

Any other ways around the port blocking? I literally would be happy with just opening up steam and letting it update so i can play stuff in offline mode for the time being.

Oh and ive tried tethering my phone, i was able to access stuff through the browser eg but couldnt get steam to connect, let alone FileZilla :/

General Chat / Most of us hate IE...
« on: August 02, 2011, 04:16:13 PM »
Internet Explorer users have a lower than average IQ, according to research by Consulting firm AptiQuant.

Seems a little bit of an extreme imo

General Chat / Mozilla to compete with Android
« on: July 27, 2011, 04:34:17 AM »
The creators of the Firefox web browser have started developing an operating system for mobiles and tablets.

If its going to be anything like firefox, I presume it will be slow, a memory whore and prone to leaks  ;D

General Chat / EU Cookie laws
« on: March 08, 2011, 10:34:49 AM »
The directive demands that users be fully informed about the information being stored in cookies and told why they see particular adverts.
Specifically excluded by the directive are cookies that log what people have put in online shopping baskets.
However, the directive is likely to have an impact on the more general use of cookies that remember login details and enable people to speed up their use of sites they visit regularly.

So erm, I assume cookies which keep people logged in (how else would you even do it, sessions are cookies) will be excluded as well? But is that classed as "Remember login details"? Seems a bit OTT to me...

Technical Help & Server Administration / Image Resizing
« on: November 11, 2010, 04:52:06 AM »
Im making a site for my coursework for some who currently manually resizes down all images before uploading them (hes a wedding photographer). Each of these images are around 5mb. I thought of using GD but that requires uploading the images first which will take awhile (over 50 images). Would html5 canvas/js be able to do it instead? If so would it be fast and how would the resized images be transferred to the server?

General Chat / Any ideas?
« on: October 30, 2010, 10:56:50 AM »
Well, I made its basically a site which offers dynamic signatures for games. Unlike other sites it offers full customisability without the need for know any code at all (xml etc) like some other sites. But, I have no idea how to get it out there. Had quite a hit from the BFBC2 community but thats kinda died now. Any ideas?  :-\

General Chat / Firefox 4 Beta
« on: October 06, 2010, 11:47:07 AM »
Anyone tried it yet? Just installed it, so far im pretty impressed. Love the new minimal look and the Sync as well, especially with Xmarks shutting down. Not 100% sure on the dev tools, would be nice if they integrated firebug instead

General Chat / Facebook uses Bing
« on: September 11, 2010, 09:32:19 AM »
Another win for MS? Looks like they are catching up to google but very very slowly, with the new instant thing, will they ever catch up with google?

Technical Help & Server Administration / [PHP] $_SERVER cleaning
« on: June 20, 2010, 04:24:06 PM »
My current approach is to clean everything within the $_SERVER array, but that is quite slow, adds about on average 0.00069 (on my localhost) which may not seem like much but add that with everything else and it is, so what needs cleaning and what doesnt need cleaning? By cleaning i mean running through magic_quotes checks and htmlspecialchars().

Also, i need some help speeding this up, i have removed the need for 2 functions and move it into one, from testing it seems the if check for magic quotes is increasing processing time abit and so is the reccursiveness, i could use array_walk_recursive() but according to it states
Any key that holds an array will not be passed to the function.
which i assume makes inputs using names such as example[] skipped out?
This is what i have so far
Code: [Select]
function Sanitize_Array($value) {
$value = array_map('Sanitize_Array', $value);
else {
$value = stripslashes($value); // if it is we reverse it
// Now we encode ', ", &, <, > to prevent HTML and SQL injection
$value = htmlspecialchars($value, ENT_QUOTES);
return $value;
$_POST = array_map('Sanitize_Array', $_POST);
$_GET = array_map('Sanitize_Array', $_GET);
$_COOKIE = array_map('Sanitize_Array', $_COOKIE);
$_REQUEST = array_map('Sanitize_Array', $_REQUEST);
$_SERVER = array_map('Sanitize_Array', $_SERVER);
$_FILES = array_map('Sanitize_Array', $_FILES);
Would it be better performance wise to remove the magic quotes check and create a magic quotes clean and only run the if statement and the magic quotes clean inside the if statement?

General Chat / PS3 goes 3D + Portal 2 announced
« on: June 16, 2010, 01:35:50 PM »
PS3 now has 3D support. Even bigger news is that Portal 2 is coming to PS3! Suck on that crappy *doesnt want to start a console flame war*xbox muahaha  :D

But the real surprise of the event was at the end, when Valve announced that it was to release Portal 2 for the PlayStation 3.

To gasps from the audience, Valve's co-founder, Gabe Newell, walked onto the stage and said that Sony had "proved that the PlayStation 3 is the most open platform of all the current generation consoles and has worked extremely hard to make the platform the most desirable for consumers and developers".

General Chat / Thank you for buying iTunes Gift Certificate!
« on: May 07, 2010, 11:10:13 AM »
I just got 2 of these emails, both addresses look legit: [email protected], [email protected] which said the following:

You have received an iTunes Gift Certificate in the amount of $50.00 You can find your certificate code in attachment  below.

Then you need to open iTunes. Once you verify your account, $50.00 will be credited to your account, so you can start buying music, games, video  right away.

iTunes Store.

Both emails had a zip file attached, if you get it dont open, they contain a .exe which contains a trojan, thankfully i searched first as obviously its too good to be true ;D

Note: AVG scans all my incoming emails from Outlook but it didnt pick this up as a virus, nor did a shell scan either!!!!

More info ->

Technical Help & Server Administration / PHP Captcha storing...
« on: February 07, 2010, 01:00:26 PM »
Right, most captchas store the code the user has to type in a session var which is fine, but if you have multiple ones on the same page or if you have multiple pages open on the same site all with captcha, only one will work.

So can anyone suggest a solution? $_SESSIONs cant handle array so that is out of the question. Could store it via a table in database but that creates other issues like how to identify the different pages etc :-\

Or do we just leave it, and make the user type it in again making out like they typed in the wrong code?

General Chat / MSN Virus
« on: February 02, 2010, 06:09:14 PM »
I just got a message from someone i know saying
Is this your picture?  msn. facebook- /?=msn email address here
Dont visit that site, stupidly I clicked the link, it downloaded a file which is a MS DOS shortcut which attempts to send the message to everyone else on your contact list. Still cant believe I fell for it, worst thing is, because it was through ms dos, AVG didnt even pick it up.

How stupid do i feel XD

Pages: [1] 2