python |
Pythonタグが付けられた新着投稿 - Qiita |
日本語GPT2をgoogle colabで実行 |
https://qiita.com/thmd9726/items/6ece7675692ccc5d08e5
|
翻訳を生業にする人がDeepLを常用しているという話は聞きましたが、今後は文生成や要約などのタスクに関しても機械にお世話になることが増えていきそうです。 |
2022-03-12 21:28:47 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
PythonでAzure Blob Storageを管理する |
https://qiita.com/aryoa/items/997ae6dbfbed113c39b3
|
PythonでAzureBlobStorageを管理するPythonでAzureBlobStorageの情報を取得するための備忘録。 |
2022-03-12 21:05:39 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
webサービスにpythonで、stripeの定期支払い機能を追加する |
https://qiita.com/fujiikayo/items/3c33808f9bbd98941f56
|
webhookで、Djangoにstripeの注文データを保存するcreatecheckoutsessionが行われたら、Djangoのモデルに購入されたデータを保存するというふうにしたいと思います。 |
2022-03-12 21:05:27 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
【初心者向け】Ruby on Rails 入門(1) Ruby on Rails 紹介 |
https://qiita.com/wangfei19980430/items/daeb7c09be113b0921e8
|
【初心者向け】RubyonRails入門RubyonRails紹介この記事は読者が既にRubyとweb開発基礎内容を習得すると仮定RubyonRailsの使え方以外、Whyなぜ使うWhat何ができる他のweb開発仕組みについてもそれぞれを説明します。 |
2022-03-12 21:11:02 |
Linux |
Ubuntuタグが付けられた新着投稿 - Qiita |
Laravel Sailを利用したubuntuでのローカル環境構築 |
https://qiita.com/riiiii/items/66f371fee96b510eaade
|
ubuntuを再起動し、作成したディレクトリに移動してからsailと実行するとLaravelSailが起動するようになりました。 |
2022-03-12 21:53:56 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
Rspecでのdevise_token_authの認証テストがうまくいかなかった |
https://qiita.com/naoki1998/items/0e1e358c697c298875be
|
そしてcreateメソッドで新規作成DBに保存したものをclientuserという変数に代入しています。 |
2022-03-12 21:43:53 |
海外TECH |
Ars Technica |
Werner Herzog narrated a documentary about space—and talks to Ars about it |
https://arstechnica.com/?p=1840450
|
discovery |
2022-03-12 12:30:21 |
海外TECH |
MakeUseOf |
What Is Ohm's Law and How Do You Calculate Resistance Equations? |
https://www.makeuseof.com/what-is-ohms-law-calculate-resistance/
|
circuit |
2022-03-12 12:15:13 |
海外TECH |
DEV Community |
html vs css vs javascript Tell Which is easy? |
https://dev.to/cssdesignmaker/html-vs-css-vs-javascript-tell-which-is-easy-4fm5
|
javascript |
2022-03-12 12:39:44 |
海外TECH |
DEV Community |
Join me to learn to code in Rust |
https://dev.to/rophilogene/join-me-to-learn-coding-in-rust-12g7
|
Join me to learn to code in RustI am Romaric CEO and co founder of Qovery I am years of experience in backend development I am experienced in Rust Python Kotlin Java Groovy Go Scala In my free time I am working on RepliByte an open source application written in Rust to synchronize cloud databases I ve always enjoyed sharing my knowledge and that s why I am launching my Twitch channel to build in public RepliByte Join me if you want To learn to code in Rust Contribute to building an ambitious and useful project Spend a good time My schedules During the weekend Some day during the week Here is my Twitch I can t wait to see you there Let me know in the comment what you would like to learn about Rust |
2022-03-12 12:20:30 |
海外TECH |
DEV Community |
Difference between Null and Blank in Django Model |
https://dev.to/sirkif/difference-between-null-and-blank-in-django-model-2poo
|
Difference between Null and Blank in Django ModelIn Django many of us have some confusion between these two fields in a model Null and Blank in short Null is related to a database Blank is related to an HTML form When we set null True which means that we inform our database that we can store empty value as NULL no value without any data Default value of null is False blank True which means that our Form our input will have a required attribute set to false by default is true then allow the user to enter an empty field Default value of blank is False which means the required attribute is True QuestionYou may ask yourself when we have string based fields in a model such as CharField and TextField Null and Blank fields are set to True then Django stores an empty string in a database instead of Null WHY AnswersFirst because when our user submits an empty value our input will return an empty string HTML inputs type text are always return string values Second and this important is Null in SQL world is treated as Falsy value and Blank empty string in Python world is also Falsy Therefore it would be inefficient and redundant for Django to deal with two possible values that are treated as Falsy values No data amp Empty String SummarySince the HTML input returns a string value at the end Django preferred to use an empty string not Null |
2022-03-12 12:16:44 |
海外TECH |
DEV Community |
Any self-taught programmers care to share their success story? |
https://dev.to/isinspire/any-self-taught-programmers-care-to-share-their-success-story-2929
|
story |
2022-03-12 12:11:55 |
海外TECH |
DEV Community |
Get an Authentication system up and running with Go(Golang) in less than 30secs |
https://dev.to/hisyntax/get-an-authentication-system-up-and-running-with-gogolang-in-less-than-30secs-46po
|
Get an Authentication system up and running with Go Golang in less than secsGood afternoon fellow developers this is my first article on Dev to and I am so excited about it Today I want to show you an alternative to getting a user authentication sign up and sign in up and running in Go Golang with just lines of code Sounds impossible right yeah I know but at the end of this article you would see that it is true and it works you can check out the package on github github com hisyntax auth Now lets get into the interesting stuffs We would be capitalizing on a Go package I created which handles literally all the logic for a users sign up and sign in under the hood The code base of the package is easy to read and understand as you can get to go through it The good news is that you can have an authentication system up and running with just about lines of code as we would see below The database used here is mongodb Init your Go mod withgo mod init lt your package name e g github com lt you username lt package name gt gt gt Download the package usinggo get github com hisyntax authCreate a env file and add this to itDATABASE NAME lt database name gt USER COL lt collection name gt PORT lt port number gt SECRET KEY lt secret key gt MongoDB URI lt mondodb uri gt Download the Gin framework as we would be using it for routing withgo get github com gin gonic ginCreate your main go filepackage mainimport log os github com gin gonic gin github com hisyntax auth auth github com joho godotenv func init runs before the main functionfunc init if err godotenv Load err nil log Println Error loading env file func main port os Getenv PORT if port port router gin Default user routes user router Group user user POST signup auth SignUp user POST signin auth Signin router Run port To test the endpoints you would have to start the server withgo run main goand then on postman hit the signup endpoint with user signupinput the users information using the user model below First Name string json first name Last Name string json last name Email string json email Phone Number int json phone number Password string json password after inputting the users details then you can proceed to hit the signup endpoint with a POST request Now there you have it the user has been signup successfully You can also test the users sign in endpoint with user signinthen input the just created user email and password using model below Email string json email Password string json password after inputting the users details then you can proceed to hit the signin endpoint with a POST request and the user has been signed in successfully It really is that easy and from what you can see above you would realize that we only literally wrote just lines of code which are github com hisyntax auth auth user POST signup auth SignUp user POST signin auth Signin the first imported the package and the other two only called the sign up and sign in function from the package and attaching it to the endpoint I was excited creating this Go package and I hope you find it helpful Contributions to this package to further improve it is very much welcome as its open source and so just anyone can contribute to it |
2022-03-12 12:06:39 |
海外TECH |
DEV Community |
3d card flipping effect with vanilla HTML and CSS |
https://dev.to/thatanjan/3d-card-flipping-effect-with-vanilla-html-and-css-24b3
|
d card flipping effect with vanilla HTML and CSSIn this article I will show you how to create a d card flipping effect with vanilla HTML and CSS Demo Video TutorialI have already made a video about it on my youtube channel Check that out Please like and subscribe to Cules Coding It motivates me to create more content like this HTML lt div class flip box gt lt div class flip box inner gt lt div class flip box front gt lt img src webp alt Paris gt lt div gt lt div class flip box back gt lt h gt Taylor Swift lt h gt lt div gt lt div gt lt div gt Explanation flip box is the parent element It will stay the same flip box inner is the child element It will actually rotate flip box front is the front part and will be visible flip box back is the back part and will be hidden CSS padding margin box sizing border box body display grid place items center min height vh overflow hidden font family Segoe UI Tahoma Geneva Verdana sans serif h font size rem flip box background color transparent width vw perspective px cursor pointer Explanation Some basic styles to center the flip box perspective property is for the d effect I don t understand how it works but it works Learn more about perspective property here flip box inner position relative width height padding top text align center transition transform s transform style preserve d flip box hover flip box inner transform rotateY deg img width height object fit cover Explanation flip box inner is position relative The front and the back element will be positioned relative to the parent element padding top is of the parent element This is for maintaining the ratio so that our image stays responsive If you want to learn more in depth you can watch the following video transform style is preserve d This is for maintaining the d effect flip box front flip box back position absolute top left width height webkit backface visibility hidden Safari backface visibility hidden flip box front color black flip box back background color fff color white transform rotateY deg display grid align content center media screen and max width px flip box inner padding top flip box width vw Explanation flip box front and flip box back are aligned with the parent element backface visibility is for hiding the backside of the element when we will rotate transform rotateY deg is for rotating the back element Because we want the front element to be visible when the page loadsFinally some code for media queries Final Result |
2022-03-12 12:01:24 |
ニュース |
BBC News - Home |
Roman Abramovich: Premier League disqualifies Chelsea owner as director of club |
https://www.bbc.co.uk/sport/football/60720343?at_medium=RSS&at_campaign=KARANGA
|
Roman Abramovich Premier League disqualifies Chelsea owner as director of clubThe Premier League disqualifies Chelsea owner Roman Abramovich as a director of the club after the oligarch was sanctioned by the UK government |
2022-03-12 12:51:29 |
ニュース |
BBC News - Home |
Ukraine invasion: Javid says Russia will pay for war crimes as UK sends aid |
https://www.bbc.co.uk/news/world-europe-60719152?at_medium=RSS&at_campaign=KARANGA
|
centres |
2022-03-12 12:11:30 |
ニュース |
BBC News - Home |
Maxime Cressy serves bizarre 26mph ace at Indian Wells against Christopher Eubanks |
https://www.bbc.co.uk/sport/av/tennis/60720314?at_medium=RSS&at_campaign=KARANGA
|
Maxime Cressy serves bizarre mph ace at Indian Wells against Christopher EubanksMaxime Cressy stuns his opponent Christopher Eubanks by serving a mph ace that catches the wind and drops on Eubanks side of the net |
2022-03-12 12:40:33 |
サブカルネタ |
ラーブロ |
貝出汁中華そばあん藤@片瀬江ノ島駅からGODDESS〜のー茅ヶ崎北上 |
http://ra-blog.net/modules/rssc/single_feed.php?fid=197172
|
goddess |
2022-03-12 12:20:26 |
北海道 |
北海道新聞 |
大豆ミートの特産化 本別産にこだわりを 帯畜大の大庭氏が講演 |
https://www.hokkaido-np.co.jp/article/656218/
|
大豆ミート |
2022-03-12 21:10:00 |
北海道 |
北海道新聞 |
十勝の新規感染122人 4日連続100人超える 新型コロナ |
https://www.hokkaido-np.co.jp/article/656219/
|
十勝管内 |
2022-03-12 21:09:00 |
コメント
コメントを投稿