I’d like to make a file-access widget for NW.js, written in typescript. It consists of a button and a text field. When you click the button, it opens up a file dialog for selecting a file. It then places the filename in the text field and has options for copying, moving, and deleting the selected file.
In order to ensure that our software can run on any operating system, we need a node.js function equivalent to the unix “find” command. Really, only the -name parameter of the find command needs to be implemented.
Our lab creates free drug-discovery apps that run both in the cloud (through a browser) and on the desktop (using nw.js). These apps are based mostly on Typescript. The web-based versions communicate with our remote servers through ajax calls, mostly to node.js cgi scripts. We need to be able to do the same on the desktop versions of our apps.
This project involves creating a Typescript function that:
- Accepts POST data as input.
- Detects whether or not it’s being run from within a browser or nw.js.
- Passes the POST data through AJAX if it’s in a browser, or to a local file if running in nw.js.
- Accepts a callback function to process the returned data.
The AJAX should be managed using JQuery’s $.ajax function.
Web menus look like this:
We need a single Typescript function that accepts a json object that fully describes how a menu should behave (i.e., the structure, which functions to call when clicked, etc.). This function should support disabled menu items, as well as separator bars. Based on a boolean parameter (isBrowser), the function renders a browser-based menu or a windows-based/nw.js menu.
In our lab, we often need to run independent python functions on multiple processors. By independent, I mean the functions don’t need to communicate with each other (embarrassingly parallel). Our current scripts divide the individual “tasks” evenly in the beginning and then run each “chunk” (i.e., subset of all tasks) on a separate processor. But occasionally one of these chunks will take much longer to finish than the others, so the processors aren’t all used optimally.
- There needs to be periodic “load balancing.”
- We need a solution that works on windows if possible.
- We’re looking for something written in native python that can be easily incorporated into our projects, without requiring the installation of any third-party modules.