cwarn23 387 Occupation: Genius Team Colleague Featured Poster

At the moment I'm sick with a minor code and have been coughing all week. The most common thing I can think of when your sick is to do the dodo instant broadband in the loo at fast speeds and hope theres no rebound. I got rebound once.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hi, I am trying to set up a cron job to load up an application on my server every two hours. I have the following code which works successfully from the terminal but does not run from cron even though it is running as the same user and I have even tried giving the user root privalages on the cron job. Below is my bash file "minecraft.sh"

#!/bin/bash/
cd /home/minecraft
java -Xincgc -Xmx2250M -jar craftbukkit-1.0.1-R1.jar

Then in the cron job just like in the terminal I use the following command.

bash /home/minecraft/minecraft.sh

Can somebody please help me solve this as it is annoying the hell out of me as this is a really big problem for me. Anybody know what might be happening? Thanks.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Great video AD, except for those comments made by those who have never used a Mac before.

jwenting commented: troll +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Then try opening apache_start.bat and see if there are any error messages. If there are then post them here or if there are not then you might want to reinstall xampp. To keep the mysql data you simply copy the directory xampp\mysql

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I've just worked out when I need to give the user a link to my site I'll simply give them a google link as I have just demonstrated. Then google sends them to my site. Since I'm not affiliated with google then let google list only one result with that weird search term and let the user click that result to go to my site. All good? :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Did you try and single click on the start button for apache so that it becomes green? Does it stay green? If not then you may need to look both in services and processes for the item named "apache" or possibly "httpd" and end task to it then back in xampp single click the start button.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I would send you a video about jQuery but I'm not allowed according to happygeek so I can't answer that question for now.

happygeek commented: yawn -3
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Do you have cookies enabled because having cookies disabled will disable sessions. If you want to know how to use sessions with cookies disabled then click here.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

To solve this problem simply delete the session_register() function wherever you have used it and also at the top of each page (on line 1) place the following.

<?php session_start();

That should solve it.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Do you mean like the following:

<?php
$error='';
if (isset($_POST) && !empty($_POST)) {
if ($_POST['name']=='') {
$error = 'Name cannot be empty.<br />';
}
if ($error=='') {
//insert into mysql
}
}
?>
<form method="POST" action="">
<?php echo $error; ?>
<input type="text" name="name" />
<input type="submit" value="Send" />
</form>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

@cwarn ....Yep it's Solved for now

Then can you please click the solved link at the bottom of the page near the reply box. Thank you. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

How did this make it into the so called "quality tutorials section"?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

OMG Who's next? Dani? Please tell me your in good health dani! :( RIP

Don't tell me it's RIP dani now :( It's been over 24 hours and no response.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

So answer is yes, are we solved? :)

Good one. Are we solved yet? Are we solved yet?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

didn't see appache process in task manager..

It should be under services in the task manager

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

PHP can only read its native language.

<?php

$numberArray = array();

for ($i = 1‎; $i < 31; $i++)
{
  $numberArray[] = $i;
 } 
  for ($i = 0; $i < sizeof($numberArray); $i++) {
         echo $numberArray[$i]."<br />";
	}
?>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Looks like you need to mark the thread solved

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

you meant xampp-control.exe in step 2?

yes indeed. They call it different names in different versions.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Then I conclude that your users are double posting via redirect (design flaw). This will probably be my last post unless there is a reply in the next 12 hours as I will be away from keyboard for 4 days (due to medical reasons) and hopefully will be back better than before. Try the following. I had this problem half a decade ago until I solved it and due to a habit never had it again.

<?php
//Define Parameters
$DBhost = "localhost";
$DBuser = "bdna";
$DBpass="2010";
$DBname="bdna";
$table="trails";

//connect to DB
$con = mysql_connect($DBhost,$DBuser,$DBpass);
if(!$con) { die('Could not connect to database: ' . mysql_error()); }

