livecode | A toolkit for livecoding using Ruby and TextMate on OSX
kandi X-RAY | livecode Summary
kandi X-RAY | livecode Summary
A toolkit for livecoding using Ruby and TextMate on OSX.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Updates the translation of the editor file
- Creates a daemon server .
- Start a thread
- Start the server .
- Connects a URL to a server .
- Start the thread
- Dispatches the command to dispatch
- Iterates over all unique values of this object
- Reloads the files .
- Set a value from the collection .
livecode Key Features
livecode Examples and Code Snippets
Community Discussions
Trending Discussions on livecode
QUESTION
I'm trying to create a simple mobile app that queries an API and parses the response to display certain values.
The mobile has 2 fields viz:
- Button to query the api
- Large text box to display the contents
In my livecode stack, I've the following inclusions:
- JSON Library
- mergJSON
- tsNet
The api response is as follows:
...ANSWER
Answered 2021-Dec-02 at 15:56It looks like it might be a multidimensional array. Here's a simple way to get a look at how it's structured:
Drag a Tree View widget onto your card.
Set the arrayData property of the widget to your array tDataArray. Like this:
set the arrayData of widget "Tree View" to tDataArray
You should see the structure of the array in your tree view widget. It's possible that the array that was created looks something like this:
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
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install livecode
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
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