DigitalOcean

Registry Logging in with docker login registry.digitalocean.com # then enter the token as both username and pasword # then docker tag heartexlabs/label-studio:latest registry.digitalocean.com/jak/label-studio # and then docker push registry.digitalocean.com/jak/label-studio doctl doctl is the official DigitalOcean command-line client. It uses the DigitalOcean API to provide access to most account and Droplet features. Install sudo snap install doctl To run doctl snap run doctl create an alias ~/.bash_aliases alias doctl="snap run doctl" Token Token can be created from the url, personal token generated from here is used to with “auth init” command....

3 min · Jaaved Khan

Display Manager Vs Display Server Vs Desktop Environment vs Window Manager in Linux

Summary position ease box interval due front 2.5 0 0 2021-11-06T20:39:jkj05Z ref Desktop Environment A desktop environment (DE) usually provides a window manager but a bunch of other stuff too: panels, start button, applets for volume, network etc. They provide an environment in which everything looks similar and easily recognisable, and provide GUI tools that allow you to do many admin tasks without having to type in a terminal....

2 min · Jaaved Khan

Difference between Open(), StringIO and BytesIO?

Summary ref: link and stackoverflow StringIO and BytesIO are methods(objects) that manipulate string and bytes data in memory(RAM). StringIO is used for string data and BytesIO is used for binary data. This classes create file like object() that operate on string data. The StringIO and BytesIO classes are most useful in scenarios where you need to mimic a normal file. Example import io s = io.StringIO() print(s.write("Hello World/n")) # ------->Output: 13 # adding to the memory buffer using print statement print("adding using the print",file = s) # get all of the data written in the file print(s....

2 min · Jaaved Khan

Difference between messages and methods

Summary position ease box interval due front 2.50 0 0.00 2021-08-31T07:55:02Z A method is tied to a particular object. You find this in languages like Java and C++ where the method is bound early to the object at compile time. A message is an abstraction whereby the actual method that’s being called depends on runtime conditions. The object’s method is late-bound, thereby offering greater flexibility to the executing program....

1 min · Jaaved Khan

Definition of Done (DOD)

Definition ref: link Scrum defines the Definition of Done in pretty simple terms: it’s the acceptance criteria that are common to every single user story. The definition of “done” depends on the task. In Agile Software Development, we use the User Story Definition Of Done(DOD) for User Stories to ensure the quality of work and to assess whether the team completes a User Story or not. If respected, the Definition of Done (DOD) in Scrum is keeping the development team away from the ....

2 min · Jaaved Khan

Debugging under-maintenance or Service page(error) for ICTC applications?

Domain Name System(DNS) points to LoadBalancer IP or Server When you request for a DNS at , team create Context How Domain Name System(DNS) points to the servers to server web-request? DNS Unit at ICTC creates a new DNS by pointing to the Load balancer(F5) IP or Virtual IP (VIP) or Load balancer server created by security team. Security team also points this Loadbalancer server to the IP(DNS) of the application host machine....

2 min · Jaaved Khan

Django Templates

Summary

1 min · Jaaved Khan

Django Template Tags

0 min · Jaaved Khan

Django CMS

Summary

1 min · Jaaved Khan

Difference between File and Stream?

Summary Stream is a representation of flow of data from one side to another e.g. from disk to memory and from memory to diskBuffer is used to hold stream data temporarily. File is a representation to store data on disk file. File uses streams to store and load data. Nice tutorial about the Python file: https://www.knowledgehut.com/tutorials/python-tutorial/python-file-io Related

1 min · Jaaved Khan