投稿時間:2021-07-03 07:14:58 RSSフィード2021-07-03 07:00 分まとめ(18件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
TECH Engadget Japanese 嘘つきは誰だ!証拠を頼りに謎を解く『Braindom 2』:発掘!スマホゲーム https://japanese.engadget.com/braindom-2-211055350.html braindom 2021-07-02 21:10:55
Google カグア!Google Analytics 活用塾:事例や使い方 Googleストリートビュー店内撮影の料金20000円の内訳とは https://www.kagua.biz/googlemaps-tool/googlemaps-howto/20210703.html 作業時間 2021-07-02 21:00:32
js JavaScriptタグが付けられた新着投稿 - Qiita Java と JavaScript は何がどれだけ違うのか https://qiita.com/e99h2121/items/e4ff907c3e2148f23812 Javaはマルチスレッドつ以上のスレッドを同時に実行してCPUを最大限に利用する処理をサポートしているが、JavaScriptは基本的にサポートしていない。 2021-07-03 06:25:54
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) margin 0 auto で中央寄せした要素3つに余白を設定はできる? https://teratail.com/questions/347388?rss=all margin 2021-07-03 06:40:50
AWS AWSタグが付けられた新着投稿 - Qiita amplify CLI の Headless mode で pull するとき auth リソースが存在するとエラーで落ちる https://qiita.com/okaxaki/items/8b512c299456be29111c binbashAMPLIFY略FRONTEND略PROVIDERS略amplifypullamplifyAMPLIFYfrontendFRONTENDprovidersPROVIDERSyesしかし、pull対象のAmplifyにauthリソースCognitoが設定されていると、以下のようなエラーが出る場合があります。 2021-07-03 06:00:41
海外TECH DEV Community How to Collaborate on Components across Projects with Bit https://dev.to/giteden/how-to-collaborate-on-components-across-projects-with-bit-29c3 How to Collaborate on Components across Projects with BitMost of us build our web projects with components It makes our code more reusable more maintainable more testable and easier to understand and debug We often share a few of these components to be able to use them across projects A design system for the UI and some sort of a toolbox with util functions for our logic Why then do we stop there Why not share and collaborate on everything  Truth is it s not that easy to share and collaborate on components You can group components together in the same repository and publish them as a single package but then you re not really collaborating on components you re collaborating on a project What you really need is a way to develop share and modify individual components from any project Why Because being able to pick and choose the components and component versions for your project and being able to propose changes increases the likelihood that these components will actually be used and reused That naturally translates to faster development and higher standard of code Introducing Bit an end to end solution for component driven developmentBit is an extensible development platform that offers everything you need to collaborate on components that is instead of only collaborating on projects Let s start with Bit s essential features Component source control essentially git for individual components Isolated component development that includes isolated rendering tests and builds Component dependency management ーauto generated component dependency graphs and smart dependency management That includes two types of dependencies node packages and other components more on that later The workflowWe will create a Bit workspace version it using git and on top of that version each of the components managed by the workspace independently using Bit Two layers of version control one for our entire project and another for our components As you ll soon see the two work in harmony to produce better more effective collaboration on code Bit will not only version each component independently but will also enable us to develop test and build each of them independently Our project repository the Bit workspace will be pushed to Github Our components source controlled by Bit and managed by the Bit workspace will be pushed to a remote Bit scope To collaborate on components before they are tagged with a new release version we will suggest a new release version by updating our workspace Once that workspace is pushed to Github the CI Github Actions will act on these suggestions tag the suggested components with a new release version and push them to a remote Bit scope where they can be cloned into other Bit workspaces Initialize Bit and gitA Bit workspace is where multiple components are developed and composed together while maintaining each as an independent project mkdir my workspace create a directory for our workspace cd my workspace git init initialize git bit init harmony initialize BitThe following files were created ├ーmy workspace └ー git ├ーbit ├ー ├ー bitmap └ーworkspace jsoncworkspace jsonc The workspace configuration file that sets rules and policies for the workspace and all its components Notice there is only one configuration file for all our future components That s possible thanks to Bit s CSS like configuration system where group of components are selected and configured together and where specific selections override the more general ones bitmap This is where component files are mapped to component IDs so that Bit would track them and manage them as a discrete unit essentially this is where the isolated development starts git bit Your local scope Where your workspace component repositories are stored Create component files source control and manage them as independent componentsLet s create two React components a button and an app bar Each component will have its own directory ├ーmy workspace ├ー git ├ーcomponents ├ーbutton └ーapp bar ├ー bitmap └ーworkspace jsoncEach will have the following files ts the component implementation files compositions tsx the component isolated previews spec ts the component tests docs mdx the component docsindex ts the component entry fileTo track them we ll run bit add components button bit add components app barOur components are now each managed and source controlled independently Our tracked components are now also visible in Bit s workspace UI To see them run Bit s server and open localhost bit start Run each component s CI and tag it with a new release versionOur components are ready to be built and tagged with a new release version We ll version button as and app bar as bit tag button message public release bit tag app bar message initial version The above tag command will not only version our components but will also build them each in their own isolated environments That is it will copy their source files and configurations set in the workspace jsonc to a directory that is isolated from the rest of the workspace Once that s done it will test and build them The build workflow the test runner the compiler the linter and other development tools are all determined by a pre configured shareable component development environment Learn more about it here The artifacts produced by the build process will all be versioned as well along with each component s source files and configurations One of the versioned artifacts is the component s package with an auto generated package json file The package is used by other components when Using a component authored in the same Bit workspaceUsing a component cloned into a Bit workspaceUsing a component installed as a package using Bit or any other npm client Collaborating on components Export push and import clone componentsJust like git repositories are pushed to remote hosting like Github so do component repositories are pushed to remote Bit hosting remote scopes To export push components to remote scopes run bit exportThe remote scope to push the components to is set in the workspace jsonc configuration file A remote scope can be created on bit dev for free or by hosting on your own server To import clone a component into a Bit workspace run bit import lt component id gt Shared components can be found on bit dev or on your self hosted Bit scope Suggest a new component release version with Bit and gitInstead of locally tagging a component with a new release version and exporting it from your local machine we can run bit tag soft lt component id gt lt new version gt This will update the bitmap file with the suggested version without actually tagging the component with a new release version Once we push the workspace to Github along with the bitmap file others can review the suggested changes and your CI can “hard tag the suggested component versions and export them Learn more about this process here git commit am change the button font suggest new release version Push the Bit workspace to Github and Run a CI to tag the modified component with a new release versionGo to Github and create a new secret variable in your Github repository Name it BIT TOKEN and set the value of it to the user token value Create a new tag and export yml file in your remote repository  github workflows directory Create your script This workflow hard tags and exports soft tagged componentsname Tag and Export Componentson push branches main pull request branches main jobs tag and export runs on ubuntu latest if contains github event head commit message skip ci env BIT TOKEN secrets BIT TOKEN steps uses actions checkout v name Use Node js uses actions setup node v with node version x name Install Bit Version Manager run npm i g teambit bvm name Install latest Bit version run bvm install name add bvm bin folder to path run echo HOME bin gt gt GITHUB PATH name Set up bit config run bit config set analytics reporting false bit config set anonymous reporting false bit config set user token BIT TOKEN name Install packages using bit run bit install name Hard tag pending components run bit tag persist name Export components run bit export name Commit changes made to bitmap run git config global user name github actor git config global user email github actor users noreply github com git add bitmap git commit m update bitmap with new component versions automated skip ci git pushThe above script installs Bit hard tags the new release suggestions found in the bitmap file exports the newly tagged versions and commits the changes made to the bitmap file the release suggestions have been replaced with new releases See demo project on Github teambit harmony with github actions A demo project 2021-07-02 21:11:22
Apple AppleInsider - Frontpage News Apple wooed by tax incentives, labor pool in $1B North Carolina expansion https://appleinsider.com/articles/21/07/02/tax-incentives-labor-pool-factored-large-in-apples-decision-to-build-1b-north-carolina-research-hub?utm_medium=rss Apple wooed by tax incentives labor pool in B North Carolina expansionApple is planning a massive expansion of its innovation and manufacturing footprint in the U S including a new billion engineering hub in Raleigh North Carolina Credit Raleigh North CarolinaThe decision to construct a massive facility in Raleigh s Research Triangle didn t happen by accident however A new CNBC report details how much effort North Carolina put into attracting Apple to the state Read more 2021-07-02 21:26:16
Apple AppleInsider - Frontpage News 90% of respondents in Apple employee-made survey want remote work option https://appleinsider.com/articles/21/07/02/90-of-respondents-in-apple-employee-made-survey-want-remote-work-option?utm_medium=rss of respondents in Apple employee made survey want remote work optionMany Apple employees want the ability to work from home and are concerned about colleagues leaving if in office work is required according to an internal survey designed by staffers Credit AppleNearly of respondents to the survey which was distributed in June said that they strongly agree with the statement that location flexible working options are a very important issue to me Staffers defined location flexible as the ability to work from home indefinitely Read more 2021-07-02 21:03:09
海外TECH Engadget Western Digital won’t fix a vulnerability found in older My Cloud OS3 storage devices https://www.engadget.com/western-digital-my-cloud-os-3-vulnerability-212839292.html?src=rss Western Digital won t fix a vulnerability found in older My Cloud OS storage devicesOwners of Western Digital network attached storage NAS devices may have yet another security headache on the horizon Following the two flaws hackers exploited to wipe My Book Live devices remotely security journalist Brian Krebs has published a report on another zero day vulnerability that affects Western Digital products running the company s My Cloud OS software What s more it doesn t appear there will be an official fix for those who don t upgrade to a newer storage solution Earlier in the year security researchers Radek Domanski and Pedro Ribeiro discovered a series of weaknesses that allow a malicious actor to remotely update a My Cloud OS device to add a backdoor The two say they never heard back from the company when they tried to contact it about the vulnerability Western Digital attributes its response or lack thereof to one of its previous policies “The communication that came our way confirmed the research team involved planned to release details of the vulnerability and asked us to contact them with any questions a spokesperson for the company told Krebs “We didn t have any questions so we didn t respond Since then we have updated our process and respond to every report in order to avoid any miscommunication like this again While the flaw isn t present in Western Digital s new My Cloud OS it s unclear if the company ever went back to address it in My Cloud OS What s more it no longer plans to support the older software “We will not provide any further security updates to the My Cloud OS firmware Western Digital says in a support page dated to March th “We strongly encourage moving to the My Cloud OS firmware If your device is not eligible for upgrade to My Cloud OS we recommend that you upgrade to one of our other My Cloud offerings that support My Cloud OS We ve reached out to the company for more information In the meantime you can protect your My Cloud device by downloading a patch Domanski and Ribiro developed One thing to note is you ll need to reapply it each time you reboot your device You can also protect your My Cloud NAS drive by limiting its access to the internet 2021-07-02 21:28:39
海外科学 NYT > Science These Birds Didn’t Have Chlamydia or West Nile. But They’re Still Dying. https://www.nytimes.com/2021/07/02/science/birds-eyes-disease.html These Birds Didn t Have Chlamydia or West Nile But They re Still Dying After birds died in several states many blinded with crusted over eyes wildlife officials were able to rule out a number of pathogens as the cause 2021-07-02 21:45:37
海外科学 NYT > Science Staghorn Ferns Act Like Bees in a Hive https://www.nytimes.com/2021/07/02/science/ferns-social.html hivethe 2021-07-02 21:30:49
海外科学 NYT > Science Are ‘Heat Pumps’ the Answer to Heat Waves? Some Cities Think So. https://www.nytimes.com/2021/06/30/climate/heat-pumps-climate.html conditioners 2021-07-02 21:27:01
ニュース BBC News - Home Italy edge Belgium to set up Spain semi-final https://www.bbc.co.uk/sport/football/51198657 munich 2021-07-02 21:32:22
ニュース BBC News - Home Andy Murray out of Wimbledon in third round https://www.bbc.co.uk/sport/tennis/57702056 evans 2021-07-02 21:15:42
ニュース BBC News - Home Ukraine stand in way of England and a first Euro semi-final in 25 years https://www.bbc.co.uk/sport/football/51198691 Ukraine stand in way of England and a first Euro semi final in yearsEngland will attempt to qualify for their first European Championship semi final for years when they face Ukraine at Euro on Saturday 2021-07-02 21:10:21
ニュース BBC News - Home Wimbledon 2021: Britain's Andy Murray loses in straight sets to Canada's Denis Shapovalov https://www.bbc.co.uk/sport/av/tennis/57703649 Wimbledon Britain x s Andy Murray loses in straight sets to Canada x s Denis ShapovalovWatch highlights as Andy Murray s run at Wimbledon comes to end with a straight set third round defeat to Canadian Denis Shapovalov 2021-07-02 21:46:39
ニュース BBC News - Home Euro 2020: Lorenzo Insigne stunner sees Italy through to semis https://www.bbc.co.uk/sport/av/football/57702966 Euro Lorenzo Insigne stunner sees Italy through to semisWatch highlights as Lorenzo Insigne s super strike from range helped Italy beat Belgium to advance to the semi finals of Euro facing Spain at Wembley 2021-07-02 21:25:26
GCP Cloud Blog BigQuery admin reference guide: Tables & routines https://cloud.google.com/blog/topics/developers-practitioners/bigquery-admin-reference-guide-tables-routines/ BigQuery admin reference guide Tables amp routinesLast week in our BigQuery Reference Guide series we spoke about the BigQuery resource hierarchy specifically digging into project and dataset structures This week we re going one level deeper and talking through some of the resources within datasets In this post we ll talk through the different types of tables available inside of BigQuery and how to leverage routines for data transformation Like last time we ll link out to the documentation so you can learn more about using these resources in practice  What is a table A BigQuery table is a resource that lives inside a dataset It contains individual records organized into rows with each record composed of columns also called fields where a specified data type is enforced BigQuery supports numerous differentdata types including GEOGRAPHY for geospatial data STRUCT and ARRAY for more complex data and new parameterized data types to add specific constraints like the number of characters in a string  Data access can also be controlled at the table row and column levels more details on data governance will be covered later in the series Metadata such as descriptions and labels can be used for surfacing information to end users and as tags for monitoring You can create and manage a table directly in the UI through the API Client SDKs or in a SQL query using a DDL statement Managed and external tablesManaged tables are tables that are backed by native BigQuery storage which has many benefits that improve query performance including support for partitions and clusters We ll cover more details on BigQuery storage later in this series Another advantage of using a managed table is that BigQuery allows you to use time travelto access data from any point within the last seven days and query data that was updated expired or deleted And now you can even create a snapshot of your table to preserve its contents at a given time  While managed tables store data inside BigQuery storage external tables are backed by storage external to BigQuery BigQuery currently supports creating an external table from Cloud Storage Cloud Bigtable and Google Drive Besides an external table you can create a connection to Cloud SQL which is somewhat analogous to an external dataset Here you can leverage federated queriesto send a query that executes in Cloud SQL but returns the results to be used within BigQuery Using external tables or federated queries may result in queries that aren t as fast as if the data had been stored in BigQuery itself However they can be useful for some data transformation patterns  for example you may want to schedule a DDL DML query that hydrates a managed table using a federated query which selects and transforms data from Cloud SQL An external table might also be useful for multi consumer workflows where BQ storage isn t the source of truth Like if you have a dataproc cluster accessing data in a Cloud Storage bucket that you re not quite ready to port into BigQuery although I do recommend taking a look at our connector if you need some convincing You can learn more about querying external data in this video  Logical and materialized viewsIn BigQuery you can create a virtual table with a logical view or a materialized view With logical views BigQuery will execute the SQL statement to create the view at run time it will not save the result anywhere Additionally you can grant users access to an authorized view to share query results without giving them access to the underlying tables  On the other hand materialized viewsare re computed in the background when the base data changes No user action is required they are always fresh Better yet if a query or part of a query against the source table can be resolved by querying the materialized view BigQuery will reroute for improved performance However materialized views use a restricted SQL syntax and a limited set of aggregation functions You can find details on limitations here   Temporary and cached results tablesAside from the tables we ve mentioned so far you can also create atemporary managed tableusing the TEMP or TEMPORARY keyword This table is saved in BigQuery storage and can be referenced for the duration of the script Temporary tables can be a good alternative to WITH clauses because the defining query is only executed once as opposed to being inlined every place the alias is referenced Original codeOptimizedwith a as   select b as   select from a c as   select from a select   b dim c dimfrom  b c create temp table a asselect … with b as   select from a c as   select from a select   b dim c dimfrom  b c It s also important to mention that BigQuery writes all query results to a table one either explicitly identified by the user or to a cached results table Temporary cached results tablesare maintained per user per project There are no storage costs for temporary tables User defined functions amp proceduresIn BigQuery a routine is either a user defined function UDF or a procedure Routines allow you to re use logic and handle your data in a unique way A UDF is a function that is created using either SQL or Javascript it takes arguments as input and returns a single value as an output UDFs are often used for cleaning or re formatting data For example extracting parameters from a URL string  restructuring nested data or cleaning up strings We even have a community driven open source repositoryof BigQuery UDFs Just like logical views you can create an authorized UDF that protects aspects of the underlying data For more details on UDFs checkout our video here You might also want to take a look attable functions a preview feature where you can create a SQL UDF that returns a table instead of a scalar value  Procedures on the other hand are blocks of SQL statements that can be called from other queries Unlike UDFs stored procedures can return multiple values or no values which means you can run them to create or modify tables In BigQuery you can also leverage scripting capabilitieswithin procedures to control execution flow with IF and WHILE statements Plus you can call your UDFs within your procedure These aspects make procedures great for extract load transform ELT driven workflows To ensure consistent analytics across your organization I recommend that you create a library dataset to house UDFs and procedures You can easily grant everyone in your organization the BigQuery Data Viewer roleto the library dataset so that all analysts use consistent and up to date logic in their queries  Stay tuned We hope this gave you an understanding of how to leverage some of the different resources inside of a BigQuery dataset and to help you make decisions like using native versus external storage logical versus materialized views and user defined functions or procedures  Next up we ll be talking about workload management in BigQuery by taking a look at jobs and the reservation model Be sure to keep an eye out for more in this series by following me on LinkedIn and Twitter and subscribing to our Youtube channel Related ArticleThe BigQuery admin reference guide Resource HierarchyLearn about the BigQuery Resource Hierarchy and how to structure Projects in the first part of our series to help BigQuery administrato Read Article 2021-07-02 21:45:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2024-02-12 22:08:06 RSSフィード2024-02-12 22:00分まとめ(7件)