Author Topic: QB64SOURCECODE.COM  (Read 4431 times)

0 Members and 1 Guest are viewing this topic.

Offline TerryRitchie

  • Forum Resident
  • Posts: 611
  • Semper Fidelis
QB64SOURCECODE.COM
« on: April 19, 2020, 01:20:56 PM »
I've been working on updating the QB64 tutorials at https://www.qb64sourcecode.com for the past 3 weeks.

I should be finished by no later than the end of May. I have 10 lessons done so far. I modernized the pages a bit by using Windows 10 screen shots and the look of today's QB64 IDE.

If you get a chance look over what I have and let me know if you see any glaring issues that need corrected.

Thanks, Terry.
« Last Edit: April 19, 2020, 01:35:46 PM by TerryRitchie »
In order to understand recursion, one must first understand recursion.

Offline FellippeHeitor

  • QB64 Developer
  • Forum Resident
  • Posts: 2712
  • LET IT = BE
    • QB64.org
Re: QB64SOURCECODE.COM
« Reply #1 on: April 19, 2020, 01:24:20 PM »
This just happened two hours ago:

 


Glad to hear you're at it again, Terry!

Offline FellippeHeitor

  • QB64 Developer
  • Forum Resident
  • Posts: 2712
  • LET IT = BE
    • QB64.org
Re: QB64SOURCECODE.COM
« Reply #2 on: April 19, 2020, 01:25:31 PM »
Oops, currently getting "page not found" for most links.

Offline TerryRitchie

  • Forum Resident
  • Posts: 611
  • Semper Fidelis
Re: QB64SOURCECODE.COM
« Reply #3 on: April 19, 2020, 01:27:38 PM »
Uh oh, working on my end.

I recently added certificate to the site

try

https://www.qb64sourcecode.com/
In order to understand recursion, one must first understand recursion.

Offline FellippeHeitor

  • QB64 Developer
  • Forum Resident
  • Posts: 2712
  • LET IT = BE
    • QB64.org
Re: QB64SOURCECODE.COM
« Reply #4 on: April 19, 2020, 01:28:49 PM »
Ah, that did it. You'll want some .htaccess trickery to force https on people.

Offline FellippeHeitor

  • QB64 Developer
  • Forum Resident
  • Posts: 2712
  • LET IT = BE
    • QB64.org
Re: QB64SOURCECODE.COM
« Reply #5 on: April 19, 2020, 01:31:31 PM »
You may also want to link directly to https://github.com/QB64Team/qb64/releases/latest

That way the link will always point to the latest version.

Offline TerryRitchie

  • Forum Resident
  • Posts: 611
  • Semper Fidelis
Re: QB64SOURCECODE.COM
« Reply #6 on: April 19, 2020, 01:35:13 PM »
Ah, that did it. You'll want some .htaccess trickery to force https on people.

Not a web coder in the slightest :-)  I'll look into the forced https.

Yes, I agree, I'll update the link to download QB64 so the latest is always available.
In order to understand recursion, one must first understand recursion.

Offline FellippeHeitor

  • QB64 Developer
  • Forum Resident
  • Posts: 2712
  • LET IT = BE
    • QB64.org
Re: QB64SOURCECODE.COM
« Reply #7 on: April 19, 2020, 01:42:14 PM »
Me less, but Google is at our side. We use this to force it for Forum access:

Code: [Select]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
# POST AND PM INLINE ATTACHMENTS BEGINS
RewriteEngine on
RewriteRule attachment_(\d+)\.(\d+)_(\d+)\.pdf index.php?action=dlattach;topic=$1.$2;attach=$3
# POST AND PM INLINE ATTACHMENTS ENDS

This is in a file named .htaccess in the /forum subfolder. We don't keep it in the root (which is why qb64.org can be accessed via regular http) because we need to download using QB64 itself, which doesn't do HTTPS. Wiki doesn't have it either.

There some code up there to change how attachments work, but that's specific to the forum software. The first two lines should work for you if you place the file on your public_html folder.

Offline CBTJD

  • Newbie
  • Posts: 80
  • You're only as old as you feel. ...I'm screwed.
Re: QB64SOURCECODE.COM
« Reply #8 on: April 19, 2020, 01:42:30 PM »
The website and tutorials look amazing!

Unfortunately, I could not find the link for the Forward as described.
Quote
Before you start this course click here and please take a few minutes to read the forward.
Kudos for all the obvious effort! Looking forward to seeing your progress through May.
:@)
CBTJD: Coding BASIC Takes Judicious Dedication

Offline TerryRitchie

  • Forum Resident
  • Posts: 611
  • Semper Fidelis
Re: QB64SOURCECODE.COM
« Reply #9 on: April 19, 2020, 01:48:31 PM »
Some of the links still don't work. I'm actually working on the forward right now.

Also, all source code will be included with the asset file download as instructed in Task 1. All of the source code you see in the tutorials are actually PNG images so I could get all the color coding of the IDE.
In order to understand recursion, one must first understand recursion.

Offline TerryRitchie

  • Forum Resident
  • Posts: 611
  • Semper Fidelis
Re: QB64SOURCECODE.COM
« Reply #10 on: April 19, 2020, 01:48:50 PM »
Me less, but Google is at our side. We use this to force it for Forum access:

Code: [Select]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
# POST AND PM INLINE ATTACHMENTS BEGINS
RewriteEngine on
RewriteRule attachment_(\d+)\.(\d+)_(\d+)\.pdf index.php?action=dlattach;topic=$1.$2;attach=$3
# POST AND PM INLINE ATTACHMENTS ENDS

