python |
Pythonタグが付けられた新着投稿 - Qiita |
【Python環境構築】VSCodeとvenvを使った環境構築 |
https://qiita.com/Code-999waltz/items/900ec14a7eb9be98465c
|
anaconda |
2023-08-05 05:41:09 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Django Viewの応用(自分用メモ) |
https://qiita.com/Ryo_Kitamoto/items/1e13115eabeb8a3a33b0
|
django |
2023-08-05 05:21:16 |
海外TECH |
Ars Technica |
Jeanette Epps will finally go to space six years after being pulled from flight |
https://arstechnica.com/?p=1959038
|
assignment |
2023-08-04 20:22:45 |
海外TECH |
DEV Community |
Mening telegramdagi shaxsiy blogim -> @web_developer_girls |
https://dev.to/sevara_nurnazarova/mening-telegramdagi-shaxsiy-blogim-webdevelopergirls-2mc6
|
Mening telegramdagi shaxsiy blogim gt web developer girls Obuna bo lishni unutmang |
2023-08-04 20:40:26 |
海外TECH |
DEV Community |
Editing a message of a pushed commit |
https://dev.to/alvesjessica/editing-a-message-of-a-pushed-commit-3lc6
|
Editing a message of a pushed commitThis is a quick post for those situations where you just pushed a commit to your branch and then realized the commit message is not clear or there s some misspelling Whatever is the reason you want to edit it here are two quick steps Make sure you re in the intended branch and first run git commit amend m Your new commit message Then run git push forceDone If you run git log you ll be able to check your updated commit message Don t amend public commits Amended commits are actually entirely new commits and the previous commit will no longer be on your current branch This has the same consequences as resetting a public snapshot Avoid amending a commit that other developers have based their work on This is a confusing situation for developers to be in and it s complicated to recover from Atlassian s tutorial See moreRead the GitHub docs for more information or this tutorial from Atlassian |
2023-08-04 20:27:33 |
海外TECH |
DEV Community |
Create digital development certificate |
https://dev.to/bytewhisper/create-digital-development-certificate-401c
|
Create digital development certificateDigital signatures and certificates play an important role in security and integrity of digital communications documents and transactions in today s world Digital signatures provide a secure way to verify the identity of the sender and detect any unauthorized modifications to the content Digital signature should be issued by trusted Certificate Authorities CAs As our world becomes increasingly digital the importance of digital signatures and certificates continues to grow underpinning the foundation of trust and security in our digital interactions Of course for production you need CA s certificate and what about development I would like to explain how to create local Development certificate for testing puproses As our world becomes increasingly digital the importance of digital signatures and certificates continues to grow underpinning the foundation of trust and security in our digital interactions Of course for production you need CA s certificate and what about development I would like to explain how to create local Development certificate for testing puproses Let s start When you are working on a development environment you might not want to use official paid certificates provided by well known Certificate Authorities CAs like DigiCert or Let s Encrypt Instead local development certificates offer a cost effective solution and save you from the hassle of managing public certificates for temporary and local testing purposes You can use local development certificates for Testing secure connections If your application or website requires SSL TLS connections you can use a local certificate to simulate secure connections without involving a public CA Code signing Developers often need to sign code to test its functionality or to avoid security warnings in certain environments API development Some APIs might require requests to be signed with a certificate which can be cumbersome to obtain from a public CA for development purposes Creating certificateCreating a local development certificate involves generating a self signed certificate A self signed certificate is one where the certificate issuer and the certificate subject are the same entity Keep in mind that these certificates are not suitable for production or public facing applications due to their lack of trust and vulnerability to man in the middle attacks But for local development they are doing well Install OpenSSL if not already installed OpenSSL is a open source tool for working with SSL TLS and certificates Ensure you have OpenSSL installed on your system before proceeding You can download it from the official OpenSSL website or use your system s package manager to install it Generate a Private KeyThe first step is to generate a private key Execute the following command in your terminal or command prompt openssl genpkey algorithm RSA out private key pemThis command will generate a private key and save it in the private key pem file Create a Certificate Signing Request CSR Next you need to create a Certificate Signing Request CSR The CSR contains the information about the entity you who needs the certificate Use the following command openssl req new key private key pem out csr pemFollow the prompts to provide the necessary information such as your country state organization and common name CN Generate the Self Signed CertificateNow use the CSR to generate the self signed certificate openssl x req days in csr pem signkey private key pem out certificate pemThis command will generate the self signed certificate and save it in the certificate pem file Create pfx fileopenssl pkcs export out certificate pfx inkey private key pem in certificate pemAfter running this command you will be prompted to set a password for the PFX file This password will be required when importing or using the PFX in other applications or systems Make sure to keep this password secure as it protects the private key and the certificate contained within the PFX file Start Using the Local Development CertificateWith the private key and the self signed certificate you can now use them in your development environment For furute I will provide several articles how to use pfs file for sign documents with different signing tools ConclusionCreating a local development certificate for digital signing will help for developers who need to test and troubleshoot secure applications and code While these certificates are not suitable for production use they are perfect for simulating secure connections and code signing in local and development environments |
2023-08-04 20:14:40 |
海外TECH |
DEV Community |
Getting started with git-config |
https://dev.to/ello/getting-started-with-git-config-19ha
|
Getting started with git configIf you ve ever used Git you must be aware of the command to configure Git git configThis post tries to answer the following questions How does Git manage the configurations What are the command line flags that you can use with git config to manage your configuration The BasicsAny Git configuration is basically a key value pair For example to configure the user s name that should be attached to every commit you make you need to configure the key user name You would configure its value using the following command Setting user name to Alan Turing git config user name Alan Turing If you want to read the currently set value for a key you can use the following command git config lt key gt In the case of reading the value for user name we enter the following command into the shell git config user name gt Output Alan TuringNow you may have certain questions I have multiple git repositories on my computer Does this command set the key value pair for all the repositories If no then do I have re run these configuration setting commands for each repository which will get tedious How does Git store the configurations Git stores the configuration key value pairs in three places System level These configurations are applicable to all the users on your system and thereby all their repositories The configuration key value pairs are stored in the path etc gitconfig file path may vary from system to system In my MacBook Air is was usr local You can find out the value of path in your system using the command git config system list show origin By the end of the post you will be able to make sense of this command Global level These configurations are applicable to you the current user It affects all the repositories you have The configuration key value pairs are stored either in gitconfig or config git config You can find the file for this by using the command git config global list show origin By the end of the post you will be able to make sense of this command Repository local level These configurations are applicable to only the repository for which they have been set i e they are local to a particular repository As you might expect the configuration key value pairs are stored inside the repository directory itself in the file repo path git config These configurations are accessed using the local command line flag For example git config local list ️Git supports two more levels called worktree and file I have left these levels out of the discussion since they are rarely used If you are interested you can read the help file of git config using git config help Setting a configuration key valueTo set a configuration at a particular level you can use the flags system global and local for system global and local configuration levels respectively For example if you want to set user name to Alan Turing for every repository in your system you can use the following command git config global user name Alan Turing If you don t use a flag when setting a configuration by default Git will set it at the local repository level i e the following two commands are equivalent These two commands have the same effect when your working directory is a git repositorygit config user name Alan Turing git config local user name Alan Turing Reading a configuration keyIn order to read the value of a configuration set a particular level you can specify the level using one of the three flags system global or local For example to read the value of user name at the global level you can use the following command git config global user name gt Output Alan TuringIf you don t use a flag when reading a configuration key Git will fetch the nearest configuration level In other words Git will first read the local configuration file to check if the key is present If the key is found then the value configured at the local level will be returned Otherwise it will check the configuration at the global level If the key is found then the value configured at the global level will be returned Lastly it will check the system level configuration So if you have the same configuration key configured with different values at the local level and the global level Git will prefer the local configuration The following example demonstrates the discussion on reading a configuration git config global user name Alan Turing git config local user name Donald Knuth git config user name Will prefer the local configuration gt Output Donald Knuthgit config global user name Read the global configuration gt Output Alan Turing Delete Un set a configurationYou can use the unset flag to delete a configuration As always you can also use one of system global or local flags to specify the level from which the configuration should be deleted Not specifying the configuration level will default to deleting the configuration from the local level Command Delete user name from global configurationgit config global unset user name Delete user name from local configuration Both commands are equivalentgit config local unset user namegit config unset user name List all the configurations list command line flag will list all the configurations Needless to mention you can specify the configuration level by passing either of local global or system flags If you don t mention the configuration level it will list the configuration at all levels When doing so you may view different values for the same key This happens because you may have the same configuration key set to different values at two different levels Command to list all the configurations List all configurationsgit config list List all configurations at the global levelgit config global list Show origin of a configuration valueWhen reading a configuration value you may be interested to know whether the value is read from the local level or the global level or the system level To do this use the show origin flag For example git config show origin user name gt Output file Users alanturing gitconfig Alan TuringWhen used with the list flag you can get the file where each configuration is stored in the list of configurations git config show origin listThis command can be used as a hack to know where exactly Git is storing your configurations at a particular level For example the following command will give you the file name where the global level configurations are stored git config show origin global list Edit configuration in the editorInstead of setting configuration one key at a time you can also open up the editor and directly edit one of the configuration files Command Edit the global configurationgit config global edit Not specifying the level will default to the local levelgit config edit Open the local level configuration fileOnce you are done making the changes save the file and close the editor Final wordsIn this post I have told you about the basic structure followed by Git in order to manage your configurations Since now you will be in a better position to decide on the best way to configure Git to work for you Sources |
2023-08-04 20:11:06 |
Apple |
AppleInsider - Frontpage News |
How to switch your AirPods to another device in iOS 17 |
https://appleinsider.com/inside/airpods/tips/how-to-switch-your-airpods-to-another-device-in-ios-17?utm_medium=rss
|
How to switch your AirPods to another device in iOS Apple says that under iOS AirPods will be better at switching automatically between your devices Here s how you will still be able to manually switch when you need to AirPods ProNot to knock Apple but if you ve been an AirPods user for a while then the company s news about iOS sounds a little optimistic Updates to Automatic Switching make moving between Apple devices with AirPods even easier faster and more reliable says the iOS preview page Read more |
2023-08-04 20:50:21 |
海外TECH |
Engadget |
Federal judge narrows scope of antitrust case against Google ahead of trial |
https://www.engadget.com/federal-judge-narrows-scope-of-antitrust-case-against-google-ahead-of-trial-202837725.html?src=rss
|
Federal judge narrows scope of antitrust case against Google ahead of trialGoogle just won a partial reprieve in one of the antitrust cases leveled against the company Federal Judge Amit Mehta has ruled that the Department of Justice DOJ and key states can t claim that Google is protecting a monopoly by promoting its own products in search results over alternatives The plaintiffs haven t proved there s an quot anticompetitive effect quot according to the decision Judge Mehta also tossed antitrust allegations regarding Android s compatibility and anti fragmentation agreements Google Assistant internet of things devices and the Android Open Source Project The DOJ can still make its remaining arguments Judge Mehta says Notably officials claim Google is abusing its power through deals that require Android manufacturers to both pre load Google apps and make Google the default search engine in their mobile browsers The DOJ and states are concerned this prevents rivals like Bing and DuckDuckGo from gaining significant adoption In a statement to Engadget Google President of Global Affairs Kent Walker says the company welcomes the judge s quot careful consideration quot when dismissing the search issues He maintains that people choose Google only quot because it s helpful quot and that the firm would show at trial that its other practices are both competitive and lawful We ve asked the DOJ for comment and will let you know if we hear back The DOJ and partner states filed the lawsuit in They didn t advocate for specific penalties at the time but punishments could include fines business restrictions and splitting divisions into separate companies At the time Google defended itself by arguing that it still had to negotiate partnerships and had competitions from services like Twitter now X and Expedia This isn t the only antitrust case against Google including in the US An alliance of states sued Google in over allegedly anticompetitive ad pricing However the narrowed scope might make the case more difficult not to mention limit the potential damages This article originally appeared on Engadget at |
2023-08-04 20:28:37 |
海外科学 |
NYT > Science |
3 Factors Keeping Americans From Wegovy and Other Weight-Loss Drugs |
https://www.nytimes.com/2023/08/04/health/weight-loss-drugs-obesity-wegovy-ozempic.html
|
Factors Keeping Americans From Wegovy and Other Weight Loss DrugsA survey showed that many Americans were interested in obesity treatments like Wegovy but lost interest when confronted with the price and other factors |
2023-08-04 20:50:48 |
ニュース |
BBC News - Home |
TikTok influencer and mother guilty of murdering men in crash |
https://www.bbc.co.uk/news/uk-england-leicestershire-66165180?at_medium=RSS&at_campaign=KARANGA
|
bukhari |
2023-08-04 20:36:35 |
ニュース |
BBC News - Home |
Mark Margolis: Breaking Bad and Better Call Saul actor dies at 83 |
https://www.bbc.co.uk/news/world-us-canada-66411829?at_medium=RSS&at_campaign=KARANGA
|
hector |
2023-08-04 20:16:55 |
ニュース |
BBC News - Home |
The Hundred 2023: Chris Jordan's explosive hitting helps Southern Brave beat Welsh Fire |
https://www.bbc.co.uk/sport/cricket/66409245?at_medium=RSS&at_campaign=KARANGA
|
The Hundred Chris Jordan x s explosive hitting helps Southern Brave beat Welsh FireChris Jordan smashes an unbeaten off balls as Southern Brave beat Welsh Fire by two runs in a Hundred thriller |
2023-08-04 20:28:49 |
ニュース |
BBC News - Home |
UCI Cycling World Championships 2023: GB win four gold and five silver medals on day two |
https://www.bbc.co.uk/sport/cycling/66401331?at_medium=RSS&at_campaign=KARANGA
|
UCI Cycling World Championships GB win four gold and five silver medals on day twoGreat Britain continue their excellent start to the Cycling World Championships in Glasgow winning four gold and five silver medals on day two |
2023-08-04 20:43:32 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
菅義偉が今こそ明かす「官邸の決断」の内幕…官房長官8年、総理1年の真実【見逃し配信・菅前首相の新連載】 - 見逃し配信 |
https://diamond.jp/articles/-/327248
|
内閣総理大臣 |
2023-08-05 05:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
災害時の頼みの綱コンビニに、食料安保のインフラ役が「丸投げ」されている不都合な真実 - セブンの死角 伊藤忠&三菱商事の逆襲 |
https://diamond.jp/articles/-/326460
|
災害時の頼みの綱コンビニに、食料安保のインフラ役が「丸投げ」されている不都合な真実セブンの死角伊藤忠三菱商事の逆襲東日本大震災で、コンビニ大手社は万個以上のおにぎりを被災地の避難所などに提供した。 |
2023-08-05 05:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【無料公開】「客室清掃スタッフ」が一流ホテルを潰す!?復調ホテル業界に潜む見えない大問題 - Diamond Premiumセレクション |
https://diamond.jp/articles/-/327162
|
diamond |
2023-08-05 05:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
ハーバード大教授が「金銭至上主義の米巨大IT企業」に警鐘、日本企業にしかできないAI開発とは? - ハーバードの知性に学ぶ「日本論」 佐藤智恵 |
https://diamond.jp/articles/-/327059
|
ハーバード大教授が「金銭至上主義の米巨大IT企業」に警鐘、日本企業にしかできないAI開発とはハーバードの知性に学ぶ「日本論」佐藤智恵メタフェイスブック、Xツイッター、オープンAIChatGPTなど、米IT企業はテクノロジー開発において世界を牽引している。 |
2023-08-05 05:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
知らなきゃ損する「相続の基本」、遺留分と法定相続分の違いは? - やってはいけない!相続&生前贈与 |
https://diamond.jp/articles/-/326443
|
法定相続分 |
2023-08-05 05:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
降格、解雇、異動…厳しい話を部下に伝えるとき「絶対破ってはいけない」ことは? - 小宮一慶の週末経営塾 |
https://diamond.jp/articles/-/327252
|
小宮一慶 |
2023-08-05 05:05:00 |
ビジネス |
東洋経済オンライン |
原発「処理水」放出、あきらめと不安、憤りの間で 福島の漁業関係者に聞く、復興への苦難と思い | 資源・エネルギー | 東洋経済オンライン |
https://toyokeizai.net/articles/-/691745?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
福島第一原子力発電所 |
2023-08-05 05:40:00 |
ビジネス |
東洋経済オンライン |
永野芽郁と鈴木京香の「復讐劇」世界2位のワケ 原作が人気漫画のNetflix「御手洗家、炎上する」 | 今見るべきネット配信番組 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/691829?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
netflix |
2023-08-05 05:30:00 |
コメント
コメントを投稿