Jump to content




ComputerCraft YouTube! [v3.2] - Register/Login Feature/Mailing system!


  • This topic is locked This topic is locked
185 replies to this topic

#1 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 08 February 2013 - 05:00 AM

ComputerCraft YouTube

v3.21

(Last edited: 03/17/13) - Fixed a few bugs and changed a few things in accounts tab

Yes, it's finally here!
Since Lightshot came out, I thought it would be a good idea to make a 'YouTube' version for ComputerCraft which can be used to play Lightshot Videos.
ComputerCraft YouTube is a program that uses the HTTP API to get information from a MySQL Database which has information about videos saved into it. This program accesses the page and stores all the information for each video into a table and then prints it onto the screen.

I'm using a website hosted freely by 000webhosts.com to store all the information for the videos.
The website is the official website for ComputerCraft YouTube and was made by me. It is available for uploading/downloading and contacting
me if you have any questions.

Official Website: ComputerCraft YouTube - sink into our videos.
What can you do on the website?
  • Upload videos
  • Download videos
  • View the changelog
PLEASE NOTE:
As of v3.1, an 'Accounts' menu has been added with a Register/login feature which allows your to register an account with a desired name, *email, username and password. This information is stored into a MySQL database with the passwords been **HEAVILY SECURED to prevent any breaches into my system. Registration only requires a username and password, name and email are optional.

Also, I need feedback about everything to do with the Account tab, the colours, text, position, etc. The colours now are from testing and I still yet need to find a better combination.

* For now, emails will be used to notify you about updates (soon to come)

** Passwords are secured like so:
- EACH password has it's own generated salt
- Hashed using SHA in many various ways about 6 times
- According to How Secure Is My Password, it will take A quattuordecillion years to hack my password :P/>
Even if someone had the SAME password as yours, their hash code wouldn't been the same as yours.


FOR YOUR OWN SAFETY: Choose a password that you do not use anywhere else in-case something were to happen, but I'm positive nothing will.

Features:
  • Login/Register your own account
  • Delete your account
  • Viewing a video in the website gallery will show with a green + on the left if you have it on your computer already (Mouse and key support)
  • Download videos that other users have posted
  • Play downloaded videos from your computer
  • Search for updates
  • Upload your own video using a pastebin code - I will soon add the feature to upload a file directly from your computer. If upload has failed, it now remembers the details that you added previously
  • Connects to a website to manage everything
  • Mailing system - mail other users using there username
  • Installer - custom installer for ComputerCraft YouTube which downloads/creates all files/folders in a sourceFolder '.ccYouTube'
    • has a -redownload feature to which deletes current CC YouTube on your computer and redownloads a fresh one (TheOriginalBit's idea)
    • -redownload feature now backs up all current videos and copies them back to the downloads folder
Things to come:
  • Files uploaded to you will be saved into your user profile if you're logged in.
  • Support for changing your user details in 'Prefrences' tab
  • Able to view all users and check their uploaded videos.
  • Backup folder - create backups of videos
Other:
Need feedback on the colours. Colours at the moment don't seem to fit in so nice.

Credits:
  • TheOriginalBit - LoadingScreen and Extended String Library APIs
  • Orwell - helping me with http.post and string.gmatch
  • Bubba - helped with string.gmatch multiline removal
  • GravityScore - PHP help and general way of how the mailing system will work
Where can I get it?
You can get it by downloading and running this installer - or pastebin get tLSZaRB2 installer
Watch this Lightshot Video (CC YouTube v3.0) to see what's new and to inspire you to download it and use it :P/>/> ( Becomes very laggy though :/ )

Changelog:
Spoiler

Screenies

Spoiler

Post ANY feedback or suggestions (what can I improve/add?) here!

#2 1lann

  • Members
  • 516 posts
  • LocationSeattle

Posted 08 February 2013 - 05:20 AM

Looks beautifully awesome in the video :D
I will try it out later sometime :P

#3 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 08 February 2013 - 05:52 AM

Good job... You beat NeverCast and I :P

Lol btw I love the worm playback at the end of the Lightshot video :P and Yay someone is using my loadscreen api! :D :D :D

EDIT: just on a side note, http://pastebin.com/CyCFvSb5 lines 101 and 102
bar:setMessage("")
bar:triggerUpdate( "Checking source folder... (" .. ( bar:getCurrentProgress() + 1 ) .."/" .. count .. ")..." )
You don't need
bar:setMessage("")
as triggerUpdate would immediately change the "" to the message you pass :)

