Showing posts with label solution. Show all posts
Showing posts with label solution. Show all posts

Error downloading audio: get_throttling_function_name: could not find match for multiple

 In the past I had posted this https://alashazam.blogspot.com/2023/05/python-program-to-download-music.html explaining how to download video using python library pytube

If you are still using this program, you will notice that it is recently not functional anymore 

As of end of June 2023, this program will crash with this error:

Error downloading audio: get_throttling_function_name: could not find match for multiple

and if you are investigating further you will also discover this error

pytube.exceptions.RegexMatchError: get_throttling_function_name: could not find match for multiple
During handling of the above exception, another exception occurred:

To fix the error - you will have to edit the file /lib/python3.10/site-packages/pytube/cipher.py
on line +287 and remove the ; character

so the new file will be like this


Once that change is made the pytube library will work again.

Deviantart and AI Artworks

DeviantArt is a popular online platform that allows artists and creators to share their work with a global audience. 

The website has a vast collection of digital art, traditional art, photography, and other creative works, making it an excellent resource for inspiration and networking. 

DeviantArt also has a strong community aspect, with groups and forums dedicated to various art styles, mediums, and interests. This allows users to connect with like-minded artists, get feedback on their work, and collaborate on projects. 

Additionally, DeviantArt offers various tools and resources for artists, such as tutorials, stock images, and brushes, making it a valuable resource for both beginners and professionals. 

Recently with the AI trends DeviantArt has implemented an innovative approach to AI-generated artwork. The website has a feature called "AI Generated Art" that allows users to upload artwork that has been created with the help of AI algorithms. 

This includes artwork generated with neural networks, machine learning, and other AI techniques. The artwork is tagged as "AI Generated" and is given a unique copyright status, which allows artists to retain ownership of their work while acknowledging the contribution of the AI algorithms. This approach is designed to recognize the role of AI in the creative process while ensuring that artists are properly recognized and compensated for their work. It's an interesting and forward-thinking approach that highlights the potential of AI in the creative arts.

Overall, DeviantArt is a fantastic platform for artists and anyone interested in the creative arts, and is definitely worth checking out.


But there is this little trick I found quite useful, when wanting to credit an artist for a picture, after downloading an image, you will in the file name a code that can be pasted into an url shortener and get back to the place it was taken from.

for example this file 'just_a_cute_cat_in_a_red_bag_by_trumanbrown_dfjtqpo-pre'

correspond to this picture :


Like this picture

it contains this code 'dfjtqpo'

and when adding this code to the url shortener fav.me/

like so fav.me/dfjtqpo

you will be redirected to the creator's page 

Pretty neat

Linux script for youtube-dl


 #!/bin/bash
function usage
{
    echo "usage: yl [youtube-link]"
}
if [ "$1" != "" ]; then
 echo "Downloading $1"
 cd ~/Music
 echo "/usr/local/bin/youtube-dl --extract-audio --audio-quality 128K  --audio-format mp3 -l $1"
 /usr/local/bin/youtube-dl --extract-audio --audio-quality 128K  --audio-format mp3 -l $1
 echo "Done!"
fi



Why using a search engine, when chatgpt is there

 The question is relevant as google is (or was) the top search engine for all our daily questions ; but Google was merely providing links, it did not quite answer the question we asked ...

Chatgpt is answering the question, and that makes one hell of a difference


Merlin is a chrome extension that is using chatgpt 

the next level for search engine would be to include a chatgpt module to get answers, and still act as the old search engine returning links.

And I believe this is what bing is implementing 




AI and singularity

Grammar and syntax as a filter

Using a stream of knowledge base (be it erotic literature, postmodernism, or legal documents) through grammar and syntax filters would enable an artificial intelligence apply to generate an infinity of text combinations, it is in essence what the megahal project is doing, using the previous dialogs as a database for further conversations.

 Here is an example of automatic generated text (with the link below)
