Search found 1984 matches

Actual Results

Post Posted: October 27th, 2013, 3:00 pm

There is a definite difference - bitwise operations don't just return true or false, they perform an operation on the two operands and return the value. For instance, (9 & 8 ) returns 8, i.e. the binary operation 9 & 8 can be illustrated as: [code] 8 4 2 1 ---------- 9: 1 0 0 1 8: 1 ...

Post Posted: February 19th, 2010, 2:52 am

The left angle bracket is used in lookbehind assertions:

http://www.php.net/manual/en/regexp.ref ... rtions.php

And the right angle bracket is used in some subpattern matching:

http://www.php.net/manual/en/regexp.ref ... lyonce.php

Post Posted: May 14th, 2009, 1:32 am

Wow, thanks folks! I'm flattered!

Post Posted: April 22nd, 2009, 1:56 am

Yeah, that video done the rounds in the office. Impressive stuff. I'm surprised that he never got arrested outside the head office of the company I work for though (roughly about 3:46 into the video) :)

Post Posted: April 22nd, 2009, 1:53 am

Heh, with Spork's little tip I average about .22. Using a full click, my average goes up to about .28

Post Posted: April 21st, 2009, 2:56 pm

Ooh, can't resist a B&W photo comp, so here's my entry - Middle Meadow Walk, on a misty morning. I took this on the way to work one day. It looks a bit sinister in the photo, however it was actually quite pleasant.

Image

Post Posted: November 11th, 2008, 2:28 pm

Cheers guys. What a way to celebrate your birthday, huh?

Post Posted: October 27th, 2008, 12:29 pm

I love Opera, however I'm getting sick of sites that don't work with it. I used to think it was bad when sites only worked in IE6 rather than Firefox.

Post Posted: October 27th, 2008, 12:24 pm

If you really want to get in to the nitty-gritty of it, you'll need to implement POP3 . However, it will be easier just to use a library that already implements the protocol, and build your application around that. Most languages have some sort of POP library either built in to the framework or as a...

Post Posted: September 23rd, 2008, 12:26 pm

Yup - you have to send the email in HTML format: [code]<?php $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $message = "<html><head></head><body>This is an automated response, just to le...

Post Posted: September 23rd, 2008, 12:14 pm

What does everyone have against Texas? Surely you must have forgiven them for Dubbya by now?

Post Posted: August 1st, 2008, 1:42 am

I've ditched Firefox in favour of Opera these days :) i'm sorry :/ lol Well, on my main Linux box anyway. On Windows, FF runs fine, however FF's rendering engine is horrendous on Linux when dealing with some CSS/JavaScript content. For instance, in FF, when scrolling on this site http://www.oakpark...

Post Posted: July 31st, 2008, 10:27 am

I don't know - people tend to use the regex abbreviation rather than reg by itself.

Post Posted: July 31st, 2008, 10:13 am

I wasn't that taken with Flock either - mind you, I only tried it when it very first came out. It might be different now. I've ditched Firefox in favour of Opera these days :)

Post Posted: June 12th, 2008, 4:47 am

You can include the third party JARs within your JAR file, but you can't use them from within your JAR at runtime. You'd have to inflate them to an external location first. To allow your JAR to be able to access the external JARs, you need to add them to the classpath specified in the MANIFEST.MF fi...

Post Posted: June 11th, 2008, 11:27 am

Indeed, Eclipse and NetBeans are the current industry standard IDEs at the moment. They offer syntax highlighting, auto-code completion, refactoring tools, and countless other handy features that make life a lot easier. That being said, if you're just learning the language, I'd be inclined to use a ...

Post Posted: April 1st, 2008, 1:54 pm

I never implied you specifically were judging her, I'm just saying that now that SB has admitted her secret, we don't want people here at Ozzu to think badly of her.

It's happened in the past both in her real life and online and I know it upsets her a lot.

Post Posted: April 1st, 2008, 1:45 pm

SB doesn't tell a lot of people that, but (s)he has had a lot of problems in life, and has only just come to terms with who (s)he is. Of course (s)he has the support of most people here at Ozzu, but we don't need narrow minded people judging her/him.

Post Posted: April 1st, 2008, 11:43 am

"If anyone was the fifth Beatle, it was Brian"

Post Posted: April 1st, 2008, 5:17 am

Hi savantcreative, What you're after in terms of changing text is actually quite simple, and in fact I have something similar on my site whereby I display a random lyric every time the page is loaded. You won't have to make your entire site PHP-based - only the page that you wish to have the dynamic...

Post Posted: March 27th, 2008, 5:26 pm

C# is preferred. VB just feels like cheating. You have to do something like get drunk just to make it that little bit harder.

Post Posted: March 27th, 2008, 5:17 pm

I still use JEdit for all my coding, be it Java, Javascript, PHP, Bash etc. It rocks. We use Eclipse at work, which is ok for large Enterprise projects, but it's sooooo slow and eats memory. If you're learning Java, I'd recommend using a simple text editor like Notepad2, JEdit etc so as you learn ho...

Post Posted: March 27th, 2008, 5:11 pm

Yep, we get Columbian coffee here in the UK. That reminds me of something a TSA officer asked us at the airport in LA last week - he was checking our passports and noticed that we were from the UK. He started going on about how he loved Torchwood and the BBC, and then he said "Is that the only ...

Post Posted: March 27th, 2008, 5:04 pm

I get up, and nothing gets me down.
You got it tough. I've seen the toughest around.
...
Might as well jump.
Go ahead and jump.

*Throws 1984 on*

Post Posted: March 27th, 2008, 1:40 pm

McOffee? It's horrible - well, it has gotten better since they introduced the "fresh" ground stuff, but its still not too hot. Luckily, I'll be picking up my Gaggia espresso maker sometime in the next few days (thank you wedding list :) )

Post Posted: March 27th, 2008, 1:27 pm

ATNO/TW wrote:
I hate starbucks


Having said that, I do prefer UK Starbucks to those in the US. I think it's the milk. Milk in the US is strange.

Post Posted: March 27th, 2008, 1:24 pm

you just cant beat a starbucks coffee :P Oh, I disagree entirely. I don't mind their espresso drinks, but they regular coffee is sub-par at best compared to many of the other places around here to get coffee. They also tend to be ridiculously overpriced. Indeed - I have been a Starbucks patron ever...

Post Posted: February 20th, 2008, 5:52 am

If you are referring to the block that's currently commented out, i.e. this part: [code]//if (checkbox.checked == true) { //fam cost = parseInt(checkbox.value * cost); //alert("checkbox works family" + fam cost); //} //} //else { //alert&...

Post Posted: February 20th, 2008, 5:45 am

I play guitar (badly), and have done (badly) for close to 10 years now. My setup isn't anything special - 90s Fender US Standard Tele with rosewood fretboard and Yamaha acoustic (I forget which model).

Amp is so crappy it aint worth mentioning.

