Line in Wxmaxima not high enough to show exponent of exponent [solved] - wxmaxima

when I type: in Wxmaxima:
exp(-x^2/2);
the result shown then in Wxmaxima cuts off the exponent of x, i.e. from 2 I see only the base line.
I am running on Lubuntu 20.4:
_wxMaxima version: 19.07.0
using wxWidgets version: wxWidgets 3.0.4
Maxima version: 5.43.2
Maxima build date: 2020-02-21 05:22:38
Host type: x86_64-pc-linux-gnu
System type: BSD BSD NIL
Lisp implementation type: GNU Common Lisp (GCL)
Lisp implementation version: GCL 2.6.12_
Is there anything I can do to get the whole expression shown in Wxmaxima?
I have asked the same question at:
https://github.com/wxMaxima-developers/wxmaxima/discussions/1521
but it looks as if there is not much traffic.
Thanks
Karl
Edit: added picture.
Edit: works ok with wxmaxima 21.02.0-DevelopmentSnapshot from
ppa:peterpall/wxmaxima-nightlies

The bug should now be resolved in wxMaxima's code and the bugfix is included in the installer that can be found at https://wolfgang.dautermann.at/maxima/nightlybuild/. If you install both the Nightly build and a release on the same system make sure you start the right wxMaxima, though.

Related

Xtensa xt-xcc license issue

I am trying to use Xtensa cross compiler to build a simple embedded application.
And I got 2 mysterious issues.
The first issue is probably a license issue:
The Xtensa toolchain always reports below error:
License checkout failed: No such feature exists.
Feature: XTENSA_XCC_TIE
License path: 84300#xtensa03p.xxx.xxx.com:/root/xtensa/XtDevTools/install/tools/RG-2019.12-linux/XtensaTools/Tools/lic/license.dat:
FLEXnet Licensing error:-5,147
For further information, refer to the FLEXnet Licensing documentation,
available at "www.macrovision.com".
This looks like a license issue.
According to here, the -5 error code means No such feature exists. But I didn't find what 147 means. And I am not sure about how FLEXnet works. It seems to be a popular licensing mechanism.
But I can ping through the xtensa03p.xxx.xxx.com server. So I think the license server is alive.
The second issue:
When I try to check the cross compiler xt-xcc version:
/root/xtensa/XtDevTools/install/tools/RG-2019.12-linux/XtensaTools/bin/xt-xcc --version
I got below warning:
Warning: The location of this program does not match the Xtensa Tools
location specified in the Xtensa registry entry:
program prefix: /root/xtensa/XtDevTools/install/tools/RG-2019.12-linux/XtensaTools/bin/..
registry value: /root/xtensa/XtDevTools/install/tools/RI-2021.7-linux/XtensaTools
Either the current Xtensa configuration is not properly installed or you
are using Xtensa Tools from a different location than you specified when
installing the configuration.
xt-xcc version 12.0.12
Thread model: single
I don't know where the Xtensa registry entry is. Should I modify it to match my xt-xcc installation path?
Could anyone shed some light?

is UPX able to pack Dylibs?

is UPX able to pack Dylibs ? it works very well with Mac Os X application executables, but I cannot make it pack a dylib it throws an UnknownExecutableFormatException exception. Nevertheless I can see a lot of references to dylibs in the mach-o part of upx source code. Any hints ? Thanks a lot.
It was possible on older versions of UPX if the dylib included an init or load command (eg. LC_ROUTINES). The developers withdrew this one version later though due to other unforeseen issues with trying to pack dylibs. So to answer your question, yes it is possible, but only under certain cirumstances, and not recommended.
Changes in 3.05 (27 Apr 2010):
...
* Withdraw support for shared libraries on Darwin (Apple Mac OS X)
because upx does not understand enough about .dylib.
..
Changes in 3.04 (27 Sep 2009):
...
* new formats Dylib/i386 and Dylib/ppc32 support shared libraries
[such as browser plugins] on Darwin (Apple Macintosh). An existing
-init function (LC_ROUTINES command) is required.
...