//Select Database
mysql_select_db("$DBname") or die("Unable to select database $DBname");
if (isset($_POST) && !empty($_POST)) {
foreach ($_POST AS $key=>$value) {
if (!is_array($value)) {
    $_POST[$key]=mysql_real_escape_string($value);
    }
}
//Insert Data Into MYSQL
$sql="INSERT INTO $table (id, Name, Address, Suburb, Postcode, HomePhone, Mobile, DateofBirth, AgeNextYear, VNA, Email, ParentMobile, Club, AgeGroup, Position1, Position2) VALUES(' ','{$_POST['Name']}','{$_POST['Address']}','{$_POST['Suburb']}','{$_POST['Postcode']}','{$_POST['Phone']}','{$_POST['Mobile']}','{$_POST['dobd']}/{$_POST['dobm']}/{$_POST['doby']}','{$_POST['nextage']}','{$_POST['VNA']}','{$_POST['email']}','{$_POST['parentM']}','{$_POST['Club']}','{$_POST['age']}','{$_POST['pref1']}','{$_POST['pref2']}')";

//Executes
if(!mysql_query($sql))
{
	die('Error: ' . mysql_error());
}
//Close Connection
mysql_close($con)
}
?>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
$name=mysql_real_escape_string($_GET['name']);
$r=mysql_query('SELECT * FROM `table` WHERE `column1`="'.$name'" OR  `column2`="'.$name'" OR  `column3`="'.$name'" OR  `column4`="'.$name'" OR  `column5`="'.$name'" OR  `column6`="'.$name'" OR  `column7`="'.$name'" OR  `column8`="'.$name'" OR  `column9`="'.$name'" OR  `column10`="'.$name'" OR  `column11`="'.$name'" OR  `column12`="'.$name'" OR  `column13`="'.$name'" OR  `column14`="'.$name'" OR  `column15`="'.$name'"') or die(mysql_error());

if (mysql_num_rows($r)>0) {
//it exists
$row=mysql_fetch_assoc($r);
echo '<xmp>'; print_r($row); echo '</xmp>';
} else {
echo 'No results found.';
}
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

What happened to Mosaic. Is the web still compatible with Mosaic? I tried installing Mosaic on XP once but it kept on crashing on me so I gave up but now that I think about it I could run Mosaic on Windows 95 in a Virtual Box. I wonder what the web will look like. :)

This means, Mozila firefox is best browser.

All browsers except Opera are based on Mosaic source code so what does that tell you :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Your program is not related to del command, but permissions. Windows 7 doesn't all you to delete files from c:\windows and c:\Program Files folders for security reasons. That doesn't make del a deprecated command.

Working with a folder that you have created yourself and have permissions, to delete all the files in that folder and all sub-folders del /S /Q *.* Now if you want to also remove all the folders rmdir /Q /S <parent folder name> To get online help with these commands del /?

Thankyou. I shall make another youtube clip that features these commands. I wonder what the following will do?

C:> del /S /Q *.*

Or if that won't work is there a way to force windows core files to be deleted to mess up the system?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hi, I have a 3d model (.obj) with 3 textures applied to it and it consists of just over 96,000 vertices. But I want to be able to put it into a gaming engine which is limited to 65536 vertices. I have discovered a loop hole in the gaming engine where the number of vertices that the game can process is only how many vertices are assigned to a single texture. So basically I need every texture to have less than 65536 vertices assigned to it which currently is not the case. Can somebody recommend to me a program that will convert my obj model to another obj model with many more textures but the new textures have less than 65536 vertices attached to each texture in the model?

Thankyou
cwarn23

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Rest In Bits Steve,
Now that Steve is out of the way, there is nothing stopping Microsoft taking over Apple. ;)

pseudorandom21 commented: =D We would all love that ! +0
jingda commented: Nope, you are wrong:) +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

It's obviously a joke. :icon_rolleyes:

No, Assembly is only effective on linux because in Windows, Assembly is normally compiled in high/medium level languages such as C which are then written in the low level language of Assembly which then brings the following family tree.\

Punch cards
to
Assembly
to
BCPL/Bon
to
B
to
C
to
Assembly & C++
           from C++ to Assembly again

As you can see there is a wide variety of ways Assembly can be written but there is only one true way and that is via Punch cards. And unfortunately Assembly on windows is not written in punch cards but rather in C and/or C++. However Assembly on Linux/Unix is written in Punch cards dating back to the days of the origin of Unix. Believe it or not Windows origin is Basic. Not Visual Basic but just plain Basic which is another medium/high level language there by slowing down performance unlike Linux which has Assembly and C. So because Unix was originally written in the low level language Assembly which was designed by punch cards along with its preprocessor C, that is what makes Linux & Unix the only operating systems capable of executing Assembly code effectively.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

You also didn't assign the class correctly. Try replacing with the following.

$user=new Connect(); //add the two brackets
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

But hey, money does grow on trees. It's called weed. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

My windows is Vista Ultimate.

That is probably why. Microsoft nolonger supports windows Vista and as far as I'm aware Microsoft never did support Windows Vista. So upgrade to Windows 7 or at the very least download linux from your local internet hub. WindowsVista==WindowsME.
For all we know Internet Explorer might not be compatible with Windows Vista.

jholland1964 commented: 100% Inaccurate information. Poster needs to check his facts -2
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Found a more accurate ratio to get pie.
355622/113198 = 3.14159260764
Pi value from above = 3.1415926
I'm such a genius.

