Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- DevOps Sesión 12 (2022-03-21) @info:cursos:pue:devops2022
- ara indicar el inventario * palabra reservada **all** === ayuda * ansible-doc -l * ansible-doc co... -doc -s copy === cowsay enable <code bash>yum install cowsay -y sudo vi /etc/ansible/ansible.cfg # 218:... p=yes ... </code> === locale <code bash> ansible all -a "timedatectl set-timezone Europe/Andorra" ansible all -a "localectl" ansible all -a "localectl set-loca
- 1.1 SQLite @info:cursos:pue:python-pcpp1:m5
- ntents of their posts, and comments. The data are all kinds of information that we can send to the appl... t's more, it doesn't require any configuration at all, because it's a self-contained library enclosed i... you've never dealt with SQL before, don't worry. All examples including SQL will be explained in detai... T NULL ); </code> You’ll find more information on all types available in SQLite [[https://www.sqlite.or
- Sesión 6 : ansible @info:cursos:pue:devops
- === adduser <code yaml; add-user.yaml> - hosts: all tasks: - include: add-user-debian.yaml ... regexp: '^%wheel\s' line: '%wheel ALL=(ALL) NOPASSWD: ALL' become: true when: ansible_os_family == 'RedHat' - name: add user
- 2.4 Decorators @info:cursos:pue:python-pcpp1:m1
- function so that the **decorating** function can call the passed function. The decorating function retu... re used to perform operations before and after a call to a wrapped object or even to prevent its execut... _decorator(function): print('We are about to call "{}"'.format(function.__name__)) return funct... esult should be: <code ; output> We are about to call "simple_hello" Hello from simple function! </code
- Python Professional Course Series: GUI Programming @info:cursos:pue:python-pcpp1:m3
- , that’s enough jokes about TLA’s for one course, all the more that GUI is present nearly everywhere. L... ven, even washing machine or heating controller – all these things have a screen, most of them colored ... home) with thousands of colored lights, blinking all the time, and hundreds of switches (also colored)... an define their own style and colors of virtually all the GUI elements. Some operating systems devote
- 1.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
- a **server serving** a web **service** (sorry for all these serv..., we weren't able to avoid them) and... to look inside it. Okay. Let's start. First of all, we need to have Node.js installed on our compute... om the LTS //(Long Time Support//) branch; accept all the default settings and let the installer do the... ocess looks the same as on Windows® - just accept all the default settings and let the installer do the
- 2.1 File processing - XML files @info:cursos:pue:python-pcpp1:m5
- document must have one root element that contains all other elements. In the example below, the main el... {'title': 'Hamlet'}</code> The root element and all its children are ''Element'' objects. In the exam... e tag name as a string **attrib** – this returns all attributes in the tag as a dictionary. To retriev... hod called ''iter''. The ''iter'' method returns all elements by having the tag passed as an argument.
- 2.6 Abstract classes @info:cursos:pue:python-pcpp1:m1
- ract methods**. * The programmer has to deliver all method definitions and the completeness would be ... reason is: we want our code to be polymorphic, so all subclasses have to deliver a set of their own method implementations in order to call them by using common method names. Furthermore, ... loper has implemented a subclass that overrides __all__ abstract methods. When we’re designing large f
- LPIC2 2021 Sesión 7 (2021-02-23) - raid, networking @info:cursos:pue:lpic2-2021
- id> -n=<n-discos> [<dispositivos>]'' <- ''yum install mdadm'' * **-C**: crear volume RAID * *... clusterfrak.com/sysops/app_installs/openfiler_install/]] * [[https://www.openfiler.com/]] * [[http:... orkManager "GUI" <- en modo texto * ''yum install NetworkManager-tui -y'' * **nmcli**: networkMan... sto) * ''tcpdump'' * ''nmap'' * ''yum install nmap-frontend -y'' -> ''zenmap'': frontend gráfic
- 2.3 Extended function argument syntax @info:cursos:pue:python-pcpp1:m1
- en we talk about function arguments, we should recall the following facts: * some functions can be i... es for some parameters, so we do not have to pass all arguments as missing arguments, complete with def... ents in any order if we are assigning keywords to all argument values, otherwise positional ones are th... nt(3) print(1, 20, 10) print('--', '++') </code> All presented invocations of the **print()** function
- LPIC2 2021 Sesión 10 (2021-03-04) @info:cursos:pue:lpic2-2021
- administrador> Order Deny,Allow deny from all allow from 192.168.2.1 </Location> <Locat... on /prohibido> Order Deny,Allow deny from all allow from 192.168.0.9 </Location> <Loca... on /permitido> Order Deny,Allow deny from all allow from 192.168.2.1 </Location> ErrorL... administrador> Order Deny,Allow deny from all allow from 192.168.2.1 </Location> <Direc
- 2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
- ood idea to add more verbosity to your code as it all counts towards readability. Giving self-explanato... one line, don’t fit too much information into a small amount of code, don’t write lines of code that are too long, use whitespaces responsibly – this all affects the readability and understanding of your... not only read by computers, it’s also (or most of all) read by humans. In fact, it’s **the essence of t
- 1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
- he fuel which propel the application’s movements. All events come **to the event manager**, which is responsible for dispatching them to all the application components. This also means that ... oop() </code> Note – there are three widgets in all, but only one of them (the ''Button'') is clickab... some more or less helpful data. The data describe all the circumstances which are accompanied within th
- 1.5 What is XML and why do we prefer to use JSON? @info:cursos:pue:python-pcpp1:m4
- re – it's a store with the most legendary cars of all time. Don't expect to be able to buy “just a car”... sion = "1.0" encoding = "utf-8"?></code> First of all, it **declares that the document contains XML tex... ways: * **the document content isn't defined at all** – we may say that this kind of document is **se... ser is not able to check if the document contains all the needed data and whether the data it contains
- Sesión 5: vagrant, ansible @info:cursos:pue:devops
- chephp" config.vm.provision "shell", path: "install.sh" # config.vm.network :private_network, ip: ... vb.gui = true # end end </code> <code bash; install.sh> sudo apt-get update sudo apt-get -y install apache2 libapache2-mod-php5 #rm /var/www/index.html </... _script=<<SCRIPT apt-get -y update apt-get -y install apache2 mysql-client SCRIPT $otro_script=<<SCRIP
- LPIC2 2021 Sesión 3 (2021-02-09) - procesos, kernel, systemd/systemv, modulos @info:cursos:pue:lpic2-2021