Post Posted: February 19th, 2008, 2:04 pm

The "Ask A Ninja" videos on YouTube are also quite funny, and in a similar vein to the RealUltimatePower site.

http://www.youtube.com/watch?v=IR68W56DCBU

"Ninjas are an important part of the eco-bio-death-o-sphere" :lol:

Post Posted: January 29th, 2008, 2:46 am

Hmm, I didn't think that syntax would work either, however on thinking about it, I didn't see any reason that it wouldn't. I had just never used it before. I just tried it in Firefox, IE6 and Opera and it seems to work fine. I suppose that's a bit more robust than simply specifying the index of the ...

Post Posted: January 28th, 2008, 6:32 am

Haha, if only I knew then what I know now! When I read the title of this post, I thought to myself - "Easy, use 'offsetWidth'", then I saw that I had actually replied to it in the first place! Yep, if I was answering now, I'd suggest using offsetWidth. Using "style.width" only wo...

Post Posted: January 21st, 2008, 8:59 am

I think it's quite right to ban the export of haggis! It's an endangered animal in the Highlands these days. It used to be that you couldn't walk more than 5 mins before being confronted by the beast, but I fear a surge of nationalism after the Braveheart movie has caused them to be hunted to the ve...

Post Posted: January 17th, 2008, 10:56 am

Isn't there a third option - 'eMail'? Someone I know writes that and it annoys the crap outta me. Email all the way.

Post Posted: January 15th, 2008, 5:01 am

Looks like the "pupil_id" variable isn't being sent through the query string Try printing it out to the screen to double check.

Post Posted: January 12th, 2008, 4:42 am

Haha, the commentary is hilarious!

Post Posted: January 12th, 2008, 4:27 am

They're just shy, methinks.

Post Posted: January 9th, 2008, 6:51 am

Here's a link to the original

Post Posted: January 9th, 2008, 6:32 am

Here's my work desktop - it normally alternates between a few strips from XKCD (inverted to fit in with the black background, of course):

Image

Post Posted: January 9th, 2008, 6:16 am

Well, it very much depends on your rich text editor. If you're using a JavaScript component you got from somewhere, they may have their own API that lets you count words, characters etc. If it's just a simple <div> based editor, i.e. it uses DHTML to automatically mark-up the content you type ...

Post Posted: January 8th, 2008, 2:45 pm

Haha, that would be too easy! :)

Post Posted: January 8th, 2008, 2:13 pm

Tsk tsk, them pesky mods should know better!

Post Posted: January 8th, 2008, 2:06 pm

No probs - easy thing to overlook! No need to feel ashamed - we've all done it at some point :)

Post Posted: January 8th, 2008, 11:21 am

Why try to run before you can even walk? Start with the basics - HTML, CSS etc - to learn how web pages are constructed and some of the theory behind web pages. Once you've built your confidence up a little, try out some JavaScript to make your pages a little more interactive and interesting. Once y...

Post Posted: January 8th, 2008, 10:52 am

I believe you may need the empty brackets at the end of the __Socket_Ping. At the moment, you're accessing it as if it was a class variable, not a function. Change:
PHP Code: [ Select ]
f($results = $this->__Socket_Ping){
to
PHP Code: [ Select ]
f($results = $this->__Socket_Ping()){
And see if that helps.

Post Posted: January 7th, 2008, 2:23 pm

Well, after spending 30 mins clearing up all the clutter on my desktop, here's my simple wee desktop:

Image

Post Posted: January 4th, 2008, 8:55 am

Well, that cleared that one up :)

Post Posted: December 11th, 2007, 12:13 pm

While I agree with you all on what you have said. There are ways that make it alot harder than simple going to view->source in the menu, or linking to the page and saving target as. With AJAX taking over the web you can generate your webpage server side and then request the information using aja...

Post Posted: December 10th, 2007, 1:36 pm

You don't happen to work for Microsoft do you Jason? :)

Post Posted: December 7th, 2007, 4:23 pm

UNFLUX wrote:
katana wrote:
I feel all warm and fuzzy inside now :)

I think they make a cream for that. ;)


I'm glad - it's starting to itch :shock:

Post Posted: December 7th, 2007, 10:15 am

Wow, hello there lucassix!

(And Unflux too)

I feel all warm and fuzzy inside now :)

Post Posted: November 30th, 2007, 3:16 pm

Can't beat good old lynx.

Post Posted: November 26th, 2007, 2:59 pm

