Search found 3234 matches

by jacek
Tue Feb 12, 2013 12:54 am
Forum: General Chat
Topic: How to set up a SMTP in Ubuntu
Replies: 13
Views: 5968

Re: How to set up a SMTP in Ubuntu

I created one on a domain that I own, I think it was test@jacekk.co.uk at the time. So if you have a domain with a hosting provider you might be able to use that.

I doubt you will be able to use roundcube with gMail, they will want you to use their interface.
by jacek
Mon Feb 11, 2013 11:23 pm
Forum: CSS / Styling
Topic: Background not Appearing
Replies: 4
Views: 1974

Re: Background not Appearing

Most browser issues can be solved by making the HTML valid, worth checking :)
by jacek
Mon Feb 11, 2013 11:21 pm
Forum: Other
Topic: Server Locations
Replies: 8
Views: 2956

Re: Server Locations

I believe it's known as colocation https://www.google.co.uk/search?hl=en&q=colocation
by jacek
Mon Feb 11, 2013 11:19 pm
Forum: General Chat
Topic: How to set up a SMTP in Ubuntu
Replies: 13
Views: 5968

Re: How to set up a SMTP in Ubuntu

You have to own the domain test.com for that to work, you can't just install a webmail client.
by jacek
Mon Feb 11, 2013 11:18 pm
Forum: General Chat
Topic: Game of Life
Replies: 8
Views: 5019

Re: Game of Life

It's a simple simulation with 4 rules http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life black cells are dead white ones are alive.

EcazS wrote:Now do it in Minecraft! :lol:

Challenge accepted !

EDIT:
by jacek
Tue Feb 05, 2013 1:01 am
Forum: PHP
Topic: Problem with loading XML
Replies: 2
Views: 849

Re: Problem with loading XML

Lets start form the first error since the others are probably caused by that. [syntax=text]Notice: Trying to get property of non-object in /var/www-nerd/coin/functions.inc.php on line 65 [/syntax] Assuming that line 65 is [syntax=php]$pool = $xml->pool[$number]->currpool;[/syntax] This means that ei...
by jacek
Tue Feb 05, 2013 12:54 am
Forum: Premium Items
Topic: Advanced File Server Error 500
Replies: 3
Views: 8340

Re: Advanced File Server Error 500

Hmm, you might be using a version of PHP that does not have that in.

You do need to set post_max_size to the same value as the max upload size though, the same for memory_limit.

Another thing, if you check the error log for your webserver it should explain what is causing the 500.
by jacek
Tue Feb 05, 2013 12:52 am
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting)
Replies: 1
Views: 1008

Re: PHP Tutorial: Blog (Including Commenting)

In a few of your SQL queries you have ' where there should be ` For example [syntax=php]$total = mysql_query("SELECT COUNT('post_id') FROM 'posts' WHERE 'post_id' = {$pid}");[/syntax] should be [syntax=php]$total = mysql_query("SELECT COUNT(`post_id`) FROM 'posts' WHERE `post_id` = {$...
by jacek
Tue Feb 05, 2013 12:50 am
Forum: Tutorials
Topic: Basics: MySQL - MySQLi
Replies: 4
Views: 1001

Re: Basics: MySQL - MySQLi

It means that some time after 5.5 the mysql_* functions will be removed. It would be a good idea to get used to the replacement before that happens. You can use mysqli in the same way as the old mysql version simpley by adding the "i" mysql_connect => mysqli_connect for example. Also worth...
by jacek
Tue Feb 05, 2013 12:45 am
Forum: General Chat
Topic: Game of Life
Replies: 8
Views: 5019

Game of Life

Recently I was challenged to a game-of-life-off competition. The result was m The code for this can be seen in the page source since its all in JavaScript. The challenge was to get a working version as fast as possible so there are no fancy optimisations. It's a nice challenge and worth trying if yo...
by jacek
Tue Feb 05, 2013 12:42 am
Forum: General Chat
Topic: How to set up a SMTP in Ubuntu
Replies: 13
Views: 5968

