AWS |
AWS Partner Network (APN) Blog |
Monitoring VMware Cloud on AWS Workloads with Amazon OpenSearch Service |
https://aws.amazon.com/blogs/apn/monitoring-vmware-cloud-on-aws-workloads-with-amazon-opensearch-service/
|
Monitoring VMware Cloud on AWS Workloads with Amazon OpenSearch ServiceVMware Cloud on AWS brings VMware s SDDC technologies to the AWS global infrastructure When customers combine Amazon OpenSearch Service successor to Amazon Elasticsearch Service with Amazon Kinesis Data Firehose and AWS Lambda you can create a managed end to end log aggregation and workload monitoring solution for workloads including those running in VMware Cloud on AWS In this post Learn the benefits of this monitoring solution and explore ideas on how to get started utilizing it |
2021-09-13 18:57:44 |
AWS |
AWS Security Blog |
Protect your remote workforce by using a managed DNS firewall and network firewall |
https://aws.amazon.com/blogs/security/protect-your-remote-workforce-by-using-a-managed-dns-firewall-and-network-firewall/
|
Protect your remote workforce by using a managed DNS firewall and network firewallMore of our customers are adopting flexible work from home and remote work strategies that use virtual desktop solutions such as Amazon WorkSpaces and Amazon AppStream to deliver their user applications Securing these workloads benefits from a layered approach and this post focuses on protecting your users at the network level Customers can now apply these … |
2021-09-13 18:35:16 |
AWS |
AWS |
Attach Amazon CodeGuru Reviewer to Your CI Pipeline in GitHub | Amazon Web Services |
https://www.youtube.com/watch?v=czlx4iixe0Y
|
Attach Amazon CodeGuru Reviewer to Your CI Pipeline in GitHub Amazon Web ServicesIn this video you ll see how to attach Amazon CodeGuru Reviewer to your continuous integration CI pipeline in GitHub With this solution you can automate code reviews fix security vulnerabilities streamline GitHub workflows and see recommendations for improvements in both CodeGuru and GitHub To learn more about Amazon CodeGuru Reviewer visit Subscribe More AWS videos More AWS events videos ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster AWS AmazonWebServices CloudComputing |
2021-09-13 18:46:50 |
AWS |
AWS |
Create an Analytics Pipeline from your IoT data on AWS | Amazon Web Services |
https://www.youtube.com/watch?v=YGcIkWz232E
|
Create an Analytics Pipeline from your IoT data on AWS Amazon Web ServicesDemo video for building an analytics pipeline connected to an IoT pipeline that stores incoming IoT data into a datalake in Amazon s runs analytics on top of that using Amazon Athena and visualizes it using Amazon QuickSight Learn more about AWS at Subscribe More AWS videos More AWS events videos ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster AWS AmazonWebServices CloudComputing Analytics IoT IoTCore Firehose S Athena QuickSight |
2021-09-13 18:22:41 |
AWS |
AWS Security Blog |
Protect your remote workforce by using a managed DNS firewall and network firewall |
https://aws.amazon.com/blogs/security/protect-your-remote-workforce-by-using-a-managed-dns-firewall-and-network-firewall/
|
Protect your remote workforce by using a managed DNS firewall and network firewallMore of our customers are adopting flexible work from home and remote work strategies that use virtual desktop solutions such as Amazon WorkSpaces and Amazon AppStream to deliver their user applications Securing these workloads benefits from a layered approach and this post focuses on protecting your users at the network level Customers can now apply these … |
2021-09-13 18:35:16 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
BitbucketアカウントでSourcetreeに二段階認証でログインする際の2回目に求められるパスワードがわからない |
https://teratail.com/questions/359361?rss=all
|
|
2021-09-14 03:16:51 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
有料テンプレート設定 WordPressのインポート内のWordPress eXtended RSS (WXR)とは |
https://teratail.com/questions/359360?rss=all
|
有料テンプレート設定WordPressのインポート内のWordPresseXtendedRSSWXRとは前提・実現したいこと初めてワードプレスを触る初心者です。 |
2021-09-14 03:16:22 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
wordpressでphpファイルを表示したい |
https://teratail.com/questions/359359?rss=all
|
|
2021-09-14 03:11:59 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
ValueError: too many values to unpack解決したい |
https://teratail.com/questions/359358?rss=all
|
ValueErrortoomanyvaluestounpack解決したい前提・実現したいことpytorchを使ったResnetの実装を試しており、とりあえずweb上のコードをコピペしてGooglenbspcolabolatoryで動作を見ようとしていたのですがデータを用意する段階でエラーが出てしまい解決できず困っています。 |
2021-09-14 03:08:10 |
海外TECH |
Ars Technica |
Jeremy Renner passes down his bow in fun, holiday-themed trailer for Hawkeye |
https://arstechnica.com/?p=1794019
|
enemies |
2021-09-13 18:15:20 |
海外TECH |
Ars Technica |
Liveblog: All the news from Apple’s “California Streaming” event |
https://arstechnica.com/?p=1793572
|
iphone |
2021-09-13 18:00:55 |
海外TECH |
DEV Community |
All The Ways to Compress and Archive Files in Python |
https://dev.to/martinheinz/all-the-ways-to-compress-and-archive-files-in-python-4lh
|
All The Ways to Compress and Archive Files in PythonPython standard library provides great modules and tools for pretty much any task you can think of and modules for working with compressed files are no exception Whether it s basics like tar and zip specific tools or formats such as gzip and bz or even more exotic formats like lzma Python has it all With all these options deciding what might be the right tool for the task at hand might not be so obvious though So to help you navigate through all the available options we will in this article explore all of these modules and learn how to compress decompress verify test and secure our archives of all kinds of formats with help of Python s standard library All The FormatsAs mentioned above Python has library for almost every tool format imaginable So let s first take a look at each of them and see why you might want to use them zlib is a library and Python module that provides code for working with Deflate compression and decompression format which is used by zip gzip and many others So by using this Python module you re essentially using gzip compatible compression algorithm without the convenient wrapper More about this library can be found on Wikipedia bz is a module that provides support for bzip compression This algorithm is generally more effective than the deflate method but might be slower It also works only on individual files and therefore can t create archives lzma is both name of the algorithm and Python module It can produce higher compression ratio than some older methods and is the algorithm behind the xz utility more specifically LZMA gzip is a utility most of us are familiar with It s also a name of a Python module This module uses the already mentioned zlib compression algorithm and serves as an interface similar to the gzip and gunzip utilities shutils is a module we generally don t associate with compression and decompression but it provides utility methods for working with archives and can be a convenient way for producing tar gztar zip bztar or xztar archives zipfile as the name suggests allows us to work with zip archives in Python This module provides all the expected methods for creating reading writing or appending to ZIP files as well as classes and objects for easier manipulation of such files tarfile as with zipfile above you can probably guess that this module is used for working with tar archives It can read and write gzip bz and lzma files or archives It also has support for other features we know from tar utility list of those is available at the top of above linked docs page Compress amp DecompressWe ve got a plenty of libraries to choose from Some of them more basic some of them with a lot of extra features but what they all have in common is that they obviously include functions for compression So let s see how we can perform these basic operations with each of them First up zlib This is fairly low level library and therefore might not be so commonly used so let s just look at the basic compression decompression of whole file at once import zlib sysfilename in data filename out compressed data with open filename in mode rb as fin open filename out mode wb as fout data fin read compressed data zlib compress data zlib Z BEST COMPRESSION print f Original size sys getsizeof data Original size print f Compressed size sys getsizeof compressed data Compressed size fout write compressed data with open filename out mode rb as fin data fin read compressed data zlib decompress data print f Compressed size sys getsizeof data Compressed size print f Decompressed size sys getsizeof compressed data Decompressed size In the above code we use input file that was generated with head c MB lt dev zero gt data which gives us MB of zeroes We open and read this file into memory and then use the compress function to create the compressed data This data is then written into output file To demonstrate that we are able to recover the data we then again open the compressed file and use decompress function on it From the print statements we can see that the sizes of both compressed and decompressed data match Next format and library you can use is bz It can be used in very similar fashion as the zlib above import bz os sysfilename in data filename out compressed data bz with open filename in mode rb as fin bz open filename out wb as fout fout write fin read print f Uncompressed size os stat filename in st size Uncompressed size print f Compressed size os stat filename out st size Compressed size with bz open filename out rb as fin data fin read print f Decompressed size sys getsizeof data Decompressed size Unsurprisingly the interface for these modules is pretty much identical so to show something different in the above example we simplified and reduced the compression step to pretty much single line and used os stat to inspect the size of files The last of these low level modules is lzma and to avoid showing the same code over and over again let s do an incremental compression this time import lzma oslzc lzma LZMACompressor cat usr share dict words sort R head c MB gt datafilename in data filename out compressed data xz with open filename in mode r as fin open filename out wb as fout for chunk in fin read compressed chunk lzc compress chunk encode ascii fout write compressed chunk fout write lzc flush print f Uncompressed size os stat filename in st size Uncompressed size print f Compressed size os stat filename out st size Compressed size with lzma open filename out r as fin words fin read decode utf split print words dabbing hauled seediness s Iroquoian vibe We start by creating an input file consisting of a bunch of words extracted from dictionary provided in usr share dict words This is so that we can actually confirm that the decompressed data is identical with original We then open the input and output files as in previous examples This time around however we iterate over the random data in bit chunks and compress them using LZMACompressor compress These chunks are then written into an output file After whole file is read and compressed we need to call flush to finish the compression process and flush out any remaining data from the compressor To confirm that this worked we open and decompress the file the usual way and print first a couple of words from the file Moving on to higher level modules let s now use gzip for the same tasks import os sys shutil gzipfilename in data filename out compressed data tar gz with open filename in rb as fin gzip open filename out wb as fout Reads the file by chunks to avoid exhausting memory shutil copyfileobj fin fout print f Uncompressed size os stat filename in st size Uncompressed size print f Compressed size os stat filename out st size Compressed size with gzip open filename out rb as fin data fin read print f Decompressed size sys getsizeof data Decompressed size In this example we combined both gzip and shutils It might seem like we did the same bulk compression as with zlib or bz earlier but thanks to shutil copyfileobj we get the chunked incremental compression without having to loop over the data like we did with lzma One advantage of gzip module is that it also provides commandline interface and I m not talking about the Linux gzip and gunzip but about Python integration python m gzip husage gzip py h fast best d file file ls l data rw rw r martin martin aug data Use fast compression on file data python m gzip fast data File named data gz was generated ls l data rw rw r martin martin aug data rw rw r martin martin aug data gz Bring The Bigger HammerIf you re more comfortable with either zip or tar or you need archives in formats provided by one of these then this section will show you how to use them Apart from the basic compression decompression operations these modules also include some other utility methods such as testing checksums using passwords or listing files in archives So let s dive in and see all these in action import zipfile shuf n usr share dict words gt words txtfiles words txt words txt words txt words txt words txt archive archive zip password b verysecret with zipfile ZipFile archive w as zf for file in files zf write file zf setpassword password with zipfile ZipFile archive r as zf crc test zf testzip if crc test is not None print f Bad CRC or file headers crc test info zf infolist also zf namelist print info See all attributes at zipinfo objects lt ZipInfo filename words txt filemode rw r r file size gt lt ZipInfo filename words txt filemode rw r r file size gt file info with zf open file as f print f read decode Olav teakettles zf extract file tmp pwd password also zf extractall This is a fairly long piece of code but covers all the important features of zipfile module In this snippet we start by creating ZIP archive using ZipFile context manager in write w mode and then add the files to this archive You will notice that we didn t actually need to open the files that we re adding all we needed to do is call write passing in the file name After adding all the files we also set archive password using setpassword method Next to demonstrate that it worked we open the archive Before reading any files we check CRC and file headers afterwards we retrieve information about all files present in the archive In this example we just print the list of ZipInfo objects but you could also inspect its attributes to get CRC size compression type etc After checking all the files we open and read one of them We see that it has the expected content so we can go ahead and extract it to file specified by path tmp In addition to creating a reading archives files ZIP allows us to also append files to existing archives To do this all we need to change is access mode to append a with zipfile ZipFile archive a as zf zf write words txt print zf namelist words txt words txt words txt words txt words txt words txt Same as with gzip module Python s zipfile and tarfile also provide CLI To perform basic archiving and extracting use the following python m zipfile c arch zip words txt words txt Createpython m zipfile t arch zip TestDone testingpython m zipfile e arch zip tmp Extractls tmp words tmp words txt tmp words txtLast but not least tarfile module This module is similar to zipfile but also implements some extra features import tarfilefiles words txt words txt words txt words txt archive archive tar gz with tarfile open archive w gz as tar for file in files tar add file can also be dir added recursively symlink etc print f archive contains tar getmembers lt TarInfo words txt at xfedfe gt lt TarInfo words txt at xfedfa gt info tar gettarinfo words txt Other Linux attributes tarinfo objects print f tar name contains info name with permissions oct info mode size info size and owner info uid info gid archive tar contains words txt with permissions size and owner def change permissions tarinfo tarinfo mode o rw return tarinfo tar add words txt filter change permissions tar list rw r r martin martin words txt rw r r martin martin words txt rw martin martin words txtWe start with the basic creation of archive but here we use access mode w gz which specifies that we want to use GZ compression After that we add all our files to the archive With tarfile module we can also pass in for example symlinks or whole directories that would be recursively added Next to confirm that all the files are really there we use getmembers method To get insight about individual files we can use gettarinfo which provides all the Linux file attributes tarfile provides one cool feature that we haven t seen with other modules and that is ability to modify attributes of files when they re being added to archive In the above snippet we change permission of a file by supplying filter argument which modifies the TarInfo mode This value has to be provided as octal number here o sets the permissions to or rw To get the complete overview of files after doing this change we can run list method which gives us output similar to ls l Final thing to do with tar archive is to open it and extract it To do this we open it with r gz mode retrieve an info object member using file name check whether it really is a file and extract it to desired location with tarfile open archive r gz as tar member tar getmember words txt if member isfile tar extract member tmp ConclusionAs you can see Python s modules provide a lot of options both low and high level both specific and generic modules both simple and more complicated interfaces What you choose depends on your use case and requirements but in general I would recommend going with the general purpose modules such as zipfile or tarfile and resorting to the ones like lzma only if you really have to I tried to cover all the common use cases of these modules to give you complete overview but there are obviously more functions objects attributes etc in each of these modules so be sure to check out docs linked in the first section to find some other useful bits and pieces |
2021-09-13 18:18:01 |
Apple |
AppleInsider - Frontpage News |
iOS 14.8, iPadOS 14.8 tighten security, close off 'Blastdoor' attacks |
https://appleinsider.com/articles/21/09/13/ios-148-ipados-148-tighten-security-fixes-blastdoor-attacks?utm_medium=rss
|
iOS iPadOS tighten security close off x Blastdoor x attacksApple s update to iOS and iPadOS introduce fixes to two vulnerabilities including one that enabled attacks that worked around Apple s Blastdoor protective system Monday s release of iOS and iPadOS to the public was unexpected and lacked any betas ahead of being issued Apple described the patches as providing important security updates and is recommended for all users Shortly after the release Apple published the security content changes included in iOS and iPadOS The two fixes related to the CoreGraphics and WebKit sections of both operating systems Read more |
2021-09-13 18:13:09 |
Apple |
AppleInsider - Frontpage News |
Researcher testing Apple CloudKit accidentally took Shortcuts completely down |
https://appleinsider.com/articles/21/09/13/researcher-testing-apple-cloudkit-accidentally-took-shortcuts-completely-down?utm_medium=rss
|
Researcher testing Apple CloudKit accidentally took Shortcuts completely downA security researcher has explained how his investigation into Apple s CloudKit platform inadvertently brought down Siri Shortcuts earlier in Credit AppleInsiderFrans Rosen a bug bounty hunter for security firm Detectify on Monday revealed that he had accidentally broke Shortcut sharing links while probing a misconfiguration in Apple s CloudKit system Read more |
2021-09-13 18:00:52 |
Apple |
AppleInsider - Frontpage News |
Apple products & technologies used to drive viewer interest in Apple TV+ shows |
https://appleinsider.com/articles/21/09/13/apple-products-technologies-used-to-drive-viewer-interest-in-apple-tv-shows?utm_medium=rss
|
Apple products amp technologies used to drive viewer interest in Apple TV showsA study of five popular Apple TV shows reveal over Apple products appear across episodes for some effective product placement Sam using his red iPhone in Ted Lasso Image credit AppleThe Apple TV shows studied included Ted Lasso The Morning Show Defending Jacob Trying and Mythic Quest One episode of Ted Lasso showed Apple products being used either in the foreground or background Read more |
2021-09-13 18:45:38 |
海外TECH |
Engadget |
Apple releases iOS 14.8 and macOS 11.6 to address WebKit and PDF vulnerabilities |
https://www.engadget.com/ios-14-8-macos-big-sur-11-6-security-updates-182807411.html?src=rss
|
Apple releases iOS and macOS to address WebKit and PDF vulnerabilitiesOne day before its next major event Apple has released iOS iPadOS watchOS and macOS Big Sur All four are minor updates that don t add new features to their respective operating systems but include important security fixes As such Apple recommends all users download them as soon as they can Depending on the update it addresses as many as two issues One relates to the CoreGraphics framework in iOS iPadOS and macOS while the other stems from Apple s WebKit browser engine In both instances the company says it s aware of at least one report where the vulnerabilities may have been actively exploited to execute arbitrary code On an iPhone or iPad you can manually check for iOS and iPadOS by opening the Settings app on your device tapping “General and then “Software Update On macOS meanwhile open the System Preferences menu and then click on “Software Update |
2021-09-13 18:28:07 |
海外TECH |
Engadget |
Facebook's program for VIPs allows politicians and celebs to break its rules, report says |
https://www.engadget.com/facebook-vip-cross-check-xcheck-181720267.html?src=rss
|
Facebook x s program for VIPs allows politicians and celebs to break its rules report saysFacebook has for years used a little known VIP program that s enabled millions of high profile users to skirt its rules according to a new report in The Wall Street Journal According to the report the program called “XCheck or “cross check was created in order to avoid “PR fires the public backlash that occurs when Facebook made a mistake affecting a high profile user s account The cross check program meant that if one of these accounts broke its rules the violation was sent to a separate team so that it could be reviewed by Facebook employees rather than its non employee moderators who typically review rule breaking content Facebook had previously disclosed the existence of cross check which had also been reported on by other outlets But The Wall Street Journal report revealed that “most of the content flagged by the XCheck system faced no subsequent review This effectively allowed celebrities politicians and other high profile users to break rules without consequences In one incident described in the report Brazilian soccer star Neymar posted nude photos of a woman who had accused him of sexual assault Such a post is a violation of Facebook s rule around non consensual nudity and rule breakers are typically banned from the platform But the cross check system “blocked Facebook s moderators from removing the video and the post was viewed nearly million times before it was eventually removed His account faced no other consequences Last year alone the cross check system enabled rule breaking content to be viewed more than billion times before being removed according to internal Facebook documents cited by The Wall Street Journal The report also says Facebook misled its Oversight Board which pressed the company on its cross check system in June when weighing in on how the company should handle Donald Trump s “indefinite suspension The company told the board at the time that the system only affected “a small number of its decisions and that it was “not feasible to share more data “The Oversight Board has expressed on multiple occasions its concern about the lack of transparency in Facebook s content moderation processes especially relating to the company s inconsistent management of high profile accounts the Oversight Board said in a statement shared on Twitter “The Board has repeatedly made recommendations that Facebook be far more transparent in general including about its management of high profile accounts while ensuring that its policies treat all users fairly Facebook told The Wall Street Journal that its reporting was based on “outdated information and that the company has been trying to improve the cross check system “In the end at the center of this story is Facebook s own analysis that we need to improve the program Facebook spokesperson Andy Stone wrote in a statement “We know our enforcement is not perfect and there are tradeoffs between speed and accuracy The revelations could prompt new investigations into Facebook s content moderation policies Some information related to cross check has been “turned over to the Securities and Exchange Commission and to Congress by a person seeking federal whistleblower protection according to The Wall Street Journal |
2021-09-13 18:17:20 |
海外TECH |
CodeProject Latest Articles |
2-D Interpolation Functions |
https://www.codeproject.com/Articles/5312360/2-D-Interpolation-Functions
|
functionsvarious |
2021-09-13 18:56:00 |
海外科学 |
NYT > Science |
Most People Don't Need a Covid Vaccine Booster, New Review Says |
https://www.nytimes.com/2021/09/13/health/covid-vaccine-booster-lancet.html
|
Most People Don x t Need a Covid Vaccine Booster New Review SaysThe benefits of a third shot for most people are small and are far outweighed by the benefits of using those doses for initial vaccinations the scientists say |
2021-09-13 18:58:52 |
海外科学 |
NYT > Science |
A Medical Career, at a Cost: Infertility |
https://www.nytimes.com/2021/09/13/health/women-doctors-infertility.html
|
deprivation |
2021-09-13 18:10:52 |
海外科学 |
NYT > Science |
Biden Outlines a Plan for Cleaner Jet Fuel. But How Clean Would It Be? |
https://www.nytimes.com/2021/09/13/climate/sustainable-jet-fuel-biden.html
|
Biden Outlines a Plan for Cleaner Jet Fuel But How Clean Would It Be Some biofuels may contribute to greenhouse gas emissions in ways that can significantly reduce and sometimes offset their advantages over fossil fuels studies have shown |
2021-09-13 18:46:59 |
ニュース |
BBC News - Home |
UK-wide booster jab plan expected on Tuesday |
https://www.bbc.co.uk/news/uk-politics-58552389?at_medium=RSS&at_campaign=KARANGA
|
pfizer |
2021-09-13 18:52:29 |
ニュース |
BBC News - Home |
Andrew Neil resigns from GB News three months after channel's launch |
https://www.bbc.co.uk/news/entertainment-arts-58464664?at_medium=RSS&at_campaign=KARANGA
|
anchor |
2021-09-13 18:42:54 |
ニュース |
BBC News - Home |
US Open crowd was not booing me - Medvedev |
https://www.bbc.co.uk/sport/tennis/58548667?at_medium=RSS&at_campaign=KARANGA
|
djokovic |
2021-09-13 18:44:39 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【マンガ】非常時を生き抜くための調理法、キッチンポリ袋でご飯を炊こう - ニュース3面鏡 |
https://diamond.jp/articles/-/281015
|
自然災害 |
2021-09-14 04:00:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
埼玉・千葉「私立中学」志願者ランキング、埼玉2位は開智、千葉2位は市川、1位は? - 中学受験への道 |
https://diamond.jp/articles/-/281630
|
中学受験 |
2021-09-14 03:55:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「新しい働き方の意識調査」から見る、シニア就労の現在と今後 - Oriijin(オリイジン) |
https://diamond.jp/articles/-/281766
|
「新しい働き方の意識調査」から見る、シニア就労の現在と今後Oriijinオリイジン年月に施行された「働き方改革関連法」や、昨年年から続く新型コロナウイルス感染症の世界的拡大で、企業・団体の雇用状況と被雇用者一人ひとりの就労観に変化が出てきている。 |
2021-09-14 03:50:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
コロナワクチンの謎、なぜ効果が続かないのか - WSJ PickUp |
https://diamond.jp/articles/-/282039
|
wsjpickup |
2021-09-14 03:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
米共和党の未来、トランプ主義が支配か - WSJ PickUp |
https://diamond.jp/articles/-/282040
|
wsjpickup |
2021-09-14 03:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
仮想通貨ローン急拡大、家や車を購入 - WSJ PickUp |
https://diamond.jp/articles/-/282041
|
wsjpickup |
2021-09-14 03:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「年利10%以上を10年間以上継続」の一流ヘッジファンドを個人投資家が購入するテクニック - 富裕層のためのヘッジファンド投資入門 |
https://diamond.jp/articles/-/281969
|
個人投資家 |
2021-09-14 03:27:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
ひろゆきが考える「嘘みたいにモテる趣味」ベスト1 - 1%の努力 |
https://diamond.jp/articles/-/281028
|
youtube |
2021-09-14 03:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【精神科医が教える】イライラしない体質に変わる! 朝のおすすめ習慣2つ - 精神科医が教える後悔しない怒り方 |
https://diamond.jp/articles/-/281863
|
|
2021-09-14 03:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「優秀なのに年収が上がらない人」と「普通なのにどんどんキャリアアップする人」の差 - マンガ転職の思考法 |
https://diamond.jp/articles/-/281986
|
|
2021-09-14 03:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
大人になって「教養として数学を学びたい」人のための最高の一冊 - 独学大全 |
https://diamond.jp/articles/-/281422
|
読書 |
2021-09-14 03:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
恋や仕事など人間関係で悩んでいる人にオススメの神様 - 最強の神様100 |
https://diamond.jp/articles/-/282072
|
恋や仕事など人間関係で悩んでいる人にオススメの神様最強の神様「仕事運」「金運」「恋愛運」「健康運」アップ「のご利益」の組み合わせからあなたの願いが叶う神様が必ず見つかる八百万やおよろずの神様から項目にわたって紹介。 |
2021-09-14 03:05:00 |
GCP |
Cloud Blog |
Push your code and see your builds happening in your terminal with "git deploy" |
https://cloud.google.com/blog/topics/developers-practitioners/push-your-code-and-see-your-builds-happening-your-terminal-git-deploy/
|
Push your code and see your builds happening in your terminal with quot git deploy quot If you have used hosting services like Heroku before you might be familiar with the user workflow where you run git push heroku main and you see your code being pushed built and deployed When your code is received by the remote git server your build is started With source based build triggers in Cloud Build the same effect happens you git push your code and this triggers a build However you don t see this happen in the same place you ran your git push command Could you have just one command that you run to give you that Heroku like experience Yes you can Introducing git deploy a small Python script that lets you push your code and see it build in one command You can get the code here This code doesn t actually do anything it just shows you what s already going on in Cloud Build Explaining what this code doesn t do requires some background knowledge about how git works and how Cloud Build triggers work git hooksHooks are custom scripts that are launched when various actions occur in git and come in two categories client side and server side You could set up client side hooks to do for example lint checks before you write your commit message by creating a git hooks pre commit file that runs your linter of choice For server side hooks however those need to be stored on the server You can see server side hooks running when git returns logs with the remote prefix Heroku uses server side hooks to start deployments GitHub also uses server side hooks when you push a branch to a repo returning the link you can use to create a pull request on your branch for example remote Create a pull request for mytopic on GitHub by visiting However since you as a developer do not have control over GitHub s git server you cannot create server side hooks so that solution isn t possible in this instance Instead you can extend git on your machine git extensionsWriting extensions for git is remarkably simple you don t actually change git at all git just finds your script When you run a command in git it will first check if the command is one of it s internal built in functions If the command is not built in it will check if there is an external command in its namespace and run that Specifically if there is an executable on your system PATH that starts with git e g git deploy it will run that script when you call git deploy This elegance means that you can extend git s workflow to do anything you want while still feeling like you re in git because you are Kinda Inspecting Cloud Build in the command lineCloud Build has a rich user interface of its own in the Cloud console and native integration into services like Cloud Run But it also has a rich interface in gcloud the Google Cloud command line One of those functions is gcloud builds logs stream which allows you to view the progress of your build as it happens much the same as if you were to view the build in the Google Cloud console You can also use gcloud to list Cloud Build triggers filtering by it s GitHub owner name and branch With that unique trigger ID you can view what builds are currently running and stream them You can get the GitHub identifying information by inspecting git s configured remote origin and branch Putting it all togetherGiven all the background we can now explain what the git deploy script does Based on what folder you are currently in it detects what branch and remote origin you have configured It then runs the code push for you It then checks to see what Cloud Build triggers are connected to that remote origin and then waits until a build for that trigger has been started Once it has it just streams the logs to the terminal Suffice to say that this script doesn t actually do anything that s not already being done but it just shows you it all happening in the terminal The choice to use Python for this script was mostly due to the fact I did not want to have to write regex parsers in bash And even if I did it wouldn t work for users who use other shells Git extensions can be written in any language though Related ArticleIntegrating Google Cloud Build with JFrog Artifactory Editor s note Today we hear from software artifact management provider JFrog about how and why to use Google Cloud Build in conjunction Read Article |
2021-09-13 18:30:00 |
コメント
コメントを投稿