Where It All Started.

Where It All Started.

Life, Stock Trading, Investments, Business and Startup. Most are programming stuff.

Year: 2021

MicroStrategy At Bitcoin (BTC) Shopping Spree Spends $82.4 Million

NASDAQ-listed tech giant, spearheaded by Michael Saylor, continues its BTC buying spree after another substantial purchase worth more than $80 million. The company has accumulated another 1,434 coins for approximately $82.4 million in cash at an average price of around $57,500 per bitcoin. This is the tech behemoth’s second bitcoin buy in the past few weeks. In November, the firm then spent $414 million to swipe just over 7,000 coins.

The company’s total stash is now 122,478 bitcoins, which were acquired for $3.66 billion at an average price of just under $30,000. This means that MicroStrategy’s entire BTC portfolio is now worth over $6 billion.

Tezos (XTZ) Has Surged By Staggering 40% As A Result Of Ubisoft’s NFT Integration

Tezos’ native token XTZ has surged around 40% over the past 12 hours on the news that it has been selected by gaming giant Ubisoft. The beta will launch with Tom Clancy’s Ghost Recon Breakpoint on Ubisoft Connect for Windows PC on Dec 9. Starting this week, Ubisoft Quartz will enable players to acquire “Digits” – the first NFTs to be made available in a triple-A game. The first batch of Digits will launch with limited editions with a fixed number of unique in-game items. They can be purchased with cryptocurrency, but are only available in the U.S., Canada, Spain, France, Germany, Italy, Belgium, Australia, and Brazil.

Ubisoft has selected the Tezos network for the properties of its proof-of-stake consensus which is more energy-efficient than mining. Vice President of Ubisoft’s Strategic Innovation Lab, Nicolas Pouard, commented:

Ubisoft Quartz is the first building block in our ambitious vision for developing a true metaverse. And it can’t come to life without overcoming blockchain’s early-form limitations for gaming, including scalability and energy consumption.

Peter Schiff Being Schooled By El Salvador President On Buying Bitcoin (BTC) Dips

El Salvador President Nayib Bukele explained to Peter Schiff why it didn’t make sense to criticize his country for continuing to take advantage of dips in the Bitcoin price. Schiff is the CEO of Euro Pacific Capital, a full-service, registered broker/dealer specializing in foreign markets and securities, and founder and Chairman of SchiffGold. The bill to make Bitcoin legal tender in El Salvador got passed by the Legislative Assembly on June 9 and the Bitcoin Law became effective on September 7. El Salvador’s President, Fausto Bukele, responded to Schiff’s attack on his nation’s gold reserves by pointing out that the value of their gold reserves has gone down by 0.37% over the past one year. The last time El Salvador bought Bitcoin was on October 27/28, and if they had done so back then, the price would be around $204 million.

After Meta; Square Rebrands To Block

Square has announced that it is rebranding its company name to “Block” in a move that would see it give its full square brand to its seller business. This will also give the new company a distinct corporate entity from its other businesses, giving it the muscle to expand into other ventures. The company also hinted at building its own fully-fledged metaverse, joining the likes of Meta and Roblox in the crowded field of online gaming companies. This development comes just days after Dorsey stepped down as Twitter C.E.O in what he termed as “critical” to allow Twitter to stand on its own. The move was largely seen by the crypto community as well-timed, allowing Dorsey to concentrate more on building blockchain-based products.

Shiba Inu (SHIB) Price Soars By 25% And Whales Are Still In Control

The price of Shiba Inu jumped 25% on the Kraken exchange after whale bought 24.8 billion SHIB tokens. This made the meme token surpass Avalanche’s (AVAX) and pushed it closer to flipping its rival, Dogecoin, once again. On-chain data suggests that short-term traders have not yet entered the market, which means whales are still in control of the current trend.

New Fund For Algorand-Focused Products Launched By Borderless Capital

Borderless Capital has launched a $500 million fund investing in digital assets powering the next generation of decentralized applications on top of Algorand (ALGO). The Miami-based company started its first Alogorand-focused fund in June 2019. It initially raised $200 million and invested in more than 100 companies, including BlockDaemon, Six Clovers and Osprey Funds. “There is a huge room to grow from here,” David Garcia, Borderless Capital’s founding managing partner said. Borderless Capital has announced a new fund that will invest in the Algorand ecosystem specifically for products involving DeFi liquidity mining, yield farming, lending, borrowing and trading

