Conditionally spreading objects in JavaScript — Amit Merchant — A blog on PHP, JavaScript, and more
https://www.amitmerchant.com/conditionally-spreading-objects-in-javascript/
https://www.amitmerchant.com/conditionally-spreading-objects-in-javascript/
Amit Merchant - A blog on PHP, JavaScript, and more
Conditionally spreading objects in JavaScript
In JavaScript, if you want to populate an object with some properties from another object, you can use the spread operator (...) to do so.
❤4👍2🤯1
https://blog.realogs.in/getting-started-with-aosp/ by Saalim Quadri
RealOGs Blog
Introduction to AOSP
The Android Open Source Project is an open source development project managed by Google, and anyone is welcome to evaluate and add code and fixes to the source code.
Android System Architecture
Let's first talk about the layers of an Android device's architecture…
Android System Architecture
Let's first talk about the layers of an Android device's architecture…
👍5
One type of very interesting 'reverting stories to Islam' is those who had been hating Islam very much moving to be strong supporters to Islam. Both the past and current have this line of stories! Sadly, I did not keep track of the stories I met.
Joram van Klaveren, a Dutch politician, is an example of that
https://lnkd.in/gzMkG2qz
Another interesting example is Arnoud van Doorn, who produced a movie to insult Islam
https://lnkd.in/gP23Bkhn
A historical example is the Mongols armies arriving to Islamic Empire and destroyed much of the Islamic world then converted to Islam and supported it.
Source
Joram van Klaveren, a Dutch politician, is an example of that
https://lnkd.in/gzMkG2qz
Another interesting example is Arnoud van Doorn, who produced a movie to insult Islam
https://lnkd.in/gP23Bkhn
A historical example is the Mongols armies arriving to Islamic Empire and destroyed much of the Islamic world then converted to Islam and supported it.
Source
❤6
Here it comes, after two years, I finally got to write one new article on my English blog :D
😁3
Using Parsel Instead of Beautiful Soup for Web Scraping
For a long time, I have been using Beautiful Soup 4 to extract data from web pages' HTML markup, it's popular, easy, robust, and battle-tested library for navigating, searching, and modifying the DOM tree. But, recently I came across Parsel, another HTML parsing library which supports XPath selectors, which is missing in Beautiful Soup, and I was in need of using something that can extract data from HTML using XPath so I decided to get it a try. Here's my thought after using it!
https://yshalsager.com/en/posts/using-parsel-instead-of-beautiful-soup-for-web-scraping/
For a long time, I have been using Beautiful Soup 4 to extract data from web pages' HTML markup, it's popular, easy, robust, and battle-tested library for navigating, searching, and modifying the DOM tree. But, recently I came across Parsel, another HTML parsing library which supports XPath selectors, which is missing in Beautiful Soup, and I was in need of using something that can extract data from HTML using XPath so I decided to get it a try. Here's my thought after using it!
https://yshalsager.com/en/posts/using-parsel-instead-of-beautiful-soup-for-web-scraping/
yshalsager
Using Parsel instead of Beautiful Soup for Web Scraping
For a long time, I have been using Beautiful Soup 4 to extract data from web pages' HTML markup, it's popular, easy, robust, and battle-tested library for navigating, searching, and modifying the DOM tree. But, recently I came across Parsel, another HTML…
👍2
yshalsager's Channel pinned «Using Parsel Instead of Beautiful Soup for Web Scraping For a long time, I have been using Beautiful Soup 4 to extract data from web pages' HTML markup, it's popular, easy, robust, and battle-tested library for navigating, searching, and modifying the DOM…»
I will be sharing notes from my public digital garden here starting from today
Yshalsager
yshalsager's Digital Garden 🪴
yshalsager's Digital Garden, a place where I share my notes with the world!
👍2
How to replace anything with page breaks in LibreOffice?
https://notes.yshalsager.com/en/notes/LibreOffice-replace-with-page-breaks/
https://notes.yshalsager.com/en/notes/LibreOffice-replace-with-page-breaks/
Yshalsager
LibreOffice replace with page breaks
LibreOffice replace with page breaks الحالة:: #ملاحظة_مؤرشفة
الرابط: https://ask.libreoffice.org/t/find-and-replace-line-breaks-with-page-breaks/36500/2
The extension AltSearch 14 offers this: RegEx enabled search for \n and replace with \M\p.
الرابط: https://ask.libreoffice.org/t/find-and-replace-line-breaks-with-page-breaks/36500/2
The extension AltSearch 14 offers this: RegEx enabled search for \n and replace with \M\p.
How to download subtitle only using youtube-dl?
https://notes.yshalsager.com/en/notes/youtube-dl-download-subtitle-only/
https://notes.yshalsager.com/en/notes/youtube-dl-download-subtitle-only/
Yshalsager
youtube-dl download subtitle only
youtube-dl download subtitle only الحالة:: #ملاحظة_مؤرشفة
الرابط: https://superuser.com/a/927532
المعرفة:: Linux
1 2 3 4 5 youtube-dl --sub-lang LANG --skip-download youtube-dl --all-subs --skip-download youtube-dl --sub-lang LANG --write-auto-sub --skip…
الرابط: https://superuser.com/a/927532
المعرفة:: Linux
1 2 3 4 5 youtube-dl --sub-lang LANG --skip-download youtube-dl --all-subs --skip-download youtube-dl --sub-lang LANG --write-auto-sub --skip…
How to copy left audio channel to right using ffmpeg?
https://notes.yshalsager.com/en/notes/ffmpeg-copy-left-audio-to-right/
https://notes.yshalsager.com/en/notes/ffmpeg-copy-left-audio-to-right/
Yshalsager
ffmpeg copy left audio to right
ffmpeg copy left audio to right الحالة:: #ملاحظة_مؤرشفة
الرابط: https://superuser.com/a/1592759
المعرفة:: Linux
Seems like you have a stereo input, but one channel is silent.
الرابط: https://superuser.com/a/1592759
المعرفة:: Linux
Seems like you have a stereo input, but one channel is silent.
Some Regex Tricks
Regex negative lookahead - not preceded by
https://notes.yshalsager.com/en/notes/Regex-negative-lookahead-not-preceded-by/
Regex Match Arabic Letters
https://notes.yshalsager.com/en/notes/Regex-Match-Arabic-Letters/
Regex for emoji
https://notes.yshalsager.com/en/notes/Regex-for-emoji/
Arabic numbers regex
https://notes.yshalsager.com/en/notes/Arabic-numbers-regex
regex match string not preceded by another with a regular expression
https://notes.yshalsager.com/en/notes/regex-match-string-not-preceded-by-another-with-a-regular-expression/
Javascript Regular expression to match non-ASCII characters
https://notes.yshalsager.com/en/notes/programming/Javascript-Regular-expression-to-match-non-ASCII-characters/
Regex encoded URL
https://notes.yshalsager.com/en/notes/Regex-encoded-URL/
Regex negative lookahead - not preceded by
https://notes.yshalsager.com/en/notes/Regex-negative-lookahead-not-preceded-by/
Regex Match Arabic Letters
https://notes.yshalsager.com/en/notes/Regex-Match-Arabic-Letters/
Regex for emoji
https://notes.yshalsager.com/en/notes/Regex-for-emoji/
Arabic numbers regex
https://notes.yshalsager.com/en/notes/Arabic-numbers-regex
regex match string not preceded by another with a regular expression
https://notes.yshalsager.com/en/notes/regex-match-string-not-preceded-by-another-with-a-regular-expression/
Javascript Regular expression to match non-ASCII characters
https://notes.yshalsager.com/en/notes/programming/Javascript-Regular-expression-to-match-non-ASCII-characters/
Regex encoded URL
https://notes.yshalsager.com/en/notes/Regex-encoded-URL/
Yshalsager
Regex negative lookahead - not preceded by
المعرفة:: الحالة:: #ملاحظة_مؤرشفة
المراجع:: https://stackoverflow.com/a/7317116
A zero-width negative lookahead:
Line starts with title then whatever not followed by space 1 ^title:(?
المراجع:: https://stackoverflow.com/a/7317116
A zero-width negative lookahead:
Line starts with title then whatever not followed by space 1 ^title:(?
👍1
facebook/youtube to telegram live with ffmpeg
https://notes.yshalsager.com/en/notes/facebook-youtube-to-telegram-live-with-ffmpeg/
https://notes.yshalsager.com/en/notes/facebook-youtube-to-telegram-live-with-ffmpeg/
Yshalsager
facebook youtube to telegram live with ffmpeg
facebook / youtube to telegram live with ffmpeg الحالة:: #ملاحظة_مؤرشفة
المعرفة:: Linux
1 2 3 4 5 6 7 ffmpeg -i "$(yt-dlp -f dash-lp-md-a-0 -g https://www.
المعرفة:: Linux
1 2 3 4 5 6 7 ffmpeg -i "$(yt-dlp -f dash-lp-md-a-0 -g https://www.
❤1👍1
ffmpeg rtmp stream multiple output
https://notes.yshalsager.com/en/notes/ffmpeg-rtmp-stream-multiple-output/
https://notes.yshalsager.com/en/notes/ffmpeg-rtmp-stream-multiple-output/
Yshalsager
ffmpeg rtmp stream multiple output
الحالة:: #ملاحظة_مؤرشفة
المعرفة:: Linux
Stream must be mapped before using tee muxer. 1 ffmpeg -stream_loop -1 -i https://qurango.net/radio/tarateel -map 0:a -c:a aac -f tee "[f=flv:onfail=ignore]rtmps://server1|[f=flv:onfail=ignore]rtmps://server2"
المعرفة:: Linux
Stream must be mapped before using tee muxer. 1 ffmpeg -stream_loop -1 -i https://qurango.net/radio/tarateel -map 0:a -c:a aac -f tee "[f=flv:onfail=ignore]rtmps://server1|[f=flv:onfail=ignore]rtmps://server2"
👍1
Web Scraping Libraries
https://notes.yshalsager.com/en/notes/Web-Scraping-Libraries/
https://notes.yshalsager.com/en/notes/Web-Scraping-Libraries/
Yshalsager
Web Scraping Libraries
المعرفة:: البرمجة
الحالة:: #ملاحظة_مؤرشفة
المراجع::
https://github.com/apify/crawlee: Crawlee — A web scraping and browser automation library for Node.js that helps you build reliable crawlers.
الحالة:: #ملاحظة_مؤرشفة
المراجع::
https://github.com/apify/crawlee: Crawlee — A web scraping and browser automation library for Node.js that helps you build reliable crawlers.