Cerca

Heus ací els resultats de la cerca.

3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
159 Resultats, Darrera modificació:
8 is a document that provides coding conventions (code style guide) for Python code. PEP 8 is considered one of the most important PEPs and a must-read for e... sional Python programmer, as it helps to make the code more consistent, more readable, and more efficien... about one simple but important observation:** our code will be read much more often than it will be writ
1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
103 Resultats, Darrera modificació:
your cars.json is located and launch the server: <code bash>json-server --watch cars.json</code> **Note (very important)** – the fact that the ''json-server'' serves the data initially encoded as JSON has absolutely nothing to do with the fa... ll transmit JSON messages between the client (our code) and the server (''json-server''). The way the se
4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
102 Resultats, Darrera modificació:
regulations!) associated with documenting Python code using docstrings. In short, it tries to answer th... tion about the functionality of a larger piece of code in a **prescriptive** way. They help programmers... urpose, operation, and capabilities of particular code blocks or sections. == Docstring vs. comments Bef... ggest): comments are used for **commenting** your code, while docstrings are used for **documenting** yo
1.1 SQLite @info:cursos:pue:python-pcpp1:m5
85 Resultats, Darrera modificació:
lite3 module, you must import it in your script: <code python>import sqlite3</code> NOTE: The sqlite3 module has been available in Python since version 2.5. ... ect'' method provided by the ''sqlite3'' module: <code python>import sqlite3 conn = sqlite3.connect('hello.db')</code> The ''connect'' method returns the database rep
1.4 Talking to JSON in Python @info:cursos:pue:python-pcpp1:m4
81 Resultats, Darrera modificació:
and we're sure that you knew it before we asked: <code python> import json </code> The first JSON module's power is the ability to automatically **convert Py... utputs a number – we don't expect anything more: <code python> import json electron = 1.602176620898E10−19 print(json.dumps(electron)) </code> The code outputs: <code ; output> 16021766189.98
3.1 Advanced techniques of creating and serving exceptions @info:cursos:pue:python-pcpp1:m1
76 Resultats, Darrera modificació:
raised) when it has no idea what do to with your code. What happens next? * the raised exception ex... t an exception error message like the following: <code ; output> IndexError: list index out of range </code> Sooner or later, every Pythonista will write a code that raises an exception, and that is why it is s
2.4 Decorators @info:cursos:pue:python-pcpp1:m1
74 Resultats, Darrera modificació:
message logging; * thread synchronization; * code refactorization; * caching. == Function decora... could think of. We'll decorate it in a moment. <code python> def simple_hello(): print("Hello from simple function!") </code> <code python> def simple_decorator(function): print('We are about to call "{}"'.format(function._
2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
72 Resultats, Darrera modificació:
e editor window, type in ''import this'', run the code, and voilà! Can you see what happens? What you s... e encouraged to accept them and implement in your code. These, of course, should be looked upon holisti... 7.png }} == Explicit is better than implicit The code you write should be **explicit and readable**. W... onality. If not, think about leaving a comment in code to explain what’s going on so that other programm
2.1 File processing - XML files @info:cursos:pue:python-pcpp1:m5
66 Resultats, Darrera modificació:
n XML tag must have a corresponding closing tag. <code xml><?xml version="1.0"?> <data> <book title=... r> <year>1603</year> </book> </data></code> == XML parsing (part 1) Processing XML files in ... ocument, pass it to the parse method as follows: <code python>import xml.etree.ElementTree as ET tree = ET.parse('books.xml') root = tree.getroot() </code> The ''getroot'' method returns the root element
4.1 Shallow and deep copy operations @info:cursos:pue:python-pcpp1:m1
64 Resultats, Darrera modificació:
. It’s hard to imagine writing a piece of Python code that performs any kind of data processing without... pying them. When you spot the following clause: <code python> a_list = [ 1, 'New York', 100] </code> {{ :info:cursos:pue:python-pcpp1:pasted:20231026-143815... treat it as an absolute memory address. Run the code presented in the right pane to see how the string
1.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
63 Resultats, Darrera modificació:
ipt run-time environment that executes JavaScript code outside of a browser//. Don't be afraid – we’re g... in, but we aren't going to force you to write any code in it. It’ll act as a **black box** for us, and w... overed, so when you issue the following command: <code bash>npm</code> (which is short for node.js package manager) you should see a short help screen simila
5.1 Metaprogramming @info:cursos:pue:python-pcpp1:m1
61 Resultats, Darrera modificació:
he ability to modify their own or other programs’ codes. It may sound like an idea from a science fictio... and implemented in the early 1960s. For Python, code modifications can occure while the code is being executed, and you might have already experienced it wh... ws programmers to minimize the number of lines of code to express a solution, in turn reducing developme
4.2 Serialization of Python objects using the pickle module @info:cursos:pue:python-pcpp1:m1
51 Resultats, Darrera modificació:
string, an integer, and a list. When you run the code presented in the right pane, a new file should be created. Remember to run the code locally. <code python> import pickle a_dict = dict() a_dict['EUR'] = {'code':'Euro', 'symbol': '€'} a_dict['GBP'] = {'code':'
DevOps Sesión 15 (2022-03-30) ELK @info:cursos:pue:devops2022
47 Resultats, Darrera modificació:
rial Curso ELK/1-Laboratorios ELK.pdf pag 37 * <code bash>rpm -ivh /root/packetbeat-7.0.0-x86_64.rpm</code> * <code yaml ; /etc/packetbeat/packetbeat.yml> 14 packetbeat.interfaces.device: any # packetbeat dev... abled: true 230 xpack.monitoring.elasticsearch: </code> * <code bash>packetbeat devices packetbeat tes
2.4 Shaping the main window and conversing with the user @info:cursos:pue:python-pcpp1:m3
45 Resultats, Darrera modificació:
would use a method named ''title()''. Our sample code shows a window which changes its title each time ... it ten times, after which the title remains 0. <code python> import tkinter as tk def click(*args): ... ow.bind("<Button-1>", click) window.mainloop() </code> Changing the main window’s icon is more trouble... agree it’s not very elegant. Take a look at the code we've provided in the editor. <code python> impo
1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
43 Resultats, Darrera modificació:
2.5 Working with the Canvas @info:cursos:pue:python-pcpp1:m3
42 Resultats, Darrera modificació:
1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
41 Resultats, Darrera modificació:
configuracion red avanzada @info:cursos:pue:lpic2:6
40 Resultats, Darrera modificació:
DevOps Sesión 6 (2022-02-28) k8s @info:cursos:pue:devops2022
37 Resultats, Darrera modificació:
1.2 Let TkInter speak! @info:cursos:pue:python-pcpp1:m3
37 Resultats, Darrera modificació:
DevOps Sesión 7 (2022-03-02) k8s @info:cursos:pue:devops2022
36 Resultats, Darrera modificació:
DevOps Sesión 12 (2022-03-21) @info:cursos:pue:devops2022
36 Resultats, Darrera modificació:
LPIC2 2021 Sesión 9 (2021-03-02) @info:cursos:pue:lpic2-2021
34 Resultats, Darrera modificació:
2.3 A small lexicon of widgets - Part 3 @info:cursos:pue:python-pcpp1:m3
34 Resultats, Darrera modificació:
1.3 JSON – our new friend @info:cursos:pue:python-pcpp1:m4
34 Resultats, Darrera modificació:
LPIC2 2021 Sesión 11 (2021-03-09) @info:cursos:pue:lpic2-2021
32 Resultats, Darrera modificació:
3.1 The CSV module in Python @info:cursos:pue:python-pcpp1:m5
32 Resultats, Darrera modificació:
4.1 Logging in Python @info:cursos:pue:python-pcpp1:m5
31 Resultats, Darrera modificació:
2.5 Different faces of Python methods @info:cursos:pue:python-pcpp1:m1
30 Resultats, Darrera modificació:
Sesión 6 : ansible @info:cursos:pue:devops
28 Resultats, Darrera modificació:
2.3 Extended function argument syntax @info:cursos:pue:python-pcpp1:m1
28 Resultats, Darrera modificació:
DevOps Sesión 13 (2022-03-23) Ansible @info:cursos:pue:devops2022
26 Resultats, Darrera modificació:
2.6 Abstract classes @info:cursos:pue:python-pcpp1:m1
26 Resultats, Darrera modificació:
1.7 Visiting widgets’ properties @info:cursos:pue:python-pcpp1:m3
26 Resultats, Darrera modificació:
5.1 The configparser module @info:cursos:pue:python-pcpp1:m5
26 Resultats, Darrera modificació:
2.1 Python core syntax @info:cursos:pue:python-pcpp1:m1
24 Resultats, Darrera modificació:
Sesión 12 : k8s (traefik) @info:cursos:pue:devops
22 Resultats, Darrera modificació:
2.7 Encapsulation @info:cursos:pue:python-pcpp1:m1
20 Resultats, Darrera modificació:
Sesión 3 : swarm @info:cursos:pue:devops
18 Resultats, Darrera modificació:
Sesión 5: vagrant, ansible @info:cursos:pue:devops
18 Resultats, Darrera modificació:
Sesión 8 : kubernetes @info:cursos:pue:devops
18 Resultats, Darrera modificació:
sesión 13 ELK @info:cursos:pue:devops
18 Resultats, Darrera modificació:
LPIC2 2021 Sesión 10 (2021-03-04) @info:cursos:pue:lpic2-2021
18 Resultats, Darrera modificació:
LPIC2 2021 Sesión 13 (2021-03-16) @info:cursos:pue:lpic2-2021
18 Resultats, Darrera modificació:
1.5 A simple GUI application @info:cursos:pue:python-pcpp1:m3
18 Resultats, Darrera modificació:
DevOps Sesión 8 (2022-03-07) k8s @info:cursos:pue:devops2022
17 Resultats, Darrera modificació:
Ethical Hacker : sesión 4 @info:cursos:pue:ethical-hacker
16 Resultats, Darrera modificació:
1.8 Interacting with widget methods @info:cursos:pue:python-pcpp1:m3
16 Resultats, Darrera modificació:
1.9 Looking at variables @info:cursos:pue:python-pcpp1:m3
16 Resultats, Darrera modificació:
2.2 A small lexicon of widgets - Part 2 @info:cursos:pue:python-pcpp1:m3
16 Resultats, Darrera modificació:
2.1 A small lexicon of widgets - Part 1 @info:cursos:pue:python-pcpp1:m3
15 Resultats, Darrera modificació:
LPIC2 2021 Sesión 12 (2021-03-11) @info:cursos:pue:lpic2-2021
14 Resultats, Darrera modificació:
Apuntes SinCara sesion 3 @info:cursos:pue:ethical-hacker:sesion3
13 Resultats, Darrera modificació:
DevOps Sesión 11 (2022-03-16) Ansible @info:cursos:pue:devops2022
12 Resultats, Darrera modificació:
LPIC2 2021 Sesión 8 (2021-02-25) @info:cursos:pue:lpic2-2021
12 Resultats, Darrera modificació:
Sesión 4 : swarm (ELK+TIG) @info:cursos:pue:devops
11 Resultats, Darrera modificació:
Ethical Hacker : extras @info:cursos:pue:ethical-hacker
11 Resultats, Darrera modificació:
Curso python (PCPP1) PUE 2023
10 Resultats, Darrera modificació:
Sesión 11 Jenkins @info:cursos:pue:devops
10 Resultats, Darrera modificació:
Sesión 16 prometheus on kubernetes @info:cursos:pue:devops
10 Resultats, Darrera modificació:
DevOps Sesión 9 (2022-03-09) Vagrant @info:cursos:pue:devops2022
10 Resultats, Darrera modificació:
Expresiones Regulares @info:cursos:pue:lpic1
10 Resultats, Darrera modificació:
LPIC2 2021 Sesión 6 (2021-02-18) - lvm @info:cursos:pue:lpic2-2021
10 Resultats, Darrera modificació:
dhcp @info:cursos:pue:lpic2:11
10 Resultats, Darrera modificació:
1.4 Coloring your widgets @info:cursos:pue:python-pcpp1:m3
10 Resultats, Darrera modificació:
Apuntes SinCara Extras systemd @info:cursos:pue:ethical-hacker:extras
9 Resultats, Darrera modificació:
103.5 Crear, monitorizar y destruir procesos @info:cursos:pue:lpic1
8 Resultats, Darrera modificació:
LPIC2 2021 Sesión 5 (2021-02-16) - discos @info:cursos:pue:lpic2-2021
8 Resultats, Darrera modificació:
LPIC2 2021 Sesión 14 (2021-03-18) @info:cursos:pue:lpic2-2021
8 Resultats, Darrera modificació:
Ethical Hacker : sesión 3 @info:cursos:pue:ethical-hacker
7 Resultats, Darrera modificació:
Sesión 2: Docker @info:cursos:pue:devops
6 Resultats, Darrera modificació:
Sesión 7: Seguridad, Prometheus @info:cursos:pue:devops
6 Resultats, Darrera modificació:
Sesión 9 : kubernetes, Jenkins @info:cursos:pue:devops
6 Resultats, Darrera modificació:
LPIC2 2021 Sesión 15 (2021-03-23) @info:cursos:pue:lpic2-2021
6 Resultats, Darrera modificació:
DevOps Sesión 2 (2022-02-14) Docker @info:cursos:pue:devops2022
4 Resultats, Darrera modificació:
Python Sesión 9 (2022-06-21) @info:cursos:pue:python
4 Resultats, Darrera modificació:
Apuntes SinCara sesión 4 @info:cursos:pue:ethical-hacker:sesion4
4 Resultats, Darrera modificació:
Lab Module 20 Cryptography @info:cursos:pue:ethical-hacker:sesion5
4 Resultats, Darrera modificació:
Ethical Hacker : sesión 1 @info:cursos:pue:ethical-hacker
3 Resultats, Darrera modificació:
Ethical Hacker : sesión 2 @info:cursos:pue:ethical-hacker
3 Resultats, Darrera modificació:
Curso PUE DevOps 2022
2 Resultats, Darrera modificació:
sesión 14 OpenStack @info:cursos:pue:devops
2 Resultats, Darrera modificació:
DevOps Sesión 1 (2022-02-09) Docker @info:cursos:pue:devops2022
2 Resultats, Darrera modificació:
DevOps Sesión 3 (2022-02-16) Docker @info:cursos:pue:devops2022
2 Resultats, Darrera modificació:
DevOps Sesión 5 (2022-02-23) Swarm @info:cursos:pue:devops2022
2 Resultats, Darrera modificació:
Ethical Hacker : shellgpt @info:cursos:pue:ethical-hacker
2 Resultats, Darrera modificació:
Lab Module 06: Sytem hacking @info:cursos:pue:ethical-hacker:sesion2
2 Resultats, Darrera modificació:
Lab Module 19 Cloud Computing @info:cursos:pue:ethical-hacker:sesion5
2 Resultats, Darrera modificació:
Apuntes SinCara sesión 5 @info:cursos:pue:ethical-hacker:sesion5
2 Resultats, Darrera modificació:
Ethical Hacker : sesión 5 @info:cursos:pue:ethical-hacker
1 Resultats, Darrera modificació:
Apuntes SinCara sesión 1 @info:cursos:pue:ethical-hacker:sesion1
1 Resultats, Darrera modificació:
1.1 What is PEP? @info:cursos:pue:python-pcpp1:m2
1 Resultats, Darrera modificació: