Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 50 online users. » 0 Member(s) | 49 Guest(s) Bing
|
Latest Threads |
Request for command exten...
Forum: Extensions
Last Post: martmen
05-27-2025, 09:42 AM
» Replies: 2
» Views: 73
|
Multi Language GUI
Forum: Extensions
Last Post: kellanphil
05-27-2025, 02:00 AM
» Replies: 3
» Views: 188
|
Solution for large window...
Forum: Extensions
Last Post: martmen
05-25-2025, 10:17 AM
» Replies: 0
» Views: 74
|
ZS DIALOG ERROR
Forum: Extensions
Last Post: litdev
05-21-2025, 08:37 AM
» Replies: 4
» Views: 144
|
The OpenSB Project - reus...
Forum: Discussion
Last Post: z-s
05-19-2025, 12:56 AM
» Replies: 8
» Views: 185
|
Guys!
Forum: Discussion
Last Post: z-s
05-17-2025, 01:25 AM
» Replies: 1
» Views: 70
|
Creation of SB-Neuron. Ou...
Forum: Discussion
Last Post: AbsoluteBeginner
05-15-2025, 03:46 PM
» Replies: 102
» Views: 10,017
|
Few questions
Forum: Standard Small Basic
Last Post: litdev
05-14-2025, 09:36 AM
» Replies: 1
» Views: 85
|
Show ZPHB733.000 LDContro...
Forum: Extensions
Last Post: sm4llprogrammer2008
05-13-2025, 10:15 PM
» Replies: 5
» Views: 232
|
Another question.
Forum: Standard Small Basic
Last Post: litdev
05-13-2025, 07:04 AM
» Replies: 1
» Views: 68
|
|
|
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.
Due the large number of spam users, we are relatively agressive banning and in some cases preventing acount activation. If you are having trouble with activation, then please contact admin@litdev.uk.
|
|
|
|