Edited by TheOriginalBIT, 08 February 2013 - 06:02 AM.


#4 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 08 February 2013 - 05:56 AM

View PostTheOriginalBIT, on 08 February 2013 - 05:52 AM, said:

Lol I love the worm playback at the end :P and Yay someone is using my loadscreen api! :D :D :D

Haha only thing I could think of for an example test video...

Of course, it's a brilliant API :P

#5 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 08 February 2013 - 06:01 AM

View PostremiX, on 08 February 2013 - 05:56 AM, said:

Haha only thing I could think of for an example test video...

Of course, it's a brilliant API :P
Lol ok ;)

Thanx :) means heaps to hear that :) I'll add you into the "programs using" section :)

Also found some code cleanup... you can remove the function getCount() and the commented out line that calls it :P

EDIT: Found 2 bugs
#1: the installer has a folder with the path /ccYouTube and the main program file path is /ccYouTube ... so it never downloads the main program, just downloads and installs the folder.
#2: the main program loads ... my load bar finishes its awesome rendering :P ... then nothing, it returns to the shell...

Edited by TheOriginalBIT, 08 February 2013 - 06:10 AM.


#6 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 08 February 2013 - 06:24 AM

View PostTheOriginalBIT, on 08 February 2013 - 06:01 AM, said:

Thanx :) means heaps to hear that :) I'll add you into the "programs using" section :)

:D

View PostTheOriginalBIT, on 08 February 2013 - 06:01 AM, said:

Also found some code cleanup... you can remove the function getCount() and the commented out line that calls it :P

Derp, that was from the beginning for it to count how many steps the loading bar must have haha.

View PostTheOriginalBIT, on 08 February 2013 - 06:01 AM, said:

EDIT: Found 2 bugs
#1: the installer has a folder with the path /ccYouTube and the main program file path is /ccYouTube ... so it never downloads the main program, just downloads and installs the folder.
#2: the main program loads ... my load bar finishes its awesome rendering :P ... then nothing, it returns to the shell...

Derp, I dumbly made the installer first before everything else and used temporary pastebin codes and forgot to update it. I actually did but forgot to edit the pastebin link and then delete the fixed one :blink:
Thanks :P and fixed!

#7 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 08 February 2013 - 06:29 AM

View PostremiX, on 08 February 2013 - 06:24 AM, said:

Derp, that was from the beginning for it to count how many steps the loading bar must have haha.
I figured thats what it was for ;)

View PostremiX, on 08 February 2013 - 06:24 AM, said:

Derp, I dumbly made the installer first before everything else and used temporary pastebin codes and forgot to update it.
Lol I figured that too :P

EDIT: Round #2 Suggestion

add a "-redownload" parameter or something to the installer which deletes all the files if they exist and then redownloads them :)

Edited by TheOriginalBIT, 08 February 2013 - 06:40 AM.


#8 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 08 February 2013 - 06:42 AM

Doesn't matter now since I've moved the files manually myself, but for the future, please shell.resolve() all directories to a local directory so I don't have to manually move cc's files to my apps folder.

That aside, this looks really nice.

EDIT: Center the logo to compliment my massive 75x25 screen? :D

#9 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 08 February 2013 - 06:51 AM

View PostTheOriginalBIT, on 08 February 2013 - 06:29 AM, said:

EDIT: Round #2 Suggestion

add a "-redownload" parameter or something to the installer which deletes all the files if they exist and then redownloads them :)/>/>

Good idea:P, will add it to the update list

View PostKingdaro, on 08 February 2013 - 06:42 AM, said:

Doesn't matter now since I've moved the files manually myself, but for the future, please shell.resolve() all directories to a local directory so I don't have to manually move cc's files to my apps folder.

What doesn't matter? What files did you molve? apps folder?

View PostKingdaro, on 08 February 2013 - 06:42 AM, said:

EDIT: Center the logo to compliment my massive 75x25 screen? :D/>

Ohh monitor support for the videos o_O sounds fun

#10 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 08 February 2013 - 06:54 AM

View PostKingdaro, on 08 February 2013 - 06:42 AM, said:

EDIT: Center the logo to compliment my massive 75x25 screen? :D
Well I can tell you that on the load screen it is, unless remiX modified my api :P

remiX feel free to steal that code to centre it :)

#11 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 08 February 2013 - 07:40 AM

