luaedit 3..0.10 will not show output from simple script - lua

I am trying to get output from my first script in luaedit 3.0.10 and not having much success. I'm using the sample script from the online tutorial at http://lua.gts-stolberg.de/en/Mathe.php to wit:
a = 2 + 1
print (a)
I'm running luaedit under windows vista, and have unpacked the lua binaries but can find no way to link luaedit to them, and thus assume that luaedit includes a lua runtime as part of itself.
There is a similar question already posted in these forums, but the answer does not work for my version of luaedit. The answer refers to a pane in the "show output from" window that does not appear in my version of luaedit. My version only has an "output" window that is accessible off of the "debug" drop-down menu. Though it does say show output from, there does not appear to be any way to change where it shows its output from. The answer also refers to a green button to start debugging that is also not available in my version of the editor. Instead, there are three buttons on the left side of the toolbar: a triangular "start debugging" button, a double horizontal line "break now" button" and a square "stop debugging" button, all of which are blue.
So...how is the problem to be solved for THIS version of this editor? Or is it a bug that the developers introduced because they had to fix an interface that wasn't broken?

Related

How to disable automatic function docstring generation in Spyder?

Spyder (the Python IDE) generates a function docstring automatically when you click Enter after the first line of the function def. How can one disable this feature?
I've looked around in Tools (for instance in Tools -> Preferences -> Editor) and did not find a way to do it. But there are tons of features in Spyder so maybe I'm missing it.
Are you using an anaconda install with kited running in the background? Opening task manager and stopping this from running fixed the problem for me.
Edit: This may be incorrect
When you type in the triple quotes, an icon will pop up that says Generate docstring. When this happens, do not hit Enter. Just hit esc.
Until we can just deactivate it in settings, that's what I've been doing.

CodeLite 12.0.2 : nothing in Editor

I wondered if anyone could help me with a strange bug I am having with CodeLite, which I am using as C IDE.
Basically nothing displays in the right side window editor when I open source files. This also happens when trying to change the fonts etc (this is where i looked first), whereby no preview displays.
Of possible note, that this absence of displayed text also occurs for example texts such as the one during the set up, as well as the pop up "Colours and Fonts".
The rest seems to work correctly, I was able to compile and run a project in the workspace for which I knew no edits needed to be made.
I am running Windows 7 professional 64 bits and i have not observed any issue elsewhere, only with CodeLite. I used the 64 bits installer to install CodeLite 12.02.
Attempted so far: restart computer, uninstall / reinstall CodeLite. Obviously looked up google, stackoverflow and CodeLite forum, without success finding anything similar.
Any idea where I should look for ways to solve this issue ?
Screenshot of CodeLite with a an example main.c open in editor but not showing content:
Screenshot of actual content of example main.c (hello world):
Screenshot of CodeLite initial set up, also showing no example text:
Screenshot of CodeLite "Colours and Fonts" pop up, also showing no example text:
May be it's late, but it happened that I solved the issue. I experienced the same problem with the latest CodeLite v15.0.3 at the time of writing. I also have Windows 7 64 bits and nothing was shown for the text of any opened source file.
Solution:
Open Settings > Preferences > Misc
and simply uncheck this setting:
[ ] Windows Only: use Direct2D editor drawings
It helped me.

Is it possible to run RepastJ model in a web browser

I am new to agent based modeling, and am running the demo model that come along with the RepastJ (Repast 3). Is it possible to run the simulation in a web browser? Thanks in advance.
you can try this,will help you a lot :)
If you are using a PC:
Go to the Java website to obtain a free copy of the Java software, and download Java (at least the
Java Runtime Environment), if it is not already on the PC to be used.
Then download RepastJ to run the Basic Immune Simulator.
If you are using a Mac:
A copy of JAVA is NOT needed. Simply, download the OS X version of Repast J.
Install the Repast J that is appropriate for your operating system by following the instructions
provided on the Repast website for the downloads. Be sure to download the correct version of
Repast J for your computer.
Download the Basic Immune Simulator file (BasicImmuneSimulator.jar) onto your computer.
Once the above steps have been completed, the simulation may be run as follows:
Start Repast either by clicking on the icon or by finding the repastj.exe file within the repast
directory and clicking on it. The Repast toolbar should appear.
At the left edge of the toolbar there is an icon of a folder.
Click on the folder and a “Load Model” pane appears.
Scroll down in the Load Model pane and click on “Models” and then the “Add” button.
A browser will appear. Use this browser to find the BasicImmuneSimulator.jar file, which can be
found where ever it was downloaded.
Click on the BasicImmuneSimulator.jar file and "Basic Immune Model" will appear under “Other
Models”.
Click on the “Load” button, to make the Basic Immune Model graphical user interface (GUI)
appear.
Once "Basic Immune Model Settings" GUI appears, click on the "Parameters" tab to see the input
parameter choices available for a simulation run, if the parameters are not already displayed.
Choose the pathological challenge from the list in the GUI. Any other parameter may be
changed to the user’s discretion at this point as well.
Click the Run button (triangle) on the Repast toolbar to start the simulation.
Note that data files from the simulation will be saved automatically to wherever the repastj.exe file
is located.

