import matplotlib.pyplot as plt
import networkx as nx
T = nx.balanced_tree(2, 5)
pos = nx.nx_agraph.graphviz_layout(T, prog="twopi")
nx.draw(T, pos)
plt.show()
----------
pos = nx.spring_layout(callgraph)
internal = []
external = []
for n in callgraph:
if isinstance(n, ExternalMethod):
external.append(n)
else:
internal.append(n)
nx.draw_networkx_nodes(
callgraph,
pos=pos, node_color='r',
nodelist=internal)
nx.draw_networkx_nodes(
callgraph,
pos=pos,
node_color='b',
nodelist=external)
nx.draw_networkx_edges(
callgraph,
pos,
width=0.5,
arrows=True)
nx.draw_networkx_labels(callgraph,
pos=pos,
font_size=6,
labels={n: f"{n.get_class_name()} {n.name} {n.descriptor}"
for n in callgraph.nodes})
plt.draw()
plt.show()
Category: Uncategorized
-
-
repo: https://github.com/ahlashkari/CICFlowMeter
guide:
- Use of CICFlowMeter – Programmer Sought
- Streamlining Network Traffic Analysis: A Guide to Using CICFlowMeter on Windows (ernie55ernie.github.io)
- CICFlowmeter使用說明(Windows) – HND Doufu – Medium
- CICFlowMeter installation and use experience – Programmer Sought
- CICFlowMeter use – Programmer Sought
need to install java8, jdk17, maven, gradle, winpcap(npcap), intellij IDEA
-
Tai man hinh nhap mat khau, o phia duoi co nut ease of access link den Utilman.exe o C:\Windows\system32
Ta can mot usb boot de truy nhap vao may tinh, copy cmd chen len Utilman.exe.
Khi do ease of access se link den cmd.exe
Dung lenh net user administrator <new password> de doi mat khau
-
Link bai viet:
- Chi tiết cách cài đặt môi trường ảo – virtual env để lập trình AI – Mì AI (miai.vn)
- Anaconda – con rắn thần chống lỗi khi học AI trên Windows – Mì AI (miai.vn)
- venv — Creation of virtual environments — Python 3.12.1 documentation
- Conda: Myths and Misconceptions | Pythonic Perambulations (jakevdp.github.io)
- Anaconda | Understanding Conda and Pip
Link video:
-
Ví dụ sử dụng nginx để truy cập streamlit từ bên ngoài mạng LAN
server {
listen 80;
server_name domain-name.com
location /detectvul/ {
proxy_pass http://public-ip-address:8501/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}Link bài thảo luận gốc: How to use Streamlit with Nginx? – 🚀 Deployment – Streamlit
-
Welcome to WordPress! This is a sample post. Edit or delete it to take the first step in your blogging journey. To add more content here, click the small plus icon at the top left corner. There, you will find an existing selection of WordPress blocks and patterns, something to suit your every need for content creation. And don’t forget to check out the List View: click the icon a few spots to the right of the plus icon and you’ll get a tidy, easy-to-view list of the blocks and patterns in your post.