Sriman_Laxmi commented: Ridiculous +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

My superstitious beliefs include the US government have a top secret Stargate program to travel distant worlds via a device called a "Stargate" made by the Ancients. Then they wrote a movie about it so no body would suspect it.
Another is if you stop dreaming of a night then your future isn't that bright. Then there is the more you cut your fingernails the shorter your fingers become.
At least that's what I think "superstitious" means.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I got a joke that is more of a prank which I accidentally did as I forgot my name. This is how it goes. You ring up a local business you know and have talked to before than they ask who is it? So you answer "It's me.". Then they'll say who? You then reply "me". They might ask how do you spell your name. So you spell "m, e.". Then they say "ok me what do you want?" and the person behind them on the phone looks at them like if the person is talking to himself/herself. So then you can say I want to speak to the worker named Bill. Well use a name of a worker that is there. Then they will shout out to back "hey Bill, there is a me on the phone for you." Bill might ask who is it. And the agent would reply "me. Not as in myself but a person called me". True story but funny joke.

jephthah commented: is not teh funnay. +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Computer multitasking is the apparent simultaneous performance of two or more tasks by a computer's central processing unit.
<<snip>>

I agree with you there although this post will probably attract negative votes. Multitasking is basically when an operating system eg. windoze has multiple tasks running and the tasks windoze has running are objects which are programs. So for example with windoze you can run 20 programs/objects/tasks all at the same time sharing the same cpu. This term is more commonly known as multi-threading. An example of a computer which does not use multi-threading or multitasking is the Apple ipad (Equivalent to the Microsoft Tablet). So in the Apple ipad which does not use multi-threading, you can listen to music but do nothing but listen to music or write a book but do nothing but write the book. This is single tasking where every program or object requires all of the systems recourses even if it only really needs 0.001% of the recourses/cpu.

Rashakil Fol commented: windoze -1
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

So I came back home and checked my emails then found my usual google alerts. One google says - "What does the P in PHP stand for". So I click the link and it says Pink - According to Barbie Nerd. Now who would ever think of such a crazy idea for PHP. lol Still laughing as I write this article lol. Did anyone here expect Nerd Barbie to say "the P in PHP is short for Pink"?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I used to use Firefox previously now I like the lightweight Google Chrome. But it is true that firefox has some best add-ons xmarks,download manager and Adblock plus so in my opinon yes it is the best one around.

Also I will add on top of that it is possible to use the Firefox adblock on Opera simply by exporting it's block list as a .txt file and add those blocked url matches (with wild cards being * ) into Operas url blocking system. And of course you can make exceptions so that the ads on your favourate sites (eg. daniweb) can still appear at your option. To do that simply delete certain entries.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

When you remember this thread just like myself. The good old days.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Anybody?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Here is the basic code.

<?php
if (!empty($_GET['a']) && !empty($_GET['b']) && !empty($_GET['c'])) {
    $result=(int) $_GET['a']+ (int) $_GET['b'] - (int) $_GET['c'];
    echo 'Answer: '.$result;
}
?>
<form method="GET">
Total: <input type="text" name="a"><br>
Add: <input type="text" name="b"><br>
Minus: <input type="text" name="c"><br>
<input type="submit" value="Calculate">
</form>

Also you may want to read up on a few php tutorials. The link in my signature contains some useful tutorials.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Wonder how large "they could have infinite numbers" is?

Well the size of the number is only limited to your cpu with the bcmath library. So for example the average cpu could multiply two numbers totaling to 1,000,000,000 digits. That is a lot better than 32/64 bit numbers. I am also working on my own c++ math library for infinite sized numbers such as pi.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

$year=floor($time/([B][I][U]360.25[/U][/I][/B]*24*60*60)); If you're going to be Captain Smartguy, you ought to have your numbers correct at the very least.

The reason why I had 360.25 is because every 4 years don't we get an extra day? So that would mean the average year would have 360.25 days or in your opinion how many days are there in the average year factoring in leap years?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

No. Its 2010, build a bridge, get over it.

Still 2009 for another 2 hours 15 minutes here but how did they determine the year in the first place. Surely at some point somebody forgot what the date and made a guess. How do we know for sure that everybody has been counting it correctly. What about leap years and all of that which scientists are complaining about saying we should have a leap minute...

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I have done some calculations and found that us humans have been counting leap years wrong in the past whatever years. It is not the year 2010 but instead 2509. The proof - check out the below php script which should display 2009 using timestamp ratios but instead displays a time in the future.

<?php
$time=mktime(0,0,0,1,1,2020);
$ratio=1980/40;
$time=$ratio*$time;
$year=floor($time/(360.25*24*60*60));
echo $year;
?>