DDE control TeXnicCenter

I use TeXnicCenter for LaTeX and would like to have the DDE controls working to easily view the pdf versions. Acrobat X seems to have changed the servername and this is breaking things.
I tried "AcroViewR10" or "acroviewR10" and other combination, but still it does not work.
As a work around, using command line argument "%bm.pdf" works, but I manually need to close the pdf everytime before recompiling. So, it takes an extra click or so.
Can anyone give some insight to solve the problem either by fixing DDE or how to close the pdf automatically when it is recompiled?
Actually, the answers from Martyn and Adam Nellis solved this problem. Thanks a lot, folks. I am just putting it step by step, so someone else can use it.
Step1: Adobe ReaderX
In Adobe Reader X, go to Edit>Preferences>General and uncheck "Enable Protected Mode at startup".
Step2: TeXnicCenter
Go to Build->Define Output Profiles-> choose "Latex to PDF" -> Viewer tab
2.1. For "View Project's Output" & "Forward Search"
Command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
Server: AcroViewR10 Topic: control
2.2. For "Close Document"
Command: [DocClose("%bm.pdf")]
Server: AcroViewR10 Topic: control
(use this option even if you use Adobe Reader 11)
For those using Acrobat X pro, the server should be AcroviewA10 and the excecutable should be Acrobat.exe
For the newer version of Adobe [DocClose] doesn't work anymore. So you have to make updates. In texnicCenter hit Alt+F7, go to Viewer TAB and follow the example accordingly (works on Win7 with Adobe11):
in Executable path you have to have something like "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"
View Project's Output >>> Choose "command line argument" and enter
"%bm.pdf" in command
Forward Search >>> Choose "command line argument" and enter
"%bm.pdf" in command
And finally *THE MOST IMPORTANT OPTION*
Close Document Before Running (La)Tex >>> Choose "DDE" and enter
"[AppExit]" in command
"AcroViewR11" in Server
"control" in Topic
I realise this question is a little old, but I have just been struggling with this problem (not used TeXnicCenter for a wile, so hadn't noticed the problems when upgrading Adobe) and this thread is the only one that solved the problem for me. I had to use a combination of the above answers, though, so I thought I would document what worked for me.
I am using Windows Vista Business edition, TeXnicCenter 1.0, and Adobe Reader 10.0
Go to Build->Define Output Profiles-> choose "Latex => PDF"
1) In the viewer tab, change the executable location to point to
C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe
2) View project's output: Select DDE command and enter
[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
Server: arcroviewR10 Topic: Control
3) Forward search: Select DDE command and enter
[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
Server: arcroviewR10 Topic: Control
4) Close document before running (La)TeX: Select DDE command and enter
[AppExit]
Server: arcroviewR10 Topic: Control
In particular, it was point 4 that I needed to do, and despite searching a while, this is the only place I have found advice to switch the DDE command to [AppExit] and it worked a treat. Thanks Claudia!
I have not needed to change the Adobe Reader settings at all (i.e. it is still in Protected Mode at Startup).
My settings are:
Path of Executable: C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe
For "View Project's Output" & "Forward Search"
Command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
Server: AcroViewR10
Topic: control
For "Close document"
Command: [DocClose("%bm.pdf")]
Server: AcroViewR10
Topic: control
That works for me except for two things:
When Acrobat Reader is closed and I press F5 it will open Acrobat Reader but will not open the document and will bring up an error message. If I close the error message and press F5 a second time (with Acrobat Reader now open) then it will open the document.
When I press F5, and the document opens, Acrobat Reader does not become the top window (the focus stays with TexnicCenter).
So not major problems but just small annoyances.
Edit:
Not sure if it makes a difference but in the windows registry the keys:
HKEY_CLASSES_ROOT\acrobat\shell\open\ddeexec\application
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\acrobat\shell\open\ddeexec\application
Both have values set to "AcroviewR10" (no quotes).
I use Acrobat Pro XI and have the following settings:
Path of Executable:
C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe (for 32bit version) and
C:\Program Files\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe (for 64bit version)
View Project's Output & Forward Search
"command line argument" and "%bm.pdf"
Close document
"DDE" and enter "[AppExit]" in command "AcroviewA11" in Server "Control" in Topic

Running just the matlab editor

Is there a way to just run the matlab (7.9.0) editor and not the rest of the "desktop" on linux?
This can't be done directly, because the editor stopped being a stand-alone executable many releases ago. It is now launched as a separate Java window from the Matlab desktop. However, you could try hiding the desktop once the editor is displayed, using the following simple code snippet:
com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame.hide % to hide desktop
com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame.show % to show desktop
Note that if your editor is docked to the desktop, it will be hidden together with the desktop, so be careful...
No, this is no longer possible since r2007a.
You can get Matlab syntax highlighting for emacs and vi, though.
On my windows machine, I can start MATLAB with the -nodesktop option, then once in the command prompt, I start only the editor with edit.
Im not sure if this is different in terms of memory space used, but this way you only get the editor and the command prompt (no auto-completion though)
You can add Matlab syntax highlighting to Kate via a plugin. I don't know about gedit, but there's probably an addon for that as well.

Resources