show_bitcoin is a simple python script that levarages information
from an electrum wallet, along with current bit coin pricing to
format and print out the amount of bitcoin in the wallet, the current
price for bitcoing and the current estimated fiat currency value of
the bitcoin stored in the electrum wallet.
The python code is going to do a couple of things. First, it is going to go out to coinbase.com and read the latest bitcoin prices. It will then pull the balance from your electrum wallet. This, of course, assumes that you have a correctly setup electrum wallet and that you have some bitcoin stored in it. It will then multiply the balance by the latest bitcoin price from coinbase.com. he resulting value is an approximation of USD worth of bitcoin.
It might be also an option to show the price only, without the balance. Or - as a vague idea for future development - to have the balance updated when electrum gets opened. In that case there would be no need for that subprocess.
Yeah, I will rework it to use an arg parser at some point. My electrum wallet balance does change at times, as I have purchased bandwith on a mining farm. Bitcoin's value has nearly quadrupled since I set it all up, so I have pretty much achieved full ROI. I just like to be able to keep an eye on it's rough value.
You have to be running an electrum wallet in order to use the script. If you are not familiar with electrum it is a bitcoin storage wallet, that exposes an api that I can leverage to get my current bitcoin balance. If you are not familiar with electrum, here is their page:
Electrum -- A Bitcoin wallet
The error that was thrown is showing you that the command electrum cannot be found via the shell. If the command is not in your path, of course, then you either need to modify the script to provide the full path or add the path to your environment variables.
Once those two conditions are fulfilled, meaning electrum is installed and configured, the script should parse the current bitcoin price, in USD, as obtained from coinbase.com. Then assuming you have any bitcoin stored in your wallet, it will calculate a USD value for the amount of bitcoin you have.
Thank you for your explanation.
If I understood correctly electrum is something like excodus to the administration
electronic money.
Since English is not my mother tongue, I have to be very careful and take a lot of time.
Besides, I have to ask "my government" if I can gamble with it. ]:D
Image Generator is a service that allows you to fully customize your texts andvisualize them in various formats. This user-friendly tool enables you to adjustfont style, font size, background color, font color, and your text content.
Image Generator enables you to customize the background and font colors to makeyourtexts visually appealing. You can choose your preferred colors or utilize colorpalettes to achieve specific color harmonies. This allows you to adjust yourtextsto reflect the identity of your projects or brand.
It is therefore quite natural that the goldsmiths of the Ateliers Camus, in collaboration with French artisans, have designed a box that opens along a line reproducing the route of the Via Agrippa, from Lyon to Saintes. Making the bold choice to mix several materials, here metal, a material that serves modernity, meeting crystaland stone, ancestral materials par excellence.
A timeless icon of the House of CAMUS, this BACCARATdecanter designed by the sculpteur Serge Manseau reveals its curves and angular edges. Adorned with a golden fret that is reminiscent of the glitter of electrum, it is enhanced by a crystal stopper engraved in fine gold with the topographical curves of the plots of land that surround the family estate of La Gîte. The case of the Cuvée 4.186 Electrum is embellished with a stone face engraved with a quotation from Virgil (70-19 BC).
mathastext is a package to allow to use the text font also inmathematics mode, thus giving a very unified look to the produced document.As a side-effect it alleviates somewhat the problem of the scarcity of freemath fonts for TeX typesetting . . . (back to mathastext.html).
All fonts(1) are freely available(cf. LaTeX Font Catalogue), most of them being already included in the standard TeXdistributions or downloadable as ready-made packages from CTAN. In oneinstance (Vollkorn)the fonts were available as ttf files, and were installed for LaTeX usingthe otfinstscript.
(1) most of the XeLaTeX's examples are with fonts provided with the system on aMacOS X machine, some use OpenType fonts included in the TeXLive distribution,and two examples use OpenType fonts bundled inside a freely distributed PDFviewer.
The examples numbered 42-52 illustrate the italic option of thepackage. However, when using italic letters in math mode, their protrudingcharacteristics (most notable in the case of the letter f) often lead tooverlapping problems with delimiters or other symbols (the math italic fontsreestablish sufficient kerning around letters compared to text italic).
(2) it seems that it is only during the last few years, as a result of the widespread use of the beamer package that scientific users of TeX have discovered that math could be displayed in other fonts than the defaults, in that case in sans serif! (but again they now all use the same fonts...)
Regarding the large mathematical symbols (sums, products, integrals), nothingis done by the package. The examples in this page are either with thedefault Computer Modern fonts, or the Fourier-GUTenberg fonts, or the PX/TXfonts. In alphabetical order, some of the packages (that I have either looked ator heard about) providing access to math fonts (either alongside text fonts, ordesigned to match a pre-existing typeface): anttor, arev, ccfonts, cmbright,concmath, fourier, iwona, kpfonts, kurier, mathdesign (garamond, charter,utopia), mathpazo, mathtime, mathptmx, mbtimes, ncfourier, newtx, pxfonts,txfonts,... The differences for some among these packages arenot in the math symbols but only in the (Greek and Latin) letters in math mode.Some links:
Regarding this web page: the png images were converted from dvi files with the help of dvipng (it turns out the outcome is at 100dpi, so they will show in your browser at their real size only if your screen device has a 100dpi resolution), and from pdf files with gs (with -r500 -dDownScaleFactor=5 to get 100 pixels per inch of the original contents). The pdf files in the middle column above were produced via latex+dvipdfmx (some with latex+dvips+gs), or via XeLaTeX. Earlier, most had been done via pdflatex (probably because it had been easier for me to do pdflatex rather than latex+dvips+gs simultaneously on dozens of files), but on 2012/10/07, I re-did them with dvipdfmx, which gave impressive size gains (indeed dvipdfmx has a compressed embedding of fonts): typically a ratio of 1 to 4, and in the case of Libertine/Biolinum, an improvement of 1 to 10! as the fonts may have changed, I re-did a pdflatex to double-check. In some cases, the pdf viewer complained of not being able to display the embedded font glyphs and I had to do dvips+gs in those cases rather than dvipdfmx.
In the first few images below, the symbols which do not match the other letters are not from the text font (mathastext does nothing for things such as \partial or \nabla or \ell or \wp). Everything following the math excerpt (the abc...z ABC...Z line for example) is typeset in math mode. The digits are in the .tex file given as $0\,1\,2\,3\,4\,5\,6\,7\,8\,9$, hence the spacings. In some instances the ``no dot j'' is absent from the font and appears as a black rectangle.
This section was written in March 2011, and I added a little to the discussion of the LGR encoded fonts for this current version of October 2012. The tables have been extended with the LGR encoded CM fonts, serif, sans and typewriter (part of the cbfonts).
The Greek letters can be either set up by other packages (such as eulervm,fourier, kpfonts, mathdesign, pxfonts, txfonts, ... in brief, any package setting up math fonts) ordecided by an option passed to mathastext: LGRgreek, symbolgreek,eulergreek, selfGreek (the eleven uppercase Greek letters inOT1-encoding).
In the examples presented here, the Greek letters in math modemay be: