259 Matching Annotations
  1. Jan 2023
    1. the Cloud Run services comprise the container image (Container Registry + Cloud Storage), network transfer to load the container image, the Cloud Run service and network egress bandwidth
  2. Dec 2022
    1. A Django project is a high-level unit of organization that contains logic that governs your whole web application. Each project can contain multiple apps. A Django app is a lower-level unit of your web application. You can have zero to many apps in a project, and you’ll usually have at least one app. You’ll learn more about apps in the next section.
    1. Docker Desktop is an easy-to-install application and includes Docker Engine, Docker CLI client, Docker Compose, Docker Content Trust, Kubernetes, and Credential Helper
    2. Docker Hub is to Docker what GitHub is to Git
    3. A container packages code and all its dependencies into a single unit, thus letting an application run quickly and reliably from one computing environment to another
    1. Postgres itself is a database “server.” There are several ways to connect to Postgres via “clients,” including GUIs, CLIs, and programming languages often via ORMs
    1. Docker Desktop is a free, easy-to-install, downstream application for a Mac or Windows environment. The application lets you build and share containerized applications and microservices. Docker consists of Docker Engine, Docker Compose, Docker CLI client, Docker Content Trust,  Kubernetes, and Credential Helper.
    2. virtual environment has a hypervisor layer, whereas Docker has a Docker engine layer
    1. Docker engine is the layer on which Docker runs. It’s a lightweight runtime and tooling that manages containers, images, builds, and more
    2. A Dockerfile is where you write the instructions to build a Docker image
    1. Container Image: These are packages of software required by containers that contain the code, runtime, system libraries, and dependencies. Usually they start from an image of an OS like Ubuntu. These images can be built manually, or can be retrieved from an image registry.
    2. Kubernetes is a purpose-built container orchestration solution
    3. While a full dive into container orchestration is beyond the scope of this article, two prominent players are Docker with Docker Compose and Docker Swarm mode, and Kubernetes. In roughly order of complexity, Docker Compose is a container orchestration solution that deals with multi-container deployments on a single host. When there are multiple hosts involved, Docker Swarm mode is required.
    1. type 2 hypervisor is hosted, running as software on the O/S, which in turn runs on the physical hardware. This form of hypervisor is typically used to run multiple operating systems on one personal computer, such as to enable the user to boot into either Windows or Linux.
    2. A hypervisor is a type of software or hardware used to create virtual machines and then run those virtual machines day to day
  3. Nov 2022
    1. Swagger is a tool implementing the Open API specification which defines a standard, language-agnostic interface for describing HTTP-based APIs.
    1. You can create any location structure you want.  You just can't AUTOMATICALLY have locations created based on a Rack, Row, Case structure - you have to make each rack and row manually
    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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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.
  12. 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’
  13. 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
  14. 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’)
  15. 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. 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 :(

  16. 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
  17. 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
    12. Tackling basic sanitation is the first step in building a healthier city. “That means appropriate water and sanitation systems and good quality houses
    13. they are hubs for transnational commerce and mobility, densely populated and hyper-connected cities can amplify pandemic risk

      nyc

    14. calls for cities to focus on health in their planning have been growing. “For the resilient, sustainable cities we all want and need, urban plans need to be designed, evaluated and approved using a health lens,”
    15. As these cities grew, outbreaks of typhoid and cholera became such major public health issues that they led to the construction of entire new sanitation systems: sewers
    16. how might we design the cities of tomorrow so that the outdoors doesn’t become a no-go zone, but remains a safe and habitable space?
    1. Dynamic Link Builder API on iOS and Android. This is the preferred way to dynamically create links in your app for user-to-user sharing or in any situation that requires many links

      sharing function

    2. Firebase console. This is useful if you're creating promo links to share on social media
    3. four ways you can create a Dynamic Link
    1. you must use a URL prefix with either a different domain or a different path prefix
    2. take care that your Dynamic Link URLs don't conflict with your web URLs. When you configure Dynamic Links to use a particular URL prefix, all URLs that begin with that prefix are treated as Dynamic Links, so you can't use URLs with that prefix to point to ordinary hosted content
    1. Android App Links on Android 6.0 (API level 23) and higher allow an app to designate itself as the default handler of a given type of link