Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - helium5793

Pages: [1]
1
QB64 Discussion / Two books offered for price of shipping
« on: July 29, 2021, 09:11:10 am »
Hi, about a year ago I offered one of these books for the price of shipping.  I got no replies for a day or two so I stopped looking.  I just noted there were several people that later responded.  I am sorry about that.  Since it has been a year, I am just going to reoffer these.  I am asking you to send a email so I don't screw up again.
The first is "Quick Basic programming for Scientists and Engineers" by Joseph Noggle.  It is hard bound (c) 1993, and comes with a cd of source code. 
The second is "Microsoft QuickBasic for Scientists", a guide to writing better programs.  It is paperback, (c) 1988.   If you are interested, send me an email at jrduchek@tularosa.net with your address and which one you would like.  I would like two people to get the two books. 
Thanks to these folks who are keeping a great language afloat!!!!!!!
John

2
QB64 Discussion / Installing qb64 on a raspberry pi 3B
« on: May 11, 2020, 08:59:55 pm »
I followed these directions first which you have probably seen:

                   
I Installed QB64 on a RaspberryPi 3 B
                                                                                         Quote       
                                           Tue Sep 19, 2017 6:53 pm
                    I started with installing the library's from the setup_lnx.sh for Debian.
Code: Select all

ls
sudo apt-get install g++ libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev libsdl1.2-devI then came across this post at the QB64 Forum http://www.[abandoned, outdated and now likely malicious qb64 dot net website - don’t go there]/forum/index.php?topic=13926.0 

That indicated to change and add to top of the file qb64/internal/c/common.h Code: Select all
#define QB64_NOT_X86I then did ./setup_lnx.sh and it took in the order of 10 mins to complete with no errors.
Ran a simple program and it was ok.           

This did not work for me at first.  It would start to install and then crash after several minutes.     

I had installed xfce and it has a panel app that shows CPU use, memory use, and swap use.  I could see that when it crashed it had run out of memory and swap space.  I then found this link for increasing swap space.           

https://www.bitpi.co/2015/02/11/how-to-change-raspberry-pis-swapfile-size-on-rasbian/

If you follow these directions you can increase the swap space.  The pi above had 1GB of memory, and 100mb of swap as the default.  I raised it to 1024MB of swap and it installed for over an hour and then crashed, again out of swap space.  I increased the swap space to 2048MB and it installed successfully in a few minutes.  If you are not familiar with swap space, it is what the computer uses when it runs out of memory.  Basically it is a file on whatever you are using as a harddrive, in my case a 32GB usb stick.  It runs slower than memory, but gets the installation done.   
John


3
Hi everybody,
I have this book in my library,Microsoft QuickBasic for Scientists? A guide to writing better programs.  Copyright 1988.  It is in close to new condition.  If anyone is interested in it, let me know I will send it to you in the US if I have an address.

John

4
QB64 Discussion / C++ compilation failed
« on: March 23, 2020, 10:11:21 am »
I am running under Fedora 31 linux.  I am trying to resurrect an old qb45 program. 
Code: QB64: [Select]
  1. TYPE presdent
  2.     firstname AS STRING * 12
  3.     midinit AS STRING * 1
  4.     lastname AS STRING * 15
  5.     picname AS STRING * 8
  6.     party AS STRING * 12
  7.     startyear AS INTEGER
  8.     endyear AS INTEGER
  9.     bornyear AS INTEGER
  10.     dieyear AS INTEGER
  11.     bpcity AS STRING * 14
  12.     bpstate AS STRING * 2
  13.     age AS INTEGER 'age at which they became president
  14.     flady AS STRING * 12
  15.     vicepres AS STRING * 24
  16.     earlyact AS STRING * 50
  17.     presact AS STRING * 50
  18.     ancestry AS STRING * 14
  19.     profess AS STRING * 18
  20.     religion AS STRING * 14
  21.     rank AS STRING * 20
  22.     nicknam AS STRING * 46
  23.     alma AS STRING * 16
  24.     firsts AS STRING * 50
  25.     astrosign AS STRING * 12
  26.     general AS STRING * 50
  27.     buried AS STRING * 20
  28.     DTA AS STRING * 42
  29. DIM pres AS presdent
  30. OPEN "presdent.dta" FOR RANDOM AS #1 LEN = LEN(pres)
  31. INPUT "starting record"; i%
  32. i% = i% - 1
  33.     i% = i% + 1
  34.     GET #1, i%, pres
  35.     IF i% > 41 THEN CLOSE: END
  36.     PRINT i%, pres.lastname
  37.     tryagain:
  38.     LINE INPUT "buried: ", ax$
  39.     IF LEN(ax$) > 20 THEN BEEP: GOTO tryagain
  40.     pres.buried = ax$
  41.     a = pres.age
  42.     IF a = 0 THEN CLOSE: END
  43.  
  44.     PUT #1, i%, pres
  45. LOOP UNTIL pres.vicepres = STRING$(24, CHR$(0))
  46.  
  47.  

above is the code, and here is the error message. recompile_lnx.sh

#!/bin/sh
Pause()
{
OLDCONFIG=`stty -g`
stty -icanon -echo min 1 time 0
dd count=1 2>/dev/null
stty $OLDCONFIG
}
echo "Recompiling..."
cd ../c
g++ -no-pie -w qbx.cpp  libqb/os/lnx/libqb_1_4_0001000000000.o  -D DEPENDENCY_NO_SOCKETS -D DEPENDENCY_NO_PRINTER -D DEPENDENCY_NO_ICON -D DEPENDENCY_NO_SCREENIMAGE -D DEPENDENCY_AUDIO_OUT  parts/audio/out/os/lnx/src.a parts/core/os/lnx/src.a -lGL -lGLU -lX11 -lpthread -ldl -lrt -D FREEGLUT_STATIC -o '../../LOADDATA'
echo "Press ENTER to exit..."
Pause

any ideas on how to correct this would be appreciated
Thanks,
John

Pages: [1]