Leiningen 2 interactive mode - clojure

Is the "interactive" task not available anymore for leiningen 2? Is there any alternative or plugin with a similar functionality? I am using leiningen 2.0.0-preview4

I'll note the last paragraph probably explains what's going on:
https://groups.google.com/d/msg/leiningen/whV-VUdKSWM/O9H7cUQbGF8J
I should note that I'm considering dropping the interactive task in
2.0 in favour of Jark. You may want to try it instead:
http://icylisper.in/jark/start.html While the upcoming Jark version
intends to support running lein tasks, it unfortunately appears to be
nonfunctional currently.
Edit
The link that is provided gave a 404, but digging around GitHub and I found it:
http://icylisper.github.com/jark/

Related

Why my clojure repl formatting is broken?

I am new to Clojure, and I am usually using it from (Spac)emacs, where the repl formats fine. However, when I try to use the repl within a gnome-terminal, then the formatting is broken, i.e. after 'sending' some code, the line of code gets 'reformatted' as shown in the screencast below:
Anybody has some idea what is going on here? The terminal is just a basic 'gnome-terminal' on Fedora.
B.t.w. the same screencast is used for reporting an issue with criterium about the bench example hanging.
Disclaimer: this is not a solution to the problem, but it shows,
where the problem lies and what are workarounds.
TL;DR: call clojure (which does not use rlwrap¹; use
Rebel-Readline
instead, for more features
clj calls clojure, but checks, if rlwrap is installed and uses
that to call clojure with some settings, that are suitable for a Lisp.
rlwrap is a great tool, to get readline capabilities with
interactive CLI tools, that don't have it (e.g. emacs/vi-mode, history,
"hippy" completion). But in this case it is the culprit to smash up the
REPL. What's underlying problem is not clear, but in cases like this
the options usually are: buggy software (the terminal, rlwrap, or the
way Clojure interacts with the terminal), wrong/buggy TERM settings or
term-capabilities.
That said, rlwrap might be the "just good enough" option here
anyway. First of all Clojure developers tend to use the REPL via the
editor anyway. Second there is a far superior option to get what
rlwrap brings to the table:
Rebel-Readline
Beside emacs/vi-modes and history it brings (and probably more):
syntax highlighting for both input and output (with pretty-printing)
multi-line edit in the REPL
proper auto-completion
showing the doc-string of the function under the cursor
¹) From: https://github.com/hanslub42/rlwrap
rlwrap is a 'readline wrapper', a small utility that uses the GNU Readline library to allow the editing of keyboard input for any command.
This is a rlwrap bug that has been fixed upstream (but, as of now, is still open in several distributions) . In a nutshell, either:
use a recent rlwrap (0.46-1 or newer),
or avoid the very newest readline (8.2 or newer),
or put set enable-bracketed-paste off in your inputrc
See this bug report on Github (or this summary of the history of this issue)
Hans Lub (rlwrap maintainer)

Start my program at login in MacOSX

I am developing a program in C++ in MacOSX, and I want to add an option to start my program at login. I investigated some possible solutions in MacOSX, but I did not understand well which is the best/the official suggested one nowadays. Some of them are easy, some more complicated, and it seems that the easier ones are not the suggested ones for the future.
Here a resume of what I found:
using OsaScript: it seems the simplest one, but I really would like a C/C++ API, and not using the osascript command
From the official documentation, I can see the 'Service Management framework', but I want the user be able to see my app started at login in the preference, and I would not like to create another helper bundle...
Again from the official documentation, I can see Launch Services Reference, but I am not sure it is what I need. I did not find any example in C/C++, and if I search for the 'Login' keyword, I just see two deprecated functions therein...
Technical Note TN2228 it seems a complete guide and with also some example therein, but it speaks about creating a 'authorization plug-in'. Do I really need that to start my app at login?
Creating Launch Daemons and Agents it seems the preferred way to launch a Daemon, but my app is not really a daemon...
So, what do you suggest me to do?
Do you know some other way to make my programm running at login?
Which one do you think is the easiest but not deprecated solution?
Do you have some example in C/C++? All the example I found are in other languages...
Thanks everybody
PS:
At the end I chose the OsaScript solution (one line of code...)
From this example you can see that you can set the property "name" when you add your item so that you can delete it later.
I am still looking for a easy C++ solution...

