Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 110
» Latest member: JonnyWi
» Forum threads: 125
» Forum posts: 1,479
Full Statistics
|
Online Users |
There are currently 36 online users. » 0 Member(s) | 34 Guest(s) Bing, Google
|
Latest Threads |
LDArray extension
Forum: Extensions
Last Post: AbsoluteBeginner
5 hours ago
» Replies: 17
» Views: 170
|
AI learns Small Basic
Forum: Discussion
Last Post: jrmrhrb00
Yesterday, 12:14 AM
» Replies: 6
» Views: 136
|
Challenge 9 - Quick sort
Forum: Challenges
Last Post: AbsoluteBeginner
11-18-2024, 03:52 PM
» Replies: 47
» Views: 958
|
How to exit a subroutine ...
Forum: Standard Small Basic
Last Post: litdev
11-11-2024, 12:59 PM
» Replies: 2
» Views: 85
|
Training program for SB-N...
Forum: Discussion
Last Post: AbsoluteBeginner
11-08-2024, 07:02 AM
» Replies: 13
» Views: 335
|
SmallBasic Open Edition
Forum: C# Moving from Small Basic
Last Post: KristianVirtanen
11-05-2024, 06:37 PM
» Replies: 21
» Views: 661
|
UCI Chess Engine
Forum: Challenges
Last Post: Scout
10-30-2024, 10:41 PM
» Replies: 17
» Views: 1,747
|
Welcome
Forum: Standard Small Basic
Last Post: AbsoluteBeginner
10-30-2024, 10:01 PM
» Replies: 11
» Views: 1,670
|
Skull Custom Language Cre...
Forum: Discussion
Last Post: z-s
10-28-2024, 04:49 PM
» Replies: 87
» Views: 10,721
|
SB-Prime Plugins
Forum: Extensions
Last Post: litdev
10-25-2024, 07:52 AM
» Replies: 1
» Views: 76
|
|
|
Challenge 1 - TextWindow login |
Posted by: litdev - 09-04-2023, 09:18 AM - Forum: Challenges
- Replies (1)
|
|
Write a TextWindow login program.
It should have options to: - create and account and set a password
- login using existing account and password (checking the password)
To extend the program you could:- have a reset password option
- save the passwords so that the program can be rerun
- consider how to 'encrypt' the passwords
- write a GraphicsWindow version
|
|
|
Flickr |
Posted by: litdev - 09-02-2023, 07:33 PM - Forum: Extensions
- Replies (8)
|
|
I have previously fixed issues with Small Basic Flickr command, due to changes in flickr api.
I had a look at it again as it doesn't work and determined that this time the api key has expired. I got a new api key and updated LDUtilities.FixFlickr. It seems to need to download the file rather than just load with ImageList, but the following works (Beta 1.2.25.0).
Code: LDNetwork.SetSSL()
flickr = LDUtilities.FixFlickr()
imageURL = Flickr.GetRandomPicture("Car")
tmpFile = File.GetTemporaryFilePath()
LDNetwork.DownloadFile(tmpFile,imageURL)
image = ImageList.LoadImage(tmpFile)
File.DeleteFile(tmpFile)
GraphicsWindow.DrawResizedImage(image,0,0,GraphicsWindow.Width,GraphicsWindow.Height)
|
|
|
Network file transfer |
Posted by: litdev - 09-02-2023, 05:27 PM - Forum: Extensions
- No Replies
|
|
While reinstating website and extension downloader, I found that various webserver requests, like ftp etc failed. The solution was to set the following (C#) before starting web requests.
Code: WebRequest.DefaultWebProxy.Credentials = CredentialCache.DefaultCredentials;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
I then tried one of my old programs that uses a web resource image and it failed. It was the same SSL security issue. The same fix, implemented with LDNetwork.SetSSL(). The following SB now works, even with standard SB ImageList web access for networked resources.
Code: LDNetwork.SetSSL()
image = ImageList.LoadImage("https://litdev.uk/game_images/rubic.png")
GraphicsWindow.DrawImage(image,0,0)
This should open up a lot of options for networked resources, and is available with LitDev Beta version (1.2.25.0).
|
|
|
Welcome |
Posted by: litdev - 09-01-2023, 08:29 AM - Forum: Discussion
- Replies (2)
|
|
Welcome to this Small Basic forum.
The idea of this forum is to provide a resource for questions and answers.
Please use this Discussion section for general Small Basic discussions.
|
|
|
|