Search found 2029 matches

by [-hh]
Wed Jul 17, 2019 5:35 pm
Forum: Feature Requests
Topic: Date and Time in RFC 3339 format
Replies: 10
Views: 536

Re: Date and Time in RFC 3339 format

For the first part of your function you could also use a one-liner:

Code: Select all

function ConvertInternetTimeToDateItems tInternetTime
   return item 1 to 6 of replaceText(tInternetTime,"[-T:.]",",")
end ConvertInternetTimeTodateItems
by [-hh]
Tue Jul 16, 2019 11:28 am
Forum: Raspberry Pi
Topic: LC Player on RPi
Replies: 4
Views: 177

Re: LC Player on RPi

LC Player is not implemented for the Raspi. You could use omxplayer (developed special for Raspi) which is hardware accelerated and knows all formats. This is already part of Raspbian so no user has to install additional apps for working with your app. See https://www.raspberrypi.org/documentation/r...
by [-hh]
Mon Jul 15, 2019 8:28 pm
Forum: HTML5
Topic: html5 wait command (workaround)
Replies: 4
Views: 191

Re: html5 wait command (workaround)

You could simply use "send in <time>". It's better than wait, not only a workaround.
by [-hh]
Mon Jul 15, 2019 8:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: buffering browser widget
Replies: 7
Views: 427

Re: buffering browser widget

Locking the screen may not help with that: the delay is probably from switching cards and the fact that the browser widget uses a native display.
You could try to stay always on the same card and hide/show the linked image and show/hide the widget instead.
by [-hh]
Sat Jul 13, 2019 5:13 pm
Forum: Rich Media
Topic: Encapsulated Image in external File
Replies: 13
Views: 550

Re: Encapsulated Image in external File

As I said above, the text of an image, whether referenced or not, is not empty after using:

Code: Select all

-- next two lines needed for referenced images only
  set the alphadata of img iName to the alphadata of img iName
  set the imagedata of img iName to the imagedata of img iName
by [-hh]
Sat Jul 13, 2019 5:04 pm
Forum: Rich Media
Topic: Encapsulated Image in external File
Replies: 13
Views: 550

Re: Encapsulated Image in external File

The code I gave above works here on Win 10 using LC 8/9. The only possibility that base64Encode(the imagedata of image iName) is empty is that the imageData of image iName is empty. So once again, as you insist on using imageData only and you say the image that you are going to save(=image "Image") ...
by [-hh]
Sat Jul 13, 2019 11:35 am
Forum: Rich Media
Topic: Encapsulated Image in external File
Replies: 13
Views: 550

Re: Encapsulated Image in external File

Using "The text of the image" yields no data in the file, with or without base64Encode. I use base 64 encoding/decoding of images without problems all day here. This is "the" way to use images from LC with HTML5. But there may be problems with the file read/write procedure you use. With your method...
by [-hh]
Fri Jul 12, 2019 9:13 pm
Forum: Raspberry Pi
Topic: Coming in 9.x
Replies: 19
Views: 1207

Re: Coming in 9.x

Overlooked there's already a link from Mark to YAML.

Trevor/Levure framework used YAML for configuration.
by [-hh]
Fri Jul 12, 2019 4:50 pm
Forum: Rich Media
Topic: Encapsulated Image in external File
Replies: 13
Views: 550

Re: Encapsulated Image in external File

You could use for writing out:

Code: Select all

put cr & base64Encode(the text of img "ïmagename") after tWriteData
and then use for reading in:

Code: Select all

set text of img "ïmagename" to base64Decode(line x to -1 of tWriteData)
by [-hh]
Thu Jul 11, 2019 2:33 pm
Forum: LiveCode Builder
Topic: Community widgets
Replies: 42
Views: 20675

Re: Community widgets

Lagi, the widget and demo works here in Windows10-64bit using LC 8.1.10 and 9.0.2. and 9.5.0-dp1. Did you install / do you use the widget that comes with the turnImage stack (and uninstall old versions)? The widget version is shown in the property inspector and should read "turnImage_v135". The widg...
by [-hh]
Thu Jul 11, 2019 9:40 am
Forum: iOS Deployment
Topic: Stopping a list of musical notes
Replies: 3
Views: 177

Re: Stopping a list of musical notes

You could try: on mouseUp put ... into tAudio if the label of me is "Play" then set label of me to "Stop" if the environment is "mobile" then play (specialFolderPath ("cache") & "/theContent/" & tAudio) else set the defaultFolder to specialFolderPath("desktop") play audioClip ("sounds/" & tAudio) en...
by [-hh]
Thu Jul 11, 2019 9:16 am
Forum: Feature Requests
Topic: Date and Time in RFC 3339 format
Replies: 10
Views: 536

Re: Date and Time in RFC 3339 format

TorstenHolmer wrote:Is there a way to transform the livecode date and time information into the Internet format RFC 3339?
You could use (the components of) the internet date.
[The optional fractional seconds can be derived from the millisecs.]

p.s. There is also https://github.com/derbrill/libdate
by [-hh]
Wed Jul 10, 2019 5:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can LC do math with precision to the 9th decimal place? - Solved
Replies: 8
Views: 272

Re: Can LC do math with precision to the 7th decimal place?

Klaus, the question is not whether LC can display 9 decimal places but whether doing real number math with LC yields results with correct 9 decimal places. This depends on the size of numbers that are involved in the computations. H. For example try with 1234567890.000000100 + 1.000000200 or format(...
by [-hh]
Wed Jul 10, 2019 5:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can LC do math with precision to the 9th decimal place? - Solved
Replies: 8
Views: 272

Re: Can LC do math with precision to the 7th decimal place?

LC uses the 64-bit IEEE precision which is specified in terms of significant digits rather than decimal places. So in general: No. But see the thread here http://forums.livecode.com/viewtopic.php?f=9&t=31793 Also LC has announced some time ago a "decimal number implementation" for 9.x, see http://fo...

Go to advanced search