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 |
---|---|---|---|---|
Edit | Post #287855 |
Post edited: |
— | almost 2 years ago |
Edit | Post #287855 | Initial revision | — | almost 2 years ago |
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) |
— | almost 2 years ago |
Edit | Post #287807 |
Post edited: |
— | almost 2 years ago |
Edit | Post #287807 | Initial revision | — | almost 2 years 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) |
— | almost 2 years ago |
Edit | Post #287802 | Initial revision | — | almost 2 years 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) |
— | almost 2 years ago |
Edit | Post #287799 | Initial revision | — | almost 2 years 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) |
— | almost 2 years ago |
Edit | Post #287336 | Initial revision | — | about 2 years 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) |
— | about 2 years ago |
Edit | Post #287335 | Initial revision | — | about 2 years 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) |
— | about 2 years ago |
Edit | Post #286895 | Initial revision | — | over 2 years 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 2 years ago |
Edit | Post #286886 | Initial revision | — | over 2 years 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 2 years ago |
Edit | Post #286877 |
Post edited: |
— | over 2 years ago |
Edit | Post #286876 |
Post edited: fix scan-word |
— | over 2 years ago |
Comment | Post #286877 |
I made a mistake, it was `scan-word` in the definition. (more) |
— | over 2 years ago |
Suggested Edit | Post #286877 |
Suggested edit: (more) |
helpful | over 2 years ago |
Edit | Post #286876 | Initial revision | — | over 2 years 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 2 years ago |
Comment | Post #286041 |
I've changed it to a static picture. (more) |
— | over 2 years ago |
Edit | Post #286041 |
Post edited: |
— | over 2 years ago |
Edit | Post #286041 | Initial revision | — | over 2 years 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) |
— | over 2 years ago |
Comment | Post #280491 |
I think the main idea is 1) scrolling to the top leftmost position ,b) resizing the canvas to fit the whole image and c) redrawing everything back onto it. I need the whole drawing to be visible. (more) |
— | almost 4 years ago |
Edit | Post #280491 | Initial revision | — | almost 4 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) |
— | almost 4 years ago |
Comment | Post #280217 |
@aditya98 People tend to use Ruby for the sole purpose of making a Rails app. Rails is widely used because it's not very hard to start with, easy to quickly host(Heroku), and has a wealth of learning resources. I suggest looking at some course material, learning some frameworks and finding out what w... (more) |
— | almost 4 years ago |
Edit | Post #280173 | Initial revision | — | almost 4 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) |
— | almost 4 years ago |
Comment | Post #278920 |
You may want to see the behaviour of the [`tf.image.resize`](https://www.tensorflow.org/api_docs/python/tf/image/resize) function. (more) |
— | almost 4 years ago |
Edit | Post #280059 | Initial revision | — | almost 4 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) |
— | almost 4 years ago |
Comment | Post #279070 |
what kind of functionality do you want? do you need the date to be constant? (more) |
— | about 4 years ago |
Comment | Post #278659 |
Simple, clean and to the point. I like this answer. (more) |
— | about 4 years ago |
Edit | Post #278645 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Comment | Post #278563 |
I am trying to do this in NARS2000 where pmat is not built in, so `{⍵[pmat ⍴⍵]}` doesn't exactly work.
(more) |
— | about 4 years ago |
Edit | Post #278547 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Comment | Post #277441 |
Here's a good article on this: https://medium.com/variable-fonts/https-medium-com-tiro-introducing-opentype-variable-fonts-12ba6cd2369
(more) |
— | about 4 years ago |