238 Matching Annotations
  1. Nov 2022
    1. generate Prisma Client which provides a programmatic and type-safe API to read and write data in the shape of your application models
    2. with Prisma you never create application models in your programming language by manually defining classes, interfaces, or structs. Instead, the application models are defined in your Prisma schema
    1. Orchestration involves provisioning, configuration, scheduling, scaling, monitoring, deployment, and more. Kubernetes is an example of a popular container orchestration solution.
    1. Docker is an open-source project based on Linux containers. It uses Linux Kernel features like namespaces and control groups to create containers on top of an operating system.
    2. it’s important to understand some of the fundamental concepts around what a “container” is and how it compares to a Virtual Machine (VM)
    1. A "bare metal" virtual machine monitor, correctly called a "hypervisor," directly controls the hardware without using device drivers from another operating system
  2. Oct 2022
    1. microservice typically implements a set of distinct features or functionality. Each microservice is a mini‑application that has its own architecture and business logic
    2. A monolithic application is a single-tiered software application in which different modules are combined into a single program
    1. PolyScale is an intelligent, serverless database caching engine which allows low-latency reads from Supabase globally, no coding required
    1. Microservices, or microservices architecture, are the modern methods of designing software applications that compartmentalize the software into chunks of small and independent services
    1. Odoo is a multi-tenant system: a single Odoo system may run and serve a number of database instances. It is also highly customizable, with customizations (starting from the modules being loaded) depending on the "current database"
    1. For Odoo online(SAAS) users, you first need to migrate to the Odoo.sh platform before installing Odoo Multichannel Woocommerce Connector because Odoo restricts third-party software installations on Odoo online(SAAS)
    1. If the common storage type has to be changed (for example from string to int), a migration of content is perfomed together with any necessary update of the mapping code
    1. With a well-defined versioning strategy, when releasing a non-backwards compatible version, you can keep the existing one and the new one working in parallel for a pre-defined window of time
    1. you will need to accommodate backwards compatibility or support multiple versions of an API running in parallel
  3. Aug 2022
    1. If you’re VC funded, then you “need” to spend the money you raised in 18–24 months, and grow 3–5X in that time, which means a base rate of 10+% MoM
    1. Successful SaaS startups grow their MRR at a rate between 10% and 25% monthly growth rate (MoM). You can use these benchmarks as sanity checks for your model but don’t use these numbers to project your growth
    1. Distribution (or place) refers to an organization, or set of organizations, that is involved in the process of making a product or service available for use or consumption by a consumer or business user
    1. E-commerce sure is tapping the power of the crowds (think ModCloth, Groupon, FashionStake), but I wouldn’t call this social
    2. what we’re calling online “social commerce” today doesn’t look what we’ve seen traditionally. In fact, so much of what we call “social commerce” is not done within our social graphs - rather it’s just any level of involvement of another human being in a user’s purchase decision
    1. Value chains can also be used to express disruption by vertical integration or disintermediation
    2. While the petal diagram is a great way of describing an ecosystem or a go-to-market strategy, I don’t think it’s a great way to show a competitive landscape because petal diagrams don’t communicate the startup’s unique way of competing in the market
    1. You're innovating, uncovering a different business model, or converging sectors that used to be distinct. Our traditional competition slides are fantastic ways to represent known and familiar considerations but they still lack a means of communicating how you might be doing something that crosses existing markets
    2. Gartner creates incredibly value reports (that you should look through related to what you're doing), but they're not likely ideal for startups
    1. when an investor sees a Magic Quadrant, they'll think:Can your company actually only differentiate its product on two axes? Does your product beat the competition on just two key benefits or strategies?If that's the case, and your product isn't much different from your competitors, why will people buy it or use it?
    1. The axis should illustrate massive trends, the resulting map should be based on industry insights, the overall image should convey a vision of where the industry is heading and the importance of that magical space the startup identified and aims at. Failing to do so shows founders’ lack of sound industry knowledg
    2. this slide actually tells us more about the startup itself, rather than the competition
    1. count up all the potential customers that would be a good fit for your business and multiply that number by the average annual revenue of these types of customer in your market
    2. TAM refers to the total market demand for a product or service. It’s the maximum amount of revenue a business can possibly generate by selling their product or service in a specific market
    1. modern trade is still in the very early stages of development. The numerous traditional trade outlets (e.g. small groceries, mom-and-pop shops, dukas or souks) remain the biggest segment of the market
    2. visibility in the supply chain remains one of the biggest challenges. As outlets are small, contributing low volume, hardware and software costs are major stumbling blocks. African companies are increasingly assessing mid-tech solutions and identifying the “appropriate technology” for their operation
  4. Apr 2022
    1. Companies that succeed do not ask “What exists”. They ask “What’s possible” and then determine how to get there

      "what if?"

    1. you are focussing all of your efforts in a very defined range of products or services, and this helps you to be 100% committed to this and dominate that part because your competition is too busy focussing on the main niche
    1. for emerging businesses, how can they stand out from their competitors in a way that people learn to know and trust them? The answer is distinction
    1. In its simplest sense, automation is about each individual part performing the same repetitive steps over and over again
  5. Mar 2022
    1. I usually recommend that SaaS companies go with the Free Trial approach because it’s easier to implement in the product and coordinate with sales and marketing efforts
    1. leverage legacy IT assets, while simultaneously preparing their tech stack for the future? What will allow them to capitalize on industry momentum and let their teams achieve more? The answer is orchestration.
    1. Products that require customization and heavier duty setup are less equipped for true bottom up motions where a user can sign up for free, and find value immediately
  6. Feb 2022
    1. SNHU did not invent all its tactics. But what it has done, with laser focus, is ensure that its hundreds and hundreds of processes are tailored to the job students are hiring the school for
  7. Dec 2021
    1. It transforms our understanding of customer choice in a way that no amount of data ever could, because it gets at the causal driver behind a purchase
    2. Jobs are multifaceted. They’re never simply about function; they have powerful social and emotional dimensions
  8. Jun 2021
    1. StatelessWidgets are useful when the part of the user interface you are describing does not depend on anything other than the configuration information in the object
    2. the rough equivalent to a View is a Widget
    1. central idea is that you build your UI out of widgets. Widgets describe what their view should look like given their current configuration and state
  9. May 2021
    1. We know we can't hold a lot of things in our mind at once. While you’re focusing on deep work, minimise the number of things in your mind. Don’t connect to everything else.
  10. Apr 2021
    1. All you need is an email address or phone number associated with an account and you will get a magic link or one-time password each time you want to log in. As soon as you click the link, you'll get redirected to the app and you'll already be logged in. After that, the magic link isn't valid so no one else can use it.
    1. When we hand things off, there are usually a set of concerns that we communicate explicitly. But as humans, the things that stoke our anxieties and erode our confidence in others are often the tacit concerns that we’ve failed to communicate but somehow expect people to ‘just know’
  11. Mar 2021
    1. send a courier straight from collection to delivery, point to point
    2. Hub-and-spoke is the dominant logistics model because it is the only cost-effective way of sending a package over 10 miles. The downside of hub-and-spoke is that it is not very flexible. Delivery times are determined by other deliveries within the network and on a delivery route
    3. Consumers must still wait a day or many days for their orders, which are then delivered at a time that suits the courier, not necessarily the customer
    1. ZigBee, a wireless communication system that uses radio waves to link M2M technology
    2. Technological advances have reduced the footprint of communications equipment, making it possible to fit cellular and satellite components into one device, which keeps equipment costs down
    3. traditional tracking devices such as radio frequency identification (RFID) and bar codes remain relevant
    4. mix of real-time tracking devices and those offering point-to-point information, depending on the asset and route traveled
  12. Feb 2021
    1. we failed, mostly because they could not understand our non-asset-based business model or grasp that a small company from the region could actually compete with the giants of the industry
    2. We wore many hats and customized our services to suit whoever gave us business

      scrappy :)

    3. Airborne gave us enough credibility to knock on other doors. I realized that the prime competitors in the logistics and courier business feared one another more than they would fear us. So we sold our services as being provided by safe, neutral hands
    4. Overseas Express Carriers ( OEC )
    5. We’d been given access to similar systems from FedEx and Emery, but without permission to use them for our own Middle Eastern customers

      emery?

    6. we had to operate under a freight-forwarding umbrella while we waited for a courier company license
    1. An async function simply implies that a promise will be returned and if a promise is not returned, JavaScript will automatically wrap it in a resolved promise with the return value in that function. That would look like writing return Promise.resolve(‘hello’)
  13. Jul 2020
    1. One of the best ways is to use “promises,”
    2. the functions named step* are all of single use, they are created only to avoid the “pyramid of doom.” No one is going to reuse them outside of the action chain. So there’s a bit of namespace cluttering
    3. function that does something asynchronously should provide a callback argument where we put the function to run after it’s complete
    1. No matter how large an incumbent may be, they are always vulnerable to a new entrant that makes buyers and sellers happier. In other words, happiness — not scale — is your moat
    2. The marketplace that wins is the marketplace that figures out how to make their buyers and sellers meaningfully happier than any substitute. GMV is irrelevant
    1. education system taught us to be proud of success and be embarrassed by failures and this extends to the business sector
    1. It's possible for a document to match more than one match statement. In the case where multiple allow expressions match a request, the access is allowed if any of the conditions is true

      overlapping match statements

    2. If you want rules to apply to an arbitrarily deep hierarchy, use the recursive wildcard syntax, {name=**}
    3. Security rules apply only at the matched path, so the access controls defined on the cities collection do not apply to the landmarks subcollection. Instead, write explicit rules to control access to subcollections
    1. Applications built with just React usually have a single root DOM node
    2. Elements are what components are “made of”,
    3. a syntax extension to JavaScript
    1. The Document Object Model (DOM) is a programming interface for HTML and XML documents

      it's an API

    1. HTML, the Web's markup language, is specified in terms of the DOM
    2. (DOM) is a cross-platform, language-independent convention for representing and interacting with objects in HTML, XHTML and XML documents. Objects in the DOM tree may be addressed and manipulated by using methods on the objects
    3. the umbrella term "JavaScript" as understood in a web browser context contains several very different elements. One of them is the core language (ECMAScript), another is the collection of the Web APIs, including the DOM (Document Object Model)
    1. JavaScript functions are themselves objects — like everything else in JavaScript — and you can add or change properties on them

      how can we add or change properties on a function?

      edit: see below section (Custom objects)

    2. name provided to a function expression as above is only available to the function's own scope
    3. rest parameter operator is used in function parameter lists with the format: ...variable

      similar to args in python

    4. supports functional programming — because they are objects, functions may be stored in variables and passed around like any other object
    5. most common host environment is the browser, but JavaScript interpreters can also be found in a huge list of other places
    1. only the @firebase/testing Node.js module supports mocking auth in Security Rules, making unit tests much easier
    1. There's not a way to do this. What you could do instead is use Cloud Functions HTTP triggers as an API for writing data. It could check the conditions you want, then return a response that indicates what's wrong with the data the client is trying to write. I understand this is far from ideal, but it might be the best option you have right now

      it's definitely far from ideal :(

  14. Jun 2020
    1. Normalize the database for this case if your data is going to be modified multiple times
    2. Cloud Functions working on the server or WriteBatches working on the client
    3. Duplicated data is a common practice when working with non-relational databases as Firebase. It saves us from performing extra queries to get data making data retrieval faster and easier
    4. normalizing our dabatase will help us. What means normalize? Well, it simply means to separate our information as much as we can

      directly contradicts firebase's official advice: denormalize the structure by duplicating some of the data: https://youtu.be/lW7DWV2jST0?t=378

    1. Denormalization is a database optimization technique in which we add redundant data to one or more tables
    1. Documents in Cloud Firestore should be lightweight, and a chat room could contain a large number of messages
    2. documents support extra data types and are limited in size to 1 MB
    3. In Cloud Firestore, the unit of storage is the document. A document is a lightweight record that contains fields, which map to values. Each document is identified by a name.
    4. Cloud Firestore's NoSQL data model, you store data in documents that contain fields mapping to values
    1. You can use any Firebase Database URL as a REST endpoint. All you need to do is append .json to the end of the URL and send a request
    1. The section of code with exports.app = functions.https.onRequest(app); exposes your express application so that it can be accessed. If you don't have the exports section, your application won't start correctly
    2. can also think of collections similarly to tables in a SQL Database
    3. NoSQL databases typically perform better and are easier to scale due to the nature of their data access and storage
    4. we’re going to use cloud firestore because it’s easier to work with and more versatile
    5. n an enterprise environment, you would likely use the express router and the code would probably look a little less verbose
    6. Firebase Functions enables you to use the ExpressJS library to host a Serverless API. Serverless is just a term for a system that runs without physical servers. This is a bit of a misnomer because it technically does run on a server, however, you’re letting the provider handle the hosting aspect
    1. Serverless architectures refer to applications that significantly depend on third-party services (known as Backend as a Service or “BaaS”) or on custom code that’s run in ephemeral containers (Function as a Service or “FaaS”). This simply means the application developer does not need to worry about provisioning servers and scaling them but simply relies on infrastructure and services already built for all of that
    1. offline-first application let’s move to some tools available already for Android platform
    2. what if you really need that backend source of data and what if you want to send some data to it as well? The answer is: make it offline-first – design and write your application as if there was no internet connection at all
  15. May 2020
    1. Machine learning has a limited scope
    2. AI is a bigger concept to create intelligent machines that can simulate human thinking capability and behavior, whereas, machine learning is an application or subset of AI that allows machines to learn from data without being programmed explicitly
    1. Machine learning is an application of artificial intelligence (AI) that provides systems the ability to automatically learn and improve from experience without being explicitly programmed
    1. machines tend to be designed for the lowest possible risk and the least casualties

      why is this a problem?

    2. machines must weigh the consequences of any action they take, as each action will impact the end result
    3. goals of artificial intelligence include learning, reasoning, and perception
    4. refers to the simulation of human intelligence in machines that are programmed to think like humans and mimic their actions
    1. Illegal economies often work faster than governments’ and NGOs’ ability to formalise and implement conservation strategies
    2. conservationists agree that the solution to saving the world’s tropical forests involves working closely with local communities, empowering them to be active conservationists in their own territories
    3. Environmental authorities also reported an increase in illegal logging, wild animal trafficking and poaching of large cats since quarantine began
    4. increased deforestation they are seeing in lockdown will lead to even bigger forest fires during Brazil’s dry season
    5. ‘the government is distracted with this health crisis, they won’t pay attention to us’
    6. destroying rainforest ecosystems raises the odds of new pathogens making the jump from animals to humans. It also harms our ability to deal with climate change, as tropical forests are a key component in absorbing carbon dioxide from the atmosphere
    7. criminal groups and opportunists expanding their activities, taking advantage of lockdown and diminished forest monitoring and government presence. The second is that people living in these rural areas are facing increased economic pressures and are forced to rely more heavily on nature for food and income
    8. Kenya has reported increased bushmeat and ivory poaching, as well as increases in charcoal production
    9. Environmental agencies have reported an uptick in deforestation during lockdowns, as well as increases in poaching, animal trafficking and illegal mining worldwide
    1. git describe [--tags] describes the current branch in terms of the commits since the most recent [possibly lightweight] tag in this branch's history. Thus, the tag referenced by git describe may NOT reflect the most recently created tag overall.
    1. Digital Asset Links protocol treats subdomains in your intent filters as unique, separate hosts
    2. When android:autoVerify="true" is present on any one of your intent filters, installing your app on devices with Android 6.0 and higher causes the system to attempt to verify all hosts associated with the URLs in any of your app's intent filters
    1. Because Airtable functions like a spreadsheet with rows and columns, it is not suitable for writing long form content or text based notes. You can’t create wikis or write articles. Heck, it is not suitable for taking notes like we do in Evernote and OneNote
    2. Airtable is database driven where you will be working with a spreadsheet for managing data from different sources
    3. Notion is more about creating a hub of knowledge or a knowledgebase
    1. focus not just on design, but on our broader relationship with nature
    2. our houses will need to be better ventilated and offer more light
    3. cities would need to make more provisions for cycling, and cities may need to “offer more paths and small roads so there are alternative ways to get around
    4. the city of the future needs to be more localised, not just in food but in access to day-to-day amenities
    5. to reduce risk, our cities may need to become more localised and self-sufficient in the future
    6. urban farming feeding millions when there is little other choice
    7. building a city resilient to pandemics is thinking about how to source food
    8. Cities of the future are going to have to be designed to deal with completely invisible flows
    9. making different use of our current spaces, implementing further sanitation and transitioning toward more room for pedestrians are all going to be key features in a pandemic-resilient city of the future
    10. our cities will need to be more adaptable, according to Johan Woltjer from University of Westminster’s School of Architecture and Cities. “During a crisis like we’re in at the moment, it would mean creating temporary housing and [having] health centres be built more flexibly and have space available in cities for those
    11. close off parts of the city to traffic and open them up for exercise