投稿時間:2022-04-24 01:10:06 RSSフィード2022-04-24 01:00 分まとめ(15件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
海外TECH MakeUseOf 10 Cleaning Tricks to Make Your Laptop Look Like New https://www.makeuseof.com/cleaning-tricks-to-make-your-laptop-look-like-new/ newis 2022-04-23 15:30:14
海外TECH DEV Community Demystifying Linux: The purpose of /bin, /usr/bin and /usr/local/bin https://dev.to/kcdchennai/demystifying-linux-the-purpose-of-bin-usrbin-and-usrlocalbin-5a8e Demystifying Linux The purpose of bin usr bin and usr local bin IntroductionLinux is a Unix like open source and community developed operating system for computers mobile devices serversand embedded devices Whether you know it or not Linux is everywhere from your smartwatchto self driving cars Linux was known for being less intuitive and only for people who do tech stuff but time has changed Linux has something for everyone It has GIMP as a Photoshop alternative Gedit as a Notepad alternative VLC media player as a Windows media player alternative and many such software alternatives If you have been a Windows userand have switched to Linux to look super nerdyor to crack linux jokes yeah some people do you might find it hard even to do basic things like copying moving and deleting files or switching between directories Let s say you re exploring Linux for the first time and you happened to be in the top level root directory Now if you typed ls you may come across a lot of the stuff which you think you know about But it s highly likely that you interpreted it wrong For example bin might sound analogous to the Recycle Bin in Windows but that s not the case Both are way different Although most of the modern Linux distributions come with the GUI the real power of Linux is in it s CLI‍and not GUI Linux File Hierarchy StructureLinux file hierarchy structure describes the directory structure and it s contents in Unix and Unix like Operating systems It is maintained by Linux Foundation You can learn more about it here Why different directories for bin and usr bin For checking the difference between bin and usr bin type in the command man hier grep E bin bin AIt would give output snake Snake man hier grep E bin bin A bin This directory contains executable programs which are needed in single user mode and to bring the sys tem up or repair it usr XR bin Binaries which belong to the X Window system often there is a symbolic link from the more traditional usr bin X to here usr bin This is the primary directory for executable programs Most programs executed by normal users which are not needed for booting or for repairing the system and which are not installed locally should be usr local bin Binaries for programs local to the site The output says it all So that s all for the blog I hope you understood it Well not really There s a good historical reason for this split Back in time when Ken Thompson and Dennis Ritchie were developing UNIX on a PDP they used a pair of RX disks of MB each As the Operating system grew bigger in size first RX disk got filled up So a second RX disk was used and the mount was created by the name usr All the directories like bin sbin tmp were replicated under it So First RX disk contained the binaries which would help in its bootup like single user mode And the Second RX disk contained a lot less and least used binaries during that time until multi user mode came into existence As the time passed the storage capacity on a disk drive increased exponentially and in this modern world even the throwaway disk will have at least multi gigabyte capacity So for a person born in this era it s hard to imagine why the split would be made What about usr local bin usr local bin contains binaries of the third party apps we install Any local executable that didn t come with the Linux install may get it s place here Same is the case with sbin which contains the binaries for root users 2022-04-23 15:40:20
海外TECH DEV Community 3 ways to make iptables persistent https://dev.to/oryaacov/3-ways-to-make-iptables-persistent-4pp ways to make iptables persistentIf you are using iptables it s very likely that you wish to make it persistent and restore your firewall rules after a reboot I ll present here ways to make your iptables persistent using systemd my personal favorite way since it works for all Linux distributions and without requiring rd party software using iptables persistent mostly for DEB based Linux distributions required rd party softwareusing iptables services for RPM based Linux distributions required rd party software systemdsystemd is a system and service manager for Linux operating systems Using systemd we can run a script file after boot that will restore our firewall rules and make it persistent without installing a rd party software first let s create the script that we wish to run to restore our firewall sudo vi etc iptables persistent restore shwith the following script bin sh usr bin flock run iptables restore sbin iptables restore lt your ip tables dump file next we will need to create an host file for our systemd service using sudo vi etc systemd system iptables persistent serviceand paste the following Unit Description iptables persistent serviceConditionFileIsExecutable etc iptables restore iptables shAfter network target Service Type forkingExecStart etc iptables restore iptables shstart TimeoutSec RemainAfterExit yesGuessMainPID no Install WantedBy multi user targetgreat now all that is left to do is simply enable our service by running the following command sudo systemctl enable iptables persistent service iptables persistent DEB iptables persistent automatically loads your saved ip tables rules after a reboot First step will be to install iptables persistent using sudo apt get install iptables persistentsince iptables persistant will look for two dump files etc iptables rules v for ipv rules etc iptables rules v for wait for it ipv ruleswhich you can easily create running the following commands sudo iptables save gt etc iptables rules vsudo iptables save gt etc iptables rules vDepends on your OS version behind the scenes iptables persistent works with netfilter persistent service you can verify that your service up and running using sudo systemctl status netfilter persistent serviceand your output should look like the following netfilter persistent service   netfilter persistent configuration Loaded loaded lib systemd system netfilter persistent service enabled ve Active active exited since Sat IDT min ago iptables services RPM iptables services contains a persistent utility that loads your saved ip tables rules after a reboot Let s start with installing iptables services using sudo dnf install iptables servicesafter installing iptables services we will need to make sure that our service is up and that firewalld is disabled and won t interfere with our iptables configuration using the following commands sudo systemctl stop firewalld sudo systemctl disable firewalld sudo systemctl start iptables sudo systemctl enable iptablessince iptables services will look for two dump files etc sysconfig iptables for ipv rules etc sysconfig iptables for wait for it ipv ruleswhich you can easily create running the following commands sudo iptables save gt etc iptables rules v sudo iptables save gt etc iptables rules vand that s it you can feel free to reboot your machine without losing your changes 2022-04-23 15:32:08
海外TECH DEV Community How to add a Typewriter animation in VueJs https://dev.to/gayathri_r/how-to-add-a-typewriter-animation-in-vuejs-43kj How to add a Typewriter animation in VueJsIn this blog I m going to explain to you how to make a typing animation in VueJs Here s a preview Let s get started Create a new VueJs project vue create animations vuejsVue CLI v Please pick a preset Default Vue babel eslint Vue CLI v Creating project in home user tutorials animations vuejs Initializing git repository ️Installing CLI plugins This might take a while added packages and audited packages in s packages are looking for funding run npm fund for detailsfound vulnerabilitiesInvoking generators Installing additional dependencies added packages and audited packages in s packages are looking for funding run npm fund for detailsfound vulnerabilitiesRunning completion hooks Generating README md Successfully created project animations vuejs Get started with the following commands cd animations vuejs npm run serve TemplateThe template is quite simple To create the typewriter effect you need an element for static text and an element for changing text This component contains three span tags encapsulated in a div lt template gt lt div class container gt lt h gt Hi I m a lt span class typed text gt typeValue lt span gt lt span class blinking cursor gt lt span gt lt span class cursor class typing typeStatus gt amp nbsp lt span gt lt h gt lt div gt lt template gt StylesI ve used my own custom styling for displaying the contents amp cursor blinking Here is the code lt Add scoped attribute to limit CSS to this component only gt lt style lang scss scoped gt container width height vh display flex justify content center align items center h font size rem font weight normal span typed text color dbb Cursor blinking CSS Starts blinking cursor font size rem color ce webkit animation s blink step end infinite moz animation s blink step end infinite ms animation s blink step end infinite o animation s blink step end infinite animation s blink step end infinite keyframes blink from to color transparent color ce moz keyframes blink from to color transparent color ce webkit keyframes blink from to color transparent color ce ms keyframes blink from to color transparent color ce o keyframes blink from to color transparent color ce Cursor blinking CSS Ends lt style gt Info Using SCSS inside the VueJs Default Vue babel eslint components you may face sass loader issues Please refer to this blog for fixing the problem ScriptDataThis component mainly contain values typeValue displayTextArray typingSpeed erasingSpeed and newTextDelay The typeValue field is the static text The displayTextArray field is an array of changing words The typingSpeed field is the typing speed and the erasingSpeed field is the delete speed The newTextDelay field is the delay time seconds to start printing the next word data gt return typeValue typeStatus false displayTextArray YouTuber Developer Blogger Designer Freelancer typingSpeed erasingSpeed newTextDelay displayTextArrayIndex charIndex MethodstypeText amp eraseText These methods contain all the logic to determine which word is being typed whether to type or delete or to change to the next word based on the typeStatus field Take a look below methods typeText if this charIndex lt this displayTextArray this displayTextArrayIndex length if this typeStatus this typeStatus true this typeValue this displayTextArray this displayTextArrayIndex charAt this charIndex this charIndex setTimeout this typeText this typingSpeed else this typeStatus false setTimeout this eraseText this newTextDelay eraseText if this charIndex gt if this typeStatus this typeStatus true this typeValue this displayTextArray this displayTextArrayIndex substring this charIndex this charIndex setTimeout this eraseText this erasingSpeed else this typeStatus false this displayTextArrayIndex if this displayTextArrayIndex gt this displayTextArray length this displayTextArrayIndex setTimeout this typeText this typingSpeed Created LifecycleWhen the component is loaded it calls the typeText method to begin the typing sequence created setTimeout this typeText this newTextDelay Here s the final code lt template gt lt div class container gt lt h gt Hi I m a lt span class typed text gt typeValue lt span gt lt span class blinking cursor gt lt span gt lt span class cursor class typing typeStatus gt amp nbsp lt span gt lt h gt lt div gt lt template gt lt script gt export default name typeWiriter data gt return typeValue typeStatus false displayTextArray YouTuber Developer Blogger Designer Freelancer typingSpeed erasingSpeed newTextDelay displayTextArrayIndex charIndex props created setTimeout this typeText this newTextDelay methods typeText if this charIndex lt this displayTextArray this displayTextArrayIndex length if this typeStatus this typeStatus true this typeValue this displayTextArray this displayTextArrayIndex charAt this charIndex this charIndex setTimeout this typeText this typingSpeed else this typeStatus false setTimeout this eraseText this newTextDelay eraseText if this charIndex gt if this typeStatus this typeStatus true this typeValue this displayTextArray this displayTextArrayIndex substring this charIndex this charIndex setTimeout this eraseText this erasingSpeed else this typeStatus false this displayTextArrayIndex if this displayTextArrayIndex gt this displayTextArray length this displayTextArrayIndex setTimeout this typeText this typingSpeed lt script gt lt Add scoped attribute to limit CSS to this component only gt lt style lang scss scoped gt container width height vh display flex justify content center align items center h font size rem font weight normal span typed text color dbb Cursor blinking CSS Starts blinking cursor font size rem color ce webkit animation s blink step end infinite moz animation s blink step end infinite ms animation s blink step end infinite o animation s blink step end infinite animation s blink step end infinite keyframes blink from to color transparent color ce moz keyframes blink from to color transparent color ce webkit keyframes blink from to color transparent color ce ms keyframes blink from to color transparent color ce o keyframes blink from to color transparent color ce Cursor blinking CSS Ends lt style gt Do you like this solution Don t forget to star the repo on GitHub Stars keep me motivated and are highly appreciated Code reviews welcome Let me know if I can do something better 2022-04-23 15:20:58
Apple AppleInsider - Frontpage News Foxconn aims for 21% emissions cut by 2025 https://appleinsider.com/articles/22/04/23/foxconn-aims-for-21-emissions-cut-by-2025?utm_medium=rss Foxconn aims for emissions cut by Apple assembly partner Foxconn has set itself new targets to cut down on its emissions with an aim of a reduction by the company by Foxconn used Friday s Earth Day to announce a variety of environmental initiatives it aims to implement to make the organization greener The announcement included a number of milestones it intends to hit in order to reach its goal of net zero emissions by The earliest of the group has Foxconn attempting to reduce its emissions in by of levels observed in reports Nikkei Asia A second target has been set to meet a reduction by which will take it beyond the halfway point to its net zero emissions goal Read more 2022-04-23 15:36:55
海外科学 NYT > Science Exploring the Health Effects of Ageism https://www.nytimes.com/2022/04/23/health/ageism-levy-elderly.html ageismthrough 2022-04-23 15:57:06
ニュース @日本経済新聞 電子版 侵攻2カ月、ウクライナ損失73兆円 ロシアは戦力25%減 https://t.co/GvNxK43Nce https://twitter.com/nikkei/statuses/1517881668270403584 損失 2022-04-23 15:02:45
ニュース @日本経済新聞 電子版 国内コロナ感染、新たに4万3966人 累計762万9746人 https://t.co/OIoLlkBf6v https://twitter.com/nikkei/statuses/1517881318108893184 累計 2022-04-23 15:01:21
ニュース BBC News - Home Emilia Romagna Grand Prix: Max Verstappen passes Charles Leclerc to win sprint race https://www.bbc.co.uk/sport/formula1/61202419?at_medium=RSS&at_campaign=KARANGA Emilia Romagna Grand Prix Max Verstappen passes Charles Leclerc to win sprint raceRed Bull s Max Verstappen passes Ferrari s Charles Leclerc with two laps to go to win the sprint race at the Emilia Romagna Grand Prix 2022-04-23 15:17:04
ニュース BBC News - Home Mariupol: Videos appear to show dead civilians https://www.bbc.co.uk/news/61187310?at_medium=RSS&at_campaign=KARANGA mariupol 2022-04-23 15:24:26
北海道 北海道新聞 強風・高波でなぜ 知床観光船浸水 漁協も救助船出せず 運航初日の判断疑問視 https://www.hokkaido-np.co.jp/article/673334/ 行方不明 2022-04-24 00:34:30
北海道 北海道新聞 知床観光船浸水 26人の無事祈る 「今の時期 水温まだ低い」地元漁業者 https://www.hokkaido-np.co.jp/article/673331/ 観光 2022-04-24 00:20:51
北海道 北海道新聞 エンジン停止 船体破損か 知床観光船浸水 https://www.hokkaido-np.co.jp/article/673335/ 管区海上保安本部 2022-04-24 00:19:34
海外TECH reddit 2022 Emilia Romagna Grand Prix - Post Sprint Qualifying Discussion https://www.reddit.com/r/formula1/comments/ua7d9h/2022_emilia_romagna_grand_prix_post_sprint/ Emilia Romagna Grand Prix Post Sprint Qualifying DiscussionROUND Italy FORMULA ROLEX GRAN PREMIO DELL EMILIA ROMAGNA Fri Apr Sun Apr Imola Session UTC Free Practice Fri Qualifying Fri Free Practice Sat Sprint Qualifying Sat Race Sun Click here for start times in your area Autodromo Enzo e Dino Ferrari Length km mi Distance laps km mi Lap record Lewis Hamilton Mercedes pole Lewis Hamilton Mercedes fastest lap Lewis Hamilton Mercedes winner Max Verstappen Red Bull Racing Honda Useful links F com Race Wiki Race Autodromo Enzo e Dino Ferrari Streaming amp Downloads This is not the appropriate place to request or share streams and downloads Please do not post information about streams and downloads in this thread Thank you Good causes Support UNICEF s emergency appeal for Ukraine submitted by u F Bot to r formula link comments 2022-04-23 15:03:57
海外TECH reddit Max Verstappen wins the Sprint at the 2022 Emilia Romagna Grand Prix https://www.reddit.com/r/formula1/comments/ua7hie/max_verstappen_wins_the_sprint_at_the_2022_emilia/ Max Verstappen wins the Sprint at the Emilia Romagna Grand Prix submitted by u Effulgency to r formula link comments 2022-04-23 15:09:43

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)