livecode | front page of this , and other music things | Configuration Management library
kandi X-RAY | livecode Summary
kandi X-RAY | livecode Summary
Home of live code set files (.tidal), source for the front page of this, and other music things
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of livecode
livecode Key Features
livecode Examples and Code Snippets
Community Discussions
Trending Discussions on livecode
QUESTION
livecode
is a R package for broadcasting code for live code demonstrations. I would like to use it for teaching R in online classrooms. The package can be installed from github and runs excellent on my computer and the result is very promising. Once installed from github:
ANSWER
Answered 2021-Apr-23 at 13:08I contacted the package author and he suggested to follow this blogpost:
It suggests to use ngrok
, a service that provides tunnels to localhost. This acutally worked for me for some seconds, killing my livecode
package in the next moment. At the moment, I can no longer use livecode
not even as a localhost. I assume this error may just be my fault. The blogpost provides an easy answer to my question.
QUESTION
In Windows 10, everything works perfectly in the Livecode editor (64 bit). However, after building/compiling, ask and answer dialogs are hidden or behind other items in the stack and do not show.
How can I fix this? I need answer and ask dialogs to appear like they should. I tried 32 bit - same problem.
I can't seem to find anything in the build options that would fix this.
Thank you for any help.
Mike
...ANSWER
Answered 2020-Apr-28 at 14:24It is possible that the ask and answer dialog assets are not being included in the build. Try this:
- Open the Standalone Application Settings from the File menu.
- Go to the General tab.
- Click the radio button "Select inclusions for the standalone application".
- Go to the Inclusions tab.
- Scroll down until you find the Answer Dialog and Ask Dialog options, and check those.
Re-build your project and see if that solves the problem. Please note that if you choose to select inclusions manually you will have to check all of the libraries, widgets, and other assets that you are using in the stack.
When the "Search for required inclusions" option is chosen in the General tab, the Standalone Application Builder is supposed to scan the stack contents and include everything that's needed automatically. But it doesn't always catch everything, so many experienced LiveCode developers always do this step manually.
QUESTION
I am a noob at Python and seeking some assistance with architecture. Here is my setup: I have a legacy client application written in LiveCode that runs in multiple locations to display synchronized information based on what the server demands. Think of this as a kiosk. This client piece is not going anywhere.
The server application is what I’m rewriting in Python. My goal is to have the server application running constantly, listening for client socket connections, and sending/receiving data to/from these clients. I have successfully passed messages between this LiveCode client application and a python script that uses Twisted for the socket handling, so now I need to start processing those messages. The code looks something like this:
...ANSWER
Answered 2020-Apr-23 at 12:51If you're going to use LineReceiver
, you should not override dataReceived
. Instead, override lineReceived
. If your protocol isn't line-oriented, you probably don't want to use LineReceiver
. Also you may want to consider using the Tubes interface in either case.
Do I just define all 20 of these functions in this same “MessageListener” class, or do I write a separate class to keep all of these functions?
You should probably put them on a different class. If you put them on MessageListener
then you will have more difficulty testing, refactoring, and maintaining the code because your protocol logic is tightly coupled to your application logic.
Define an explicit interface that MessageListener
uses to dispatch high-level events representing network actions. Then implement that interface appropriately for your particular application. Later, you can implement it differently for another application. Or you can write test doubles. Or you can change your protocol without changing your application logic. Decoupling the two pieces gives you lots of extra flexibility compared to smashing them both into one class.
I might get 10 messages at about the same time, and they may need to call the same function, so I wasn’t sure the best architecture approach here.
I think this is orthogonal but if it's an important enough part of your protocol or application logic, you might want to consider building some kind of vectorization into the explicit interface I mentioned above. Instead of appObj.doOneThing(oneThing)
perhaps you have appObj.doSeveralThings([oneThing, anotherThing])
.
I also want to build a GUI to interact with the server for some troubleshooting and monitoring on occasion. I’m familiar with Tkinter and it would be fine for this, and I can write the GUI in a separate file and have it connect to the server over a socket as well. But would I use the same socket listener implemented above and just pass it similar messages? Or should I build a separate class and factory to listen for the GUI connections?
That depends on the interactions you want to perform, I suppose. If this is a GUI with extra privileges compared to the normal client, you need a protocol and server with authentication and authorization functionality or you must not use the same server and protocol because you risk giving clients those extra privileges.
If you just want to simulate a real client with a kind of debug-friendly interface that lets you easily interact with the server in ways that a client would normally interact with it, but with an interface that makes this easier for you, you can (and presumably should) connect to the same server.
QUESTION
I have looked high and low for this answer to what I believe is a simple thing.
I am programming a web browser using Livecode (current version with business license) and am having a terrible time trying to get a back button and forward button to work with the built in Browser widget.
This is for a desktop application and not (currently) for a mobile version. It seems the mobile version would be insanely easy but does not work for desktop.
After doing extensive research, the only ideas I found were to utilize a javascript command in Livecode but my particular problem was nowhere to be found.
Here is the code I came up with for trying to go forward a website in the history:
...ANSWER
Answered 2020-Apr-13 at 15:48Set the script of the back button to
QUESTION
I have a button and text entry field in livecode and I want to write a code in the script of the button to change the border color of the text entry filed to purple ?
is this code right
set the borderColor of field "name of field" to "purple"
I am a beginner in livecode and will appreciate your help :)
...ANSWER
Answered 2020-Apr-03 at 04:44Your statement is written correctly. If you were to execute the statement and then look at the borderColor property in the field's property inspector, you would see that it had been set to purple. However, there is something you need to know about fields in LiveCode. When you first create a field, it is set to have a subtle 3-D look to the border, which is a standard look for fields on Mac and Windows. When a LiveCode field is set to 3-D, the color of the border is determined by two separate color properties, the topColor
and the bottomColor
, which determine the colors of the 3-D bevels on the field. To create a single, solid line border on your field do this:
QUESTION
I want to create a component that I'll use as
in a mdx file.
That component will be like that: ...etc render{return{
{this.props.htmldata}
}}
. To what must I assign the htmldata
property to return some HTML inside the div. My aim is to use the same component easily in the mdx file multiple times with different htmldata
without having to create another component.
Edit: i recommend using a function that returns html and is binded and passed as a prop. example:
...ANSWER
Answered 2020-Apr-01 at 12:40You can use dangerouslySetInnerHTML
but that is not recommended
Read more here
https://zhenyong.github.io/react/tips/dangerously-set-inner-html.html
QUESTION
We are developing for one of your customers a method from our application (written exclusively in LiveCode Script) and need to utilise SOAP via a POST command directly from LiveCode. I eventually, after a lot of digging into the resources pages, found some reference on how to Post 'CreateAndSendEnvelope' from here:
However, it does not show where to place login credentials for the user or company or whatever so that it is attributed to the correct account.
I found this question here which kind of points me in the right direction, but do you not have any specific documentation on how to set up your headers and body when using XML for both authenticating and sending a document via email using SOAP?
Providing a simple guide demonstrating the header required and the basic XML to POST to send a document with tags for signing to a single recipient by email using a senders user credentials would be perfect.
Thanks
Sean.
Pi Digital Productions Ltd
...ANSWER
Answered 2019-Dec-30 at 17:15SOAP is still using what we call "Legacy Auth" which is the older, less secure, (not OAUTH) authentication. To use that, you still need an IK (Integration Key) but you provide the username, password and IK in clear text inside a header called X-DocuSign-Authentication that looks like this:
QUESTION
I have implemented D3 chart using NVD3 library below is the link for the reference. Is there a way that I can stop this automatic scaling or get rid of this decimal values. http://nvd3.org/livecode/index.html#codemirrorNav
...ANSWER
Answered 2019-Dec-16 at 05:19Finally I got solution for this issue, problem happens when we have small set of data in which sometimes we get decimal values and when we format for integer values it duplicates the data on Y-axis. Have a look to this plunker:
http://plnkr.co/edit/yFyShQ?p=preview
To make it dynamic you can pass min and max value to
QUESTION
This is ugly:
I need something that is not ugly. Time series are very usual, but I not see how to build a "plug and play" chart with ISO dates.
Perhaps an equivalent question is "How to use d3-scalelinear/Non-numeric range/Date with NVD3?"
(or d3-scaletime)
This is the main code:
...ANSWER
Answered 2019-Jul-16 at 11:34You can try using historicalBarChart which can have time series on x axis.
QUESTION
This NVD3 Live demo is pretty and clean... But it is not evident, not didactic. How to reference this data,
...ANSWER
Answered 2019-Jun-27 at 18:26I did look closely in this matter and found out that the problem was D3 version, it requires v3 not v5.
I changed you example to:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install livecode
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page