We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 969
» Latest member: tylekeonhacai06
» Forum threads: 233
» Forum posts: 2,322

Full Statistics

Online Users
There are currently 21 online users.
» 0 Member(s) | 20 Guest(s)
Bing

Latest Threads
Challenge 14 - Rainbow
Forum: Challenges
Last Post: tiagomoreira41
10-07-2026, 12:51 AM
» Replies: 6
» Views: 2,256
Use second screen by smal...
Forum: Extensions
Last Post: litdev
09-05-2026, 08:11 PM
» Replies: 2
» Views: 336
Small Basic as the "LEGO ...
Forum: Discussion
Last Post: litdev
08-17-2026, 11:06 AM
» Replies: 5
» Views: 649
I never thought this woul...
Forum: Discussion
Last Post: litdev
07-10-2026, 10:18 AM
» Replies: 1
» Views: 332
ListView issues by use LD...
Forum: Extensions
Last Post: martmen
06-11-2026, 09:46 AM
» Replies: 6
» Views: 976
I think that no more Smal...
Forum: Discussion
Last Post: eddylo
04-24-2026, 12:54 AM
» Replies: 2
» Views: 911
D'ont read a file
Forum: Standard Small Basic
Last Post: WhTurner
04-12-2026, 03:39 PM
» Replies: 1
» Views: 531
close a file
Forum: Standard Small Basic
Last Post: francesco
04-12-2026, 08:59 AM
» Replies: 2
» Views: 680
random in a array
Forum: Standard Small Basic
Last Post: francesco
04-05-2026, 06:40 PM
» Replies: 4
» Views: 1,128
Sqlite Version
Forum: Extensions
Last Post: Lester
03-24-2026, 06:58 PM
» Replies: 3
» Views: 858

 
  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)

Print this item

  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).

Print this item

  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.

Print this item