You should read it in chunks and build it up gradually. The hanging should be stopped by checking for the end of stream: [php] $data = ''; $streamhandle = fopen("http://www.ozzu.com/", "rb"); while (!feof($streamhandle)) { $data .= fread($streamhandle, 2048); // number of bytes t...

Post Posted: November 26th, 2007, 2:51 pm

I've personally never used abstract classes & overloading in PHP, however they do look quite similar to Java. An abstract class should serve to provide the base functionality for whatever classes extend it. It obviously can't be initialized, but it can be used to provide a definition for all the...

Post Posted: October 23rd, 2007, 11:19 am

Holy schmoly! Welcome back dM!

Post Posted: September 11th, 2007, 11:52 am

Aha! Welcome back! You haven't bumped into Axe or digitalMedia on your travels, have you? :)

Post Posted: August 31st, 2007, 3:27 pm

I copied your code exactly and it works for me. What results are you getting?

Post Posted: June 10th, 2007, 2:39 pm

Ninjas own pirates? You mean as pets?

Post Posted: June 10th, 2007, 2:38 pm

Once you go Mac you never go back.

Post Posted: April 28th, 2007, 1:40 am

If you're running the PHP script on a non-dedicated machine, you could always set up a cron job on your computer to run wget on the URL.

Post Posted: April 6th, 2007, 3:30 pm

The only error I get (using the code you posted) is the following: document.getElementById("filter") has no properties If you look at your code, you don't actually give the filter <select> element an ID - just a name. IE will let you away with it when you call getElementById, however...

Post Posted: April 5th, 2007, 2:41 am

As far as I'm aware, JavaScript treats iframes in the same way as frames, which are essentially Window objects. So, if you have a handle on the iframe, you should be able to just call "location.reload()" on it, no? Not tested it, but gave my "JavaScript: The definitive guide"...

Post Posted: April 3rd, 2007, 5:22 am

The easiet way to do it is probably using the 'date' function: [php] if(date("D") == "Sat") { // date("D") returns the three letter day of week if(date("G") <= 12) { // date("G") returns the hours (in 24 hr format) echo "Hope you are enjoying...

Post Posted: April 3rd, 2007, 5:05 am

Them's reads like fighting words Joebert. Wanna take this outside? :D

Post Posted: March 27th, 2007, 7:44 am

Try changing it to: [code]<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="tomcat"/> <role rolename="manager"/> <role rolename="admin"/> <user username="tomcat" password="tomcat" roles="t...

Post Posted: March 26th, 2007, 3:51 am

Check the usernames/passwords in the tomcat/conf/tomcat-users.xml file. The file should look like: [code]<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="tomcat"/> <role rolename="manager"/> <role rolename="admin"/>...

Post Posted: March 22nd, 2007, 7:45 am

Why use two submit buttons? Why not make the cancel button a normal "input type='button'" and give it an onclick handler that does something to cancel the order, i.e.: [code]function ComfirmCancelOrder() { var r=confirm("Are you sure you want to cancel this order?&quo...

Post Posted: March 22nd, 2007, 7:28 am

The line number means everything! That's where the error is! There's really no need to use eval in this instance. The 'getDocumentById' function requires a String parameter, but if you look at your code in the eval function, you're passing a literal value. Quoting this will fix the problem (you shou...

Post Posted: March 12th, 2007, 3:52 pm

Try this: [code]<html> <head> </head> <body> <?php if(isset($_POST["blah"])) { $counter = strlen($_POST["blah"]); echo("<p>You entered $counter character(s)</p>\n"); ...

Post Posted: March 12th, 2007, 3:47 pm

I can't see anything in your code to send any emails. Does this happen on a different page?

Post Posted: March 12th, 2007, 3:42 pm

Well, for starters, do you actually have an "emailhandler" cgi script that processes the form data?

Post Posted: March 12th, 2007, 1:09 pm

Well, you have lots of queries that are attempting to execute on a "$link" variable, however you don't actually set $link anywhere. When you call mysql_connect, you assign the result to a variable called $dbh, not $link, therefore change all of the mysql_query and mysql_close functions to ...

Post Posted: March 12th, 2007, 1:02 pm

You've missed a closing quote on line 3. I.e., this:

Code: [ Select ]
<?

// enter start date below

$end = "May 27, 2007;
  1. <?
  2. // enter start date below
  3. $end = "May 27, 2007;


Should be:

Code: [ Select ]
<?

// enter start date below

$end = "May 27, 2007";
  1. <?
  2. // enter start date below
  3. $end = "May 27, 2007";

Post Posted: March 12th, 2007, 1:00 pm

Erm, as joebert said - if javascript is disabled, you won't be able to run a javascript function to do anything :)

Post Posted: March 12th, 2007, 12:59 pm

The "method" attribute in your form posts to the an "emailhandler" page. However, you have a "redirect" setting within your form - I'm guessing the cgi script that your page is currently linking to is supposed to read this "redirect" variable and redirect the ...

Post Posted: March 11th, 2007, 4:45 am

I dont really know, i'd like it to be easy to use and have some compilers. K/ubuntu just didnt seem to work that well, and they wouldnt work right at my screen resolution for some reason. Im thinking i might try debian for a while it seems to work well at university I tried a few distros before set...

Post Posted: March 11th, 2007, 4:25 am

The problem is that your code is exiting straight away. Try running your program from the command line, or you may want to add this to the end of your code (before the 'return 0;' line in your 'main' method):
Code: [ Select ]
char c; cout << "Enter any key to exit: "; cin >> c;
...

Post Posted: February 6th, 2007, 1:03 pm

Another option would be to use AJAX and have the PHP output only one email at a time. You could then kick off multiple AJAX calls to your PHP script and monitor the callbacks to update the web page.

Post Posted: February 6th, 2007, 1:00 pm

A compiler takes the source code you write and translates it into a binary form that is more efficient for the machine to execute. A compiled C++ program is normally output as a .exe file in Windows. Of course, this is a gross over simplification what a compiler does. There are numerous C++ compiler...

Post Posted: January 25th, 2007, 5:04 pm

I think what SB is referring to is using "includes" of some sort using a dynamic, server-side scripting language. PHP does this by way of the "include" command. The basic premise is to define a file containing all of the HTML that sets up your menu, and then dynamically pull this...

Post Posted: January 19th, 2007, 2:34 am

If you want to kill a specific thread, run "ps aux" to find the process' ID (PID), then run "kill PID" - obviously replace PID with the process' ID number.
If you want to kill all processes of a certain program, for instance Firefox, you can run "killall firefox".

Post Posted: January 19th, 2007, 2:31 am

Depends. C# will probably become more predominant in Windows development, as even Microsoft are using it more and more for their in-house development (I think the goal is to replace most of their legacy Win32 C++ code with updated C# code - whether they will actually achieve this is a different stor...

Post Posted: January 9th, 2007, 4:31 pm

Indeed. After all, UNIX is the one true OS. OS X happens to be a nice front end to it.

Post Posted: January 9th, 2007, 1:49 pm

Apparently it runs OS X too! Macs rule!

Post Posted: December 9th, 2006, 5:05 pm

The old theme tune is a bit of a give-away:

"Made in Scotland, from girders,
And unpronounceable too.
Made in Scotland, from girders,
It's called Barr's Irn Bru"

Post Posted: December 3rd, 2006, 2:39 am

It is the number of unique values (normally for the index on a table). For a table with a single primary key column, the cardinality should normally be equal to the number of rows in the table.

Post Posted: December 2nd, 2006, 1:46 pm

I normally append a small comment if I'm using a lot of brackets: [code]for(int i=0; i<arr1.length; i++) { if(someVar == true) { switch(arr1[i]) { case FLAG_A: System.out.println("A"); break; case FLAG_B: System&...

Post Posted: December 2nd, 2006, 1:38 pm

Hmmm, I tried the typecasting method and got a parse error. Also, onlyican.com - you're method didn't work for me either (echo was printing out "Array"). It would have to be amended to something resembling the following: [code]<?php echo foo("bar"); function foo($t...

Post Posted: November 25th, 2006, 11:37 am

I would recommend jEdit to anybody. It has oodles of functionality as is, and can be extended with plugins. It has the standard features you'd expect, such as syntax highlighting, code folding, a decent file system browser, and loads more. I've used it to code C#, Java, PHP and loads of other stuff....

Post Posted: November 25th, 2006, 11:34 am

Here is a small example to illustrate the functionality that you're after (well, what I think you're after :) ): [code]<html> <head> <script language="javascript"> function calculateVal() { var num1 = parseInt(document.getElementById("num1&qu...

Post Posted: October 27th, 2006, 1:30 am

meman wrote:
security guards are complete jobsworths.


Yup, gone are the days when they would just take you out back for a swift beating :D

Post Posted: October 16th, 2006, 5:16 am

SB wrote:
katana wrote:
Just the one - a couple of Kanji characters on my upper right arm meaning "promise".


At least that is what you were told it says :wink:


Well, I did wonder why all those Japanese folk were laughing and pointing at me during the festival this year .... :scratchhead:

Post Posted: October 15th, 2006, 12:14 pm

Just the one - a couple of Kanji characters on my upper right arm meaning "promise". It looks a little plain at the moment, so currently investigating possible designs to enclose it.

Post Posted: October 14th, 2006, 2:33 am

Daemonguy wrote:
tar with gzip. :)


Echo that :D

Post Posted: October 1st, 2006, 3:21 pm

Haha, I'd hate to see their "Value" range - garunteed crash every 5 minutes (oh wait, thats MS Office isn't it? :lol: ).

Post Posted: September 28th, 2006, 1:16 pm

* katana waits eagerly for someone to interject with the clich├ęd "guns don't kill people, people kill people" line :lol: *

Post Posted: September 28th, 2006, 1:11 pm

Not that I agree with this law or anything, but it had been publicised for months and months beforehand. Parents had ample time to buy a seat for their child. As usual, everyone left it to the last minute and there was a shortage in the week prior to the law taking affect. So no, I don't think the p...

Post Posted: September 20th, 2006, 1:30 pm

Maybe knock up some wireframe diagrams too, just so you know the rough layout of each page before you start coding them. Designing as you code can be a nightmare, esp. if you have to change the design half way through coding because you overlooked something (been there, done that :D ).

Post Posted: September 20th, 2006, 1:27 pm

There's nothing dynamic in your CSS so really there's no real reason to store it in the DB. I'd store the CSS in an external .css file, and if required dynamically, simply output the "<link href="..." .../>" tag to include it on the page.

Post Posted: September 20th, 2006, 1:24 pm

I'd say it's more popular than ever, what with all the Web2.0/AJAX webapps etc.

Post Posted: September 20th, 2006, 1:22 pm

It would seem that $result is not a valid result set. Are you sure you assign the result of the DB transaction to it?

Post Posted: September 20th, 2006, 1:18 pm

You can also try:
Code: [ Select ]
SELECT * FROM table_a, table_b WHERE table_a.project_id != table_b.project_id;
That won't return the desired results. For each row in table_a, this will return every row in table_b that doesn't match that particular instance in table_a. For example, say we h...

Post Posted: September 20th, 2006, 5:23 am

Try:

Code: [ Select ]
SELECT * FROM table_a a WHERE a.project_id NOT IN (SELECT project_id FROM table_b);

Post Posted: September 10th, 2006, 12:48 pm

Student loan! :lol:

Post Posted: September 10th, 2006, 12:44 pm

Yeah, SB's buying the rounds!

Post Posted: September 10th, 2006, 10:39 am

This page may help.

Post Posted: September 2nd, 2006, 12:06 pm

a1sapat wrote:
Yeh, for a second I thought I had gone to the wrong site.

BRING BACK THE OLD! out with the new. :-(

Pleeeeeeeeeeaaaaaaaaaaaaaaaase!


If you read the thread properly, you'll see that its already been stated that users can change back to the old theme. Its configurable in your profile.

Post Posted: September 1st, 2006, 1:13 am

You can always set it back to the old theme: click on the profile link (at the top) and select "smartDark" instead of "light" under the section "Board Style". Bigweb is keeping both so that people can choose which theme they would like to use.

Post Posted: August 31st, 2006, 3:11 am

Welcome to the world of Maccle! :D

Post Posted: August 30th, 2006, 2:44 am

Have you replaced your cigs with muffins?

Post Posted: August 25th, 2006, 2:00 am

It would be a lot easier to help you if you post the code relating to line 44 of "yaztest5.php".

Post Posted: August 25th, 2006, 1:59 am

Use the 'distinct' clause in your SQL - that will return unique results, i.e.:

Code: [ Select ]
SELECT DISTINCT `moo` FROM `foobar`ORDER BY `moo`

Post Posted: August 25th, 2006, 1:24 am

Is Windows ever worth it? Leopard on the other hand....

:D

Post Posted: August 24th, 2006, 2:26 pm

"questions" is an array which is filled by the "getQuestions()" function, therefore it should just be:

Code: [ Select ]
getQuestions();

Post Posted: August 24th, 2006, 8:51 am

1. Yup, its quite easy to make it more dynamic, provided your page will follow the convention of each radio button having a name beginning with "question". I've ammended my code to include this (posted below). 2. You need the for(j) loop to check all of the corresponding inputs for that qu...

Post Posted: August 23rd, 2006, 1:27 pm

Here's a little example I made up: [code]<html> <head> <script language="JavaScript"> function checkQuiz() { // Use an array containing the names of the questions asked. // This makes it extensible - if more questions added, add them to the array below va...

Post Posted: August 21st, 2006, 1:21 pm

Depends on your needs really. If all you want to do it copy a few files and make some directories, a simple batch script would do the job. If you want a little more interaction, you'll need something else. There is plenty of installation software out there, however there's nothing stopping you from ...

Post Posted: August 21st, 2006, 12:26 pm

Ars Technica have a story at the moment commenting on the fact that, in addition to being equipped out with all the necessary instruments of war, soldiers are also fully stocked up with all the latest consumer gadgets and gizmos. I personally don't see the problem in having MP3 players, video games,...

Post Posted: August 21st, 2006, 3:16 am

Excellent post roarmeow.

Post Posted: August 20th, 2006, 12:18 pm

Exactly what I thought of when reading that comment, lucassix!

Post Posted: August 20th, 2006, 2:12 am

I'm really getting sick of this propoganda BS northtexas. In Turkey its a law if they catch an offending thief to cut off the offending hand. This stupid post has been circulating over the internet and emails for at least as long as the snopes article lucasix posted indicated. I will state for the ...

Post Posted: August 17th, 2006, 6:40 am

Submit buttons aren't treated as image maps - inputs with type "image" are. If you used a normal "submit" type it wouldn't post the X & Y coordinates.

Post Posted: August 15th, 2006, 2:20 pm

Nearly, although it's simpler than that. Here's a quick example: [code]<html> <head> <script language="javascript"> function checkall(name, checked) { var elements = document.getElementsByName(name); for(var i=0; i<elements.length; i++&...

Post Posted: August 14th, 2006, 3:33 am

Read some Chomsky instead.

Post Posted: August 4th, 2006, 1:30 am

Well, in any .NET language, you can create a "Process" class to which you can supply a filename of a program to execute.

Here's a nice little article to get you started:

http://www.csharp-station.com/HowTo/ProcessStart.aspx

Post Posted: August 2nd, 2006, 11:52 am

Times & dates are generally represented in seconds since the UNIX epoch, or January 1st 1970.

http://en.wikipedia.org/wiki/Unix_time

Post Posted: July 31st, 2006, 1:01 pm

Sounds like someone needs to read some Descartes' meditations.

Post Posted: July 31st, 2006, 3:13 am

Works 1st time for me

Post Posted: July 30th, 2006, 6:20 am

Aha! Glad you got it sorted :)

Post Posted: July 29th, 2006, 1:04 am

joebert wrote:
Strange key that caps lock key, it's like it doesn't belong, but I'm afraid the universe would colapse around itself it was gone.


Exactly. What could it be replaced with? Would the left shift key become bigger, like the "Enter" key?

Post Posted: July 28th, 2006, 2:54 pm

Alternatively, any major linux distribution should provide you with the ability to install Apache, PHP, MySQL etc during installation.

Post Posted: July 28th, 2006, 2:46 pm

Yes, I agree, but I would say that's a little more than simply being bored. If you get to the stage where you're job is really bringing you down, affecting you adversely, or if you genuinely feel that your life would be better if you done something else, then by all means I'm all for quitting etc. A...

Post Posted: July 28th, 2006, 2:24 pm

Interesting: http://en.wikipedia.org/wiki/Caps_Lock

Post Posted: July 28th, 2006, 2:22 pm

What's fun about quitting a job? No money? A potential black mark on your CV? No thanks. I agree, if your job isn't working out for you, by all means find an alternative, however quitting on the sole basis that you are bored isn't very mature. Quitting on the basis that i am bored is the best justi...

Post Posted: July 28th, 2006, 2:16 pm

I think that is a fair assumption.

Post Posted: July 28th, 2006, 2:14 pm

Well, one could argue that I need a 50" High-def LCD TV.... :D

Post Posted: July 28th, 2006, 2:12 pm

With regards to C++, inline functions are blocks of code which are copied and included into the bytecode each time they are called. Calling a function can often incur an overhead in terms of time - using an inline function for small operations can reduce the time it takes to break out of the current...

Post Posted: July 28th, 2006, 1:57 pm

Go to amazon, type "PHP" into the search box and read through the descriptions and reviews. I'm sure you'll find a book to suit your needs.

Post Posted: July 28th, 2006, 1:55 pm

anyone knows the name of a good virus that i can install on my computer. i know that its stupid to be installing viruses on your computer but this time i have a good reason for that. hahahahahahahaha :arrow: ha OK tanxianzu, since nobody else asked, I'll ask the obvious question. What's the "g...

Post Posted: July 28th, 2006, 1:52 pm

What's fun about quitting a job? No money? A potential black mark on your CV? No thanks. I agree, if your job isn't working out for you, by all means find an alternative, however quitting on the sole basis that you are bored isn't very mature.

Post Posted: July 28th, 2006, 1:48 pm

Lol, in some ways, Joebert reminds me of Eric Cantona

Eric Cantona wrote:
When the seagulls... follow the trawler... it's because they think... sardines will be thrown into the sea

Post Posted: July 28th, 2006, 6:48 am

Something like this?: [code]<html> <head> <link id="stylesheetLink" rel="stylesheet" href="#" /> <script language="JavaScript"> var smallStylesheetLink = "small.css"; var normalStylesheetLink = "normal.css"; ...

Post Posted: July 28th, 2006, 5:17 am

Could you post a link so to see your code in action?

Post Posted: July 28th, 2006, 3:58 am

Try accessing the CSS height (assuming you set the height of the div using CSS in the first place, i.e. "height: 500px;" or such like): [code]var div = document.getElementById("mydiv"); var origHeight = parseInt(div.style.height); div.style.hei...

Post Posted: July 28th, 2006, 3:52 am

The fact that you have PHP on the page shouldn't matter - PHP is server side, and will already be processed before the page loads in the user's browser. Are you using Firefox? If so, install the Web Developer extension and use the JavaScript debugger to look for any obvious errors that could be caus...

Post Posted: July 25th, 2006, 12:06 pm

It would be helpful if you could post some of the code you're having problems with.

Post Posted: July 17th, 2006, 3:26 pm

Cool! It works! Nice job.

Post Posted: July 17th, 2006, 3:00 pm

Ah, forgot about that. Here's a fix: In the "doMouseMove" function, replace:
Code: [ Select ]
crop_x_input.value = moveToX; crop_y_input.value = moveToY;
With: [code]crop_x_input.value = moveToX - getElementX(frame); crop_y_input.value = moveToY - getElementY(frame...

Post Posted: July 17th, 2006, 1:40 pm

lol, cheers. Will be interesting to see if you get it up and running with the PHP.

Post Posted: July 17th, 2006, 1:34 pm

Depends if you can answer my other question How do I change the size of the red crop box. sos, been working all day, and in this heat, I am going blind Change these values: [code]<input type="hidden" id="crop_width" name="crop_width" value="500" /> <...

Post Posted: July 17th, 2006, 1:26 pm

Actually, the fix is quite easy, IE needs the explicit "event" reference: Instead of this: [code]function getMouseX(e) { if(document.all) { // if MS IE return e.clientX + document.body.scrollLeft; } else { return e.pageX; } }...

Post Posted: July 17th, 2006, 1:03 pm

ilyawizard wrote:
Cool stuff here, I knew it could be done in clent side scripting. Pitty I'm no profecient enough in client side scripting. It seems it doesn't work in my IE, although it works perfect in FF. Anyway to fix this?


Probably. I'd have to go through it in IE, which I can't at the mo (running Linux).

Post Posted: July 17th, 2006, 12:54 pm

Pah! What you want is a mouse-movable selection box! Now, I've knocked up a quick demo (don't say I'm not good to you!). Here's the code: [code]<html> <head> <style type="text/css"> div#framediv { margin: 0 auto; border: 1px solid black; background-color:...

Post Posted: July 16th, 2006, 12:56 pm

The MSN Messenger user ID is shown on the profile page (if entered) - just underneath the avatar/name.

Post Posted: July 16th, 2006, 8:50 am

"Decentralized network-based software: The change in paradigm from desktop to browser". Discuss how software has seemingly evolved from desktop-based applications to web-based applications, i.e. Google Calendar, Google Spreadsheets etc. Contrast to the early days of computing where a centr...

Post Posted: July 13th, 2006, 11:29 am

I always write my own. If I'm stuck for how to do something, I'll search around on the internet, but rarely will I download a script and modify it. I hate the auto generated stuff from the like of Dreamweaver (and not just JavaScript either).

Post Posted: July 12th, 2006, 4:13 am

For associating file extensions with applications, there's a specific branch of the registry for this, to which you'll have to add a key that associates the extension with your app. I forget the proper path of the branch (and I'm on mac at the mo so I can't check), but you should be able to find it ...

Post Posted: July 12th, 2006, 1:20 am

Write your own installer! I recently wrote my own using C#. C#'s library contains a lot of support for editing the registry, and it's quite easy to do.

Post Posted: July 8th, 2006, 6:21 am

Sounds like homework to me, which we will not do for you here at Ozzu. What I will say is that what your asking is actually quite easy - a read over of your course notes, or any web tutorial on Java should introduce you to those basic topics from the offset.

Post Posted: July 7th, 2006, 12:55 pm

Sorry to resurrect this old thread, but I dug this up while searching for the other video I posted earlier in this thread (canon in D, by JerryC). Anywho, this kid has covered it, and he's even better! ANTO - if you liked the first version, wait til you see this kid play! http://video.google.com/vid...

Post Posted: July 7th, 2006, 7:31 am

lol, no matter which two numbers you choose, you always end up with a multiple of 9. All the multiples of 9 all have the same symbol, so it will always guess the right symbol.

Post Posted: July 7th, 2006, 2:46 am

And some toilet humor too (quite literally) Someone forwarded me this link. It is quite amusing, if not for the singing in the background and sound effects. Push the red button at the bottom right a few times. If things get a bit messy, click and drag the chain to flush. As I say, a little surreal, ...

Post Posted: July 6th, 2006, 12:35 pm

I would guess that perhaps the SqlConnection objects aren't being closed properly. Do you explicitly call the "close()" method on your connections after you've finished with them? From the docs: If the SqlConnection goes out of scope, it is not closed. Therefore, unless you have placed you...

Post Posted: July 6th, 2006, 7:47 am

There is a similar extension for Firefox and Thunderbird, clicky.

I used to make extensive use of them at my old work. I only just remembered I had then installed on my Powerbook when I seen this topic :)

Post Posted: July 6th, 2006, 5:25 am

joebert wrote:
Interesting onlyican, I've seen JS being used as shorthand for Javascript, never JSP though.

I've only ever seen JSP associated with Java Server Pages when the word Java is involved.


Indeed, JSP almost exclusively refers to Java Server Pages, which are quite distinct from JavaScript.

Post Posted: July 5th, 2006, 3:32 pm

Everything that derives from the JComponent class has the "getBounds" method available to it. "getBounds()" returns a Rectangle object, from which you can determine the components X and Y pixel locations. Similarly, all JComponents also have the getSize() method available, which ...

Post Posted: July 5th, 2006, 2:57 am

Never heard of "Mind of Mencia". I have no problem with say people that are less privileged than others getting priority, it is when a specific race has priority over another race. I know some might argue that things are alot better for Christians than they are for Muslims, yet one might ...

Post Posted: July 4th, 2006, 7:59 am

Looking through the phpBB code, it seems like you want to edit the index_body.tpl file. The code used to display who is online is near the bottom: [code]<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr>...

Post Posted: June 29th, 2006, 3:17 pm

david murphy wrote:
It's not a beer. It was a show bout a little girl from the streets living with a old man who she didn't know.


I know. I said it sounds like it should be a beer.

Post Posted: June 29th, 2006, 3:00 pm

Punky Brewster?! Sounds like a brand of beer.

Post Posted: June 29th, 2006, 2:56 pm

I have the Ozzu RSS feed on my Google home page.

Post Posted: June 29th, 2006, 2:52 pm

It was once subcategorized like mad, but was, on the whole, unnecessary and confusing.

Post Posted: June 29th, 2006, 2:51 pm

Would be good if Germany won it, although I'd settle for anyone except En-ger-land winning :D

Post Posted: June 29th, 2006, 2:48 pm

Shh Netmaster! I was actually in the middle of typing a reply confessing how i had misread the story on the BBC Site and then thought to myself "maybe nobody will notice?" so i stopped typing the thread and pretended your reply was a "Aww, what a shame. Poor dog!". I was obvious...

Post Posted: June 29th, 2006, 2:47 pm

Tsssssssssss, the above is nothing, You absolutly have to see the french one here, I'm pretty proud 8) http://www.football365.fr/cdm2006/story_123272_Les-plus-belles-filles-du-Mondial.shtml Wow, she's pretty hot for a French chick! Lol :D just joking! Maybe Melissa Theuriau should h...

Post Posted: June 29th, 2006, 11:17 am

Any specifics on the runtime error?

// EDIT: Additionally, http://www.connectionstrings.com seems to suggest that Trusted_Connection takes true/false as input for this format of connection string rather than yes/no. I may be wrong, but it might be worth a shot.

Post Posted: June 29th, 2006, 4:17 am

Didn't you get the XCode software with your mac? It should be on the software disc that came with it. Other than that, Eclipse runs on Mac, and that has a plug in module for developing C++. XCode and Eclipse seem to be the standard editors for C++ on Mac.

Post Posted: June 28th, 2006, 8:53 am

Eddie was in cheers? I never knew that! RIP Eddie!

Post Posted: June 27th, 2006, 2:22 am

.= continues naming a variable That isn't very clear, and isn't entirely correct. Although the '.=' notation may produce the results you described, the correct definition is that it appends a string to a variable, as stated by redduck666. Also note that if the '.=' notation is used with non-string ...

Post Posted: June 26th, 2006, 1:23 pm

Poor kids tho - he doesn't believe in passing estate's through generations, so his kids will hardly see any of his fortune. Now why can't that happen with Ms Hilton? :)

Post Posted: June 26th, 2006, 11:48 am

Actually, thats not the problem at all. The real problem is that, when using classes in PHP, you have to use the "$this->" notation before making a call to a function within that class, or to a class variable, i.e.:

PHP Code: [ Select ]
$days = $days + $this->daysInMonth($months);

Post Posted: June 26th, 2006, 5:57 am

Perhaps your classpath is wrong. Are you trying to run it using the correct command (i.e. java MyAppName)?

Post Posted: June 25th, 2006, 11:16 am

Switch to Orange. They're giving away free broadband with new contracts.

Post Posted: June 22nd, 2006, 2:27 pm

Hmm I got great news too, I was injured yesterday while I was doing yard work, practically ripped off my big toenail. I bent it back and now its better, but it was kind of scary to look at with half of it bent backwards and all bloody. That might have been a bit too descriptive. Hope your sprain wa...

Post Posted: June 16th, 2006, 12:57 am

Well, if that's the full code of your MySQL class, the problem is that you don't have a 'Framework' variable defined. You should have a class variable $Framework, and possibly a constructor for the MySQL class that sets up the Framework variable. i.e.: [php]<?php class MySQL { var $Framework; fun...

Post Posted: June 16th, 2006, 12:52 am

The problem is that you're working out the answer before you've actually assigned any values to the input. Thus, you're just using whatever junk values were floating about memory. Try this instead: [code]#include <iostream> #include <string> #include <cstdio> using namespace std; i...

Post Posted: June 15th, 2006, 4:40 am

You could use "in_array": [php]<?php $badwords = array("casino","*peach*","*plum*","bitch","ass","lottery","viagra","viagara"); if(in_array($_POST["comment"], $badwords)) { // do your error stuff h...

Post Posted: June 12th, 2006, 2:51 pm

You could always add a querystring to the image URL, passing a unique value (i.e. a timestamp). The querystring part of the URL will be ignored, however a dynamic value will ensure that the browser obtains the picture from the server rather than the cache. For instance: [code]<img src="my_jp...

Post Posted: June 11th, 2006, 11:49 am

ASP doesn't refer to any specific language - ASP pages can be written in VBScript (a derivative of Visual Basic) or JScript (MS own JavaScript-like language). There's a big difference between a language like PHP and C#. For starters, C# is a fullly featured object-oriented language containing a lot ...

Post Posted: June 11th, 2006, 10:05 am

Learn C# - it was designed specifically for the .NET framework, and it will stand you in good stead for learning other languages like C++ and Java.

Post Posted: June 9th, 2006, 5:28 am

Doesn't work - only getting the sound, no video.

Post Posted: June 9th, 2006, 1:12 am

You won't be able to do it from the webpage as such - you could make the system call from PHP or Perl etc, but not from a plain HTML file. To execute system commands from PHP, use the exec() function:
PHP Code: [ Select ]
<?php exec("lpr -P -S file.ps"); ?>
Or enclose the command in backticks,...

Post Posted: June 8th, 2006, 1:10 pm

but you can in Cpanel Once you have created a username, and a db, and connected them you can do pretty much everything else using code (PHP) or a local MySQL query system (MySQL - Front) viveknarula has made no mention whatsoever of having CPanel installed (not all hosts come with CPanel y'know). P...

Post Posted: June 8th, 2006, 12:55 pm

Misread the question. Well, if viveknarula does have full access to the server, the SQL to create a new DB is easy:
PHP Code: [ Select ]
$sql = "CREATE DATABASE `my_db_name`"; mysql_query($sql); // now select the newly created DB $sql = "USE `my_db_name`"; mysql_query($sql);
As onlyican s...

Post Posted: June 8th, 2006, 12:46 pm

I say Miami too, only due to the fact that I've never seen the Dallas team play (don't even know their full name). Also, I'm pretty sure Shaq plays for the Heat, no?

Post Posted: June 8th, 2006, 12:43 pm

Well, not really. The part of the site that most people see is HTML and CSS. That's the easy part. Most sites these days probably have some element of server-side scripting generating the HTML dynamically, whether it be ASP, PHP or Perl.

Post Posted: June 8th, 2006, 12:41 pm

I take it you can connect to your MySQL server from your localhost? If so, you'll probably want something like this: [php]<?php mysql_connect($remote_host_ip, $username, $password); $sql = "CREATE TABLE `my_table` ( `id` INT AUTO_INCREMENT, `field1` VARCHAR(20), `field2` VARCHAR(40), `field3...

Post Posted: June 8th, 2006, 12:32 pm

Simple - learn the things you need to know. There's no point learning Java if you won't ever use it. If you need to write webpages, learn HTML and CSS. Want to make your site more interesting with some dynamic HTML? Throw in a little JavaScript. Think about what you want your website to do, then thi...

Post Posted: June 8th, 2006, 12:25 pm

I don't know many universities that run straight web-design degrees. Perhaps a college would be more suitable for that kind of thing. My degrees both had a degree of web design involved, although I chose to study more Software Engineering classes, I did have the option to take classes that focused m...

Post Posted: June 8th, 2006, 9:32 am

When I posted last time, I was running XP. I'm currently running Debian, PHP version 5.1.2, and I thought I'd give your script a go again. Now that I'm on linux, I am receiving the error- [code]Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in /h...

Post Posted: June 8th, 2006, 5:23 am

Well, the code in the ASPX file won't be affected by the browser, as that will be executed on the server side. I take it you're having a problem with some JavaScript or CSS (or both). It would be helpful if you posted the code that you're having a problem with.

Post Posted: June 8th, 2006, 4:25 am

At what?

Post Posted: June 7th, 2006, 1:46 pm

Works on my machine just fine - page loads in a few seconds, last number printed is 89999 and 'TEST' is shown underneath.

Post Posted: June 7th, 2006, 11:35 am

I've been trying to set the height of a div with Javascript, but it doesn't seem to be working in Mozilla. This is what I have for the if statement that Mozilla matches, where height is the height that the div should set to and span is the div. Am I doing this the correct way? [code]else if(doc...

Post Posted: June 7th, 2006, 5:16 am

It's just a basic marquee, nothing brilliant ;) Here's code I used: <div align="center"><FONT color="7FFF00#" size="+1"><MARQUEE bgcolor="#000000" direction="left" loop="20" width="100%"><STRONG> Text was ...

Post Posted: June 7th, 2006, 2:11 am

Well, good coding would be to only call it on the pages that you're using a database connection. Anything else would just introduce redundancy.

Post Posted: June 7th, 2006, 1:39 am

It's more likely that you have a mistake in your CSS, or whatever you're using to colour the text. It would be helpful if you posted your code.

Post Posted: June 6th, 2006, 3:12 pm

LOL! I've been looking for a solution for a while but i guess there is no hope, until at least a new release of FF. Slightly arrogant to assume that the problem lies with Firefox, and not your code. The fact that something works in IE doesn't necessarily mean the code is right. There's actually a ve...

Post Posted: June 6th, 2006, 2:59 pm

When will people learn. MySQL or MSQL if MySQL http://www.devshed.com/c/a/MySQL/MySQL-Table-Joins/ Joining isn't necessarily linking, onlyican. louve_vix may be asking how to actually link the tables together, i.e. using foreign keys . If that's that's the case, add the "FOREIGN KEY" cons...

Post Posted: June 6th, 2006, 1:09 pm

Oct is shorthand for Octal, which is base-8. Dec is short for Decimal. 31 Octal = (3*8 )+1 which is equal to 25 Decimal.
Haven't you covered different bases in computing at school?

Post Posted: June 6th, 2006, 12:33 pm

a good way to make it would be to make more than one stylesheet with different names then use cookies and pull the cookies in with the rel="" in order for it to catch the correct stylesheet, doign it this way will make it compatable on all browsers, many browsers fail to work with some ja...

Post Posted: June 6th, 2006, 12:17 pm

thanks for your reply b is the actual css style declaration object if i do this b.left=255; b.top=255; alert(b.top); IE says : 255px FF says : 0px Ah, wasn't very clear from the code you posted. With firefox, you may have to specify the units concatenated onto the value, i.e.: [code]b.left = 25...

Post Posted: June 6th, 2006, 12:14 pm

Well, if you still want to call it, it shouldn't do any harm, as all it will do is return false and potentially output a warning to the screen. Try it:
PHP Code: [ Select ]
<?php mysql_close(); ?>
This outputs:
Code: [ Select ]
Warning: mysql_close(): no MySQL-Link resource supplied
If you d...

Post Posted: June 6th, 2006, 12:07 pm

Try b.style.left and b.style.top respectively.

Post Posted: June 6th, 2006, 12:02 pm

As the documentation states: Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution. http://www.php.net/manual/en/function.mysql-close.php Having a connection to your DB on each page shouldn't be that detrimental to you...

Post Posted: June 5th, 2006, 5:23 am

My girlfriend is cheering USA too, as she drew them in the pool they have at her work.

Post Posted: June 5th, 2006, 4:07 am

I'm sick of hearing about the world cup. The way the media goes on about it over here you'd think that England has already won.

Post Posted: June 4th, 2006, 5:58 am

Wikipedia has quite an extensive page describing XML and its various uses etc - http://en.wikipedia.org/wiki/XML To answer your questions: 1. The purpose of XML is to introduce a standard way to store and share information. Anyone wishing to store/share data could quite easily introduce their own ar...

Post Posted: June 2nd, 2006, 3:22 pm

Hmm. Seems awfully like homework to me, which is against the rules. The comments left so far should be more than enough to get you started.

// Locked

Post Posted: June 2nd, 2006, 3:18 pm

I'm not sure I understand what you're trying to say.
Even if a variable contains an empty string, it's value has still been set (i.e. it has the value of an empty string). Isset() only tests whether the variable has been set, not whether it contains an empty string or not.

Post Posted: June 2nd, 2006, 4:06 am

Hmm. I'm going to petition Bigweb to create an even darker theme! The people demand monochrome! *adjusts his monitor's brightness settings to make Ozzu even darker*

Post Posted: June 1st, 2006, 2:54 pm

What I did when I left my old job was to document the actual code with comments, then write higher-level "user manuals" (so to speak) that outlined the main functionality of the system, highlighted important algorithms, and generally noted any other things that were significant enough to w...

Post Posted: June 1st, 2006, 2:49 pm

Each case is like a new page, I treat them like that. If each case statement prints out a new page, why not split each separate page into it's own file, then use the switch statement to include the appropriate file?, i.e.: [php]switch($action) { case 'foo': include('foo.php'); break; case 'bar': in...

Post Posted: June 1st, 2006, 1:13 pm

You really should try and make your code more modular. Break up the main functionality into classes and functions - you don't have to do everything in one PHP file! I can't envisage any reason to have a 300 line switch statement. You're just asking for debugging hell.

Post Posted: May 31st, 2006, 12:43 pm

Edinburgh (well, Scotland) has been smoke free for a few months now, and the change is refreshing. It's nice to be able to go into a pub and leave without smelling of smoke.

Post Posted: May 29th, 2006, 11:15 am

Those mad ruskies!

Post Posted: May 29th, 2006, 2:53 am

VB is generally regarded as a simple programming language as it lacks a lot of the features normally found in some of the other popular languages, i.e. threading, inheritance, error handling etc. I'm guessing that any serious game development would need to take advantage of these facilities at some ...

Post Posted: May 29th, 2006, 1:54 am

The problem is you have two sets of normal brackets open, and only close one:
Code: [ Select ]
if( preg_match("/\W$word\W/",$word) { $denied++; }
Should be: [code]if( preg_match("/\W$word\W/",$word)) { // missing close bracket on this line $...

Post Posted: May 28th, 2006, 10:08 am

I have exactly the same trouble. Checking for the presence of certain words may not always work. For instance, if you want to block messages with the word 'ass' in them, it may also block messages that have non-profane words, i.e. 'assemble', or any other word containing the sequence 'ass'. Another ...

Post Posted: May 27th, 2006, 8:18 am

Actually, aMSN does have it's uses - it has the MSN "nudge" feature, and what's more, there is no time limit between nudges, so you can annoy the hell out of your friends running MSN on windows! :twisted:

Post Posted: May 26th, 2006, 12:11 pm

Can't understand why they would want to produce standard compliant code - IE doesn't conform to CSS, HTML or JavaScript standards (at the mo anyway).

Post Posted: May 25th, 2006, 3:33 pm

Sleeping is cheating - coffee is your friend! :D :lol:

Post Posted: May 25th, 2006, 3:12 pm

true true ASP (Dont bother learning now) PHP and cough(.NET) are website languages. C++, Java and a couple of Programming Languages Whats yoru goal? It may be worth noting that PHP doesn't have to be used strictly as a web scripting language - I recently wrote a few command line Linux scripts in PH...

Post Posted: May 25th, 2006, 2:47 pm

Now pRoDiEuS hasn't specifically said he wants to learn the basics of web programming (or scripting), i.e. PHP and such like. If you're looking to learn about programming in general, I'd recommend finding some good, extensive tutorials on either C++ or Java - you'll learn about programming in an obj...

Post Posted: May 22nd, 2006, 3:44 pm

Well, you finally got to 15000! Congrats man, here's to the next 15000! :D

Post Posted: May 22nd, 2006, 11:22 am

They imploded the old Boardwalk hotel/casino on the night we arrived in Vegas. Our hotel wasn't too far away, but we were that tired from all the travelling that we never heard a thing and slept right through it. Would have been cool to see it though.

Post Posted: May 20th, 2006, 12:14 pm

I take it MS will retain the domain name? Or at least charge you for it if you seek other hosting?

Post Posted: May 19th, 2006, 10:53 am

Indeed, RD is correct - implode doesn't need to know how big an array is, only the string to join the elements with and the array itself: http://uk.php.net/manual/en/function.implode.php Additionally, the reason your code wasn't working in the first place, i.e.: [php]<?php $email = "$foo[0] ...

Post Posted: May 18th, 2006, 3:05 am

Alfa Romeos have terrible depreciation rates. You'd be as well giving your money away.

Post Posted: May 6th, 2006, 4:19 am

Java compiles to bytecode (in order for it to remain platform independant), and so won't compile directly to a binary file (i.e. an 'exe'). The whole point in Java is that the same bytecode will run on any OS, provided that each OS has an implementation of the Java Virtual Machine. I think there are...

Post Posted: May 6th, 2006, 1:45 am

If you look at the Java API (http://java.sun.com/j2se/1.5.0/docs/api/) for the class "Scanner", the "nextInt" function throws a number of Exceptions, which, if you want to provide robust error handling, must be caught. To catch an exception, you would enclose the section of code ...

Post Posted: May 3rd, 2006, 1:11 pm

Haha, quality!

Post Posted: May 3rd, 2006, 1:23 am

Ah, and old fashion "call-out" huh? Well, thats me all signed up. Bring it on!

Post Posted: May 2nd, 2006, 2:38 pm

Ah brother, you're so behind the times! It's just starting here in the UK but I've already seen all of the series 2 episodes that have been shown in the US. Next one airs on the 4th apparantly! Can't wait - series 2 has been much better than series 1 IMHO.

Post Posted: May 2nd, 2006, 11:59 am

Suddenly the land of the free doesn't seem so free.

Post Posted: May 1st, 2006, 1:31 pm

Fraid so - RD fell victim just prior to you.

//EDIT: In fact, you have RD to thank for nominating you in the first place! :D

Post Posted: April 29th, 2006, 6:36 am

I highly recommend jEdit. It's a programmer's text editor written entirely in Java, and it's also free. I think you can install a plugin to enable it to directly compile Java files, but don't quote me on that.
The jEdit site is:
http://www.jedit.org
  • Sort by
 
 

© 1998-2016. Ozzu® is a registered trademark of Unmelted, LLC.