Library not loaded - ogr2ogr - topojson (Mike Bostock's d3.js map tutorial)

I'm trying to use ogr2ogr to filter a shapefile. I'm working through Mike Bostock's Let's Make a Map tutorial. A bit of googling - including here - hasn't led to any solutions yet. I'm also VERY new to topojson (and shapefiles in general; my background is in economics/statistical software like Stata), so I'm not sure what I'm doing and where things are going wrong. Either way - here's the error result I'm getting:
dyld: Library not loaded: /usr/local/lib/liblwgeom-2.1.1.dylib
Referenced from: /usr/local/Cellar/libspatialite/4.1.1/lib/libspatialite.5.dylib
Reason: image not found
Trace/BPT trap: 5
No idea what liblwgeom-2.1.1.dylib is, what it does, where I get it, etc. Google hasn't helped much on defining it either.
FWIW, I'm on a Mac, I brew installed npm and gdal, and then npm installed topojson.
Thanks,
a
Edited to add: I just brew reinstalled gdal, because I remembered getting a warning (Caveats). See below:
==> Caveats
For non-homebrew python (2.x), you need to amend your PYTHONPATH like so:
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
This version of GDAL was built with Python support. In addition to providing
modules that makes GDAL functions available to Python scripts, the Python
binding provides additional command line tools.
I actually tried to run export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH literally as-is, and it returned nothing. (Not sure if something happened in the background?) Basically fumbling in the dark!

How to use 'Consolas' as the coding font

I would like to change the font for code edition in a Squeak 4.3 image on windows OS, to use if possible the consolas font.
I found nothing in the preferences browser to do that easily. That SO question looked perfect, but none of the answers work in my case.
For example on the line
font := LogicalFont familyName: 'Bitmap DejaVu Sans' pointSize: 10.
It fails on the LogicalFont: I get the popup that allows to fix a missing class/variable.
Unknown variable: LogicalFont please correct, or cancel: [...]
Is that solution not suitable for Squeak 4.3, or am I missing some package?
EDIT: as often, I am finding some answer elements after the question has been posted on SO:
I found nothing in the preferences browser to do that easily.
Because the setting is not accessible via the Preference Browser, but via the World menu -> Appearance -> System fonts -> code font.
But I only see a handful of fonts available (beside ComicSans and BitstreamVera), but no Consolas. I do have the preference Offer native fonts enabled, though...
Second Edit: given the answer of Igor Stasenko, I found on SqueakSource a mention of FreeTypePlus that seems the most recent (not often easy for a beginner to find out how to install new software on Squeak, also it seems that Squeak has slowed down since 2006/2007 and some items mentioned in the Swiki are down now...)
So I added on Monticello
MCHttpRepository
location: 'http://www.squeaksource.com/FreeTypePlus'
user: ''
password: ''
And installed FreeType, FreeTypeSubPixelAntiAliasing and PinesoftEnhancementsForFreetype. Now I can see my ttf system fonts...
AFAIK, Squeak doesn't includes Freetype support by default.
You may try Pharo, where Freetype is included by default. http://www.pharo-project.org/home
Or you can try to install Freetype package in Squeak & download freetype plugin for VM.

Understanding a Bugfix for building Valgrind from source

I am trying to build Valgrind from source and ran into the same problem other's have before me. The proposed solutions where all quite hacky, though, which is not the way I like to do things.
I also found something in the Ubuntu bugtracker for the Valgrind package:
Proposed fix:
valgrind (1:3.7.0-0ubuntu2) precise; urgency=low
* Allow glibc 2.15 in the configure checks. (LP: #934127)
- Add 0009-glibc-215.patch, cherry-picked from upstream.
- Add 0010-automake-1.11.2.patch by Gregorio Guidi.
- Use dh-autoreconf instead of autotools-dev.
-- Felix Geyer <email address hidden> Fri, 17 Feb 2012 12:14:44 +0100
This was accepted as fix for the bug, so I figured it might be the real solution.
Yet I can't apply it just like that.
what means cherry-picked from upstream?
Neither searching in google nor in the downloaded source package found these patch files.
Also the last point Use dh-autoreconf instead of autotools-dev is not clear to me.
Can someone translate the solution into a more applicable form?
The easiest way would be to see if you can install the corresponding version through your package manager. If you really need to build it yourself, you will find the mentioned patches e.g. in the [..].debian.tar.gz archive.
If you look into the Ubuntu tracker, you will find:
diff -Nru valgrind-3.7.0/debian/patches/0009-glibc-215.patch valgrind-3.7.0/debian/patches/0009-glibc-215.patch
--- valgrind-3.7.0/debian/patches/0009-glibc-215.patch 1970-01-01 01:00:00.000000000 +0100
+++ valgrind-3.7.0/debian/patches/0009-glibc-215.patch 2012-02-17 12:14:29.000000000 +0100
## -0,0 +1,30 ##
+Description: add support for glibc 2.15
+Origin: upstream, http://sourceforge.net/mailarchive/forum.php?thread_name=20111229082456.D5FE6108870%40jail0086.vps.exonetric.net&forum_name=valgrind-developers
+
+Modified: trunk/configure.in
...
The SourceForge URL above tells you that this patch was committed in r.12323 to the Valgrind repo.
(The last remark about the autotools is specific to the Debian package building process, and has most likely nothing to do with your problem.)