cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hi, this is cwarn23 just posting a link to a youtube video for those constantly redirecting users to google or lmgtfy.com but now here is another tool for you to use. I have posted a youtube video which you can use to teach all of those users how to read the manual. To send a user who's posting a question which can be easily solved by a google or manual search the link is below.

http://www.youtube.com/watch?v=cl33ruQAlpI&feature=channel_video_title

Mods: I'm not promoting this video but just sharing it to those who would like to use this link in other topics so please don't delete it. I also put it in quotes so search engines won't read it for you. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Replace line 53 with the following:

if (isset($confirmation)) {
echo $confirmation;
}
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Success is always in sight, Bazinga!

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Holy crap!
You can't really replace a language with another language unless you either do a one-to-one mapping of their feature sets, in which case the replacement language would be completely redundant and hence still-born, or extend the original language (like C++ and C), in which case your replacement language would have to offer significant advantages to be seriously considered.

The Java/.NET philosophy is a wonderful idea, but all it does is restrict the scope for which you would reasonably choose C++ over it.

language bashing is moronic. There are truly ancient languages, older than C/C++, that are still alive and kicking because they fill a particular niche better than anything else. Whether they fill your niche or not doesn't have any bearing on whether they're actually good or not.

I disagree. I would have to say that every language that can add, subtract, multiplay, devide and use binary operators have the capability of doing anything that any other language can do. After all, software is just binary digits processed as numbers. The main difference is efficiency. Sure you can have a language that does nothing but math however it wouldn't be very efficient to use a precompiled compiler like all languages except some assembly compilers do. So that is my conclusion.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

The fastest way to success is the slowest way to freedom.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I would have to disagree with everybody and say Python is the future. It can handle big numbers and can do multi threading along with its many capabilities from its extensive work over the many years. In case your wondering who uses Python, well google uses Python on their web servers in addition to their google go language and people in the stock market use python to process large numbers. So clearly Python is creeping up on php and will eventually dominate the web as the number one server side language. Especially with its file extension only has two letters (.py) instead of three like .php or .asp or .aspx so this is a great advantage to Python when it comes to clean url's.

sergent commented: Who says you disagree with everyone? I agree with you! And of course, the length of python extension is it's greatest strength :D +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I think I might have found a library. It's called JPCT. I'm starting to learn what it can and can't do but if you can suggest any other engines then you are more than welcome. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Well the only problem is that web applets don't support Java 3d or at least to my knowledge so I need something like a OpenGL library written in Java (not C) to render the 3d objects and camera movements. So I'm kinda stuck between a rock and a hard place if you know what I mean.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Here is a link to get mssql to work with wamp.

It quotes the below:

Download a clean version of WAMP: HERE
Next, download the newest add-on of php: HERE
Next, download ntwdblib.dll: HERE


1)* Install WAMP
2) Install latest php addon.
Dont do anything with ntwdblib.dll YET!
3) Click on the WAMP icon -> PHP -> Version and select 5.3.1.
4) Click on the WAMP icon -> PHP -> PHP Extensions then check php_mssql and php_pdo_mssql.
(Wamp will restart and give you few errors, ignore them)
5) Restart WAMP one more time to ensure settings are saved.
6) Finally, place ntwdblib file in the two following directories:
wamp\bin\php\php5.3.1
wamp\bin\apache\apache2.2.11\bin
7) Restart wampserver, and you're finished!

---------------
*1) SKIP THIS STEP IF YOU ALREADY GOT WAMP INSTALLED

