IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] 東武鉄道、日本初の「ホテルガチャ」販売 1回5555円、当たりはスイートの宿泊券 |
https://www.itmedia.co.jp/business/articles/2112/08/news154.html
|
itmedia |
2021-12-08 21:26:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] 「嫌なら勉強していい偏差値の大学に」 マイナビ“学歴フィルター”問題にひろゆき氏が持論 背景にある課題とは? |
https://www.itmedia.co.jp/business/articles/2112/08/news163.html
|
itmedia |
2021-12-08 21:19:00 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Pythonで学び直す数学【関数とグラフ/微分と積分編】~Matplotlibを使ってグラフを描画してみよう |
https://qiita.com/mikako0115/items/e6ac0d851454d7dc866d
|
Pythonで学び直す数学【関数とグラフ微分と積分編】Matplotlibを使ってグラフを描画してみよう仕事や趣味でPythonのコードを書いている方であれば、「JupyterNotebookを使ってグラフを描画」といってピンとくる方も多いと思いますが、実際に興味はあるけれど、どう使ってみればよいのかわからないという方も多いと思います。 |
2021-12-08 21:58:22 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Algorithm | 最小全域木をPython3で解説(例題あり) |
https://qiita.com/uniTM/items/a6c5211ce9c9008b74a8
|
プリム法とはプリム法とは、「ある頂点から異なる頂点に出ている、すべての辺の重みを小さい順番に並び替え、採用した重みの最小の辺につながっている頂点から、同様のことを繰り返して、最終的に全域木を作る」方法である。 |
2021-12-08 21:17:36 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
WebAssemblyが気になるので調べてみた |
https://qiita.com/t_katsumura/items/ff379aaaba6931aad1c4
|
またランタイムがAPIを実装していることで、WebAssemblyは様々な環境で同じコードを用いて実行できるようになります。 |
2021-12-08 21:33:43 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
日付をくっつけて表示させる |
https://qiita.com/ka25012/items/4930b0bdf5671bcc37d9
|
日付をくっつけて表示させるもしもカレンダー等で複数日を選択して画面に表示するときに、とかになってると見づらくないですかのように表示させるとスッキリしますよねそういう関数を作成しました。 |
2021-12-08 21:24:25 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
割り込み?子の処理途中で親の処理に戻る方法 |
https://teratail.com/questions/372911?rss=all
|
割り込み子の処理途中で親の処理に戻る方法教えてください。 |
2021-12-08 21:57:40 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
torch._C._cuda_init() RuntimeError: CUDA error: out of memory |
https://teratail.com/questions/372910?rss=all
|
torchCcudainitRuntimeErrorCUDAerroroutofmemory前提・実現したいことpythonRTXnbspcudatorchnbspcutorchaudionbspcutorchvisionnbspcuを使用しています。 |
2021-12-08 21:55:56 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
アプリ内のドキュメントフォルダにPDFを保存しようとしているのですが失敗してしまい困ってます |
https://teratail.com/questions/372909?rss=all
|
アプリ内のドキュメントフォルダにPDFを保存しようとしているのですが失敗してしまい困ってます以下のようなコードでドキュメントフォルダに保存しようとしているのですが、なぜか失敗してしまい困っています。 |
2021-12-08 21:52:50 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
バリデーションを設定したら、エラーが出る |
https://teratail.com/questions/372908?rss=all
|
バリデーションを設定したら、エラーが出るバリデーションを設定して、【userinfohtmlerb】のフォームに何も入力しなかったら送信できない処理を加えようとしたところ下記の画像のようなエラーメッセージが表示されました。 |
2021-12-08 21:48:24 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
SwiftUIでボーダーをつけた上でボーダーの中の背景色をつけたい |
https://teratail.com/questions/372907?rss=all
|
SwiftUIでボーダーをつけた上でボーダーの中の背景色をつけたい以下のようにボタンを作っているのですが、丸い枠を作っているのですが、丸い枠の中を塗りつぶしたいんですがうまく塗りつぶされずに困っています。 |
2021-12-08 21:47:10 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
castle_game_engineでリンクエラー |
https://teratail.com/questions/372906?rss=all
|
castlegameengineでリンクエラー前提・実現したいことcastlegameengineとviewdsceneをソースコードからビルドしたいです。 |
2021-12-08 21:44:07 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
postfix TLSのエラー |
https://teratail.com/questions/372905?rss=all
|
postfixTLSのエラー前提・実現したいことリレーサーバーとして楽天のプロバイダーのメールサーバーを利用しメッセージを送信したいです。 |
2021-12-08 21:44:05 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Pythonでリストを引数として受け取って、合計を返す関数の作り方 |
https://teratail.com/questions/372904?rss=all
|
Pythonでリストを引数として受け取って、合計を返す関数の作り方Pythonでリストを引数として受け取って、合計を返す関数の作り方が知りたいです。 |
2021-12-08 21:43:36 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
条件分岐をしてその点の色を指定して描画する方法 |
https://teratail.com/questions/372903?rss=all
|
条件分岐をしてその点の色を指定して描画する方法gnuplotで点を沢山描画したいと思っています。 |
2021-12-08 21:38:13 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
srcset属性のIE表示 |
https://teratail.com/questions/372902?rss=all
|
srcset属性のIE表示srcset属性でPCスマホ向けで画像をだし分けしたのですが、IEだけ画像のerrorアイコンみたいなのが表示されてうまくいきません。 |
2021-12-08 21:25:49 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
sqlAlchemyでのmany to manyテーブルからのデータの取得 |
https://teratail.com/questions/372901?rss=all
|
|
2021-12-08 21:12:02 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
【Vonage】Voice API開発のJWTの生成とデータセンターの設定を学ぶ |
https://qiita.com/kusunoyuta/items/9eeb77cd901819c5b08e
|
年月現在リージョン間の連携が取れてないWebRTCブラウザで応答する場合は、クライアントで使用するユーザーをSNGに作成し、クライアントSDKのNexmoClientオブジェクトにはエンドポイントをSNGに指定します。 |
2021-12-08 21:55:36 |
技術ブログ |
Developers.IO |
[AWS Step Functions] 複数先行ステートマシンの実行完了かつ指定起動開始時刻を満たしていることを条件に後続ステートマシンを実行してみた |
https://dev.classmethod.jp/articles/execute-subsequent-state-machines-subject-to-completion-of-execution-of-multiple-preceding-state-machines-and-specified-startup-start-time/
|
awsstepfunctions |
2021-12-08 12:37:39 |
技術ブログ |
Developers.IO |
[Storage Gateway] Amazon EC2 ホストにファイルゲートウェイをデプロイしてみた |
https://dev.classmethod.jp/articles/storage-gateway-ec2-2021/
|
amazon |
2021-12-08 12:23:47 |
技術ブログ |
Developers.IO |
ブログの「構成」どうやって考えていますか? – DevelopersIO 著者のみんなに色々聞いてみた Advent Calendar 2021 |
https://dev.classmethod.jp/articles/interviews-with-classmethod-developersio-bloggers-day08/
|
adventcalenda |
2021-12-08 12:17:01 |
海外TECH |
MakeUseOf |
Save $50 on a Proscenic Air Fryer With Amazon |
https://www.makeuseof.com/proscenic-air-fryer-deal-amazon/
|
discount |
2021-12-08 12:55:22 |
海外TECH |
MakeUseOf |
The Best Hidden Cameras for Protecting Your Home |
https://www.makeuseof.com/tag/best-hidden-cameras/
|
camera |
2021-12-08 12:16:03 |
海外TECH |
MakeUseOf |
5 Ways to Run Multiple Copies of an App on Your Mac |
https://www.makeuseof.com/tag/run-multiple-copies-app-mac/
|
accounts |
2021-12-08 12:15:12 |
海外TECH |
MakeUseOf |
What Is Hyperfocal Distance? How and When to Use It in Photography |
https://www.makeuseof.com/what-is-hyperfocal-distance/
|
What Is Hyperfocal Distance How and When to Use It in PhotographyPhotographers tout the hyperfocal distance of a lens as its optimal focusing distance So what exactly is it and how can you use it in your shots |
2021-12-08 12:15:11 |
海外TECH |
MakeUseOf |
How to Unlock an Android Phone Without Password |
https://www.makeuseof.com/unlock-android-without-password/
|
access |
2021-12-08 12:05:12 |
海外TECH |
DEV Community |
How to create snow effects for this Christmas with tsParticles |
https://dev.to/matteobruni/how-to-create-snow-effects-for-this-christmas-with-tsparticles-4mpd
|
How to create snow effects for this Christmas with tsParticlesChristmas is coming and why don t add a snow effect in your website Here s a simple guide to add the snow effect using tsParticles matteobruni tsparticles tsParticles Easily create highly customizable particles animations and use them as animated backgrounds for your website Ready to use components available for React js Vue js x and x Angular Svelte jQuery Preact Inferno Solid Riot and Web Components tsParticles TypeScript ParticlesA lightweight TypeScript library for creating particles Dependency free browser ready and compatible withReact js Vue js x and x Angular Svelte jQuery Preact Inferno Riot js Solid js and Web Components Table of ContentsUse for your websiteLibrary installationOfficial components for some of the most used frameworksAngularInfernojQueryPreactReactJSRiotJSSolidJSSvelteVueJS xVueJS xWeb ComponentsWordPressTemplates and ResourcesDemo GeneratorCharacters as particlesMouse hover connectionsPolygon maskAnimated starsNyan cat flying on scrolling starsBackground Mask particlesMigrating from Particles jsPlugins CustomizationsDo you want to use it on your website Documentation and Development references here This library is available on the two most popular CDNs and it s easy and ready to use if you were using particles jsit s even easier You ll find theinstructions below with all thelinks you need and… View on GitHub Table of ContentsDemoConfigurationVanilla JS Standard JavaScript React JSVue Vue AngularSvelteSolid JSRiot JSPreactInfernoWeb ComponentsjQueryPresetsCustom Shape DemoHere s a small demo of the effect if you remove the background options it will be transparent so you can put in your website without changing anything ConfigurationThis is one of the easiest configuration for a nice snow effect It s not interacting with the mouse events but it can be achieved easily For more options and examples checkout the official websitesnow json background color particles color value fff move direction bottom enable true outModes out speed number density enable true area value opacity value shape type circle size value wobble enable true distance speed zIndex value min max file with comments it can be used only in js files The background color is for making the particles visible since they re white Remove this section if not needed background color The particles options particles The color of the particles snowflakes color value fff Move the snow flakes to bottom for a realistic effect out in outModes is for making them reappear on top once exited at the bottom of the page the speed should be slow for a realistic effect move direction bottom enable true outModes out speed How many particles snowflakes will be created when starting the effect density is a good option to enable since it calculates the particles number based on the screen size mobile users will be happy number density enable true area value The opacity of the particles snowflakes opacity value The shape of the particles snowflakes also custom shapes can be used this will be discussed at the end shape type circle The size of the particles snowflakes size value A nice wobble movement wobble enable true distance speed Some depth to the effect the layers count by default is changing max here is not affecting that count The zIndex will affect speed size and opacity of the particles snowflakes the smaller the zIndex the smaller more transparent slower the particles snowflakes will be zIndex value min max Vanilla JSFor adding this effect in any website using just plain HTML and JavaScript you just have to add the snow json file above in your folder and add this HTML below in your page lt div id tsparticles gt lt div gt lt script src tsparticles min js gt lt script gt lt script gt tsParticles load tsparticles snow json lt script gt React JSFor React web sites applications this is the recommended setup Installationyarn yarn add react tsparticles reactnpm npm install react tsparticles react Componentsnow jsximport Particles from react tsparticles import snowConfig from snow json const Snow gt lt Particles id tsparticles options snowConfig gt Vue For Vue x web sites applications this is the recommended setup Installationyarn yarn add particles vue vue vue class component lt npm npm install particles vue vue vue class component lt main jsimport Particles from particles vue Vue use Particles Componentsnow vue lt template gt lt div id app gt lt Particles id tsparticles options snowConfig gt lt div gt lt template gt lt script gt import Vue from vue class component import snowConfig from snow json export default class Snow extends Vue snowConfig constructor super this snowConfig snowConfig lt script gt Vue For Vue x web sites applications this is the recommended setup Installationyarn yarn add particles vue vue vue class component npm npm install particles vue vue vue class component main jsimport Particles from particles vue createApp App use Particles Componentsnow vue lt template gt lt div id app gt lt Particles id tsparticles options snowConfig gt lt div gt lt template gt lt script gt import Vue from vue class component import snowConfig from snow json export default class Snow extends Vue snowConfig constructor super this snowConfig snowConfig lt script gt AngularFor Angular web sites applications this is the recommended setup Installationnpm npm install ng particles tsparticlesyarn yarn add ng particles tsparticlesapp module tsimport NgParticlesModule from ng particles import NgModule from angular core NgModule declarations AppComponent imports other imports NgParticlesModule NgParticlesModule is required providers bootstrap AppComponent export class AppModule Componentsnow html lt ng particles id id options snowConfig gt lt ng particles gt snow tsimport snowConfig from snow json export class Snow id tsparticles or the classic JavaScript object snowConfig snowConfig SvelteFor Svelte web sites applications this is the recommended setup Installationnpmnpm install svelte particles svelteyarnyarn add svelte particles svelte Componentsnow svelte lt script gt import Particles from svelte particles import snowConfig from snow json lt script gt lt Particles id tsparticles options snowConfig gt SSR Componentsnow svelte lt script gt import onMount from svelte import snowConfig from snow json let ParticlesComponent onMount async gt const module await import svelte particles ParticlesComponent module default let onParticlesLoaded event gt const particlesContainer event detail particles you can use particlesContainer to call all the Container class from the core library methods like play pause refresh start stop let onParticlesInit main gt you can use main to customize the tsParticles instance adding presets or custom shapes lt script gt lt svelte component this ParticlesComponent id tsparticles options snowConfig gt Solid JSFor Solid js web sites applications this is the recommended setup Installationnpmnpm install solid particles solid jsyarnyarn add solid particles solid js Componentsnow jsximport Particles from solid particles import snowConfig from snow json class Snow extends Component snowConfig snowConfig render return lt Particles id tsparticles options snowConfig gt Riot JSFor Riot js web sites applications this is the recommended setup Installationnpmnpm install riot particles riotyarnyarn add riot particles riotindex jsimport register from riot import RiotParticles from riot particles register riot particles RiotParticles Componentsnow riot lt riot particles id tsparticles options snowConfig gt lt script gt import RiotParticles from riot particles import snowConfig from snow json export default snowConfig components RiotParticles lt script gt PreactFor Preact web sites applications this is the recommended setup Installationyarn yarn add preact particles preactnpm npm install preact particles preact Componentsnow jsximport Component from preact import Particles from preact particles import snowConfig from snow json export default class Snow extends Component render return lt Particles id tsparticles options snowConfig gt InfernoFor Riot js web sites applications this is the recommended setup Installationyarn yarn add inferno particles infernonpm npm install inferno particles inferno Componentsnow jsximport Component from inferno import Particles from inferno particles import snowConfig from snow json export default class Snow extends Component render return lt Particles id tsparticles options snowConfig gt Web ComponentsFor adding this effect in any website using Web Components you just have to add the snow json file above in your folder and add this HTML below in your page index html lt web particles id tsparticles url snow json gt lt script src webcomponents webcomponentsjs custom elements es adapter js gt lt script gt lt script src webcomponents webcomponentsjs webcomponents loader js gt lt script gt lt script src tsparticles min js gt lt script gt lt script src dist web particles min js type module gt lt script gt jQueryFor adding this effect in any website using jQuery you just have to add the snow json file above in your folder and add this HTML below in your page lt div id tsparticles gt lt div gt lt script src tsparticles min js gt lt script gt lt script src dist jquery particles min js gt lt script gt lt script gt tsparticles particles ajax snow json lt script gt PresetsFor adding this effect in any website using just plain HTML and JavaScript with just a single script and a line of code a snow preset is also available Just add this to your website and you ll have a snow effect immediately lt div id snow gt lt div gt lt script src tsparticles preset snow bundle min js gt lt script gt lt script gt tsParticles load snow preset snow lt script gt The object preset snow is still a complete tsParticles options object you can still customize everything just complete the object with your additional configuration every options added to that object will override the preset default options For example tsParticles load snow preset snow particles shape type square With this sample you ll have squared particles snowflakes instead of the default circle value falling like snow You can read more about the snow preset here A typo was made in the README md file of the package the loadFirePreset should be loadSnowPreset It s already fixed in the source code when the new version will be published everything is going to be fine Custom ShapeIt s possible also to create a custom shape like a generated snowflake This is not recommended since a snowflake is heavy to be generated on the go use images instead But if someone wants to try it I ll leave the link below The preview is not added here since it can be heavy to render The custom shape code is this const deg Math PI function snowflake c n len c save leg n c rotate deg leg n c rotate deg leg n c closePath c restore function leg n c save if n c lineTo len else c scale leg n c rotate deg leg n c rotate deg leg n c rotate deg leg n c restore c translate len tsParticles addShape snowflake function context particle radius snowflake context Math floor Math random radius And it can be used in any of the configuration above when used in Vanilla JS jQuery or Web Components with lt script gt tags you can just add it before calling the tsParticles load function In all the other case refer to the documentation for the particlesInit or init parameter some component differs in this property and the parameter of that function is going to replace tsParticles object when calling addShape method For example React js component is going to appear like this snowflake json background color particles color value fff move direction bottom enable true outModes out speed number density enable true area value opacity value shape type snowflake size value wobble enable true distance speed zIndex value min max snowflakes jsximport useCallback from react import Particles from react tsparticles import snowflakeConfig from snowflake json const deg Math PI function snowflake c n len c save leg n c rotate deg leg n c rotate deg leg n c closePath c restore function leg n c save if n c lineTo len else c scale leg n c rotate deg leg n c rotate deg leg n c rotate deg leg n c restore c translate len const Snowflakes gt const particlesInit useCallback main gt main addShape snowflake function context particle radius snowflake context Math floor Math random radius return lt Particles id tsparticles options snowflakeConfig init particlesInit gt |
2021-12-08 12:34:07 |
海外TECH |
DEV Community |
7 Best Tools For Developers - They Can't Live Without It |
https://dev.to/huai/7-best-tools-for-developers-they-cant-live-without-it-1cfc
|
Best Tools For Developers They Can x t Live Without It The best tools for developers are a priority for them to work As a developer he always works with code editors browsers terminals etc to improve his productivity VS Code is one of the best editors every developer would like to work with it I ve also listed the VS Code extensions for JS that are useful for a developer And browser extensions are also a great way to improve productivity and I ve also listed Chrome extensions for a developer If you are a junior programmer this will give you an idea the improve your coding skills and if you are a senior developer you are still learn something new from it Extensions are one the best tools for developers Let s see the best tools for developers Read More Best Tools For Developers They Can t Live Without It |
2021-12-08 12:33:34 |
海外TECH |
DEV Community |
25 Website Performance Metrics to Watch in 2022 |
https://dev.to/panelbear/25-website-performance-metrics-to-watch-in-2022-4f60
|
Website Performance Metrics to Watch in Monitoring the performance and end user experience of your website is key to its success This is not about having high scores in some artificial benchmark It s about ensuring every visitor has a great experience when interacting with your site as it directly translates to conversions and user retention In this guide I ll cover the most important website performance metrics to monitor and how to make the most out of them Why website performance mattersMany companies have found that a fast responsive website can significantly boost your conversion rate and sales For example Amazon found that for every milliseconds it reduced on page load time it increased sales by A increase in annual sales for Amazon translates into billions of dollars in additional revenue alone not to mention that faster websites lead to less frustrating experiences which may in turn translate into more returning users down the line Also Google has incorporated many of these metrics as part of its ranking algorithm as they are directly related to how frustrated a visitor might be when sent to your website That s why I believe that ensuring a great end user experience will be more important than ever in and beyond How to interpret website performance metricsWhile this guide mentions metrics there s plenty more It s easy to be overwhelmed by the number of metrics you could optimize That s why I d recommend a top down approach to website performance monitoring Focus on the metrics most impactful to user experience first and only dive into page load time optimization once you ve done that For example Start by measuring your Core Web Vitals This helps you understand your page experience from the perspective of your end users Then look at your Lighthouse scores and its suggestions They re often very actionable and pragmatic Once you understand which factors impact your page experience the most Deep dive into technical metrics such as page load time in order to troubleshoot performance bottlenecks and what might be causing issues on your site Next let s look at the complete list of metrics and what they mean Core Web VitalsCore Web Vitals are some of the most important metrics to measure for page experience They were first proposed by Google as a way to measure how visitors experience a website If you want to have the best chance to rank higher than your competitors on search results you should ensure that your site s Core Web Vitals fall within the recommended thresholds Core Web Vitals best practices The key insight is that Web Vitals measure the page experience as opposed to just load time figures Page load time often measures site speed from a purely technical perspective and may not be representative of what really happened from the perspective of the user What does that mean For example if the main content of a page has already loaded eg the blog post and images but some background Javascript resources are still loading one could argue that the page experience hasn t been significantly impacted by that script which hasn t yet loaded In this example the page load time would look very high while in practice the visitor has already started reading the main piece of content so there s no material impact on the experience Largest Contentful Paint LCP Largest Contentful Paint is a metric that measures how long it takes for the main piece of content to load on the screen A LCP of seconds or less is considered good while a score of seconds or more may lead to a poor experience Cumulative Layout Shift CLS Cumulative Layout Shift CLS measures the visual stability of a website In other words it measures by how much the main elements shift around as the page loads Google recommends a CLS of or less Usually the lower the better If this score is too high it can lead to frustrated visitors who may attempt to click on one button only for the element to move around as the rest of the page loads First Input Delay FID First Input Delay measures input delay In other words it measures how quickly a user can start interacting with a website even if it s still loading To make your site feel snappy a FID of milliseconds or less is advisable while an input delay larger than milliseconds may lead to a degraded experience To learn more about Core Web Vitals there s a more detailed article on the topic too Lighthouse ScoresLighthouse is an open source tool often used in Chrome DevTools to create automated reports on the quality of a web page What makes this tool particularly useful is that it gives you suggestions on how to improve your scores Why is this important It s generally a good enough indicator of what search engines such as Google might evaluate when ranking your site Even if your performance is great you want to ensure your site is accessible follows best practices and has good SEO scores This not only helps search engines understand the content on your site better but directly affects how people interact with your site Example Lighthouse report Performance ScoreThe Lighthouse Performance score is a weighted average of all performance audits It s a number between and where higher means a better score This score is determined by aggregating the following audits First Contentful PaintSpeed IndexLargest Contentful PainTime to InteractiveTotal Blocking TimeCumulative Layout ShiftYou can read more on how Lighthouse weights these audits here Accessibility ScoreThe Lighthouse Performance score is a weighted average of all accessibility audits on your site It s also a number between and where higher means a better score It aggregates a large number of accessibility audits including aria attributesImages with alt textValid values for the lang attributeTo see the full list of accessibility audits and how Lighthouse weights these audits here is an article on the topic SEO ScoreThe Lighthouse SEO score tells you how well search engines can understand your content It s a weighted average of all SEO audits on your site Again it s a number between and where higher means a better score Some audits included in this score are A valid lt title gt elementA valid robots txt fileA valid rel cannonical attributeThere s plenty more audits that fall within the scope of this score To read the full list check out this article Best Practices ScoreThe Lighthouse Best Practices score tells you about the code health of your web page As with all other scores it also shows you opportunities to improve the health of your site It s a weighted average in which is the lowest score and the highest better and includes various technical audits such as Correct aspect ratio for imagesUsing HTTP for all resourcesUsing HTTPS to serve the siteNot using deprecated browser APIsTo read all audits included in this score read this article by the Lighthouse team PWA ScoreThe Lighthouse PWA score tells you if your site is compatible with the requirements for a Progressive Web App At a high level that means it should be fast reliable and installable It s a weighted average in which is the lowest score and the highest better and includes various technical audits such as Page load should be fast even on mobile networksUse HTTPS to serve the websiteRegisters a service worker that controls page and start urlThe web app manifest meets the installability requirementsYou can find the rest of the audits for this score in this article Page Load MetricsWhen you click a link your web browser starts a multi step process to load all synchronous resources required for this web page The longer this process takes the longer you must wait to interact with a website A simplified page load time process How long this process takes is what the Page Load Time measures It involves multiple steps and can be broken into multiple parts such as DNS lookup time SSL TLS download size and many more Let s look into each one individually Page Load TimePage load time measures the amount of time it takes for a complete web page to show up on your screen It s measured from the point a user initiates it such as clicking on a link or typing the website URL to when the page has fully loaded in the browser Various page load time measurements in Panelbear Domain Lookup TimeThe Domain Lookup Time is the time spent resolving the server address for a given domain For example when you type google com your browser must first resolve that domain name into an IP address the server which will serve the page HTML for our request The duration of this process is what this metric measures Server Connection TimeOnce the browser has resolved the domain name into an IP address it now needs to connect to the web server The Server Connection Time measures how long it took to establish a TCP connection to the server Establish SSL TLS TimeTransport Layer Security TLS is an encryption protocol designed to secure communications over the Internet Establish SSL TLS Time measures how long it takes to perform a TLS handshake During a TLS handshake the two sides exchange messages to acknowledge and verify each other establish which encryption algorithm will be used and agree on session keys This process is a foundational part of how HTTPS works and is vital to ensure privacy and security while you browse the web Various network timings in Panelbear Time to First Byte TTFB Time to First Byte TTFB is how long it takes from when a browser requests a page to when it receives the first byte of information from the server This usually includes the time spent on DNS lookup establishing the TCP connection and the SSL TLS handshake if the request was made over HTTPS It s a good metric to approximate the performance of a backend server from the perspective of the end user Inspecting the median TTFB for a website Why is this metric important If you measure the response time of your server from the server itself you would only account for the time your server spent processing the request In other words the journey from your server to the user s browser would be unaccounted for For example say you are located in California and your server is located in an AWS data center in North Virginia You measure your TTFB and you re happy to see a result of ms However when a user from the EU or Australia opens your website the TTFB is now ms The conclusion here might be that no matter if you scale your servers vertically or horizontally the real issue is that the server is too far away from the end users So you probably want to deploy servers in those regions too assuming it makes sense for your product or business HTML Download TimeHTML Download Time measures the time it takes to download the initial document for a website This document normally references various other resources images stylesheets scripts which are queued for download too Render TimeThe Render Time measures how long it takes for the browser to paint the HTML document after downloading and parsing This can vary a lot as it highly depends on the complexity of your site and the performance capabilities of the users device eg some mobile devices can take longer to render a complex website vs a powerful development machine Request CountThe Request Count refers to the number of resources required to load a web page The impact of this metric on end user experience is highly dependent on other factors too For example if you have a website which requires requests to load but most of them are small resources which do not block rendering it may not negatively impact how the user interacts with the site On the other hand if you have a web page which requires a single request to load but that request takes seconds to complete and loads several megabytes of data it s likely the user will abandon the site before the request completes As with most other metrics it s useful to measure request count in relation to the other characteristics of your web page Transfer SizeTransfer Size measures the total size of all assets transferred during page load This includes every request for HTML images stylesheets scripts and JSON documents It s a good measurement of how heavy your web page is HTML Transfer SizeThe HTML Transfer Size tells you the size of all HTML assets transferred on page load Image Transfer SizeThe Image Transfer Size tells you the size of all image assets transferred during page load The following are examples of common image assets Format nameExtensionMIME typeGraphics Interchange Format GIF gifimage gifWeb Picture format WEBP webpimage webpPortable Network Graphics PNG pngimage pngAV Image File Format AVIF avifimage avifJoint Photographic Expert Group image JPEG jpeg jpgimage jpegScalable Vector Graphics SVG svgimage svg xml CSS Transfer SizeCSS Transfer Size measures the total size of all stylesheet CSS assets transferred during page load Font Transfer SizeThe Font Transfer Size tells you the size of all font assets transferred during page load The following are examples of font assets Format nameExtensionMIME typeTrueType ttffont ttfWeb Open Font Format woff wofffont woff font woffOpenType otffont otf Javascript Transfer SizeThe Javascript Transfer Size measures the total size of all Javascript JS assets transferred during page load For many modern web apps this asset type has become a considerable chunk of the page load process Large Javascript files may not only lead to longer download times but also increase the time the browser needs to parse and render the site This can negatively affect how long it takes for the site to become interactive too In order to improve load times many applications now rely on techniques such as tree shaking automatically remove unused code asset bundling package related assets together and code splitting split files and only load as required for specific pages A popular tool for these purposes is Webpack JSON Transfer SizeJSON Transfer Size measures the total size of all JSON assets transferred during page load Video Transfer SizeVideo Transfer Size measures the total size of all video assets transferred during page load Here are some examples of common video assets Format nameExtensionMIME typeWebM webmvideo webmOgg oggvideo oggMPEG mpvideo mpiPhone Index muapplication x mpegURLiPhone Segment tsvideo MPTFlash flvvideo x flvGP Mobile gpvideo gppQuickTime movvideo quicktimeA V Interleave avivideo x msvideoWindows Media wmvvideo x ms wmv Javascript Error CountThe Javascript Error Count tells you how many runtime errors the browser encountered while loading your web page While on its own it s not enough to troubleshoot and debug errors it s very helpful to track this metric in aggregate to ensure no deployments or configuration changes cause unintended issues during runtime This metric is most useful when monitored in conjunction with error tracking software That way if the total error count goes beyond your tolerance threshold your team would be able to troubleshoot the issue by inspecting the reported stack traces and breadcrumbs to understand why the issue happened and fix it early In ConclusionAs previously mentioned a faster website not only helps deliver a great user experience but can also significantly boost your conversion rate and sales Monitoring your website s performance over time is more important than ever in order to prevent unintended consequences when deploying bug fixes adding third party scripts and making improvements to the site That way you can make changes with confidence that you re not breaking stuff without realizing and ensuring you always deliver a great experience on your website I hope this guide comes useful to you Also be sure to check out my guide on website monitoring tools for various alternative tools you can use to monitor your frontend applications |
2021-12-08 12:32:52 |
海外TECH |
DEV Community |
Slice vs Splice in JS |
https://dev.to/ziratsu/slice-vs-splice-in-js-8m7
|
Slice vs Splice in JSHey fellow creatorsYou ve never quite known what the difference was between Slice and Splice in Javascript Dive in If you prefer to watch the video version it s right here Slice Slice will return a new array from an existing one For example const array kiwi strawberry lemon peach grape const slicedArray array slice console log slicedArray Here slicedArray will return the existing array from index to index without including it meaning the first two elements of array kiwi and strawberry Splice Splice however will not return a new array but will simply remove or replace a portion of the existing array const array kiwi strawberry lemon peach grape array slice console log array It will remove an element from the beginning of the index meaning the first fruit will be removed from the array You can also replace an element with another one const array kiwi strawberry lemon peach grape array slice lime console log array Here kiwi will be replaced by lime but there will still be elements to the array Know the difference now As you can see it s not that hard Come and take a look at my Youtube channel See you soon Enzo |
2021-12-08 12:20:39 |
Apple |
AppleInsider - Frontpage News |
Time Machine backups causing issues for some Apple Silicon Mac users |
https://appleinsider.com/articles/21/12/08/time-machine-backups-causing-issues-for-some-apple-silicon-mac-users?utm_medium=rss
|
Time Machine backups causing issues for some Apple Silicon Mac usersAn unknown number of macOS Monterey users are reporting that Apple s Time Machine is failing on its initial backup of a drive and it s not clear why Time MachineAccording to posts on Reddit it is specifically related to the first time that the Time Machine solution attempts to backup a drive Not only does it fail to complete the backup but it nonetheless takes up storage space Read more |
2021-12-08 12:18:09 |
Apple |
AppleInsider - Frontpage News |
Apple crafting 'new application paradigm' for AR and VR experiences |
https://appleinsider.com/articles/21/12/08/apple-crafting-new-application-paradigm-for-ar-and-vr-experiences?utm_medium=rss
|
Apple crafting x new application paradigm x for AR and VR experiencesApple is recruiting software engineers for what it describes as helping to create next generation interactive computing platforms using Apple AR and VR Apple AR in use at Apple ParkAs expectations grow that Apple will soon announce an AR VR headset ーand that it will be a game changer ーthe company is looking further into the future Apple s jobs site has included a new AR VR role and the company has taken the unusual step of also calling out for recruits through Twitter Read more |
2021-12-08 12:06:37 |
海外TECH |
Engadget |
The Morning After: The Hubble telescope wakes up from 'hibernation' |
https://www.engadget.com/the-morning-after-the-hubble-telescope-wakes-up-from-hibernation-121526960.html?src=rss
|
The Morning After The Hubble telescope wakes up from x hibernation x NASA s Hubble telescope has been in a month long nap since going into system failure in late October However early yesterday the agency announced it is waking Hubble up NASA says the telescope is now functioning as normal with all four active instruments collecting data On October rd NASA first noticed Hubble s instruments weren t receiving messages from the telescope s control unit NASA ended up putting the telescope into a sort of safe mode while it tried to figure out what happened That safe mode takes a long time to come out of because of the sensitivity of Hubble s hardware Rapid power or temperature changes aren t good for its lifespan The telescope is now years old ーHubble may be nearing the end of its useful life in space NASA will use the telescope till the end though planning to use it in tandem with the Webb telescope which is expected to finally launch on December nd ーMat SmithDiscord gives server owners the tools to put channels behind a paywallThe company is testing Premium Memberships with a small group of users Discord has started testing a feature called Premium Memberships The tool allows community owners to gate access to part or all of their server behind a monthly subscription fee Before today individuals looking to offer membership fees or paid access had to turn to third party services like Patreon to monetize access to their servers The Premium Memberships tool creates a streamlined interface for that same purpose A new tab under the Community heading in the app s setting s menu allows server owners to do things like set price tiers and view related analytics The feature similarly streamlines the process of signing up for paid channels for users If you want to financially support a community you now don t need to leave Discord to do so Continue reading Tesla s in dash video games can be played even while drivingMore than people died in crashes involving distracted drivers in the US in Many Tesla vehicles allow drivers to play a selection of games on the infotainment system while the car is in motion according to a report by The New York Times The company rolled out an update in the summer that reportedly lets drivers play Solitaire jet fighter game Sky Force Reloaded and strategy title The Battle of Polytopia while on the road The touchscreen is said to display a warning before a game of Solitaire starts “Solitaire is a game for everyone but playing while the car is in motion is only for passengers the message reads according to the Times That indicates Tesla knows the game is playable while the car s moving In August the NHTSA said it was investigating Autopilot following a number of crashes with parked first responder vehicles Those resulted in one death and injuries Continue reading BMW will help recreate Rocket League in real lifeYou can watch the first remote controlled match on December th BMWBMW and esports brand LVL are trying something almost like Rocket League They re teaming on Das Race Goal a Rocket League style esports platform that has remote controlled cars play soccer for charity Players worldwide will steer the vehicles in a real arena while grabbing virtual powerups and activating quot special effects quot The first event takes place December th at PM ET and will stream live on LVL s Twitch channel This inaugural competition will have six three player teams compete in Munich s BMW Welt stadium to raise awareness and funds for the United Nations Population Fund s Skills for Life programs Continue reading Apple snaps up a movie about Theranos founder Elizabeth HolmesAdam McKay and Jennifer Lawrence are teaming up again on Bad Blood Apple will fund and distribute the long in the works movie about embattled Theranos founder Elizabeth Holmes Bad Blood will star Jennifer Lawrence as Holmes while Adam McKay will write and direct Both are producers on the project which is a co production between Apple Studios and Legendary The movie which is based on the book Bad Blood Secrets and Lies in a Silicon Valley Start Up by former Wall Street Journal reporter John Carreyrou has been in development since at least Bad Blood won t be the only film and TV project about Theranos and Holmes Hulu greenlit a mini series in with Saturday Night Live star Kate McKinnon penciled in to play Holmes She dropped out earlier this year and was replaced by Amanda Seyfried An HBO documentary about the Theranos saga also premiered in Continue reading nbsp The biggest news stories you might have missedAmazon s smart thermostat falls to in first ever discountNick Offerman will play Bill in The Last of Us on HBOA hacker named Bowser agrees to pay Nintendo million to settle a civil piracy suitBMW says it hit its goal of delivering one million electrified vehiclesAmazon s Alexa Together caregiver service is available todayActivision Blizzard workers stage walkout over Call of Duty studio layoffsTwitter buys would be Slack competitor Quill |
2021-12-08 12:15:26 |
海外TECH |
CodeProject Latest Articles |
Showcase Museum Exhibits Through 3D Models with Audio Guides |
https://www.codeproject.com/Tips/5319467/Showcase-Museum-Exhibits-Through-3D-Models-with-Au
|
audio |
2021-12-08 12:15:00 |
海外科学 |
NYT > Science |
This Robot Looks Like a Pancake and Jumps Like a Maggot |
https://www.nytimes.com/2021/12/07/science/robots-pancake-jump.html
|
courses |
2021-12-08 12:08:59 |
医療系 |
医療介護 CBnews |
診療報酬の大幅プラス改定提言、自民議連-不妊治療、看護賃上げと別枠で |
https://www.cbnews.jp/news/entry/20211208213148
|
加藤勝信 |
2021-12-08 21:45:00 |
医療系 |
医療介護 CBnews |
医師事務補助体制加算、増点・要件緩和を主張-中医協・診療側 |
https://www.cbnews.jp/news/entry/20211208210427
|
中央社会保険医療協議会 |
2021-12-08 21:20:00 |
金融 |
金融庁ホームページ |
企業会計審議会総会・第8回会計部会議事録を公表しました。 |
https://www.fsa.go.jp/singi/singi_kigyou/gijiroku/soukai/20211116.html
|
企業会計 |
2021-12-08 13:00:00 |
ニュース |
BBC News - Home |
Germany's Olaf Scholz takes over from Merkel as chancellor |
https://www.bbc.co.uk/news/world-europe-59575773?at_medium=RSS&at_campaign=KARANGA
|
merkel |
2021-12-08 12:56:17 |
ニュース |
BBC News - Home |
Grenfell firm F1 sponsorship deal ended |
https://www.bbc.co.uk/sport/formula1/59575979?at_medium=RSS&at_campaign=KARANGA
|
tower |
2021-12-08 12:21:15 |
ニュース |
BBC News - Home |
Bipin Rawat: India's top general dies in helicopter crash |
https://www.bbc.co.uk/news/world-asia-india-59576082?at_medium=RSS&at_campaign=KARANGA
|
india |
2021-12-08 12:55:19 |
ニュース |
BBC News - Home |
Storm Barra: Power cuts hit north and north east Scotland |
https://www.bbc.co.uk/news/uk-scotland-north-east-orkney-shetland-59575291?at_medium=RSS&at_campaign=KARANGA
|
scotland |
2021-12-08 12:51:43 |
ニュース |
BBC News - Home |
Tiny town, Marazion, bids to become UK's smallest city |
https://www.bbc.co.uk/news/uk-england-cornwall-59571276?at_medium=RSS&at_campaign=KARANGA
|
jubilee |
2021-12-08 12:17:44 |
ニュース |
BBC News - Home |
Omicron: How do you detect it? |
https://www.bbc.co.uk/news/health-59460252?at_medium=RSS&at_campaign=KARANGA
|
analysis |
2021-12-08 12:33:47 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
コーセーアールイー、2期連続の「増配」を発表して、 配当利回り3.4%に! 年間配当は2年で1.8倍に増加、 2022年1月期は前期比10円増の「1株あたり25円」に! - 配当【増配・減配】最新ニュース! |
https://diamond.jp/articles/-/290092
|
コーセーアールイー、期連続の「増配」を発表して、配当利回りに年間配当は年で倍に増加、年月期は前期比円増の「株あたり円」に配当【増配・減配】最新ニュースコーセーアールイーが、年月期の配当予想の修正増配を発表し、配当利回りがにコーセーアールイーは、年月期の年間配当を前回予想比で「円」の増配、前期比では「円」の増配となる「株あたり円」に修正すると発表した。 |
2021-12-08 21:05:00 |
サブカルネタ |
ラーブロ |
黒豚!とんこつスープの五目ちゃんぽんin憩酒家たっちゃん(2021/12/08) |
http://ra-blog.net/modules/rssc/single_feed.php?fid=194408
|
黒豚とんこつスープの五目ちゃんぽんin憩酒家たっちゃんそういえば最近はガールハントって言わなくね´・ω・`ガールハントとはgirl少女の意とhunt狩るの意の合成語で、男性が遊び目的の女性に声をかけ、ひっかけることをいう。 |
2021-12-08 12:00:53 |
北海道 |
北海道新聞 |
傷ついた希少鳥類命つないで 釧路・猛禽類医学研がCF 生息環境改善、一助に |
https://www.hokkaido-np.co.jp/article/620689/
|
環境改善 |
2021-12-08 21:18:00 |
北海道 |
北海道新聞 |
巨人、女子チームを創設 23年初頭から活動へ |
https://www.hokkaido-np.co.jp/article/620654/
|
硬式野球 |
2021-12-08 21:04:02 |
北海道 |
北海道新聞 |
GoTo、春休みは割引対象外 来年の再開後、観光庁 |
https://www.hokkaido-np.co.jp/article/620690/
|
観光庁 |
2021-12-08 21:18:00 |
北海道 |
北海道新聞 |
後志の新規感染者ゼロ 新型コロナ |
https://www.hokkaido-np.co.jp/article/620688/
|
新型コロナウイルス |
2021-12-08 21:16:00 |
北海道 |
北海道新聞 |
日本のウーパールーパー、胆振で89年ぶり発見 生殖能力備えた「幼形成熟」 |
https://www.hokkaido-np.co.jp/article/620589/
|
幼形成熟 |
2021-12-08 21:14:46 |
北海道 |
北海道新聞 |
小樽の総合体育館、プール2027年度完成 市が整備方針 庁舎は31年度 |
https://www.hokkaido-np.co.jp/article/620687/
|
公共施設 |
2021-12-08 21:14:00 |
北海道 |
北海道新聞 |
冬の山岳想定 救助迅速に 札幌南消防署が訓練公開 |
https://www.hokkaido-np.co.jp/article/620684/
|
南消防署 |
2021-12-08 21:11:00 |
北海道 |
北海道新聞 |
日胆の新規感染者ゼロ 新型コロナ |
https://www.hokkaido-np.co.jp/article/620683/
|
新型コロナウイルス |
2021-12-08 21:07:00 |
北海道 |
北海道新聞 |
自民、対韓国政策の検討で初会合 来夏めどに取りまとめ |
https://www.hokkaido-np.co.jp/article/620681/
|
取りまとめ |
2021-12-08 21:01:00 |
コメント
コメントを投稿