Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Symplify symbolic expression
Post: RE: Symplify symbolic expression
Resolved.
Hs = H.simplify()gets this:
Hs
R_f⋅s⋅(C_d + C_id)
────────────────────────────────────
R_f⋅s⋅(C_d + C_f + C_icm + C_id) + 1 |
|
Pavel_47 |
Data Science |
1 |
722 |
Oct-09-2023, 08:54 AM |
|
|
Thread: Symplify symbolic expression
Post: Symplify symbolic expression
Hello,
Using lcapy module produced following expression for transfer function:
H
⎛ s⋅(C_d + C_id) ⎞
⎜────────────────────────⎟
⎝C_d + C_f + C_icm +... |
|
Pavel_47 |
Data Science |
1 |
722 |
Oct-08-2023, 06:34 PM |
|
|
Thread: How to access text files, hidden behind 'm3u8' resources
Post: RE: How to access text files, hidden behind 'm3u8'...
The link you mentioned in your example is an example of a let's say "SIMPLE" link... in the sense that there is ONLY ONE version of subtitles for each language.
But on ARTE there are "COMPLICATED" lin... |
|
Pavel_47 |
Web Scraping & Web Development |
4 |
2,253 |
Feb-19-2023, 02:47 PM |
|
|
Thread: How to access text files, hidden behind 'm3u8' resources
Post: RE: How to access text files, hidden behind 'm3u8'...
Doesn't work !
This version of 'fr' subtitles is for people with hearing impairment, where all conversations are subtitles, including where speech in french.
But there is other vtt file, that can be d... |
|
Pavel_47 |
Web Scraping & Web Development |
4 |
2,253 |
Feb-19-2023, 11:52 AM |
|
|
Thread: How to access text files, hidden behind 'm3u8' resources
Post: How to access text files, hidden behind 'm3u8' res...
Hello,
yt-dlp downloaded doesn't differentiate between 2 subtitles of the same languages: when specifying language code (e.g. 'fr') it takes by default the file let's say "for the deafs", where all c... |
|
Pavel_47 |
Web Scraping & Web Development |
4 |
2,253 |
Feb-19-2023, 11:06 AM |
|
|
Thread: Read text file, modify it then write back
Post: RE: Read text file, modify it then write back
Quote:Using fileinput, it can be shortened to
The scenario is a little bit different:find a position that correspond to re.match criteria
remove whole content from the beginning until re.match
add s... |
|
Pavel_47 |
General Coding Help |
5 |
1,616 |
Feb-18-2023, 11:21 AM |
|
|
Thread: Read text file, modify it then write back
Post: RE: Read text file, modify it then write back
I'm searching for some generic method, that is independent on what/how replace.
In short ... if the file aaa.txt contains "content A", how to replace it with "content B"
Sure, there is always method t... |
|
Pavel_47 |
General Coding Help |
5 |
1,616 |
Feb-18-2023, 11:04 AM |
|
|
Thread: Read text file, modify it then write back
Post: Read text file, modify it then write back
Hello,
The goal is to read text file, modify the content, then write this modified content to file:
Here is code that doesn't work:
import os
import re
file = 'aaa.txt'
with open(file, 'r') as f:
... |
|
Pavel_47 |
General Coding Help |
5 |
1,616 |
Feb-18-2023, 10:35 AM |
|
|
Thread: Launch Python IDLE Shell from terminal
Post: RE: Launch Python IDLE Shell from terminal
(Feb-17-2023, 02:37 PM)Gribouillis Wrote: Try
Output:python -m idlelib
Also the Best !
Thanks. |
|
Pavel_47 |
General Coding Help |
5 |
1,242 |
Feb-17-2023, 02:53 PM |
|
|
Thread: Launch Python IDLE Shell from terminal
Post: RE: Launch Python IDLE Shell from terminal
One more question.
I've Python virtual environment, where particular packages are installed.
I launch IDLE from this environment and it's Ok.
But when I try import particular module of this environmen... |
|
Pavel_47 |
General Coding Help |
5 |
1,242 |
Feb-17-2023, 02:14 PM |
|
|
Thread: Launch Python IDLE Shell from terminal
Post: RE: Launch Python IDLE Shell from terminal
|
Pavel_47 |
General Coding Help |
5 |
1,242 |
Feb-17-2023, 02:08 PM |
|
|
Thread: Launch Python IDLE Shell from terminal
Post: Launch Python IDLE Shell from terminal
Hello,
Searching the web I found a suggestion to type idle3 in the terminal.
Tried, doesn't work (neither idle, BTW).
Normally I launch idle from GUI.
But is it possible to run it from terminal ?
Any ... |
|
Pavel_47 |
General Coding Help |
5 |
1,242 |
Feb-17-2023, 01:50 PM |
|
|
Thread: Download video having DRM protection
Post: Download video having DRM protection
Hello,
I wonder if there is any method to bypass DRM protection while downloading a video.
Any suggestions ?
Thanks. |
|
Pavel_47 |
Web Scraping & Web Development |
0 |
1,302 |
Dec-31-2022, 11:26 AM |
|
|
Thread: Find duplicate files in multiple directories
Post: RE: Find duplicate files in multiple directories
(Dec-26-2022, 05:22 PM)deanhystad Wrote: Neither update() or a dictionary comprehension are the right tools for this problem.
update() will not work because you are not always adding keys to the di... |
|
Pavel_47 |
General Coding Help |
9 |
3,125 |
Dec-27-2022, 09:17 AM |
|
|
Thread: Find duplicate files in multiple directories
Post: RE: Find duplicate files in multiple directories
(Dec-26-2022, 08:23 PM)perfringo Wrote: Is it about duplicate filenames or duplicate files?
Files with same name aren’t guaranteed to be duplicate files and vice versa - files with different names ... |
|
Pavel_47 |
General Coding Help |
9 |
3,125 |
Dec-26-2022, 08:38 PM |
|
|
Thread: Find duplicate files in multiple directories
Post: RE: Find duplicate files in multiple directories
(Dec-25-2022, 07:38 PM)noisefloor Wrote: Hello,
possible blueprint:
Make files a Dictionary, create for each file a key with a list as the value and and the file's corresponding path to the list.
On... |
|
Pavel_47 |
General Coding Help |
9 |
3,125 |
Dec-26-2022, 03:15 PM |
|
|
Thread: Find duplicate files in multiple directories
Post: Find duplicate files in multiple directories
Hello,
This snippet allows to find duplicate files in multiple directories and count the number of duplicates.
import os
dir1 = '/...path1/'
dir2 = '/...path1/'
dir3 = '/...path3/'
dir4 = '/...path4... |
|
Pavel_47 |
General Coding Help |
9 |
3,125 |
Dec-25-2022, 02:32 PM |
|
|
Thread: How to extract links from grid located on webpage
Post: RE: How to extract links from grid located on webp...
|
Pavel_47 |
Web Scraping & Web Development |
5 |
1,465 |
Dec-24-2022, 09:52 AM |
|
|
Thread: How to extract links from grid located on webpage
Post: RE: How to extract links from grid located on webp...
What I'm looking for are links ... not text:
[Image: https://i.postimg.cc/sfbJKw7Q/arte-links-in-grid.jpg] |
|
Pavel_47 |
Web Scraping & Web Development |
5 |
1,465 |
Dec-23-2022, 08:35 PM |
|
|
Thread: How to extract links from grid located on webpage
Post: How to extract links from grid located on webpage
Hello,
How to extract links from this url:
Une sélection de concerts électroniques et électrisants
I tried different tags (using selenium) ... nothing works.
Thanks in advance.
from selenium import... |
|
Pavel_47 |
Web Scraping & Web Development |
5 |
1,465 |
Dec-23-2022, 07:06 PM |