tag:blogger.com,1999:blog-64974720894714534972024-03-18T02:47:25.487-07:00Silicon Vanity | Tech lifestyle in Silicon ValleyYour byte size news and commentary from Silicon Valley the land of startup vanities, coding, learn-to-code and unicorn billionaire stories. Unknownnoreply@blogger.comBlogger728125tag:blogger.com,1999:blog-6497472089471453497.post-89588094635652506582022-10-18T18:51:00.002-07:002022-10-18T22:43:20.285-07:00React UI, UI UX, Reactstrap React Bootstrap<p><b>React UI MATERIAL </b></p><p><b>Install</b></p><p>yarn add @material-ui/icons</p><p><b>Reactstrap</b></p><p>FORMS. Controlled Forms. Uncontrolled Forms. </p><p>Columns, grid</p>Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-6497472089471453497.post-76718049363184691612022-09-05T01:02:00.003-07:002022-09-05T01:03:19.521-07:00Data analysis<p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicLUBvrpeBjIRqp5-UCNhzP425olGaTv-DB_RHbSuYt00kCEPhuQiJKh9Z5YTUtBqZ2cnMF_NoxWpuaTnl12pMSRLsT-Y-_LO9Q0jYBSUNJcbFZEZbzzVL6O5W3tZkErxsTbEuPSePQQTVousKHS8eTRwsCOanhBZlXzCQFZdTHLAfzhifsnI_XkPAlQ/s1559/IMG_4297.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1559" data-original-width="1170" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicLUBvrpeBjIRqp5-UCNhzP425olGaTv-DB_RHbSuYt00kCEPhuQiJKh9Z5YTUtBqZ2cnMF_NoxWpuaTnl12pMSRLsT-Y-_LO9Q0jYBSUNJcbFZEZbzzVL6O5W3tZkErxsTbEuPSePQQTVousKHS8eTRwsCOanhBZlXzCQFZdTHLAfzhifsnI_XkPAlQ/w300-h400/IMG_4297.jpg" width="300" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;">Data visualization of common math formula. </div><br /> <p></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-79339707466420917082022-09-04T02:48:00.003-07:002022-09-04T02:48:53.389-07:00Every day data science<p>Real estate data science example</p><p> home price / median income ratio. "Historically, an average house in the U.S. cost around 5 times the yearly household income. During the housing bubble of 2006 the ratio exceeded 7 - in other words, an average single family house in the United States cost more than 7 times the U.S. median annual household income." If this ratio is too high it could be a signal of housing bubble. </p><div>https://www.longtermtrends.net/home-price-median-annual-income-ratio/</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-12663368946310560662022-08-25T18:14:00.005-07:002022-10-13T19:59:04.015-07:00Cool NFTs Q3 2022<p>Warning: Please do your own research. We cannot verify the code, team or tokenomics of the below mention projects. Please do your own research. Crypto and NFTs are highly speculative and risky. Improper use of smart contracts, signing message can compromise your entire wallet/ portfolio / digital assets. Please only use test wallets, new wallets and test tokens. </p><p>John's skeleton's</p><p>https://twitter.com/jjjjjjjjjjohn/status/1559591140797677569</p><p>Tezos NFT https://tezos-mandala.art/</p><p>Trending concept: token gated store, community, club e.g. token gated shopify store front. a solana store is being designed in miami. The space already has a virtual render. </p><p>Tiffany is making CryptoPunk pendants with fine jewelry. It is still very unaffordable. To make the jewelry you will need to own the punk, which is included in the hefty price tag! The floor price of punks is not trivial</p><p>We haven't heard about too many successful NFTs launching on Coinbase except for Bill Murray's. It includes variation of many of his cool acting career milestones and climate change and political beliefs The Bill Murray 1000 collection offers 100 story NFTs containing anecdotes, observations, advice, memories, Murray-isms, and more. <a href="https://nft.coinbase.com/drops/bill-murray-1000">https://nft.coinbase.com/drops/bill-murray-1000</a> including The Life Aquatic with Steve Zissou</p><p><br /></p><p><br /></p>Unknownnoreply@blogger.com4tag:blogger.com,1999:blog-6497472089471453497.post-72883197357477032312022-08-24T22:18:00.002-07:002022-08-24T22:18:06.599-07:00Crypto wallet remove permission, remove connection. Disconnect wallet from trusted sites. <p> Do your own research. Please read our disclaimer. Crypto security is tricky. This method is seen on the internet is not guaranteed to work. Just doing this disconnect wallet with trusted site is usually not enough to ensure security. </p><p><br /></p><p>Magic Ethen / @MagicEden.</p><p>***There seems to be a widespread SOL exploit at play that's draining wallets throughout the ecosystem</p><p>Here's what you can do right now to best protect yourself</p><p>1. Go to >Settings on your @phantom</p><p>2. >Trusted Apps wallet </p><p>3. >Revoke Permissions for any suspicious links</p><p>7:08 AM Aug 3, 2022</p><p>Read the full conversation on Twitter</p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-19253874441925039992022-08-16T04:21:00.002-07:002022-08-17T00:58:57.228-07:00Cloud Compute 2022<p> Top cloud providers: Amazon AWS, Google Cloud, Microsoft Azure, Alibaba Aliyun in Asia</p><p>Google Cloud</p><p>Why use Cloud Dataproc? "Dataproc is a managed Spark and Hadoop service that lets you take advantage of open source data tools for batch processing, querying, streaming, and machine learning. Dataproc automation helps you create clusters quickly, manage them easily, and save money by turning clusters off when you don't need them. With less time and money spent on administration, you can focus on your jobs and your data” - SOURCE google training workshop</p><p>Study for Google Cloud and Data Engineer certificate exams</p><p>Google Cloud Quiz : Which of these storage needs is best addressed by Cloud Storage? [public]</p><p><a href="https://ml.learn-to-code.co/skillView.html?skill=tOMMJcGcH8qHJIytKHrM">https://ml.learn-to-code.co/skillView.html?skill=tOMMJcGcH8qHJIytKHrM</a></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-36609763743194464662022-08-15T19:21:00.001-07:002022-08-15T19:21:44.862-07:00Wit.ai Natural Language Processing (NLP) - Facebook Developer 2021<p> Wit.ai</p><p>The most important goal for wit.ai in 2020-2021 (as seen in promotions in hackathons and developer jams) include:</p><p>multi modal applications using wit and Portal (not yet available to all developers), conversation model, conversation design, fitness, wellness.</p><p>Wit.ai can be the NLP layer of your app. It can make your web app and mobile app voice enabled, and smart with AI. </p><p>For authentication the wit.ai api uses a auth bearer token, which you must include in your API call. </p><p>Integration between Wit.ai and Facebook Messenger is readily available, natural and easy. It is frequently seen in hackathons. </p><p>Future and exciting projects using wit.ai: wit AI for daily usage, fitness, wellness seems to be active areas that Facebook is promoting during hackathons</p><p>Security wise it is unclear if your data goes through encryption. It also looks like Facebook will have access to the data (refer to term of service). You assume some ownership of the data, for example you can download the training data. Disclaimer: we are not lawyers, and we are unsure about the logistics of term of usage and the legal part of wit.ai</p><p><br /></p><p>Wit.ai hackathons : fitness, </p><p>Past hackathon winners: Robin accountant which can set a budget and track expense. </p><p><br /></p><p>Build intent handler. Code intent handler</p><p>NLP Wit https://medium.com/wit-ai/inside-wit-ais-first-ever-developer-jam-7da37b181088</p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-86447071825323240692022-08-14T06:16:00.007-07:002022-08-17T01:33:20.816-07:00Developer tools dev tools, developer efficiency hacks<p>Plugins : sublime plugin for sublime editor, extensions for vscode. </p><p>VSCode (VS Code) basics:</p><p>Drag file to text editing panel to preview, edit and write code. </p><p>View > Layout > Two columns to view files side-by-side</p><p>Another reason to use Visual Studio Code, VS Code will display a little color swatch right next the hexadecimal value of CSS colors. </p><p>Live server, live preview, hot loading functionality available for web development. </p><p>Visual Studio Code can be used for JavaScript, Python, Deep Learning. Visual Studio Code VS Code extension code runner, run multiple languages including javascript. (node.js must be installed). Click on code runner, select language javascript. </p><p>Click hold terminal output tab drag it to the right, to dock it there, </p><p><br /></p><p>Typing code on iOS: Did you know you can long hold symbols/keys for more programming friendly syntax? For example, long hold the quote key to type ' instead of <i>". </i>When typing in notepad, the double quote is stylized, not valid programming script syntax. </p><p>Build a portfolio, publish to Github, and or using Github page. </p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-35975003544028152282022-08-14T06:11:00.003-07:002022-08-18T17:07:20.013-07:00Node.js app basics<p></p><ul style="text-align: left;"><li>node.js is command line runtime for javascript based on v8</li><li>Node.js, it's a JavaScript runtime built on Chrome's V8 JavaScript engine. —> Node.js provided new host objects in addition to native JavaScript objects (source codeacdemy). Same engine. Node non-blocking queue fast efficient, less, don’t do one by one can handle it as it comes, send it as it is ready. Blocking analogy (the opposite: </li> <li>npm install </li><ul><li>install all dependencies in package.json</li><li>npm install adds the node_modules folder if it doesn't already exists and add files to the folder</li><li>If using <i>npm i</i> generates package.lock, you might seen yarn.lock if using yarn</li></ul><li>Rename any env.example file to .env if that file contains the environment variable and authentications that you would like to use</li><li>npm start </li><ul><li>executes the startup script</li></ul></ul><div><br /></div><div><i>tags: web dev, webdev, </i></div><p></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-70635148229444716452022-08-14T00:08:00.016-07:002022-09-24T19:21:25.513-07:00Getting started with Moralis<p>Moralis is a powerful Web3 framework for building decentralized apps (dapps). Moralis supports many chains both mainnets and testnets. That's impressive! Ethereum (and other EVM compatible chains and tokens), polygon, binance smart and now avalanche and fantom!! Rad! You can use moralis to build web3 apps quickly. By the way, Moralis has super good documentation, this blog post is just my personal notes. You really don't need it. But you can read it like a summary, initial walk through, guided tour. The moralis documentation is excellente. </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjdFJy6cHhwnKY333sywFtwdA_EPARVOGiNEWedOBhxUJ6yJ4B786w6jKLZhganKeGzH8EK_BF5e7Qzmzz3Xsr3A8m_U9wJIV1IngrQQ4bkr5n_zoc45I07wEe49m5VqFXEET9TXIJuoZSBps7bIKcD5YHgwBzaq0DHu0pA0Wu1AE0K_ytc06mYbBTm7Q=s584" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="584" data-original-width="498" height="320" src="https://blogger.googleusercontent.com/img/a/AVvXsEjdFJy6cHhwnKY333sywFtwdA_EPARVOGiNEWedOBhxUJ6yJ4B786w6jKLZhganKeGzH8EK_BF5e7Qzmzz3Xsr3A8m_U9wJIV1IngrQQ4bkr5n_zoc45I07wEe49m5VqFXEET9TXIJuoZSBps7bIKcD5YHgwBzaq0DHu0pA0Wu1AE0K_ytc06mYbBTm7Q=s320" width="273" /></a></div><p><br /></p><p>Web3 dev platform. Great for creating dapps. Moralis API handles all the common tasks. Moralis projects are organized under email accounts, then each project has its own server (select net to be mainnet testnet<span> </span>). Once a server is created you will get the API info: server URL app id and secrets. </p><p>01 In moralis dashboard initialize a server with your desired blockchain. Use testnet for tutorials and education purpose. Grab the server API key. Launch Moralis Server Initialize SDK in your app.</p><p>02 in your app.js or main.js first import moralis then initialize your moralis variables</p><p>03 All user info instantly in Moralis Server Database Tokens, MATIC, NFT Balances and Transaction once user logs in. </p><p>The server will automatically go to sleep after a period of non use. </p><p>Web3 APIs by Moralis : inspect the API endpoints in the admin panel. You can preview sokme of the functionalities and see what values are received as a part of the request. Moralis APIs : can retrieve all transactions in EVM compatible chains that are supported, also Solana. Retrieve all tokens. </p><p>It also provides some building blocks and really good looking UI for building DEX (this functionality is limited in the USA but is super useful in places where DEX's are allowed). Ivan talks about the potentially to charge referral fees. Do your own research, know your regulations. This is not advice, not professional advice, not production/commercial used. At your own risk. Crypto is very risky.</p><p>On Moralis API page/dashboard, we can see all the GET and POST methods available. </p><p>Example Solana API on </p><p>Solana API<br />GET /dateToBlock Gets the closest block of the provided date<br />GET /block/(block_number_or_hash} Gets block contents by block hash<br />GET {address}/logs Gets address logs<br />GET /block/block_number_or_hash)/nft/transfers Gets NFT transfers by bomber or block hash ?<br />GET /transaction/(transaction_hash} Get transaction details by transaction hash</p><p>POST<br />POST/address)/eventsaddress)/function<br />Gets events by topic …</p><p>Moralis functionalities. Moralis can get price of token. Smart contract events automatically synced to moralis database. </p><p>Core functionality of a decentralized app [pro, paid members only] What does a dapp need? Core functionalities of a dApp. dapp functionality and API. [pro] <a href="https://ml.learn-to-code.co/skillView.html?skill=6s5vjOJHbl4mq0QyejOD">https://ml.learn-to-code.co/skillView.html?skill=6s5vjOJHbl4mq0QyejOD</a></p><p><br /></p><p>Moralis new release</p><p>What’s Moralis nitro<br />Supposedly according the newsletter. Coming soon. Not yet available <br />🚀 10x faster user sync<br />🚀 10x faster smart contract sync<br />🚀 10x more robust dApps</p><p>Moralis has a JavaScript course for beginners to JavaScript programming and web3. But it has a price tag $2000. The founder Ivan founded the course, and he is an awesome guy. He tweets about this Js course, Moralis, and he seems to be a crypto bull.</p><p>Moralis SDK</p><p>Moralis JavaScript SDK: v2. "This Node.js library will feature integrations for new Moralis 2.0 products, starting with our Auth API, EVM API, and Solana API.</p><p>Moralis Solana API</p><p>balance<br />getSPL<br />getNFT<br />getPortfolio gets all three at the same time</p><p>It's possible to use Moralis and Serverless cloud functions to create complex web3 apps. </p><p>A word on going live: <b>WARNING and reminder </b>our tutorials, codes and contents are not for production use. While you can go live, please use only testnet, throw-away wallet, wallet that contains no real tokens. </p><p>When developing on web3, you can test using a test node in one of the ethereum test networks, or a ganache local node, or a free hosted node provided by cloud flare. Blockchain, web3 and crypto applications must be thoroughly tested, using the industry best practice, and being audited and monitored regularly. </p><p>Hackers often target these applications. A reminder: warning our code base does not support production usage, does not support live, commercial usage. Our codes have not being tested in live/production/deployed environments. They cannot be used on mainnet. We are not liable for any costs, damages, losses. Please read our full disclaimer, terms of usage. </p><p>You have worked with different chains such as mainnet, testnet, or Ganache (Ganache is your own local development chain).</p><p>It must be hosted locally on your computer or publicly on a server like Netlify.</p><p><br /></p><p>The easiest method is with the "Live Server" extension for Visual Studio Code.</p><p>You can also use Python's built-in web server.</p><div>Moralis connects to your front-end app. It's like firebase for web3 service. Moralis calls itself firebase for blockchain / web3 apps. It gives you the backend, so you can focus on building the application logic and the front end. Actually Moralis even offers pre-build UI that takes care of the front end. For its own backend, Moralis uses MongoDB, which gives develoeprs familiar commands and API. Moralis makes use of MongoDB. An example of high quality pre-build UI is ethereum-boilerplate-NFT-Marketplace https://github.com/ethereum-boilerplate/ethereum-nft-marketplace-boilerplate</div><div><br /></div><div>Use Moralis with React:</div><div>https://github.com/MoralisWeb3/react-moralis</div><div>Can use react components and hooks in Moralis React apps. </div><h4 style="text-align: left;">Moralis auth use Moralis to log in</h4><div><div>Login User</div><div>Moralis.Web3.authenticate().then(function (user) { console.log(user.get('ethAddress'))</div></div><div><br /></div><div><b>Connecting Moralis with WalletConnect</b></div><div><div>To use walletconnect with Moralis, you will have to use a community module. Walletconnect can be connected with TrustWallet. Note this is an older module, it’s a bit inconvenient to work with. Just add the Wallet provider parameter as a provider. There’s a moralis video about it. </div><div>Moralis.web3.enable({provider: 'walletconnect'});</div><div>user = await Moralis.Web3.authenticate({provider: 'walletconnect' });</div><div>web3= await Moralis.Web3.enable({provider: 'walletconnect' });</div></div><div><br /></div><div>Stacks : serverless dapp + web3.js + moralis </div><div><br /></div><h4 style="text-align: left;">Moralis Versions</h4><div>Previously Moralis 1.0</div><div><div>"Ivan on Tech 01/17/2022 MORALIS SDK 1.0 IS OUT!! Very important upgrade to the SDK that will take Moralis to the next level This will allow us to move faster, add more features faster, add more chains faster, add more wallets faster 1) Ethers support by default 2) Will allow many many more auth methods future"</div><div>3) Allows Solana support to be added soon</div><div>4) Modular refactoring that enables more extensions in the Breaking changes: There are some minor breaking changes - Migration"</div></div><div><br /></div><div>Now it is Moralis 2.0</div><div><br /></div><div><br /></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-59222776586618979632022-07-29T13:59:00.000-07:002022-07-29T13:59:22.452-07:00Interesting Books - Property Brothers real estate and interior design book<p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT6v7gnJFJc78g0aE79IUkU-OVHgmao731KIG4NLsuyrkqTP6NGZRNYLDC6Cge_pglxUhQYrsRUIEjWZuENiTqDrQnMQIRNcE15b--rtDfEovyDleaoTkzd_Xd4PrNcjPYyyx27H0FF3A5S2bvsufQU2qUJ2EGipZ3sZxXOpHXoninN3Z_2Fy2Nn-NYw/s2532/IMG_9129.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="2532" data-original-width="1170" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT6v7gnJFJc78g0aE79IUkU-OVHgmao731KIG4NLsuyrkqTP6NGZRNYLDC6Cge_pglxUhQYrsRUIEjWZuENiTqDrQnMQIRNcE15b--rtDfEovyDleaoTkzd_Xd4PrNcjPYyyx27H0FF3A5S2bvsufQU2qUJ2EGipZ3sZxXOpHXoninN3Z_2Fy2Nn-NYw/s320/IMG_9129.PNG" width="148" /></a></div>Did you know the property brothers have a book? My favorite part is the page where they talk about real estate lingos and translate it to laymans. Like what does an agent mean when he/she say quaint. <p></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-31343502220249221012022-07-26T04:05:00.006-07:002022-07-26T04:05:58.827-07:00Debugging error RecursionError: maximum recursion depth exceeded<p>"RecursionError: maximum recursion depth exceeded"</p><p>Issue the maximum recursion depth is reached. The maxinum depth is 1000 in python.</p><p>solution 01</p><p> "The default is 1000 levels deep and you can change that using the setrecursionlimit function in the sys module."</p><p>https://stackoverflow.com/questions/3289430/maximum-level-of-recursion-in-python</p><p>solution 02 </p><p>Use an iterative approach. </p><p><br /></p><p><br /></p><p><br /></p><div><br /></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-86332627105851021952022-07-24T02:32:00.002-07:002022-07-24T02:32:10.869-07:00Tesla Charging Tips Shared By Tesla - How to Charge Tesla Quickly, Efficiently<p>Tesla: "</p><p></p><ul style="text-align: left;"><li>Find the fastest Supercharger Filter by three bolts in navigation</li><li>Navigate to the Supercharger Battery will precondition for faster charging</li><li>Arrive with 20% battery or less Maximize charge rate</li><li>Leave space between cars</li><li>Neighboring stalls may share power Move your car after charging</li><li>Idle fees may apply </li></ul><p></p><p>" - per Tesla released note</p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-20742494311932795472022-07-23T16:17:00.001-07:002022-07-23T16:17:11.174-07:00Go Pro reelready stabilization<p> Go Pro 9 10 has build in video stabilization, called hypersmooth 2.0 (in-camera stabilization). GoPro sells a separate software called Reelready GO for $99+ bucks which will take in gyroscope data, to stabilize post-production. The GoPro player can also play stabilized video if the footage comes from a gopro camera with gyro data https://community.gopro.com/s/article/GoPro-Player-ReelSteady-Compatible-Presets</p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-90093501759490357892022-07-23T15:49:00.020-07:002022-10-13T01:19:55.424-07:00Solana Developer Resources + Getting Started with Solana<p>Solana is a layer 1 blockchain. </p><p>Why Solana? Fast, cheap, can be robust <a href="https://youtu.be/TTdcs7EYfcw">https://youtu.be/TTdcs7EYfcw</a></p><div><br /></div><p><br /></p><p><br /></p><p> Current event:</p><p>- Solana build during bear market</p><p>https://twitter.com/solana/status/1546513148114599939</p><p><br /></p><p>Solana Summer Camp Hackathon</p><p>Twitter space talk</p><p>https://twitter.com/i/spaces/1YqKDqqQyeDGV</p><p>Prizes : payments ~50K, grants, no need to give up equity (?), Prizes are grants, no equity necessary to participate. </p><p>Summer camp. coworking, hacker houses around the world. For example the San Francisco Summer Camp is located at a co-working space called SPACES near the pier 39 occasion front. </p><p><br /></p><p>Getting started with Solana</p><p>What is Rust [flash card] 👇🏼</p><p><a href="https://ml.learn-to-code.co/skillView.html?skill=LEhDxIfgayEmO0Ny3yve">https://ml.learn-to-code.co/skillView.html?skill=LEhDxIfgayEmO0Ny3yve</a></p><p><br /></p><p>Community</p><p>Developer lifestyle : really love the solana designs, and color palette, just so good with the new gaming aesthetics, reminds me of cool clubs and gaming conferences. Fun fact, trivia there's even a Solana beer : https://decrypt.co/108376/solana-beer-degods-okay-bears-nfts-summer-shandy There's also the Solana IRL Store in Miami and NYC https://decrypt.co/106088/solana-spaces-irl-store-web3-embassy-new-york</p><p> </p><p>Get involved Solana Ambassador</p><p><br /></p><p>Past price</p><p>solana<span style="white-space: pre;"> </span>SOL $165 December 13, 2021</p><p><br /></p><p>Getting Start with Rust</p><p>Rust is a system language like C C++ and GO. It has included memory management. C++ requires DIY.</p><p><br /></p><p>Task: Create a Rust project</p><p>$ cargo init</p><p><br /></p><p>Definition: Cargo is the package manager for Rust</p><p><br /></p><p>Task: run the main program in Rust. Source file has main function</p><p>$ cargo run</p><p><br /></p><p>Main function is always the first function that will be executed when running rust. If one changes function to a different name will get error.</p><p><br /></p><p>Task: Hello World with Rust. </p><p><br /></p><p>pub fn hello(){</p><p><span style="white-space: pre;"> </span>println!("Hello World!");</p><p>}</p><p><br /></p><p>Task: import hello module. Mod is the keyword for module. </p><p><br /></p><p>mod hello;</p><p>fn main(){</p><p><span style="white-space: pre;"> </span>hello::hello();</p><p>}</p><p><br /></p><p><b>Task: use :: syntax to call function in a module</b></p><p>module_name::function_name</p><p><br /></p><p><b>Task : view startup scripts </b>Scroll down to the bottom of package.json</p><p>"scripts":{</p><p><span style="white-space: pre;"> </span>"start": "nodemon app.js",</p><p><span style="white-space: pre;"> </span>"serve": "node",</p><p>}</p><div><br /></div><div>Task: serialize, deserialize data between code and byte code. Encode and decode. </div><div><br /></div><p>Discord</p><p>Grape (GRAPE), a solution for validating users on Solana. "Create, Reward & Secure any online community by harnessing the power of Solana" - Coingecko</p><p><br /></p><p>Solana Mobile </p><p>Solana mobile stack in progress, becoming the chain that mobile developers think about (Packy McCormick</p><p>Why is the Solana leadership excited about Solana Mobile? All in one Solana platform - comparable to the emergence of super apps like WeChat. Rough transcription: "WeChat moment for crypto. Super app for everything in crypto. Solana mobile. Crypto can track an address interact with u, know the entire history."</p><p>Speaker, currently interaction is mostly on desktop, need the wechat moment for crypto - super app), </p><p><br /></p><p>solana in person todo</p><p>learning resource</p><p>Seen on twitter “The Solana Development Course on @soldevapp is soo good! Great work and thank you to @jamesrp13 and the other contributors! </p><p>Potential Solana courses: (we have not had a chance to try or test these courses) Solana course https://soldev.app/course</p><p>Moralis supports Solana. Current two types of development tools are available SDK and REST API. Here are some of the API endpoints https://moralis.io/solana-api/ </p><p><b>Solana web3 javascript SDK API</b></p><p>Solana Documentation : Web3 JavaScript API What is Solana-Web3.js? https://docs.solana.com/developing/clients/javascript-api</p><p>injected web3 <i>window.solana </i>.</p><p>Community size: discord member August 2021 ~ 133,000.</p><p>What's Squid Prize? Solana contribution Prize <a href="https://twitter.com/solana/status/1555647981281476614">https://twitter.com/solana/status/1555647981281476614</a></p><h4 style="text-align: left;">Solana Supported Wallets</h4><div>Solana ecosystems, apps, wallets [public]</div><div><div>https://ml.learn-to-code.co/skillView.html?skill=rCPnrSqeZ2x4pnBUA0Iw</div></div><div><br /></div><div>Warning : only use test wallet, test tokens. Never use real tokens for experiments. Never to real tokens for development. Always do your own research. Applies to all tech, cryptos and more. </div><div><br /></div><div><br /></div><div><br /></div><div>If using web extension, browser extension need to install before using. </div><div><br /></div><div><div>Flash card for our pro paid members.</div><div>Solana Wallet Adapter [pro]</div><div>https://ml.learn-to-code.co/skillView.html?skill=Pfc3e6qzu1MKc0v4SsLx</div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-82857938669710037692022-07-21T23:34:00.003-07:002022-07-21T23:34:44.863-07:00<p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQWxM7uZUqMXc2z9cIFVJ0tT9XmNqO9pnvvEzWTymhPK-HqWPBwhQaxFFvnu3Iomo6yqKbm07Z85ZTRH8tIJtHc2AnoiVLZfDlA15ZLVUxeTi86V0y52A-NPDKbOIfo8C4Cq2VuXvEnXsZKALIVblLT-D9qXU9yBmvRhRLKeSNVjwPzmsbLoIWyocZcA/s2242/Screen%20Shot%202022-07-21%20at%2011.32.18%20PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1026" data-original-width="2242" height="293" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQWxM7uZUqMXc2z9cIFVJ0tT9XmNqO9pnvvEzWTymhPK-HqWPBwhQaxFFvnu3Iomo6yqKbm07Z85ZTRH8tIJtHc2AnoiVLZfDlA15ZLVUxeTi86V0y52A-NPDKbOIfo8C4Cq2VuXvEnXsZKALIVblLT-D9qXU9yBmvRhRLKeSNVjwPzmsbLoIWyocZcA/w640-h293/Screen%20Shot%202022-07-21%20at%2011.32.18%20PM.png" width="640" /></a></div><br /><p></p><p>Alchemy jsonrpc, eth_getBalance request result is 0x429d069189e000</p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-25297378795973940622022-07-21T15:36:00.004-07:002022-07-21T15:37:15.980-07:00Startup Tool - Square Payroll, Square Team, and Square Payment Review<p>We have been using Square Payroll for our startup. It takes care of filing and forms. Which is pretty amazing. You are probably familiar with Square payment POS point of sale system. Did you know it also offer free online shop and URLs (ecommerce portal like shopify), tracks inventory, . It also offers payroll, time card, team time tracker via the Square Team app, clock in clock out is easy. Payroll supports contractors and full time employees, handles direct deposit. We haven't tried it yet but these benefits and HR options are available : external HR as a service, benefits such as shopping for healthcare, retirement plan. So cool. It's a joy to not deal with these HR pain points. That makes a startup founder happy. </p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-30680251320549126082022-07-21T02:27:00.002-07:002022-09-28T20:51:44.890-07:00Startup Engineering 101<p> draft in progress</p>Traction : active user revenue<br /><h3>Product Market Fit</h3>What Problem are you trying to solve?<br />Figuring out Sources of Motivation<br /><br /><h3>Communications, Culture and Hustling</h3><div>Minimize email time and meeting time (that's why so many startups prefer Slack, the conversation is immediate and transient). Every email should add value, else, just delete it. Replace long meetings with a morning standup meeting to set goals, remove obstacles and make sure each person can start the day right. Do this as long as you can, till you are too big. </div><div><br /></div><h3 style="text-align: left;">Common Failures</h3><div>When user education requirement is high. It takes a long time for users to understand your project and the use case of your product.</div><div><br /></div><div>Users don't have the problems often. </div><div><br /></div><h3 style="text-align: left;">YCombinator</h3><div>YCombinator how to apply <a href="https://www.ycombinator.com/howtoapply/">https://www.ycombinator.com/howtoapply/</a></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-86926044914739311132022-07-21T01:54:00.001-07:002022-07-21T01:54:37.287-07:00Top Things to do on Twitch<p> You can watch more than live streaming of games on twitch. Twitch can be a sports platform, community interaction, watch games, learn coding, live coding.</p><p></p><ul style="text-align: left;"><li>Things you can watch on twitch: competitive chess games. Live coding by pro developers.</li><li>Use OBS for live streaming, and use an iPad as a second monitor. </li><li>Developer and conferences on Twitch: e.g. Neo4j Graph database</li></ul><p></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-39656660237341387402022-07-11T20:22:00.005-07:002022-09-20T14:52:54.316-07:00Firebase Basics 2022<p>Firebase is an app development platform, owned and supported by Google. Firebase helps developers launch serverless database. </p><p>These are the enterprise users that use Firebase.</p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYG08wV8y9KRZ3Fz6eCyUdfoXG1s2yLei31eboHpi75DziEhgPFgpGKdbjKtr8cmDxlCqUU2WgFpW6Prw3PgDE1wOhtwP1AIR9bdB2DGKT1gSlgh3DOgGwudoYdJ3wuv4OFK_wGaTcoUm4D_3Xu4iYE1RoKOun-qA2iRSx8YjkbhjnlXryvKq30tLhpQ/s2866/Screen%20Shot%202022-07-11%20at%207.51.30%20PM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1490" data-original-width="2866" height="208" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYG08wV8y9KRZ3Fz6eCyUdfoXG1s2yLei31eboHpi75DziEhgPFgpGKdbjKtr8cmDxlCqUU2WgFpW6Prw3PgDE1wOhtwP1AIR9bdB2DGKT1gSlgh3DOgGwudoYdJ3wuv4OFK_wGaTcoUm4D_3Xu4iYE1RoKOun-qA2iRSx8YjkbhjnlXryvKq30tLhpQ/w400-h208/Screen%20Shot%202022-07-11%20at%207.51.30%20PM.png" width="400" /></a></div><br /><p><br /></p><p>Firebase extension: Firebase plugin for external APIs such as MailChimp, Stripe. </p><p>Firebase Extension Event: released 2022, add additional custom logic, code on 3rd party API. Event based, more customization on Firebase Extension. Additional Custom logic. Example firebase function, firebase extension event code snippet. </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSqley8CLEZXpFnSleF1bkFg35JE9zhMpUgNgTOuR8bvvuo8lBbFQRSZ6anPj2BbpDUqOa_ahoJjM3vKMiSzbmyxYoAs2KLW_k-JwtH8z4qqwUdYvacwG2OytxyYy3BzSY2VJeHpR4y_6MRZzHfUFpRFd1Hd9IL3zgs63GuXf3MUVOgBZqX_mlYp0qg/s1858/Screen%20Shot%202022-07-11%20at%208.00.34%20PM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1166" data-original-width="1858" height="402" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSqley8CLEZXpFnSleF1bkFg35JE9zhMpUgNgTOuR8bvvuo8lBbFQRSZ6anPj2BbpDUqOa_ahoJjM3vKMiSzbmyxYoAs2KLW_k-JwtH8z4qqwUdYvacwG2OytxyYy3BzSY2VJeHpR4y_6MRZzHfUFpRFd1Hd9IL3zgs63GuXf3MUVOgBZqX_mlYp0qg/w640-h402/Screen%20Shot%202022-07-11%20at%208.00.34%20PM.png" width="640" /></a></div><br /><p>Firebase offerings : screenshot from firebase developer event by google</p><p>Firebase security rule testing. Example pseudo code : if request id == resource id can view, edit. Basically means if the creator of the object is equal to the requester of the object, go ahead and let them view and edit. Use Firebase emulator to develop and test. </p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-8148800670122835712022-07-10T13:01:00.000-07:002022-07-10T13:01:00.030-07:00Excel for Data Analysts<div>Automation (自动化操作): automate data analysis in excel </div><div><br /></div><div>Columns: ranges from A B C D ... to AA AB AC...</div><div><br /></div><div>Dashboard : did you know you can create interactive, complex dashboard in excel. There youtube tutorials how to do this, and do statistical analysis on your data.</div><div><br /></div><div>Data Analysis (数据分析): </div><div><br /></div><div>Data Format:</div><div><br /></div><div>Dialog box : additional small controls, menu, modals popped up after selecting a menu item.</div><div><br /></div>Pivot table: Pivot table row column, value, filter is what not to show<div><br /></div><div>Ribbon : the control menu where all the copy paste, formatting buttons are.</div><div><br /></div><div><b>Advanced functions in Excel:</b></div><div>Financial functions, solver, historic trend line, trend line fitting, correlated movements.</div><div><br /></div><div><b>Pro tips:</b></div><div>It's possible to select data cells and name those cells. See an example here : </div><div><a href="https://www.siliconvanity.com/2022/06/using-named-range-in-excel-store-matrix.html">https://www.siliconvanity.com/2022/06/using-named-range-in-excel-store-matrix.html</a></div><div>This is called named range.</div><div><br /></div><div><br /><p><br /></p></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-64235939703099290592022-07-09T00:28:00.001-07:002022-07-09T00:28:12.882-07:00Compare Turbotax Products Infographics<p> This infographics is from amazon.com. This is not financial advice. Just find it helpful comparing different products of turbotax. As an entrepreneur, I often have to make decisions about which Turbotax version to choose. </p><table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto;"><tbody><tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz2aTYMJeOWgFIqEKrzUUBIDGrCDlBqj0Rq76zTl10zB_w4JdZf3SNyrs1qz-Xp-YdUiDsAhPI_xIfO2tPx216Bk-JX9bcDaADKFXeZLfff0FmMg9q4GG7TlGP9u1Q2BsoOy4fesFafZJlPh_SnQF2IO4yANv2_IXwzz7vbwFYAeD8Rg6n5XuXtxhF5g/s1333/tax%20turbo%20tax%202021.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1333" data-original-width="1000" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz2aTYMJeOWgFIqEKrzUUBIDGrCDlBqj0Rq76zTl10zB_w4JdZf3SNyrs1qz-Xp-YdUiDsAhPI_xIfO2tPx216Bk-JX9bcDaADKFXeZLfff0FmMg9q4GG7TlGP9u1Q2BsoOy4fesFafZJlPh_SnQF2IO4yANv2_IXwzz7vbwFYAeD8Rg6n5XuXtxhF5g/w480-h640/tax%20turbo%20tax%202021.jpg" width="480" /></a></td></tr><tr><td class="tr-caption" style="text-align: center;"></td></tr></tbody></table>For my home business with schedule C + investments I often have to choose the best one - Turbotax home and business. Previously when I had rental no business, I just had to use premier. Again this is not financial advice. <br /><br /><p><br /></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-3947536706869585172022-07-04T00:30:00.005-07:002022-07-04T00:31:38.251-07:00Flask 2022<p> increase jinja2 template cache limit from 50 to above. to speed up flask app significantly source: One line of code cut our Flask page load times by 60% (Medium)</p><p><br /></p><p>Use case of flask: </p><p>Use Flask as database, so data can persist. </p><p>Display dashboard data. Create dashboard</p><p>Alternative to flask : fastAPI</p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-59255466519087754992022-07-02T02:29:00.001-07:002022-07-02T02:29:56.889-07:00How to set up walletconnect web3 wallet using moralis?<p>This gives an hypothetical idea of how to add WalletConnect (which includes Trust Wallet) using Moralis. All you have to do is to include walletconnect as a provide. The challenge is the walletconnect is provided by an old github library. It may not work any more. </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSErvD1kLPYL9eEZ27SLfV-nCqTSoxugxfBVYIj58VApRgOYwGmMpJ2nAFKmWpxtMMo0nXmpv2BCJTZXx8fFkhRlWjwaDzW8awF6XXVNRtbyPHN_h3ujlkLmeckZBh6-kXFUM88sKZgnefwyignJOIWfBnuygIbrrRmURLTNCuHjoqtCtX68k9kuKi6A/s934/Screen%20Shot%202021-12-08%20at%209.16.50%20AM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="280" data-original-width="934" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSErvD1kLPYL9eEZ27SLfV-nCqTSoxugxfBVYIj58VApRgOYwGmMpJ2nAFKmWpxtMMo0nXmpv2BCJTZXx8fFkhRlWjwaDzW8awF6XXVNRtbyPHN_h3ujlkLmeckZBh6-kXFUM88sKZgnefwyignJOIWfBnuygIbrrRmURLTNCuHjoqtCtX68k9kuKi6A/w640-h192/Screen%20Shot%202021-12-08%20at%209.16.50%20AM.png" width="640" /></a></div><br /><p><br /></p><p><br /></p><p> Warning this is an older tutorial and an older extension. All our tutorials and codes have not been tested in the production environment. We are not responsible for costs and damages. Do your own research. Any crypto codes must be thoroughly tested and audited by you.</p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6497472089471453497.post-19907199491743276742022-07-02T01:12:00.004-07:002022-07-02T01:12:45.976-07:00Firebase functions <p></p><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;">Firebase function example code. </div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY9p5n-xVcuRN90ij-xeK9vhuC6vP-pKtxCk8DAyj3clhpS7b-JCdOKv_GKHynmDbodYrC8-Etq3nkI2gukKylcp8q-w9C5kvfxpfKDGNW16GrI2H1XGtLkYuFsrb4538Dq_ecDm6cRlMNf-GVAUaRLCE5oAyKMad66kNIjK_QWiDZ0FY6ZsF8yoexSg/s1444/Screen%20Shot%202022-06-12%20at%2010.06.56%20AM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="816" data-original-width="1444" height="362" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY9p5n-xVcuRN90ij-xeK9vhuC6vP-pKtxCk8DAyj3clhpS7b-JCdOKv_GKHynmDbodYrC8-Etq3nkI2gukKylcp8q-w9C5kvfxpfKDGNW16GrI2H1XGtLkYuFsrb4538Dq_ecDm6cRlMNf-GVAUaRLCE5oAyKMad66kNIjK_QWiDZ0FY6ZsF8yoexSg/w640-h362/Screen%20Shot%202022-06-12%20at%2010.06.56%20AM.png" width="640" /></a></div><br /> source: fireship, moralis, <p></p>Unknownnoreply@blogger.com0