So what are your opinions on this. I believe history is wrong and somebody has forgotten to add those leap years. Enjoy...;)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

The countdown is on until time 1262257200 seconds from 1980 GMT+13. That's how I read time. Hope everybody enjoyed their christmass holidays and that last years resolutions came true.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Post 66 - You (at least at one point) had a theory that Pi didn't exist that got "slaughtered", so apparently your views very recently changed. Here's what I believe regarding pi:

  1. It exists.
  2. It's irrational.
  3. Its length is infinite (see point 2 above).
  4. It's equal to 3.14159...
  5. None of the points above will change in the slightest if we discover that atoms, molecules, pixels, quarks, etc. are a different shape than we thought they were before.

If you agree with all the points above, then I think we all agree (I'm assuming everyone else agrees with the points above). If you don't agree with any of the points above, please point out which one(s) you don't agree with.

Those points are all correct and the reason - magnetic fields are rounded. So many of my first posts in this topic are inaccurate due to the lack of knowledge but after this discussion I see how pi exists just like every body else on earth says it exists. So could we talk about pi now because I'm hungry.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

How did we go from pi to evolution to religion ?

I don't know why we are talking about that and I would much prefer to talk about pi. I think it is part of the 3 point rule how any two subjects can relate within 3 points. But as for pi, I am making a pi calculator for it in c++. Gee it is fun making a pi calculator.

tux4life commented: You don't know? I'll tell you: you were the cause! +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

No Darwin's theory would not be considered a religion; evolution is a testable, provable theory and, as such. is the purview of science. If it were a belief, then it would be a religion.

You need a Biology history lesson. I shall provide it. You may not realise this but the United States courts have determined that creationism/intelligent design is a religion. This is true because in the center of the theory is a god. However with Darwins theory it was so simular to creationism that the courts had to debate weather evolution was a religion. In the end it was determined while evolution remains a theory (Not fact) it is not a religion. However the trial lasted for a few days along with protests from the schools as the result was for evolution to be taught in all American schools. Many teachers didn't like that and refused to present the one minute speech so substitutes had to read the one minute speech as many people denied evolution as a theory although the courts didn't. Many say the reason is that evolution contradicts with their religion and there for evolution must be a religion but in my opinion that is not true. However it was determined that creationism is a religion because it is like something copied from the bible and transfered to science.
Just what the courts said in the mid 1900's.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hey guys, Need some back up on the challenge question in C++ forum.
Or is this just going to be another washed up thread?

I think it's going to be another washed up thread. It's not easy to understand and I couldn't be bothered pming to find out what the question is. For now I will be making a pi calculator lets see who can make the fastest pi calculator using any language. As for me I'm using c++. And this pi calculator would need the ability to calculate up to 1 million digits.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Ok, now let me give you my rebuttal. So imagine you are again
located at point (0,0), in a Cartesian coordinate. And your
target is to get to point (1,1). Now here is the question :
Would, you first move right one, and then up one unit, or would you
simply take a diagonal step towards the point(1,1) ? Obviously, a sane person, would move diagonally. Now here is the more
important part, Notice that you did not have to move one step right,
and one step up, you simply just took a diagonal step to reach your
target. Right ?

From my understanding of what I have been taught you cannot move diagonally on the grid so say you were on point 0,0,0 (x y z) and wanted to get to point 1,1,1 (x y z) then you would need to first move up then move across x then move across y as the corners of where the lines meet on the grid are like barriers. And that is where the cube effect comes in which makes me wonder if there are by far more than 3 dimensions.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

As well, every point in a sphere can be referenced with an X, Y and Z co-ordinate. Thats why we need 3 dimensions... Duh

But for the object to move diagonally that would require moving along multiple axis making things ultimately move like cubes. This would also mean gravity and other forces would have a cube effect in their direction. So it would be impossible to just use 3 axis as 3 axis only allows the positioning of objects and not the diagonal movement of objects.

Also I read your link and is basically a bunch of formulas.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

What about a c++ pi calculator?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

You can not assume everything is made up of cubes. Nothing is made up of cubes - even the nucleus of He (2 protons + 2 neutrons) is not a cube. The way the weak forces work is they bring everything equidistant from the center. There are no sharp edges in the world of particles no matter if you consider them waves, strings, quarks or billiard balls - the universe is smooth and round.

If everything is not made of cubes then why are we in the 3rd dimension and not in something like the 256th dimension. Because theoretically all objects are limited to move along their axis. If however that is not how reality works then there is something terribly wrong with the theory of there being 3 dimensions. But other than that I am starting to get the science of how pi exists. Might write another pi calculator.