Showing posts with label answer. Show all posts
Showing posts with label answer. Show all posts

Tuesday, August 20, 2024

Math solution to 2^x = 9

A solution to the math problem: 2^x = 9

Take the log of both sides. You get:

  • x * log 2 = log 9

Divide by log 2 to solve for x. You get:

  • x = 3.17

Substitute for x to prove your solution:

  • 2 ^ 3.17 = 9

Q.E.D. 

Thursday, July 18, 2024

Rust pop-quiz answer: querying Terra swagger endpoint




This is a simple swagger-call at base, ... which I embellished (converting obvious numbers from strings), then embellished again (converting denom to token ... by hand).  

ℕ𝕆𝕋𝔼! The @terra_money swagger result for all_balances leaves out a 𝓼𝓲𝓰𝓷𝓲𝓯𝓲𝓬π“ͺ𝓷𝓽 number and types of tokens in my wallet, ...



... perhaps this lack is due to the many new and revised tokens introduced after the swagger endpoint was established (and abandoned?)

Thursday, June 13, 2024

Token performance, post-Pilot launch: cryptocurrency pop-quiz answer

#cryptocurrency pop-quiz answer for token-valuation behavior after a Kujira Pilot launch:



  1. $WINK* was the 10-bag gainer, here. The other three { $AQLA, $BFIT, $NAMI } where 10x LOSERS by token-price since launch.
* did anybody see the total number of $WINK tokens? 69M. 

So: are they $WINK-ers or $WANK-ers? Eh? EH? 😎
  1. ROIs and APRs are shown as above.
  2. Projected valuation across token launches on @TeamKujira Pilot

Based upon the previous lauches, a token's launch has this behavior following a launch on Pilot:

ROI: -79.75%; -508.90% APR

Every token, except $WINK, follows this trend. Will $KART?

Kujira Pilot launch of KART by premium: pop-quiz answer

#Cryptocurrency pop-quiz answer:





  • 45M $KART sold at launch
  • ~ 492,570.00 $USK raised

Congratulations and «bon chance!» to all who participated.

Sunday, May 19, 2024

Cryptocurrency pop-quiz answer: "What's my $ETH position?" as a Voronoi chart

For the #cryptocurrency pop-quiz on "What's my $ETH position?" I went with option 3, creating a cypher query against my @neo4j Blockaverse portfolio ontology.

This approach allows me to map out my positions and their relative strengths in, say, a Voronoi chart. 




Friday, May 3, 2024

Cryptocurrency pop-quiz answer: liquidity by domain

#cryptocurrency pop-quiz answer

Rust is not necessary, as a simple @neo4j cypher load-script overlays domains onto protocols


We can now query liquidity by domain to see to what end the liquidity is deployed. 





Wednesday, April 10, 2024

Rust pop-quiz answer: portfolio-as-ontology in neo4j

#Rust pop-quiz answer to the quiz of: portfolio-as-ontology.

Behold! ./ont.



Also, I have a video walkthrough of creating, viewing, and querying the ontology in @neo4j. 

Saturday, March 23, 2024

Rust pop-quiz answer: one_line

#Rust pop-quiz answer to the question of concatenating multiline input to one line: one_line is now a new app I use to generate my reports, particularly the Sumo vault report.

Coding is simple when one can rely on preexisting library functions, innit? 😎

Friday, March 8, 2024

Rust pop-quiz answer: totally rows of data in reports

#Rust pop-quiz answer to totaling rows of data in reports:

That took more effort than I care to admit, as reportage and formatting always do. πŸ™„

BUT! Now we have reports with a totals-row, and I am well-pleased, even if I had to invent matrices to get there.

./tabla.

Thursday, March 7, 2024

Rust pop-quiz answer: tabla

In answer to the Rust pop-quiz about HTML-formatting data tables, ...

Behold! ./tabla.




Most of the work to effect this was done in the html_utils book lib where you see the BONUS section (right justify numbers) is handled there, as well. 


Tuesday, March 5, 2024

Rust pop-quiz answer: accurate Kujira FIN order book volumes

Okay, there was a part-I of the #Rust pop-quiz answer: accurate token prices.

Now we carry part I to part II by rewriting the Book-type to record each token's 24h-USD-volume. 



Monday, March 4, 2024

Rust pop-quiz answer: accurate pricing of actively-traded tokens on Kujira FIN

#Rust pop-quiz answer to rewriting token-price-calculation.

A complete rewrite has now 60+ tokens accurately priced from active trades in @TeamKujira FIN.


This solution uses HashMap chaining and higher-order fuctional composition to avoid unnecessary collection-mutation. 





The above is part I to get to the solution.

Next comes part II: accurate order book volumes.

Thursday, February 22, 2024

Rust pop-quiz answer: simplifying parsing lines code

#Rust pop-quiz answer to simply parsing lines of data.

THIS is more like it!



That is: after writing a generic parse_lines()-fn in string_utils



Allowing me to write a parse_data()-fn in file_utils, simply. 




For context, the three functions, COMBINED, with two new functionalities are less lines of code than the original line-parser-fn.

Wednesday, February 21, 2024

Rust pop-quiz answer: limit to relevant Kujira FIN order books

#Rust pop-quiz answer for limiting which Kujira FIN order books are shown.



With a simple retain(), I limit @TeamKujira FIN order books to the ones I find relevant (by 24h-volume). 


Rust pop-quiz answer: colors, HashMaps, and macros, oh, my!



Then, with a HashMap, a compose-macro, and some simple string-parsing functions, we have color management! YUS! πŸŽ‰





Monday, February 5, 2024

Rust pop-quiz answer: analyses of PnL trades by day

#Rust pop-quiz answer to the question of analyzing PnL of trades by day.




To do the analyses above, I needed a trades-by-day HashMap


Once I had that, the answers fell out from the most- or least- value in that map.


Rust pop-quiz answer: sorting assets by pnl

#Rust pop-quiz answer to the pop-quiz about sorting assets by pnl.




Sorting assets by pnl becomes easy, once that code it broken out into its own reports-module.



Rust pop-quiz answer: Top 5s, ... or not

Rust pop-answer

I had a pop-quiz to change "Top 5" to "Top [n]" if the Top-5 ... weren't.

Here's the answer




And you see the result of that re-coding in yesterday's ORCA report.