parnoldx / nasc Goto Github PK
View Code? Open in Web Editor NEWDo maths like a normal person
Home Page: http://parnoldx.github.io/nasc/
License: GNU General Public License v3.0
Do maths like a normal person
Home Page: http://parnoldx.github.io/nasc/
License: GNU General Public License v3.0
Linux Manjaro - probably current app (no version is visible :( )
Example on left: (1 -0.02839446 /0.0284405) * 100
On right I see: 0.16188182
When I select on right side 0.16188182
and click copy it doesn't work (no copy)
Ok it is working when pure numbers are in input for such input it doesn't work:
#Hello World
(1 -0.02839446 /0.0284405) * 100
When you type "solve(y+x=x/y", it'll crash the program immediately upon the typing the second y. Hope this helps.
Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.
Affects: 0.3.5 release
If NaSC does not get a chance to close properly, e.g. system shutdown or crash, data gets lost.
I tried using euler but the value of that variable is .5772 etc. Using e on its own returns nothing.
I want to calculate ln e, but it returns nothing. I also tried log e. It should return 1
Trigonometry functions do not work for angles different from zero.
Because it'd be swell :)
Apphub failed to build with liftoff. Here is the log:
dpkg-checkbuilddeps: error: syntax error in debian/control at line 10: line with unknown format (not field-colon-value)
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.parnold-x.nasc
dpkg-buildpackage: source version 0.3.3
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by parnold-x <[email protected]>
dpkg-source --before-build flightcheck
dpkg-source: error: syntax error in flightcheck/debian/control at line 10: line with unknown format (not field-colon-value)
dpkg-buildpackage: error: dpkg-source --before-build flightcheck gave error exit status 25
Affects: 0.3.3 release
Whenver you input a "function" it should automatically input the parentesis.
For example
If I type solve and typed space it should automatically insert parentesis ()
I'm on Fedora 26, tried both compiling and using a package from copr.
Output when run with -d:
[INFO 12:54:55.215602] Application.vala:153
: NaSC version: 0.4
[INFO 12:54:55.215717] Application.vala:155: Kernel version: 4.12.8-300.fc26.x86_64
[DEBUG 12:54:55.328829] Settings.vala:163: Loading settings from schema 'com.github.parnold-x.nasc'
[DEBUG 12:54:55.457685] Controller.vala:139: loading sheets
[DEBUG 12:54:55.457989] Controller.vala:159: getting sheets
[DEBUG 12:54:55.458417] Controller.vala:166: set last sheet
**
ERROR:arraylist.c:954:gee_array_list_real_get: assertion failed: (index >= 0)
[1] 11423 abort (core dumped) nasc -d
I think it would be appropriate for nasc to appear under the Education category :)
Apphub failed to build with liftoff. Here is the log:
dpkg-checkbuilddeps: error: syntax error in debian/control at line 10: line with unknown format (not field-colon-value)
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.parnold-x.nasc
dpkg-buildpackage: source version 0.3.2
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by parnold-x <[email protected]>
dpkg-source --before-build flightcheck
dpkg-source: error: syntax error in flightcheck/debian/control at line 10: line with unknown format (not field-colon-value)
dpkg-buildpackage: error: dpkg-source --before-build flightcheck gave error exit status 25
Affects: 0.3.2 release
AppCenter Dashboard found some issues with your debian/control
file. While we will continue
to try to build your project, we recommend you take a look and fix these
problems for next time.
Affects: 0.3.0 release
When i try to sum or subtract a percentage it just sum the zero dotted value to the first number.
As an example, if i do
100 - 30% = 99.7
instead of 70
as i was expecting
I'm using the 0.4.3 version.
Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.
Affects: 0.4.0 release
Is this intentional or a bug?
Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.
Affects: 0.3.2 release
After start right pane has contents of what is behind, but it is not transparency, as during window move contents moves too. When result is changed, it is also not cleared.
gentoo, gtk+-3.22.11, cairo-1.14.8, vala-0.34.8
upd.: in ResultView.vala alpha is set to 0, must be 100
upd2: they are double values
[FATAL 09:54:10.439032] update_thread_construct: assertion 'file != NULL' failed
Thread 1 "nasc" received signal SIGSEGV, Segmentation fault.
#0 0x000000000041a84d in update_thread_ref ()
#1 0x000000000041aa8a in __lambda27_ ()
#2 0x000000000041ac8e in ___lambda27__gsource_func ()
#3 0x00007ffff590504a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007ffff59053f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007ffff590549c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6 0x00007ffff75abd6d in g_application_run () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#7 0x00007ffff7b6f390 in granite_application_run () from /usr/lib/x86_64-linux-gnu/libgranite.so.3
#8 0x000000000040e3f1 in nasc_nasc_app_main ()
#9 0x000000000040e42f in main ()```
Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.
Affects: 0.3.3 release
When doing calculations, it would be very useful for the user to be able to add comments at the end of a line in the input area, to be able to keep track of what exactly he or she is calculating. The comments would be ignored by the calculator.
I can imagine this could be implemented with a symbol such as "
or //
that's not otherwise used. So it might look like
1156 // daily requirement
7 * 166 // number of days
line1 * line2 // total requirement!
[ 23%] Performing build step for 'libqalculatenasc'
QalculateNasc.cc: In function ‘char* get_function_arguments(int)’:
QalculateNasc.cc:90:85: error: ‘transform’ was not declared in this scope
transform (str.begin(), str.end(), str.begin(), (int () (int) ) tolower);
^
QalculateNasc.cc: In function ‘char get_function_arguments_list(int)’:
QalculateNasc.cc:114:85: error: ‘transform’ was not declared in this scope
transform (str.begin(), str.end(), str.begin(), (int (*) (int) ) tolower);
^
QalculateNasc.cc: In function ‘void abort()’:
QalculateNasc.cc:199:10: error: declaration of ‘void abort()’ has a different exception specifier
void abort() {
^~~~~
In file included from QalculateNasc.cc:3:0:
QalculateNasc.h:15:6: note: from previous declaration ‘void abort() throw ()’
void abort();
^~~~~
QalculateNasc.cc: In function ‘void abort()’:
QalculateNasc.cc:201:5: warning: ‘noreturn’ function does return
}
^
make[3]: *** [Makefile:16: QalculateNasc.o] Error 1
make[2]: *** [CMakeFiles/libqalculatenasc.dir/build.make:111: ../libqalculatenasc/src/libqalculatenasc-stamp/libqalculatenasc-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/libqalculatenasc.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Apphub failed to build with liftoff. Here is the log:
dpkg-checkbuilddeps: error: syntax error in debian/control at line 10: line with unknown format (not field-colon-value)
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.parnold-x.nasc
dpkg-buildpackage: source version 0.3.4
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by parnold-x <[email protected]>
dpkg-source --before-build flightcheck
dpkg-source: error: syntax error in flightcheck/debian/control at line 10: line with unknown format (not field-colon-value)
dpkg-buildpackage: error: dpkg-source --before-build flightcheck gave error exit status 25
Affects: 0.3.4 release
Apphub failed to build with liftoff. Here is the log:
dpkg-checkbuilddeps: error: syntax error in debian/control at line 10: line with unknown format (not field-colon-value)
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.parnold-x.nasc
dpkg-buildpackage: source version 0.3.0
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by parnold-x <[email protected]>
dpkg-source --before-build flightcheck
dpkg-source: error: syntax error in flightcheck/debian/control at line 10: line with unknown format (not field-colon-value)
dpkg-buildpackage: error: dpkg-source --before-build flightcheck gave error exit status 25
Affects: 0.3.0 release
Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.
Affects: 0.3.0 release
Apphub failed to build with liftoff. Here is the log:
dpkg-checkbuilddeps: error: syntax error in debian/control at line 10: line with unknown format (not field-colon-value)
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.parnold-x.nasc
dpkg-buildpackage: source version 0.3.1
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by parnold-x <[email protected]>
dpkg-source --before-build flightcheck
dpkg-source: error: syntax error in flightcheck/debian/control at line 10: line with unknown format (not field-colon-value)
dpkg-buildpackage: error: dpkg-source --before-build flightcheck gave error exit status 25
Affects: 0.3.1 release
I can add a new sheet with the Ctrl+N
shortcut, but so far I don't see any visible way to access my previous sheets. The source code suggest there is a footer toolbar. Is this not yet implemented or is it a bug that I can't see it?
Running on Arch Linux, built from source.
Apphub failed to build with liftoff. Here is the log:
dpkg-checkbuilddeps: error: syntax error in debian/control at line 10: line with unknown format (not field-colon-value)
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.parnold-x.nasc
dpkg-buildpackage: source version 0.3.5
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by parnold-x <[email protected]>
dpkg-source --before-build flightcheck
dpkg-source: error: syntax error in flightcheck/debian/control at line 10: line with unknown format (not field-colon-value)
dpkg-buildpackage: error: dpkg-source --before-build flightcheck gave error exit status 25
Affects: 0.3.5 release
Could it be possible to export to LaTeX?? Or maybe markdown image?
Thanks!
Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.
Affects: 0.3.1 release
I made an attempt to provide a Flatpak package for your excellent NaSC. The build files are available at https://github.com/phw/nasc-flatpak
The build is currently fine, but it requires some patching (see the patch files in the repository):
com.github.parnold-x.nasc.gschema.xml
to com.github.parnoldx.nasc.gschema.xml
(without the dash). Flatpak doesn't allow the dash here, I filed an issue to ask on clarification on flatpak/flatpak-builder#37 .The last two issues should be solved upstream here. For the first issue we maybe need to keep the patch.
One remaining issue that it fails to update the exchange rates on startup. Not sure why, I experimented with --share=network
without luck.
I would like to submit this to flathub.org if we get the issues above sorted out. If somebody wants to test this locally you can build a local package by cloning the repository and run:
flatpak-builder --repo=repo com.github.parnoldx.nasc com.github.parnoldx.nasc.json --force-clean
flatpak build-bundle repo nasc.flatpak com.github.parnoldx.nasc
flatpak install nasc.flatpak
Then run it via the desktop icon or from command line:
flatpak run com.github.parnoldx.nasc
It's not enforced yet, but in the future it'll be necessary to avoid namespace collisions
It would be nice to have a way to change the window opacity, that way I can overlay NaSC on top of my math papers
When I try sharing the math sheet through PasteBin, the resulting link opens the page which tells me "This page has been removed"
After I open this URL: https://pastebin.com/XZw5GUX
It behaves the same with different expiration times, "private" option and different names.
It's best practice to include a <developer_name>
in your appdata so we can properly credit you as the developer in AppCenter.
specifically <url type="bugtracker">https://github.com/parnold-x/nasc/issues</url>
First found here:
elementary/website#1720
File in question
https://github.com/parnold-x/nasc/blob/nasc/data/com.github.parnold-x.nasc.appdata.xml
Should be:
It's an app
Instead of:
Its an app
As "It's" is being used as a contraction of "it is"
Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.
Affects: 0.3.6 release
Currently it's nasc
, should be com.github.parnold-x.nasc
.
I think it makes sense for NaSC to appear in the Science & Engineering section of AppCenter (and app menus) since it has a lot of use in science and engineering.
AppCenter Dashboard could not find a com.github.parnold-x.nasc.appdata.xml
file for your project.
Please create one and ensure it gets installed to /usr/share/metainfo/
to
provide additional data to application managers.
For more information, see:
If you need help with this issue please stop by the gitter channel.
Affects: 0.4.4 release
When enabling the dark theme for every window using the elementary os tweak tool, the window border and background colors are overwritten, but the text color does not change, making it really hard to read. It would be awesome if it could somehow display an alternate color palette when using the dark theme globally.
AppCenter Dashboard found some issues with your debian/control
file. While we will continue
to try to build your project, we recommend you take a look and fix these
problems for next time.
Affects: 0.3.1 release
I've tried two samples, and I get no output:
solve2( 3 * x + y = 10 ; 2 * y + x = 12 ; x ; y)
solve(a * x = 2 ; x)
None of those work. Am I doing something wrong or is this an actual bug?
aaronfranke@aaron-xub16desk:~$ sudo apt install com.github.parnold-x.nasc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
com.github.parnold-x.nasc : Depends: libgranite3 (>= 0.2.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
aaronfranke@aaron-xub16desk:~$ sudo apt install libgranite3
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libgranite3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libgranite3' has no installation candidate
Options:
libgranite2
does exist in the repos, so wait for Ubuntu to package libgranite3
as well.libgranite3
in ppa:nasc-team/daily
PPA.libgranite2
.Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.
Affects: 0.3.4 release
Add the Ability to convert from Hexadecimal to Binary to Decimal.
Currently NaSC is neither able to represent binary nor able to do math with it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.