This is in a file named .htaccess in the /forum subfolder. We don't keep it in the root (which is why qb64.org can be accessed via regular http) because we need to download using QB64 itself, which doesn't do HTTPS. Wiki doesn't have it either.

There some code up there to change how attachments work, but that's specific to the forum software. The first two lines should work for you if you place the file on your public_html folder.

Thank you :-)
In order to understand recursion, one must first understand recursion.

Offline Pete

  • Forum Resident
  • Posts: 2410
  • Cuz I sez so, varmint!
Re: QB64SOURCECODE.COM
« Reply #11 on: April 19, 2020, 01:55:22 PM »
Well you got the .htaccess file worked out, I see. Your site NOW loads for...

http://qb64sourcecode.com/

https://qb64sourcecode.com/

http://www.qb64sourcecode.com/

https://www.qb64sourcecode.com/

Nice going!


Now about this for the First Program section...

"By default QB64 opens a pure text window (known as SCREEN 0) and runs programs in text mode. Figure 2 above shows the output of your program in an 80 character wide by 25 line high text screen. So what did your line of code actually do?"

Please modify that to include...

By default, QB64 opens a pure text window, known as SCREEN 0... (THE ONLY PROGRAMMING SCREEN YOU WILL EVER NEED!) and runs programs in text mode. Figure 2 above shows the output of your program in an 80 character wide by 25 line high text screen. So what did your line of code actually do?

Pete :D

PS: I wanted to find a link to something that you might find helpful, but it looks like the developer may have taken down his site. It is to a web-crawler, which was designed purposely to detect broken links and the page they are linked form. It's called Xenu Link Sleuth. I've used it for probably close to 20 years.

CNet still shows a download link for it. I figured with your anti-virus mad skills, it might be worth a look. If it's still up,and hasn't been tampered with, it would allow you to quickly detect any broken page links. Of course you could also search fro like products.

https://download.cnet.com/Xenu-s-Link-Sleuth/3000-10248_4-10020826.html

Pete

« Last Edit: April 19, 2020, 02:29:02 PM by Pete »

Offline CBTJD

  • Newbie
  • Posts: 80
  • You're only as old as you feel. ...I'm screwed.
Re: QB64SOURCECODE.COM
« Reply #12 on: April 19, 2020, 02:37:28 PM »
Some of the links still don't work. I'm actually working on the forward right now.
I cannot stress enough the incredible value of sites like yours - and I'm not just blowing smoke up your kilt!

Seriously, from my extensive research on the BASIC language industry, one of the key factors was community fan site contributions. For most versions of BASIC out there, they simply don't exist! On average, the best examples had one - ONE fan site! I can easily count four off the top of my head for QB64, and I haven't even started looking because, quite frankly, I don't have to! By that I mean, also unlike many versions of BASIC, the QB64 community has a strong and active forum, an engaged and responsive developer, a well-maintained instructional wiki, actively supported secondary application development projects, an extensive YouTube video tutorial library, and even numerous printed books! (thanks to the legacy compatibility with QBasic and QuickBASIC). So your site is not only a welcome resource, but a vital one in an industry that just doesn't seem to get it.

The best example to illustrate my point is XOJO (formerly RealBASIC). They have a guy who's sole job is to promote the language with video tutorials, forum contributions, and answering emails. They call him a "product evangelist". But outside of his efforts there are only three outside web sites; one is just a blog, another is a library of very old stuff based on RealBASIC that no longer exists but they still charge for their outdated materials(!), and the third is a tutorial site with only one tutorial! And this is for a version of BASIC that costs hundreds of dollars! Never mind the fact that XOJO isn't actually BASIC either. It's more of an OOP Rapid Application Development platform that just happens to include a very badly molested command set that has a passing resemblance to BASIC.

Contrast that with the Python community, which has extensive resources. (In fact, that inspires me to research the comparison between Python and QB64.) I loathe Python. It's not a bad language. It's just a lazy, drop-in, replacement for where BASIC SHOULD be today! I could write volumes about how BASIC went from THE language to "lingua non grata" due almost entirely to Microsoft's incompetence, but that's for another time. The educational community needed something to teach kids programming, and the closest thing to BASIC was Python - just because it was there.

So essentially, thank you! I look forward to watching your progress throughout the coming weeks.

:@)
« Last Edit: April 19, 2020, 02:38:44 PM by CBTJD »
CBTJD: Coding BASIC Takes Judicious Dedication

Offline TerryRitchie

  • Forum Resident
  • Posts: 611
  • Semper Fidelis
Re: QB64SOURCECODE.COM
« Reply #13 on: April 19, 2020, 08:33:13 PM »
So essentially, thank you! I look forward to watching your progress throughout the coming weeks.
:@)

Thank you :-)
In order to understand recursion, one must first understand recursion.

Offline TerryRitchie

  • Forum Resident
  • Posts: 611
  • Semper Fidelis
Re: QB64SOURCECODE.COM
« Reply #14 on: April 19, 2020, 08:39:35 PM »
Well you got the .htaccess file worked out, I see. Your site NOW loads for...

http://qb64sourcecode.com/

https://qb64sourcecode.com/

http://www.qb64sourcecode.com/

https://www.qb64sourcecode.com/

Nice going!

Thanks for verifying that Pete but I can't take credit for it. I sent an email to GoDaddy asking the best way to go about implementing what Fellippe suggested and they took care of it for me.
In order to understand recursion, one must first understand recursion.