The firm will be announcing specific investments of the new fund in the coming months. SkyBridge Capital and NAX revealed a partnership in September to offer decentralized applications and institutional investment opportunities that will be part of the initiative using Algorand.

Avalance (AVAX) Will Continue To Rally According To A Crypto Analyst

According to a popular crypto analyst Avalanche has still more room to grow. He says he’s still bullish on the smart contract platform and said it has more room to grow up to more than 280 USD. He’s comparing the movement of Avalanche to Solana’s parabolic move.

Also quoted from the crypto analyst “If the $SOL (Solana) run is anything to go by, then $AVAX (Avalanche) should have plenty of gas left in the tank.”.

Zooming in the crypto analyst chart, seems he plotted that it will go up to 280 USD with a potential of 110% from its current price 128-133 USD.

At the time of the writing the price of Avalanche still swinging from 120-140 USD with an ATR (Average True Range) of 4.2.


Stay updated always in the crypto space!

Rebasing With Git

Rebasing is one of the features you probably want to have, if you plan to work on a neat git based project.


🍣 Where To Rebase?

If you know how many commits you make, to rebase you use git rebase with -i flag to enable interactive rebasing. The HEAD~<n> corresponds to the number of commits you have done (e.g. HEAD~4 if you have 4 commits to rollback to get to common ancestor commit).

git rebase -i HEAD~<n>

Sometimes, you commit a lot and forgot how many commits you’d make. To know the least common anscestor you have with master, you do git merge-base with your branch name as parameter.

git merge-base <your-branch> master

The above command will return a git hash which you can use on the git rebase command.

If you already know the git hash, then you can rollback to that specific commit and moving all current changes to unstaged. Once, the editor pop-ups you will choose which commit to retain, squash, and reword.

git rebase -i <git-ref-hash>

🍣 Merge Latest From Master

If you’ve already rebased your changes and needed to get lastest changes from master. All you have to do is rebase to the latest changes from master.
This command will do that.

git rebase origin/master

In any case, you’ve encountered some conflict first resolve it then continue in rebasing instead of creating new merge commit.

git rebase --continue

🍣 Overwriting Remote Repo Changes

Once all is done, overwrite your remote repo latest changes if you’ve pushed it. This will do a force push ignoring current ref on remote repo.

git push -f

🍣 Did Something Wrong? In Need Of Rollback

Did something wrong on merging conflicts? Don’t worry you can still see your previous changes using the command git reflog short for reference log.
You can checkout the reference hash then re-merge your changes.

git reflog

References

Limit Window Subsystem Linux v2 (WSL2) Resources To Speed Up Kubernetes

Window Subsystem Linux v2 (WSL2) is an iteration of the VM created by Microsoft, from Hyper-V to WSL and this the second generation of WSL. If it’s your first time accessing WSL2, it automatically provide you with the default setup which doesn’t provide any limits accessing your full workstation resources (CPU, RAM and other HDD). It means that if you have 8 cores cpu and 16Gb memory, it will use all that up. The problem with it is sometimes it affects your host computer and it gets slow. So to solve that problem we try to limit the resource consumption of WSL2.

Photo by Sadik Brika on Unsplash

Limit WSL Resource Consumption

On your profile directory %USERPROFILE% create a new file named .wslconfig. Set it’s content to the following:

[wsl2]
memory=8GB
processors=8

Change the settings base on your workstation capability, and this is what works for me.

Next, open up a powershell terminal in administrator mode and restart the LxssManager as this manages WSL2.

Get-Service LxssManager | Restart-Service

You could also use the wsl --shutdown method to restart WSL. Check if the vmmem process still consumes beyond its limit.

Troubleshoot

If the changes still not reflecting, try to restart your machine and also restart Docker Desktop.

Simple Rust Mutation Relationship Diagram

Rust mutation can be somewhat confusing if your a beginner. Its similar to C++ way of doing things on where to put the asterisk (*) and ampersand (&) sign in variable declaration. Moving the asterisk sign and ampersand sign makes the declaration sometimes more mutable and also can make it less mutable.

Here is a simple diagram on Rust mutation that I found on StackOverflow (SO). I can’t find the exact link to reference as this one is stored in my notes.


        a: &T == const T* const a;      // can't mutate either
    mut a: &T == const T* a;            // can't mutate what is pointed to
    a: &mut T == T* const a;            // can't mutate pointer
mut a: &mut T == T* a;                  // can mutate both