Re: How to set up a SMTP in Ubuntu

Fidbeck wrote:But how to get it to work in roundcube or squirrel mail?

what kind of config do I have to use?

Both of those are just clients to the IMAP server so all you should need to do is extract it into a folder.
by jacek
Tue Jan 29, 2013 7:54 am
Forum: Tutorials
Topic: My delete function doesn't work! (PM System)
Replies: 2
Views: 680

Re: My delete function doesn't work! (PM System)

What is not working about it ? What does happen compared to what you expect ?
by jacek
Tue Jan 29, 2013 7:45 am
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 6562

Re: photo gallery

Sorry for the delay, it looks like you worked it out though :D ?
by jacek
Tue Jan 29, 2013 7:42 am
Forum: PHP
Topic: Arguments in XML hierarchy
Replies: 3
Views: 701

Re: Arguments in XML hierarchy

Ah you need to need to know the element name dynamically.

I believe you can do that like this

[syntax=php]$players = $xml->{"pool{$pool}"}->swimmers;[/syntax]
by jacek
Tue Jan 29, 2013 7:39 am
Forum: JavaScript
Topic: Resize iframe based on Content
Replies: 1
Views: 1529

Re: Resize iframe based on Content

Sorry for missing this thread... either way. You are passing a string to the resizeIframeHeight() function and then treating it as an element which causes an error. Also I would try and stick to valid xhtml where possible. So something more like this [syntax=javascript]<script type="text/javasc...
by jacek
Tue Jan 29, 2013 7:33 am
Forum: Premium Items
Topic: Advanced File Server Error 500
Replies: 3
Views: 8340

Re: Advanced File Server Error 500

There is a max_file_uploads setting in the php.ini file, that needs to be set to a value above 0. You need to restart the server after making any changes too so make sure you are doing that. The 500 error could be a result of the incorrect php.ini setting so lets fix that first :)
by jacek
Tue Jan 29, 2013 7:29 am
Forum: Code
Topic: Minecraft Player Face Rendering
Replies: 19
Views: 10103

Re: Minecraft Player Face Rendering

If you have ?player_name=something in the URL you can get that value in the code using $_GET so for this it would be $_GET['player_name']

So just

[syntax=php]$user_minecraft = $_GET['player'_name'];[/syntax]
should do it.
by jacek
Tue Jan 29, 2013 7:26 am
Forum: General Chat
Topic: In school I finally get to take Web Design… 1
Replies: 2
Views: 1827

Re: In school I finally get to take Web Design… 1

That's awesome ! I wish we had courses like this, I was stuck doing spreadsheets :(
by jacek
Tue Jan 29, 2013 7:26 am
Forum: General Chat
Topic: How to set up a SMTP in Ubuntu
Replies: 13
Views: 5968

Re: How to set up a SMTP in Ubuntu

If we are talking about how to get mail() working then all you need is the local sendmail bin

[syntax=text]apt-get install sendmail-bin[/syntax]
is the package name from what I remember.
by jacek
Tue Jan 29, 2013 7:24 am
Forum: General Chat
Topic: The future of any programming language
Replies: 5
Views: 2206

Re: The future of any programming language

If anyone can make anything useful I will send you a prize !

Also reminds me of http://en.wikipedia.org/wiki/Brainfuck
by jacek
Sat Jan 19, 2013 2:29 am
Forum: Tutorials
Topic: Data Storage - Banning Plugin (Minecraft)
Replies: 1
Views: 534

Re: Data Storage - Banning Plugin (Minecraft)

In the load() method you do not split the line into two parts so the name is not separated from the time. It should be something more like [syntax=java]while ((line = reader.readLine()) != null){ String[] parts = line.split(":"); if(this.values.containsKey(parts[0]) == false){ this.values....