AWS |
lambdaタグが付けられた新着投稿 - Qiita |
【AWS Lambdaで検証】Polarsって本当に速いの? |
https://qiita.com/nisim/items/b284659cd2317f90936a
|
awslambda |
2023-02-26 22:29:54 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Djangoスタートアップ(エラー編)※随時追記 |
https://qiita.com/Kate941-su/items/a2ff1b0d70d4adf03494
|
outspecifyingadefaultthi |
2023-02-26 22:57:56 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Djangoスタートアップ(フォーム編) |
https://qiita.com/Kate941-su/items/45618835561194ee33f0
|
django |
2023-02-26 22:52:09 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
PythonでSymbolブロックチェーンのネームスペース宛にトランザクションを飛ばす(symbol-sdk-python) |
https://qiita.com/kurikou_XymCity/items/4e627511b7496bf4eca0
|
pythonsymb |
2023-02-26 22:35:06 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
【Python】なぜpytestを使うのか?Assertion編 |
https://qiita.com/kissy24/items/299bb6a38a4fe5afd3b5
|
assertion |
2023-02-26 22:18:35 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
【Rspec】初心者のための内容まとめ |
https://qiita.com/KoutaKawaguchi1101/items/cea1f6a9c74f36114f50
|
rspec |
2023-02-26 22:10:00 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
Terraformer インストール・利用方法 (Google Cloud, AWS, Azure, Datadog), gcloud での terraform code 生成 |
https://qiita.com/suzuyui/items/9dda5a33dbbfbf29fd10
|
awsazuredatadoggcloud |
2023-02-26 22:30:58 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
【AWS Lambdaで検証】Polarsって本当に速いの? |
https://qiita.com/nisim/items/b284659cd2317f90936a
|
awslambda |
2023-02-26 22:29:54 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
Dockerでの環境構築 entrypoint.shの修正が反映されない |
https://qiita.com/miu-P/items/85e10c5f45ab42d90e8d
|
lineexecrailsnotfounderro |
2023-02-26 22:48:18 |
golang |
Goタグが付けられた新着投稿 - Qiita |
terraformが利用するhashicorp/go-hclog |
https://qiita.com/thaim/items/8f8ee1f5a3dcc3d13d93
|
hashicorpgohclog |
2023-02-26 22:27:12 |
GCP |
gcpタグが付けられた新着投稿 - Qiita |
Terraformer インストール・利用方法 (Google Cloud, AWS, Azure, Datadog), gcloud での terraform code 生成 |
https://qiita.com/suzuyui/items/9dda5a33dbbfbf29fd10
|
awsazuredatadoggcloud |
2023-02-26 22:30:58 |
Azure |
Azureタグが付けられた新着投稿 - Qiita |
Terraformer インストール・利用方法 (Google Cloud, AWS, Azure, Datadog), gcloud での terraform code 生成 |
https://qiita.com/suzuyui/items/9dda5a33dbbfbf29fd10
|
awsazuredatadoggcloud |
2023-02-26 22:30:58 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
【Rspec】初心者のための内容まとめ |
https://qiita.com/KoutaKawaguchi1101/items/cea1f6a9c74f36114f50
|
rspec |
2023-02-26 22:10:00 |
海外TECH |
DEV Community |
Build a Responsive Modal using CSS 🚀 |
https://dev.to/ananiket/build-a-responsive-modal-using-css-1h5k
|
Build a Responsive Modal using CSS Hello Dear developers Today we will be lookup on how to build a responsive modal using CSS so stay tunned IntroductionModal Popups are used very often in modern websites or Apps to display notifications or alerts handle user s sign up or login forms newsletters amp much more I created this tutorial on how to create a responsive modal popup box with a clean design with the help of HTML as markup CSS for styling and vanilla javascript for adding functionality Here s how it will look once we are finished in the below GIF️But Before that You can view the code tutorial of the finished product before continuing this blog ️ Code TutorialYou can also view a live demo of it as well Now Let s start on building this from scratch HTML Markup ️Let s start with html markup for the modal lt div class container gt lt button class share modal btn gt share lt button gt lt main class share modal gt lt div class share modal content gt lt div class share modal header gt lt span gt share lt span gt lt button class close modal btn gt lt i class bx bx x bx sm gt lt i gt lt button gt lt div gt lt div class share modal options gt lt ul class list gt lt li class list item gt lt div class icon holder data icon twitter gt lt img class social logo src img twitter logo png alt twitter logo gt lt div gt lt span gt twitter lt span gt lt li gt lt li class list item gt lt div class icon holder data icon facebook gt lt img class social logo src img facebook logo png alt facebook logo gt lt div gt lt span gt facebook lt span gt lt li gt lt li class list item gt lt div class icon holder data icon reddit gt lt img class social logo src img reddit logo png alt reddit logo gt lt div gt lt span gt reddit lt span gt lt li gt lt li class list item gt lt div class icon holder data icon discord gt lt img class social logo src img discord logo png alt discord logo gt lt div gt lt span gt discord lt span gt lt li gt lt li class list item gt lt div class icon holder data icon whatsapp gt lt img class social logo src img whatsapp logo png alt whatsapp logo gt lt div gt lt span gt whatsapp lt span gt lt li gt lt li class list item gt lt div class icon holder data icon messenger gt lt img class social logo src img messenger logo png alt messenger logo gt lt div gt lt span gt messenger lt span gt lt li gt lt li class list item gt lt div class icon holder data icon telegram gt lt img class social logo src img telegram logo png alt telegram logo gt lt div gt lt span gt telegram lt span gt lt li gt lt li class list item gt lt div class icon holder data icon wechat gt lt img class social logo src img wechat logo png alt wechat logo gt lt div gt lt span gt wechat lt span gt lt li gt lt ul gt lt div gt lt div class share modal link gt lt span gt page link lt span gt lt div class share modal input gt lt input type text placeholder gt lt i class bx bx copy copy icon gt lt i gt lt div gt lt div gt lt div gt lt main gt lt div gt So here we have a few components added to our markup First we have a simple open modal button which is named a share button when clicked on it triggers the function of opening the modal then we have the close modal button which performs the opposite operation function to the open button to close modal then we have few social sharing option s and at last we have the input box with just fake placeholder value in it for images please follow my GitHub repository inorder to use them CSS Styles Let s add the styles stepwise to understand what we re doing First of all we will look at making some basic changes in our CSS file which includes resets of the root HTML amp variables import url wght amp display swap before after box sizing border box margin padding box sizing border box font family Inter sans serif root Colors first color d modal bg color fff text input bg fffa text color d container bg cad btn color ddca SOCIAL ICONS BACKGROUND COLOR twitter effe whatsapp efbf facebook effe reddit ffece discord fffb messenger efff telegram effa wechat ffea Font and typography normal font size rem large font size rem share link span em share input font size em z index z modal media screen and min width px root large font size rem normal font size rem share link span em share input font size em BASE body font weight background color var btn color button background color transparent outline none border none cursor pointer font family inherit img max width height auto ul li margin padding list style type none container height vh display grid place items center background color var container bg Okay Nice we are moving further ️ ️So after adding those base styles we look up our markup and use the classes that we have given to each component tag in order to add them styles individually Share modal button share modal btn background color padding em em font size var share link span text transform capitalize border radius em box shadow px px px rgba color eee letter spacing px share modal btn hover background color f The styles for the share modal button are background color font size along with visual goodies like padding border radius amp pseudo hover class on background color Result ️ Share modalThe share modal is the most important where all of the content is situatedwe added an absolute position on it at the bottom with a percentage value along the visual goodies like box shadow border radius opacity and extra white space by using padding and transition property as well share modal background color var modal bg color position absolute bottom width height display grid align items flex end overflow auto box shadow px px px rgba border radius em em z index var z modal opacity transition s ease visibility hidden share modal content padding em display flex flex direction column row gap em share modal header display flex align items center justify content space between share modal header span font size var large font size font weight color var first clr text transform capitalize opacity close modal btn color var first clr Result ️ Social sharing optionsThese options are structured with the help of CSS Grid for the background color of social sharing options we used the data icon attribute property on each tag in html file amp added light color as a background to add contrast against the actual logo list display grid grid template columns repeat fr grid gap em list item display flex flex direction column row gap em align items center justify content center text transform capitalize color var first clr font size var normal font size font weight opacity cursor pointer icon holder width em height em border radius display flex align items center justify content center social logo width em height em data icon twitter background color var twitter data icon facebook background color var facebook data icon reddit background color var reddit data icon discord background color var discord data icon whatsapp background color var whatsapp data icon messenger background color var messenger data icon telegram background color var telegram data icon wechat background color var wechat Share link inputwe use the input with the fake placeholder value to share the link of the current page the style for these is pretty generic amp straight forward share modal link display flex flex direction column row gap em share modal link span font weight font size var share link span text transform capitalize color var first clr share modal input position relative share modal input input width background color var text input bg padding em border radius em border none outline none font size var share input font size copy icon position absolute right em top em color var first clr cursor pointer Show modalBefore moving to the final here is the class that handles the styles when the modal is opened show modal opacity visibility visible Media queries to make it responsive Finally we want to make it responsive or at least look good on both mobile and desktop so below are the few breakpoints on the share modal button modal modal content and list media screen and min width px share modal btn padding em em font size var share link span share modal width em height em border radius em position absolute top left transform translate overflow hidden share modal content padding em list grid template columns repeat fr row gap em column gap em Desktop View Mobile ViewFinally To make our modal popup box intractive or actually work we will be using few lines of javascript logic Javascript code ️ SHOW MODAL const openBtn document querySelector share modal btn const modalContainer document querySelector share modal if openBtn amp amp modalContainer openBtn addEventListener click gt modalContainer classList add show modal CLOSE MODAL const closeBtn document querySelector close modal btn function closeModal const modalContainer document querySelector share modal modalContainer classList remove show modal closeBtn addEventListener click closeModal ESC BUTTON TO CLOSE MODAL document addEventListener keydown event gt if event key Escape closeModal So here we have three event listeners who are adding or removing the show modal class from the modalContainer When OpenBtn is clicked we want to add a show modal class to modalContainer in order to show the modal to users When closeBtn is clicked we perform the opposite operation to open the button that is to remove the show modal class amp hide the modal Escape key down event listener on dom to hide the modal by simply calling the closeModal function So the end result will finally look like this ️and that s what we wanted I hope you find this post to be helpful and thanks for reading it Conclusion As always I hope you found it interesting If you noticed any errors in this article please mention them in the comments Hope you have a great day ️ |
2023-02-26 13:27:52 |
海外TECH |
DEV Community |
Publishing and set up Postgres in Ubuntu [Sharing knowledge] |
https://dev.to/emhat098/publishing-and-set-up-postgres-in-ubuntu-sharing-knowledge-22k1
|
Publishing and set up Postgres in Ubuntu Sharing knowledge Hi I just hired the Linux VPS Ubuntu from A supplier So my purpose is to host my website on the internet So my technical stack I need to create a Postgres database So here are the things which I set up and also public Postgres to the internet which I can access without ssh What will you read Connect to VPS Update Ubuntu and install Postgres Database Change the password and create a database for postgres users Customize Postgres config and public database to the internet ufw Uncomplicated Firewall Connect to VPS by ssh ssh root lt VPS IP ADDRESS gt First I need to make sure everything is updated So I run the command in the terminal I don t run with sudo because I accessed to VPS by root account ssh root apt get update Update Ubuntu and install Postgres Database After the command is done I will run the command to install Postgres in VPS apt get install postgresql postgresql contrib Change the password and create a database for postgres users The user postgres is the default account when installing Postgres So I will keep this account to process my database So I will access to Postgres by command su postgrespsqlThen I will set the password to postgres user to make sure the database that is assigned to postgres user is accessed by password I will set the password by command password postgresI will create a database name demo Do not forget the at the end of the command CREATE DATABASE demo Okay we have a user with a password and database assigned to that user Now we will custom Postgres server to publicize this database outside the VPS Customize Postgres config and public database to the internet Checking status of Postgres database is active or inactive Use the command systemctl status postgresql Customize the address listener of Postgres in VPS Use the command vim etc postgresql main postgresql conf I use vim editor You can use any editor which you want I press to find listen addresses localhost http localhost then open the comment by removing and editing localhost to listen address Update the IP address which can access only Postgres I use is the whitelist IP address to which any user can access this database on the internet vim etc postgresql main pg hba conf Finding IPv local connections host all all mdAnd replace to IPv local connections host all all mdThen save it ufw Uncomplicated Firewall I will use ufw to enable port default port of Postgres to user outside can only access to database via port apt get install ufwufw enableufw allow tcpHere is the result after running the command Rule addedRule added v Finally I will reset the Postgres service to apply all the changes systemctl restart postgresql don t forget check the status of postgres systemctl status postgresqlTest try to connect to VPS with pgAdminHope you can get something in this post Thank you for reading |
2023-02-26 13:11:23 |
Apple |
AppleInsider - Frontpage News |
Daily deals Feb. 26: $249 10.2-inch iPad, $200 off M2 MacBook Air, $1,500 off 55-inch Samsung Odyssey Ark curved monitor, more |
https://appleinsider.com/articles/23/02/26/daily-deals-feb-26-249-102-inch-ipad-200-off-m2-macbook-air-1500-off-55-inch-samsung-odyssey-ark-curved-monitor-more?utm_medium=rss
|
Daily deals Feb inch iPad off M MacBook Air off inch Samsung Odyssey Ark curved monitor moreThe best deals for Saturday include a TB SanDisk portable SSD for Apple MagSafe Charger off Sennheiser HD and more Samsung s Odyssey Ark inch curved gaming monitor is down The AppleInsider team scours the internet for excellent deals at online stores to develop a top notch list of discounts on the top tech products including discounts on Apple products TVs accessories and other gadgets We share our top finds in our Daily Deals list to help put more money back in your pocket Read more |
2023-02-26 13:20:56 |
ニュース |
BBC News - Home |
Northern Ireland Protocol: UK on 'cusp' of new Brexit deal, says Dominic Raab |
https://www.bbc.co.uk/news/uk-64777351?at_medium=RSS&at_campaign=KARANGA
|
european |
2023-02-26 13:25:10 |
ニュース |
BBC News - Home |
Family appeals to Dominic Raab over killer pilot's release |
https://www.bbc.co.uk/news/uk-england-berkshire-64776863?at_medium=RSS&at_campaign=KARANGA
|
possible |
2023-02-26 13:17:41 |
コメント
コメントを投稿