Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Activity for Razetime‭

Type On... Excerpt Status Date
Question How to import a vocabulary's test file in factor.
For example: Code is USE: math.vector.simd.tests, error says that vocabulary does not exist I have noticed that this does not work for any vocabulary's tests. What is the alternate way to `USE:` these test vocabularies? EDIT: The `test` word appears to run all tests alongside the import. h...
(more)
about 1 year ago
Question Relayout call does not work on button click in Factor
I am currently using this code to display a GUI counter: ``` USING: accessors arrays fonts kernel math math.parser ui ui.gadgets ui.gadgets.buttons ui.gadgets.editors ui.gadgets.labels ui.gadgets.packs ; IN: 7guis : tfont ( -- font ) default-sans-serif-font-name >>name 18 >>size ; ...
(more)
over 1 year ago
Answer A: How to find the existing default action for a UI gadget in factor
From mrjbq7: The correct vocabularies for finding default actions are in - Operations - Web Browser for `URL"` markdown elements. Generally, looking for `define-operation` should work for finding the default action for a clickable markup element.
(more)
over 1 year ago
Question How to find the existing default action for a UI gadget in factor
For a UI gadget like a `$link` in Factor, a click automatically opens the page that it points to. I want to know where this default behaviour is defined. In the factor documentation, there are many places which I've checked so far: - handle-gesture - set-gestures - panes and presentation gadget...
(more)
over 1 year ago
Answer A: highlight.js 3rd party plugin error: Cannot read properties of undefined
Answer from allejo (highlightjs contributor): In your language file, remove your empty `Requires:` line in the comment. After removing that, it should let you compile again. The comment is significant to the build process. This will likely be handled silently or throw a warning in a future vers...
(more)
over 1 year ago
Question highlight.js 3rd party plugin error: Cannot read properties of undefined
Highlight.js version: 11.6.0 Node version: v18.12.0 npm version: 8.19.12 When I provide a plugin with the following code to highlightjs (full code is at github): ``` / Language: BQN Requires: Author: Raghu Ranganathan Contributors: Description: BQN array language definitions Websit...
(more)
over 1 year ago
Question Why is boolean value f (false) defined as a parsing-word while t (true) is not in Factor?
I noticed when attempting to generate random booleans that `t` and `f` are not treated in the same way: ```factor t random ! Error f random ! returns a value ``` In the factor 0.98 and 0.99 documentation, `t` is defined as a simple word, whereas `f` is given special status as a parsing word....
(more)
over 1 year ago
Question How to get a default value from an assoc in Factor programming language
To get a value from an assoc and provide a default value if the value does not exist, I am using the following definition: ``` :: at-def ( key assoc default -- value ) key assoc ?at [ drop default ] when ; ``` Is there a more specialized word to do this? (or a different class to use?)
(more)
over 1 year ago
Question How to create a quotation containing the given token in a syntax word in Factor programming language
I am trying to define a syntax word as follows: ``` USING: kernel syntax parser fry prettyprint ; IN: syn-try SYNTAX: syn scan-word '[ ] . ; ``` Given a word, I want to create a quotation containing the word. In the factor listener, if i do `syn word` I get `[ \ word ]`. How do I re...
(more)
over 1 year ago
Question Algorithmically generating the grid formed by the vertices of a dodecahedron (Hunt The Wumpus)
I am attempting to write a program to simulate Hunt The Wumpus in the K programming language. The game requires a grid that is created by the vertices of a Dodecahedron, which is cyclic and triangular in nature. Dodecahedron The general approach I can find on Rosetta Code is generally a hardcod...
(more)
about 2 years ago
Question Resize HTML canvas with respect to inner content
I am currently making an esoteric language which requires a theoretically infinite canvas. Basically, it should be able to resize and fit the contents of the drawing in and outside it's existing boundaries. Black Squiggle, Red outline rectangle and brown solid rectangle The brown region indicat...
(more)
over 3 years ago
Answer A: Tampermonkey userscript prevents pages from loading
The problem here was resolved by moving the `@require` script inside the `DOMContentLoaded` listener like in this link. I think the main problem was that the interpreter was causing conflicts, since it was getting loaded before the page loaded. I'd appreciate it if someone could find a way to make...
(more)
over 3 years ago
Question Tampermonkey userscript prevents pages from loading
I am currently making a userscript to interpret the APL programming language in a Stackexchange chat window. This is the code I have come up with: ``` // ==UserScript== // @name APL chat // @version 2 // @grant GMxmlhttpRequest // @grant GMlistValues // @match https://chat.stac...
(more)
over 3 years ago
Answer A: Site scope - draft proposal
> Questions with artificial requirements that have no practical use, including code obfuscation and code golf Questions with no practical use can and have always existed in some way. I could be programming anything as a hobby, and I could simply get rejected because my question "does not have a p...
(more)
over 3 years ago
Question Permutations of an array - APL
In Dyalog APL, there's a predefined function in the `dfns` library to generate a matrix of permutations for a list of the numbers from 1 to n. I want to create the same functionality, except that it should work for any array, not just a range 1 to n, in APL NARS2000. How do I implement that?
(more)
over 3 years ago