How to add a live (interactive) console window to Atom?

Is it possible to add a live (interactive) console window to Atom? Note that this is similar to the article on adding a live console session to LightTable, except that it is for Atom.
Essentially, I am interested in the integrated terminal emulation that Geany is capable of doing:
Is there any way to do this in the Atom text editor from Github?
Yes it is possible. Don't know how they did, but there is a package "paltformio-ide". Installing it would add the windows powershell in atom, like this one:
You might take a look at Atom Terminal Panel packages.
I started using platformio-ide-terminal. Project URL: https://atom.io/packages/platformio-ide-terminal
Being used to webstorm live console I like terminal-plus a lot
I recomend you use "platformio-ide-terminal"
platformio-ide-terminal should be better because it was fork of terminal-plus.
and most of the features and usage are same as terminal-plus.
read some docs here and you will love it.
https://atom.io/packages/platformio-ide-terminal
Boy, do things change. As of May 2018, terminal-panel, atom-terminal-panel and terminal-plus haven't been updated in years and aren't compatible with the new versions of Atom.
At the moment, platformio-ide-terminal also doesn't support the latest stable version of Atom (1.26) - it's only been maintained up to Atom 1.25. platformio-ide-terminal is also the terminal for platformio-ide, an IoT IDE. I don't recommend it for non-IoT applications.
So there doesn't seem to be a good terminal application for Atom's non-IoT use cases right now, unless you want to use an old version of Atom.
The most recent versions of atom-ide-ui now provide an integrated terminal that you can open (default keyboard shortcut Ctrl-Shft-T on MacOS).
It seems to be pretty smoothly integrated, even properly using all your normal environment options.

How to write modular Ember.js apps

Is there any guidance on how to write modular Ember.js apps? I have seen Tom Dale's position on AMD here so I am not going to force fit AMD on to the framework (as some have attempted here). It appears that Ember internally uses bpm/spade. Is that a reasonable approach to modularize Ember apps too? Any samples using this approach?
P.S. The getbpm.org site seems to be down which makes it difficult to learn about it. There is a github page but it refers to the site for install instructions.
BPM in it's current form is no longer supported by the core team, but is community supported. The only build tools they are officially providing support for is rake-pipeline. However, BPM does still work and it works well (I still use it with my projects). For info on how to use it see this: https://github.com/ud3323/bpm/wiki/Using-BPM-with-Ember. You may want to use my fork of bpm too. I've merged in Joe West's support for a proxy middleware.
There is also community build tools for node.js called ember-runner which looks promising as well.
As for using rake-pipeline. Look at the AssetFile on the emberjs projects to see how must be configured using rake-pipeline and rake-pipeline-web-filters. Also, take a look at the answers to this question on StackOverflow (especially Yehuda's). You may also find this gist helpful as well.
Try Ember App Kit - maybe it would help you.
I have played a bit with Rails, so for me, creating a rails 3.2 app was the easiest way to achieve this. So if you don't mind using rails as a back-end, I this might suit you.
Perhaps ember-tools could help:
https://github.com/rpflorence/ember-tools
I am novice still I found yeoman and ember-generator useful. In future you might need to add tests , mock rest calls you can easily npm install sinonjs and npm install ic-ajax

Rendering using OpenSG python bindings

Hey!! I'm looking for python bindings for opensg 1.8.. I haven't been able to find it. I have read somethin about pyopengs. Is it still available? I am working on linux platform (ubuntu). If anyone could direct me to it I would be grateful.
The homepage and source code is on google code: pyOpenSG Project
As one of the creators of pyOpenSG, I can tell you that it is definitely still alive and kicking. We use it in production software all the time. It has become so stable for us though that we don't often update the code base. The python binding generator that we use (py++) just keeps everything working between revisions.