'Do you have anything in mind? ,' he whispers, his voice low, and dark desire unfolds throughout my body as everything in my body tightens.

'Okay,' I breathe .

'Good,' he growls, his breathing harsh.

'Don't make me wait,' I whisper.

He runs his nose along my jaw, and I'm quaking like a leaf. His mouth is on mine, tasting, exploring. He plants a soft wet kiss on my lips, and a pulse of warmth pools inside me. He plants a soft kiss on my lips, his eyes glowing with lust, raising uncontrollable urges in me. His hand tightens around my hair at my nape, pulling my head back as we kiss. My subconscious glares at me.
generator is : http://www.xwray.com/fiftyshades?id=2341

Another interesting generator for post-modernism article : http://www.elsewhere.org/pomo

But as always, the catch is that the AI doesn't have a clue of what make sense or not -- that's why singularity scenario where robots or AI are taking over the world are completely idiotic and unrealistic.
 
#artificial.intelligence
#automated.text
#limitation



soupBackup.java (a backup solution for soup.io)

A backup solution to complete the cycle

After I explained that soup.io could be used to mirror (backup) a tumblr account here http://alashazam.blogspot.com/2014/11/tumblr-backup-solution.html
The idea to backup a soup.io account started to be a logical step.
After some research I found some - but none of them worked (mostly because they required additional libraries I could never found, or because there were obsolete or simply too old)

The existing solutions

Here they are : Soup.io Export Tools
soup official post -- have seen various laments about this not working, so. probably not working.

This is the official way to export (backup) your soup account and the result is a huge (depending on your account - mine was like 2.3MB) rss file - which is in fact an xml file - where all the posts are stored, except for the medias (pictures mostly)

backup script by @neingeist
A shell script (which requires xsltproc installed) - the author says on his github page that it doesn't work - pass

lua script by @severak
need lua (and some libraries like "parsers.dkjson" and "socket.http" which I could never found) - pass

soupIO downloader by @falk
This one was interesting but same requires additional libraries - "fs", "lazy", "async" and "http" couldn't find most of them - pass

download tool by @moebius
rar file not found - resulting in an error

backup to wordpress by @tiefpunkt
Not wanted to install a wordpress, on top of a tumblr, on top of a soup ... maybe I'll try one day .. just for fun.

A new backup solution in java


The idea was to start from the official export tools - generate the rss file then use that file to backup all the medias (store in the xml in the tag named "enclosure")
the java source is just doing that - it reads the rss file, look for the tag name, then start a download for each instance and that's it.

Where is the source : https://bitbucket.org/ever3st/soupbackup

Usage is simple : after downloading the soupBackup.java you can compile it on your machine with "javac soupBackup.java" or you can download that file from the bitbucket repository - or use the soupBackup.jar.
read the readme file for more details.

$ java soupBackup your-rss-file.rss
or
$ java -jar soupBackup.jar your-rss-file.rss

And then you will have to wait for all the files to be downloaded, which I repeat might take some time.

I've tested this program on my own soup.io account - and with small subset of that rss file.

The pro : it works,I've tested it this week, doesn't requires weird library - and java is pretty common - so feel free to change the code for your needs.
One of the cool upgrade that might be done, would be to add a filechooser to select the rss file, then ask for backup after a certain date (that would allow to use this backup solution from times to times to catch up on the new posts).

The cons : be careful it is an early version and might contains some bugs.

2021 Advices

Women are the most prejudiced group of people that ever lived because women have never been afforded the divine right of God, and they have no ally in heaven.

If people just learn to be selfless enough to simply meditate in silence for 20 minutes a day and let the light work on them the entire world would change in an instant. 

People need to break out of the revolving wheel of pleasure seeking that never leads to happiness and increases suffering. 

It's time for all of us to start learning to love unconditionally, not just because we get something in return. 

Otherwise we're just ignorant... we are just unconscious beasts.

Related Posts with Thumbnails