View PostremiX, on 08 February 2013 - 06:51 AM, said:

View PostKingdaro, on 08 February 2013 - 06:42 AM, said:

Doesn't matter now since I've moved the files manually myself, but for the future, please shell.resolve() all directories to a local directory so I don't have to manually move cc's files to my apps folder.

What doesn't matter? What files did you molve? apps folder?

I keep all of my programs in a folder on my computer called "apps", and I downloaded the installer to said folder, expecting it to be installed to apps/ccYouTube, but it went ahead and installed in the root directory instead.

#12 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 08 February 2013 - 07:52 AM

View PostTheOriginalBIT, on 08 February 2013 - 06:54 AM, said:

View PostKingdaro, on 08 February 2013 - 06:42 AM, said:

EDIT: Center the logo to compliment my massive 75x25 screen? :D
Well I can tell you that on the load screen it is, unless remiX modified my api :P

remiX feel free to steal that code to centre it :)

Nope, haven't modified it at all.

View PostKingdaro, on 08 February 2013 - 07:40 AM, said:

View PostremiX, on 08 February 2013 - 06:51 AM, said:

View PostKingdaro, on 08 February 2013 - 06:42 AM, said:

Doesn't matter now since I've moved the files manually myself, but for the future, please shell.resolve() all directories to a local directory so I don't have to manually move cc's files to my apps folder.

What doesn't matter? What files did you molve? apps folder?

I keep all of my programs in a folder on my computer called "apps", and I downloaded the installer to said folder, expecting it to be installed to apps/ccYouTube, but it went ahead and installed in the root directory instead.

Ah. I made the installer default to the root directory, ,_,

#13 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 08 February 2013 - 09:36 AM

Looks amazing, keep up the great work! :)

#14 Skullblade

  • Members
  • 470 posts
  • LocationThe Big Apple, NY

Posted 08 February 2013 - 10:55 AM

Interesting so it basically just links to pastebin "movies". Still cool though i like it :D

#15 NeverCast

  • Members
  • 400 posts
  • LocationChristchurch, New Zealand

Posted 08 February 2013 - 03:14 PM

Ahh, TheOriginalBit! You're helping the competition damn it :P

Excellent work remiX! I'll have to give it a test run!

CCTube will be beta release in a few days if everything goes to schedule so we'll have to see how they compare :D

#16 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 08 February 2013 - 06:24 PM

View PostSuicidalSTDz, on 08 February 2013 - 09:36 AM, said:

Looks amazing, keep up the great work! :)

Thanks :P

View PostSkullblade, on 08 February 2013 - 10:55 AM, said:

Interesting so it basically just links to pastebin "movies". Still cool though i like it :D

Eventually, I'll let it link to gitHub links. What other links should be usable?

View PostNeverCast, on 08 February 2013 - 03:14 PM, said:

Ahh, TheOriginalBit! You're helping the competition damn it :P

Excellent work remiX! I'll have to give it a test run!

CCTube will be beta release in a few days if everything goes to schedule so we'll have to see how they compare :D

Haha :P Thanks and yeah!

Soon to come:
  • Post a video through the computer (Thanks to Orwell for the help of http.post)
  • -redownload option in the installer
  • Control Panel?


#17 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 08 February 2013 - 08:32 PM

...

This is absolutely incredible. :D

#18 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 09 February 2013 - 12:14 AM

View PostGravityScore, on 08 February 2013 - 08:32 PM, said:

...

This is absolutely incredible. :D
Dr.Pepper is still more incredible. But this is pretty cool. You could have it get the raw pastebin files and add it to a read-only directory on the web server.

#19 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 09 February 2013 - 03:05 AM

View PostGravityScore, on 08 February 2013 - 08:32 PM, said:

...

This is absolutely incredible. :D

Thanks :P

View PostSammich Lord, on 09 February 2013 - 12:14 AM, said:

Dr.Pepper is still more incredible. But this is pretty cool. You could have it get the raw pastebin files and add it to a read-only directory on the web server.

Dr Pepper?
It get the raw pastebin files? The server from when you add a video to the database?

It makes me sad that no one has posted a video yet xD

#20 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 09 February 2013 - 03:19 AM

View PostremiX, on 09 February 2013 - 03:05 AM, said:

It makes me sad that no one has posted a video yet xD
We need a lightshot movie editor. There is no way to actually say anything in the videos without using the edit script or using the shell.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users