<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3699&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / HOWTO: Install the best calculator for programmers - ycalc]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3699</link>
		<description><![CDATA[The most recent posts in HOWTO: Install the best calculator for programmers - ycalc.]]></description>
		<lastBuildDate>Sun, 26 Jul 2020 13:23:18 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: HOWTO: Install the best calculator for programmers - ycalc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23641#p23641</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>I&#039;ve built versions for stable, testing &amp; unstable in various architectures:</p><p><a href="https://software.opensuse.org//download.html?project=home%3AHead_on_a_Stick%3Aycalc&amp;package=ycalc-mob" rel="nofollow">https://software.opensuse.org//download … =ycalc-mob</a></p><p>They were built in Debian containers but should be fully compatible with Devuan, probably best to just grab the .deb package and install that — the software is ancient and unlikely to be updated.</p></div></blockquote></div><p>Thanks for doing this. The only packages I know how to make are for Slackware.</p>]]></description>
			<author><![CDATA[dummy@example.com (Vernon)]]></author>
			<pubDate>Sun, 26 Jul 2020 13:23:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23641#p23641</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Install the best calculator for programmers - ycalc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23634#p23634</link>
			<description><![CDATA[<div class="quotebox"><cite>Vernon wrote:</cite><blockquote><div><p>Since Ycalc is not packaged, we need to build it from source</p></div></blockquote></div><p>No, we need to package it up <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I&#039;ve built versions for stable, testing &amp; unstable in various architectures:</p><p><a href="https://software.opensuse.org//download.html?project=home%3AHead_on_a_Stick%3Aycalc&amp;package=ycalc-mob" rel="nofollow">https://software.opensuse.org//download … =ycalc-mob</a></p><p>They were built in Debian containers but should be fully compatible with Devuan, probably best to just grab the .deb package and install that — the software is ancient and unlikely to be updated.</p><p>EDIT: updated to v1.09.1-2 with added man page <img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 26 Jul 2020 11:33:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23634#p23634</guid>
		</item>
		<item>
			<title><![CDATA[HOWTO: Install the best calculator for programmers - ycalc]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23630#p23630</link>
			<description><![CDATA[<p>Ycalc is a light-weight programmable calculator for X based on the TI-58/59 which allows you to create keypress macros. An example of how to program ycalc is <a href="http://www.datamath.org/Sci/WEDGE/TI-59_Programming.htm" rel="nofollow">here</a>. But what really sets ycalc apart is its binary mode. When you press the <strong>Bin</strong> key, a window appears with three rows of binary numbers where you can toggle bits, shift bits and perform logical operations such as Xor (exclusive or). </p><p><span class="postimg"><img src="http://docs.puppyrus.org/_media/soft/ycalc.gif?w=396&amp;h=356" alt="Ycalc with Binary Window" /></span></p><p>Since Ycalc is not packaged, we need to build it from source.</p><h5>Install the needed build packages</h5><p>As root, issue the following command.</p><div class="codebox"><pre><code>apt-get install build-essential libx11-dev</code></pre></div><h5>Get the source code</h5><div class="codebox"><pre><code>wget http://pet.orbin.se/ycalc-mob-1.09.1-src.tar.gz </code></pre></div><h5>Extract the source code</h5><div class="codebox"><pre><code>tar -xvzf ycalc-mob-1.09.1-src.tar.gz </code></pre></div><h5>Build the source code</h5><div class="codebox"><pre><code>cd ycalc-mob-1.09.1-src</code></pre></div><div class="codebox"><pre><code>make</code></pre></div><h5>Run ycalc</h5><div class="codebox"><pre><code>./ycalc-mob</code></pre></div><h5>Change ycalc size</h5><p>Ycalc was written at a time when high resolution displays were 640x480. As such, ycalc may appear too small for you. To make ycalc larger, issue the following commands.</p><div class="codebox"><pre><code>sed -i &#039;225s/.*/#define DEFAULTFONT   &quot;9x15&quot;/&#039; main.c</code></pre></div><div class="codebox"><pre><code>make</code></pre></div><p>Run ycalc again and <span class="bbc">./ycalc-mob</span> to see if you like the size better. If not, repeat the last two steps with a different fond size.</p><p>To get a list of possible fonts and font sizes, issue the following command.</p><div class="codebox"><pre><code>xlsfonts | grep &#039;^[6-9]x&#039;</code></pre></div><h5>Install ycalc on your system</h5><p>As root, issue the follow commands</p><div class="codebox"><pre><code>cp ycalc-mob /usr/local/bin/ycalc</code></pre></div><div class="codebox"><pre><code>mkdir /usr/local/man/man1</code></pre></div><div class="codebox"><pre><code>gzip -c ycalc-mob.1 &gt; /usr/local/man/man1/ycalc.1.gz</code></pre></div><h5>Add ycalc to your LXQt Desktop</h5><p>The following was tested with a clean Devuan Beowulf installation with the LXQt desktop. In theory, this should work with XFCE as well. As root, use your favorite text editor to create text file <span class="bbc">/usr/share/applications/ycalc.desktop</span> with the following contents.</p><div class="codebox"><pre><code>[Desktop Entry]
Version=1.0
Type=Application
Name=Calculator
Exec=ycalc
Icon=accessories-calculator
Categories=Utility;Calculator</code></pre></div><p>You should now have an entry named <strong>Calculator</strong> in your Accesories menu.</p>]]></description>
			<author><![CDATA[dummy@example.com (Vernon)]]></author>
			<pubDate>Sat, 25 Jul 2020 20:56:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23630#p23630</guid>
		</item>
	</channel>
</rss>