Your finished, and hopefully now php will be happy to talk to mssql (:


Since the original author deleted the guide, I decided to bring it back (:
Based on original but cleaned-up guide by Alexsh.

Cheers.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Glad to see one of the four tutorials have been approved. Any news on who's the new PHP Tutorials administrator/approver is or is that still to be decided?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hi, I'm developing a new Java applet and it requires a 3d engine to import a 3d model with a texture wrapped around the model. Then the user will be able to browser around the model in like a first person shooter style but just browse/look around, nothing else. Does anybody of a good 3d java engine that I can use for developing this applet. Also my compiler is Netbeans. I haven't done much in the way of Java 3d before but have done 3d programming before in other languages. Any help on finding engines for this is appreciated. Thanks. cwarn23

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

In 1966. Fortran on an IBM 1620. Input and output were both via punched cards. I taught myself Fortran from a book - the university I was attending didn't have programming classes yet. Since 1966, I've programmed in Icetran, PL/1, BAL, C, Visual Basic, Windows Script host, Powershell, and others which are not coming to mind.

Oh, by the way, I still like Fortran - I've got and Intel Fortran 90 compiler which runs in the Virtual XP VM on this Windows 7 Ultimate machine.

Glad to see somebody in these forums with decades of experience. Perhaps you could program a C compiler in punched cards. I'm sure that would make a popular product in today's market as it would speed up the language astronomically and make a great sale. I would buy it. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

So would it be possible to have a tab along the top next to "All threads", "Up voted", "Solved" and "Unanswered" to have one named "User" which beings up an option to type in which user then all the threads (or posts depending on tickbox) written by the user typed in will be listed below?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Try replacing the problem line with the following:

$session = &JSession::getInstance(NULL, $options);

When E_Notice is disabled that is the equivalent to what is set. To problem with your code is that $handler was never set a value. So I have put into getInstance an empty variables default value for you. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Yes it appears the mssql module has not been installed. If you are using xampp then it is as simple as removing the ; from the beginning of the line with ;mssql.dll . If however you are using the script on a linux server then you will need to recompile php and apache to embed the package. If using whm/cpanel this is simple thanks to a shell script but if you don't have whm/cpanel then it can be a hard task. Note that if your using a shared service then all you need to do is contact your webhost.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

That answers the second feature. But what about searching for threads by user? It used to be possible a long time ago but you've change the searching algorithm since :(
For example, if I want to see all the threads in the php forum written by cwarn23 then how would I do that. The same me seeing all the threads in a particular forum written by another user.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I started my first programming language (HTML) when I was in grade 5. It wasn't any school project or anything but I just loved to tamper with the source of different websites. Then near the end of grade 5 I got a manual on html where I started to learn html fluently. By the end of grade 6 I had learnt html fluently and had started on Javascript. I received as a birthday present a CD with 10,000 Javascript codes that I could fiddle around with and I did indeed. It was by the time I was in mid grade 8 before I got a good understanding of Javascript but didn't do much programming between grades 8 and 10a. Yes I repeated a year. 10a. From grades 9 to 10a I learn't a programming language called gml (Gamemaker Language) which taut me the concepts of loops, if statements and algorithms. I loved my algorithms. So by the time I was in 10b (second attempt at grade 10) I learnt PHP then C++ and before I knew it I was starting to learn every language in existence. As per today, I like to teach others like on daniweb and on occasion learn a bit about circuitry. And yes I still love my algorithms.

Justinedeleon commented: +1 internets that is very motivating. haha your a cool dude +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Perhaps you should open it and save it as a .docx format. Also as caperjack pointed out only Word 2007 and later may open this format.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster
<?php
include('variables.php');
die('Steve Jobs');
sleep($tenyears);
die('Bill Gates');
exit;
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I got a few:
* The Cloud Mobil
* Environmental Cloud Power
* Clower Computing Services

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

The only problem I have found when trying to search on the Daniweb forums is that the search engine embedded into the forums seems to not match relevant content. For example, on several occasions I have found a question pop up which I had answered a few years ago and using the Daniweb search tool returned no results when searching for my username since I replied and no search results when searching for key words from the comments in thread. In the end I on each occasion I had to use google to do a site search on daniweb to find the thread. So I really think that search algorithm needs revising.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Ow that explains it. Dani must have changed it in the past 2 years and I haven't received any negative rep since. Please don't give me negative rep for that. Thanks for the information. Now I know when I've been given negative rep.

*Solved*

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Exactly what negative rep are you talking about? You only have green + gray blockies in your profile?

yes and the gray blockies which I believe are meant to indicate negative rep have positive comments.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

It depends how you define "remove all local NTFS permissions". If you mean to set the permissions to their default then some users may not be able to access files there were able to view before along with other files which shouldn't be viewable being viewable. That is only if you are meaning to set the permissions to their default.
If however you mean to strip all permissions from all users then nobody will be able to view anything.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster
<?php for($i=0;$i<8;$i++) include ("files/file".$i.".php"); ?>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

What I would suggest is download a program called LTspice and insert the circuitry into LTspice where you may perform tests to find out all of the answers. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hi. I just looked at my reputation points today and found all of this negative rep. I checked the posts it came from and it appears it may be from positive upvotes which are being displayed as negative rep. Can somebody please look into this as there are all of these positive comments but next to it the black light indicating negative rep.
Thanks.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Please describe correctly what are you saying?make it clear

Who are you refering to.
Also OP = Original Poster

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

The way people are going on about you'd think Steve Jobs was their mother and tables and mp3 players had never existed before the iPod and iPad. i'm not a fan of Apple only the iPod (nano because it's lasted 5 years and i got it cheap) but the company is bigger than one man and similar technology to that released by Apple would more than likely have been released eventualy through natural progression.

How ever Apply (and Steve Jobs) have played a massive part in the advancement of technology. it's not nice to here that anyone has died and should be good to see what Apple go on to do in the future.

Just remember when we're all flying around on hoverboards the idea came from Back to the future in the 80's !

No I invented the hoverboard. You see in the year 2015 Dani unleashes a program called skynet making machines able to think for themselves and code their own way out of problems. Then in the year 2017 this machine is exposed as a optional component on Folding@Home where skynet rapidly builds up a database and scans the internet to download and document all content in existence. At the end of the year 2019 the first humanoid realeased from Stanford university as a commercial product is up for sale and Dani buy's one and programs in the newly created skynet into this humanoid. October 2020 Dani goes on a birthday party leaving the humaniod home and …

ChrisHunter commented: Amazing reply ! +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I've just done the math and your power supply appears to be the right size. Also does the fan on your graphics card spin because that would indicate if power is going to the graphics.

Motherboard: 15W
CPU:         95W
RAM:          4W
SSD Drive:  2.5W
Graphics:   450W
CD-ROM:      25W

I also noticed the following:

I connect 4 pin mains to the board not 6 pins.

There are 6 pins for a reason. Perhaps you should find the correct cord or adaptor. That could be the source of the problem.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Perhaps you should google for a few tutorials.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I found this article from the EFF quite disturbing. What do you say about a company that would want to do this? ...

Thoughts? Comments? Scathing Rebuttals??

http://www.eff.org/deeplinks/2010/08/steve-jobs-watching-you-apple-seeking-patent-0

Here's a good idea. Why lock up our prisoners when we can just give each of them an iPhone each and buy the data off Apple to monitor the prisoners. Then you know everywhere they have been, who they have communicated with, what websites they have looked at etc and the prisoners don't even have to know that their being tracked by the government. Now that's what I call security. ;)

As per the pass away of Steve Jobs, I'm sure with his clever microprocessor technology he must have found a way to cheat death. Perhaps he is now a hologram programming the software for Apple. Who knows what goes on in the corporation. But they are my thoughts. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

In 23 minutes the title of this thread will be obsolete.

This thread is officially obsolete. Time to update your firmware and reboot from the behind. Those who use windows are fortunate enough to not get a blue window screen of death where as mac users crash their car due to loss of sight. lol :)

sergent commented: lol +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Perhaps what you would be better off doing is when you want to append to the array, simply create a new array with the new size in its definition, then add the data from the old array to the new array and delete the old array. After that you may then assign the new value at the end of the new array.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Opened Word and the cursor is at the top & not were is should be. Tried to reset by going to Page Layout, Margins and setting to 2" on all sides. This will not work. Closed Word.

Did a HD search for Normal.dotm. Double clicked on this and same thing showed up. Renamed to 1Normal.dotm and redid document the way is should be and saved. Opened Word again, samething.

When I did search and found Normal.dotm the icon has a yellow what looks like a sheet of paper with a ! on it.

The file extension is incorrect. Try renaming the file to one of the following names:

Normal.doc
Normal.docx
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

is it so that google has stoped supporting firefox

Indeed it is. :(
It used to be that google paid developers to develop firefox in addition to its open source development so that the firefox project could afford things like hosting for its plugins and head quarters for its complaints department. However now that google has their own browser (Google Chrome), Google is taking all their money out of Firefox and putting it into Chrome. As shameful as it is, it's true.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

In this instance simply delete the white spacing on lines 1 and two so delete everything before <?php on line 1 and 2.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster
<?php	// start JSON decode

	$json = json_decode(file_get_contents('http://graph.facebook.com/131822850253006'));

	// define event array

	$event1 = array(
	'id' => $json->id,
	'owner_name' => $json->owner->name,
	'owner_cat' => $json->owner->category,
	'owner_id' => $json->owner->id,
	'event_name' => $json->name,
	'event_description' => $json->description,
	'start_time' => $json->start_time,
	'end_time' => $json->end_time,
	'location' => $json->location,
	'venue_street' => $json->venue->street,
	'venue_city' => $json->venue->city,
	'venue_state' => $json->venue->state,
	'venue_zip' => $json->venue->zip,
	'venue_country' => $json->venue->country,
	'venue_lat' => $json->venue->latitude,
	'venue_long' => $json->venue->longitude,
	'venue_id' => $json->venue->id,
	'privacy' => $json->privacy,
	'updated_time' => $json->updated_time,
	);



$event2 = '"'.implode(array(
	$event1['id'],
	$event1['owner_name'],
	$event1['owner_cat'],
	$event1['owner_id'],
	$event1['event_name'],
	$event1['event_description'],
	$event1['start_time'],
	$event1['end_time'],
	$event1['location'],
	$event1['venue_street'],
	$event1['venue_city'],
	$event1['venue_state'],
	$event1['venue_zip'],
	$event1['venue_country'],
	$event1['venue_lat'],
	$event1['venue_long'],
	$event1['venue_id'],
	$event1['privacy'],
	$event1['updated_time']
	),'","').'"';


	// connect to database

	$database_connect = mysql_select_db('MY DATABASE', $connect);
	if (!$database_connect)
 	{
	die('Could not connect - database connection failed: ' . mysql_error());
	}


// Insert $event array into database

	$db_insert = mysql_query("INSERT INTO events (id, owner_name, owner_cat, owner_id, event_name, event_description, start_time, end_time, location, venue_street, venue_city, venue_state, venue_zip, venue_country, venue_lat, venue_long, venue_id, privacy, updated_time)
	VALUES ($event2)");

	if (!$db_insert)
	{
	die('Could not connect - event data insert failed: ' . mysql_error());
	}
JamesPublic commented: Your solution works perfectly cwarn - thank you, I'm off to read more about the implode function! :) +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Perhaps you should check for loose connections on the monitor and on the cable connecting into the graphics card. If that doesn't work then download the ubuntu live cd then insert the ubuntu live cd and boot from the ubuntu live cd to see if it's a software or hardware falt. If the screen goes black when booting from the ubuntu live cd it means some hardware will need replacing however, if the ubuntu live cd loads fine then you will need to insert the windows installation cd and do a disk repair.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

By the sounds of it, it seems like you might need a larger power supply but perhaps you should add up the wattage figures first. I know off by hand that the cpu is 130 watts. And if the VGA is 400 watts then that leaves you with 70 watts to power the rest of the computer. Also lack of wattage may have damaged some components in the computer so you may need to check piece by piece for falts when an appropriate power supply is added. This can be done by for example taking out the graphics card and booting up to see if there are any bios sounds and same with graphics card in and repeat with each piece except the motherboard and at all times when testing keep at least one ram chip in.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Don't really program anymore and I'll tell you why.

Put on some breakcore, tech death, stoner sludge, random piano pieces, or whatever has a heavy rapid groove.
Within first hour douse yourself in a pot coffee. Pop some DMAA, BZP, MDPV, whatever's legal and available.
On days when you feel like shit:
Have another pot of coffee. Have some DXM or something as a nasty you feel(assuming it leaves you lucid enough to even touch keyboard), maybe a 40oz.
Chain smoke outside in the rain with your coffee.

But it is that sort of fustration that inspires me to program. I love the fustration as fustration is my passion along with programming being my subpassion. I don't just program to make money or make life easier, it do it to work me up for gym *cough* ;)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I think I would like to program the AI of my own robot thankyou MR Standford.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Can't believe I missed this thread.
I find languages can be easy and/or difficult to program depending on weather you want it to be an interpreter based language or compiler based language and if you want it to be an recourse efficient language or a recourse hungry language. For example, if you want to create an easy recourse efficient language in Windows then you would download Microsoft Visual C++ and use the console section of the compiler. And from that you can easily create an interpreter that will interpret a file specified into the console. However on Linux it would be better to use C and a "make file" to compile the project to do the same on Linux. So interpreters are really simple and easy to do.
As per making compilers, I would recommend learning the Assembly syntax entirely and fluently first along with the binary conversions of the Assembly syntax codes then you will be able to use that information to create your compiler.
So all is simple, just takes time and patience.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Try the following:

mkdir("products/$id/$lastid",0777,true);
mkdir("products",0777);
mkdir("products/$id",0777);
mkdir("products/$id/$lastid",0777);
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Drink a bottle of coke with my name on it.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

No, C++ is not dying at all. Langpop.com shows it in the top 5 on most of the results charts.

Indeed but those statistics show what's being used by the public and not what's being used by the industry. Big difference. The public sector are like children learning to hack or make games where as the industry are making operating systems and tools to make games which is not present on those statistics.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

In 23 minutes the title of this thread will be obsolete.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hi Dani and all.
I have a suggestion or two about if the following features would be possible to embed.
1) To have a tab in each forum for threads created by user and you can specify the user from a popup along side the unanswered threads tab. This would be handy when I know I made a post I a long time ago and would be relevant to link to in a new post. So basically filters by user with ease.
2) To have a feature for personalized sticky's where each user can add sticky's and only that one user can view their own sticky. This would be handy to save the hassle of bookmarking those favourite threads that change all the time.

Again I thought IMO that these would be handy especially now that traffic is low. Hope for the best. cwarn23

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

So in conclusion Opera is currently the record holder for the fastest browser followed by chrome and the best browser is for the user to decide.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Now that I think about it, on Steve's funeral site will they bury him with a copy of every piece of Apple's software? That would be neat.