投稿時間:2023-04-01 20:12:53 RSSフィード2023-04-01 20:00 分まとめ(15件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
TECH Techable(テッカブル) 新作プロレスゲーム「WWE 2K23」リリース。ジョン・シナを大々的にフィーチャー https://techable.jp/archives/201414 合同会社 2023-04-01 10:00:39
python Pythonタグが付けられた新着投稿 - Qiita 理想の猫娘 https://qiita.com/trimscash/items/2a3df89112b61a8c37d8 chatgpt 2023-04-01 19:56:02
js JavaScriptタグが付けられた新着投稿 - Qiita お母さんでもわかるReact「State」「useEffect」 https://qiita.com/pix_shimitomo/items/2f356bb31a86520acf69 react 2023-04-01 19:03:26
golang Goタグが付けられた新着投稿 - Qiita 借りたサーバーにGOをinstallした https://qiita.com/erukku/items/d1382430152f2551473f install 2023-04-01 19:10:15
Git Gitタグが付けられた新着投稿 - Qiita 【Git】vimdiffを使ってコンフリクトに対処する方法を調べました https://qiita.com/hachicombu/items/924944ab8ca4cfa4f0f7 merge 2023-04-01 19:54:56
海外TECH DEV Community Use ALL the Features: How To Create a Fancy Password Input With Vue3 🔑✅ https://dev.to/thormeier/use-all-the-features-how-to-create-a-fancy-password-input-with-vue3-ggi Use ALL the Features How To Create a Fancy Password Input With Vue Vue has brought us a ton of fancy new features The composition API lets us create components in a more intuitive JS y way there is now support for multiple v model directives full TypesSript support out of the box and the reactivity improved a lot when compared to Vue Today we ll put these things to use to create a fancy password input component One that lets us define password requirements and informs the outer component and the user about the password validity and the password The basisFirst we create a new Vue component called PasswordInput vue In there we add some template an amepty script tag and some styling lt template gt lt div class password input gt lt label for password gt Enter password lt label gt lt We ll add stuff to this input later gt lt input type password id password gt lt button gt Show password lt button gt lt label for password repeat gt Repeat password lt label gt lt We ll add stuff to this input later gt lt input type password id password repeat gt lt ul class requirements gt lt Add requirements here gt lt ul gt lt div gt lt template gt lt script setup lang ts gt lt script gt lt style scoped gt password input display flex flex direction column label margin bottom px font size px input margin bottom px padding px font size px button margin bottom px requirements font weight bold is success color CAD is error color BA lt style gt We added two input fields for password and password repeat a button that will show and hide the password as well as an unordered list for the password requirements that we ll add later Notice how we re using lt script setup lang ts gt to tell Vue that we want to use the composition API for the entire component The styling already includes classes for success and failure The rest is rather rudimentary When we use the component we should see something like this Hooking up the fieldsLet s add two refs for the password and password repeat We also add a flag to determine if the password is currently shown or not While we re at it we also import computed and watch because we ll use that later For that we add the following to the script tag import computed ref watch from vue const password ref const passwordRepeat ref const showPassword ref false We can now hook these up with the template lt gt lt label for password gt Enter password lt label gt lt input type showPassword text password v model password change emit update password event target value id password gt lt button click showPassword showPassword gt showPassword Hide password Show password lt button gt lt label for password repeat gt Repeat password lt label gt lt input type showPassword text password v model passwordRepeat id password repeat gt lt gt Adding the requirementsNow comes the fun part We want to validate the password with the following requirements It should be at least characters longIt should contain at least one uppercase letterIt should contain at least one lowercase letterIt should contain at least one symbolIt should contain at least one numberIt must match the Repeat password fieldTo get Vue s reactivity in we can create a computed value that checks the password ref for all fo these const passwordRequirements computed gt name Must contain uppercase letters predicate password value toLowerCase password value name Must contain lowercase letters predicate password value toUpperCase password value name Must contain numbers predicate d test password value name Must contain symbols predicate W test password value name Must be at least characters long predicate password value length gt name Must match predicate password value passwordRepeat value Using an array of requirements has several advantages We can extend it whenever we likeRendering it is trivial with a v for loopWe can reuse the predicates and move them to a utils file or use them in a state management systemLet s render the requirements in the list lt gt lt ul class requirements gt lt li v for requirement key in passwordRequirements key key class requirement predicate is success is error gt requirement name lt li gt lt ul gt lt gt Now whenever the user changes either one of the values the requirements are recalculated and updated in the template giving feedback to the user directly We should now see something like this So far so good Emitting changes and usageWe now want to make the component usable For that we need to emit changes Since Vue now allows to have multiple v model directives on a component we can emit different events in case of changes to either password field For that we add change event listeners to the password input fields lt gt lt input type showPassword text password v model password change emit update password event target value id password gt lt gt lt input type showPassword text password v model passwordRepeat change emit update passwordRepeat event target value id password repeat gt lt gt We then also want to emit if the password is valid or not so a single boolean value We use a watch for that that will watch the passwordRequirements compured value and emit a single boolean const emit defineEmits update password update passwordRepeat update validity watch passwordRequirements gt emit update validity passwordRequirements value reduce v p gt v amp amp p predicate true And done The component now emits changes for the password the password repeat field and the password validity It also shows the user direct visual feedback about the password s validity and let s them show or hide the password to see if they perhaps mistyped We can now use the component as follows in any template lt template gt lt gt lt PasswordInput v model password password v model password repeat passwordRepeat v model validity isPasswordValid gt lt gt lt template gt Awesome To learn more about Vue and its advanced features I recently published a course on Educative io called Advanced VueJS Build Better Applications Efficiently In lessons you can learn about all kinds of features such as custom events advanced templating how to use APIs In or slots and hooks You can find the course over on Educative io I hope you enjoyed reading this article as much as I enjoyed writing it If so leave a ️ I write tech articles in my free time and like to drink coffee every once in a while If you want to support my efforts you can offer me a coffee or follow me on Twitter You can also support me directly via Paypal 2023-04-01 10:50:39
海外TECH DEV Community Rotation PicoCTF 2023 https://dev.to/brunoblaise/rotation-picoctf-2023-33o2 Rotation PicoCTF rotation pointsAUTHOR LOIC SHEMADescriptionYou will find the flag after decrypting this fileDownload the encrypted flag here Simple rotation cipher brute forcing works fine picoCTF your flag 2023-04-01 10:47:55
海外TECH DEV Community ReadMyCert PicoCTF 2023 https://dev.to/brunoblaise/readmycert-picoctf-2023-4lnh ReadMyCert PicoCTF ReadMyCertAUTHOR SUNDAY JACOB NWANYIMDescriptionHow about we take you on an adventure on exploring certificate signing requestsTake a look at this CSR file open the link provide in the challenge This was a certificate REQUEST and not a normal certificate Plugging into any online reader gives the flag picoCTF your flag 2023-04-01 10:45:24
海外TECH DEV Community Writeup of PicoCTF 2023 https://dev.to/brunoblaise/writeup-of-picoctf-2023-19j4 Writeup of PicoCTF picoCTF This is the page containing all the resource and challenge links we have solve The challenges made us to learn and explore what we didn t know we gained enormous experience in this competition These are the challenges me and my team solved Binary Exploitation Challenge NamePointstwo sumbabygamehijackingtic tacVNEbabygame Cryptography Challenge NamePointsrotationReadMyCertHideToSee Competition Results Scored pointsPlaced th place global th place Africa 2023-04-01 10:36:27
海外TECH DEV Community Hidetosee PicoCTF 2023 https://dev.to/brunoblaise/hidetosee-picoctf-2023-1amh Hidetosee PicoCTF HideToSee pointsAUTHOR SUNDAY JACOB NWANYIMDescriptionHow about some hide and seek heh Look at this image here Just put the file into and it will magically give you the flag in atbash decode it with decode fr and get the flag This challenge was guess the website we did to extract the flag and this was branded as a cryptography challenge So misleading picoCTF your flag 2023-04-01 10:33:26
海外TECH DEV Community Babygame2 PicoCTF 2023 https://dev.to/brunoblaise/babygame2-picoctf-2023-41bi Babygame PicoCTF babygame pointsAUTHOR PALASH OSWALDescriptionBreak the game and get the flag Welcome to BabyGame Navigate around the map and see what you can find The game is available to download here There is no source available so you ll have to figure your way around the map You can connect with it using your port I enjoyed solving this challenge because it was very hard and I needed to become even harder to solve it Time to solveusing the script below you can get the flag and it is just thatfrom pwn import p remote saturn picoctf net your port number p sendlineafter b n b l x p sendlineafter b n b d p sendlineafter b n b w p interactive picoCTF your flag 2023-04-01 10:28:07
海外TECH DEV Community VNE PicoCTF 2023 https://dev.to/brunoblaise/vne-picoctf-2023-5ha1 VNE PicoCTF VNE pointsAUTHOR JUNIAS BONOUDescriptionWe ve got a binary that can list directories as root try it out Additional details will be available after launching your challenge instance Note This challenge launches an instance on demand First the script expects us to have an environment variable set for SECRET DIR There are two potential directories that have the same flag I checked challenge rootI originally picked root Running the program it gives returns Listing the content of root as root flag txtNow the fun part hint tells us to Find a way to add more instructions to the ls First I tried using alias gt nada I tried using function ls gt nada And on and on until I tried the following I made a script called ls using cat gt gt ls and typed the code bin bash bin ls bin cat root flag txtThen I made it executable with chmod x ls Finally to trick the shell into running this version of ls instead of the builtin way we add the path to the current directory as the first directory that the shell will look for its commands with export PATH home ctf player PATHNOW when running the script it runs in the background the ls command and it looks at the PATH and sees a file called ls inside the first directory home ctf player and executes its code with root privileges and we get the flag picoCTF your flag 2023-04-01 10:07:43
ニュース BBC News - Home Andrew Tate and Tristan Tate moved to house arrest https://www.bbc.co.uk/news/world-europe-65144651?at_medium=RSS&at_campaign=KARANGA romanian 2023-04-01 10:36:17
ニュース BBC News - Home Cambridgeshire shootings: Man in court over murders https://www.bbc.co.uk/news/uk-england-cambridgeshire-65142515?at_medium=RSS&at_campaign=KARANGA cambridgeshire 2023-04-01 10:12:10
ニュース BBC News - Home Australian Grand Prix: Realistic Mercedes will still 'go for it' https://www.bbc.co.uk/sport/formula1/65146762?at_medium=RSS&at_campaign=KARANGA Australian Grand Prix Realistic Mercedes will still x go for it x George Russell was torn between realism and ambition after securing Mercedes first front row qualifying result of the season at the Australian Grand Prix 2023-04-01 10:11:25

コメント

このブログの人気の投稿

投稿時間: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件)