TECH |
Engadget Japanese |
中国政府、テンセントのWeChatを「未成年者保護の法律に違反」として提訴。ゲーム業界への締め付け強化か |
https://japanese.engadget.com/china-sues-tencent-wechat-youth-mode-045039381.html
|
wechat |
2021-08-08 04:50:39 |
TECH |
Techable(テッカブル) |
スマホで簡単、猫の健康管理! 猫のヘルスチェックサービス「Toletta(トレッタ)」 |
https://techable.jp/archives/159399
|
toletta |
2021-08-08 04:00:10 |
AWS |
lambdaタグが付けられた新着投稿 - Qiita |
Golang + Lambdaでサーバレス開発時にWarning「Support for "package.include" and "package.exclude" will be removed with next major release.」が出た時の対応 |
https://qiita.com/memomaruRey/items/726f154717bd39e5479c
|
GolangLambdaでサーバレス開発時にWarning「Supportforquotpackageincludequotandquotpackageexcludequotwillberemovedwithnextmajorrelease」が出た時の対応背景GolangLambdaでサーバレス開発中にslsinvokef関数名を実行すると、以下のWarningが発生しました。 |
2021-08-08 13:13:13 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
matplotlibのグラフで技術レポート向けのグリッドを最小労力で設定する |
https://qiita.com/bridgenail24/items/f2320d7bf5aaec2dc0ea
|
この記事では技術レポートにおススメな筆者好みのグリッド設定を最小労力で設定する方法を提案する。 |
2021-08-08 13:28:59 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
小技:文字列の文字をランダムに並び替える |
https://qiita.com/teradonburi/items/359a8ee6fa9da68f1261
|
splitsortgtmathrandomjoin |
2021-08-08 13:27:31 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
iframeのトップページ以外検索エンジンに登録されたくない |
https://teratail.com/questions/353298?rss=all
|
iframe |
2021-08-08 13:45:13 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
SASSのファイル名の最初に _ (アンダーバー)を付ける意味がわからない |
https://teratail.com/questions/353297?rss=all
|
SASSのファイル名の最初にアンダーバーを付ける意味がわからないSCSSファイル名の最初にnbspnbspアンダーバーを付けるとパーシャルファイルの扱いになり、そのファイル個別のCSSは出力されなくなるという認識でした。 |
2021-08-08 13:44:12 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
UNITY Pohto(PUN2)の子オブジェクト同期処理 |
https://teratail.com/questions/353296?rss=all
|
UNITYPohtoPUNの子オブジェクト同期処理UNITYnbspPohtoPUNを使用して動画の再生同期をしたいと考えております。 |
2021-08-08 13:37:48 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
railsアプリケーションのunicorn起動でNoMethodErrorエラーが発生。 |
https://teratail.com/questions/353295?rss=all
|
railsアプリケーションのunicorn起動でNoMethodErrorエラーが発生。 |
2021-08-08 13:33:02 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
sqlエラーについて |
https://teratail.com/questions/353294?rss=all
|
sqlエラーについて分からない箇所・登録しているデータベースから特定の情報を更新しようとした際、下記コードを実行すると、下記エラーが発生してしまいます。 |
2021-08-08 13:25:34 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
<input>要素 time型へ自動入力する方法について |
https://teratail.com/questions/353293?rss=all
|
ltinputgt要素time型へ自動入力する方法についてHTMLのltinputgt要素の自動入力について、教えて頂きたいことがあります。 |
2021-08-08 13:20:39 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
atcoder 競プロ典型90問 044 - Shift and Swapping(★3)でWAになる |
https://teratail.com/questions/353292?rss=all
|
atcoder競プロ典型問ShiftandSwappingでWAになるこの問題で例の最後らへんが違う答えになってしまいます。 |
2021-08-08 13:09:46 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
文字数をカウントして、0の際はアラートを表示する。(HTML・JavaScript) |
https://teratail.com/questions/353291?rss=all
|
文字数をカウントして、の際はアラートを表示する。 |
2021-08-08 13:06:50 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
【AWS】CodeCommitからgit cloneする手順 |
https://qiita.com/AKI3/items/d52695c6ffdcb32ef9af
|
AWSCLIインストール←不要AWSSecretAccessKeyを作成する←不要awsconfigureファイルの設定←不要gitconfigファイルの設定gitkeychainを無効にする、認証情報の取得、gitcloneまでは必須では無く厳密には必要かもしれませんがとでクローンはできました。 |
2021-08-08 13:46:10 |
海外TECH |
DEV Community |
Compare Things In JavaScript [Explained in A Grows Amount of Detail] |
https://dev.to/cleancodestudio/how-to-actually-compare-things-in-javascript-testing-comparison-operations-259j
|
Compare Things In JavaScript Explained in A Grows Amount of Detail Ever get stuck wondering if you need a bora borisLooselyEqual a b orisStrictlyEqual a b I know I sure have Testing and Comparison Operations the actual definitions This is content pulled directly from ECMAscript specifications Not written by me It defines specifically how comparisons testing operations work to an almost grows amount of detail Good reference to have if you re unsure whether you need two equal signs or one equal sign to check if two things are the same or different IsArray argument The abstract operation IsArray takes argument argument It performs the following steps when called If Type argument is not Object return false If argument is an Array exotic object return true If argument is a Proxy exotic object then a If argument ProxyHandler is null throw a TypeError exception b Let target be argument ProxyTarget c Return IsArray target Return false IsCallable argument The abstract operation IsCallable takes argument argument an ECMAScript language value It determines if argument is a callable function with a Call internal method It performs the following steps when called If Type argument is not Object return false If argument has a Call internal method return true Return false IsConstructor argument The abstract operation IsConstructor takes argument argument an ECMAScript language value It determines if argument is a function object with a Construct internal method It performs the following steps when called If Type argument is not Object return false If argument has a Construct internal method return true Return false IsExtensible O The abstract operation IsExtensible takes argument O an Object It returns a completion record which if its Type is normal has a Value which is a Boolean It is used to determine whether additional properties can be added to O It performs the following steps when called Assert Type O is Object Return O IsExtensible IsIntegralNumber argument The abstract operation IsIntegralNumber takes argument argument It determines if argument is a finite integral Number value It performs the following steps when called If Type argument is not Number return false If argument is NaN ∞𝔽 or ∞𝔽 return false If floor abs ℝ argument ≠abs ℝ argument return false Return true IsPropertyKey argument The abstract operation IsPropertyKey takes argument argument an ECMAScript language value It determines if argument is a value that may be used as a property key It performs the following steps when called If Type argument is String return true If Type argument is Symbol return true Return false IsRegExp argument The abstract operation IsRegExp takes argument argument It performs the following steps when called If Type argument is not Object return false Let matcher be Get argument match If matcher is not undefined return ToBoolean matcher If argument has a RegExpMatcher internal slot return true Return false IsStringPrefix p q The abstract operation IsStringPrefix takes arguments p a String and q a String It determines if p is a prefix of q It performs the following steps when called Assert Type p is String Assert Type q is String If q can be the string concatenation of p and some other String r return true Otherwise return false NoteAny String is a prefix of itself because r may be the empty String SameValue x y The abstract operation SameValue takes arguments x an ECMAScript language value and y an ECMAScript language value It returns a completion record whose Type is normal and whose Value is a Boolean It performs the following steps when called If Type x is different from Type y return false If Type x is Number or BigInt then a Return Type x sameValue x y Return SameValueNonNumeric x y NoteThis algorithm differs from the IsStrictlyEqual sec isstrictlyequal Algorithm in its treatment of signed zeroes and NaNs SameValueZero x y The abstract operation SameValueZero takes arguments x an ECMAScript language value and y an ECMAScript language value It returns a completion record whose Type is normal and whose Value is a Boolean It performs the following steps when called If Type x is different from Type y return false If Type x is Number or BigInt then a Return Type x sameValueZero x y Return SameValueNonNumeric x y NoteSameValueZero differs from SameValue sec samevalue only in its treatment of 𝔽and 𝔽 SameValueNonNumeric x y The abstract operation SameValueNonNumeric takes arguments x an ECMAScript language value and y an ECMAScript language value It returns a completion record whose Type is normal and whose Value is a Boolean It performs the following steps when called Assert Type x is not Number or BigInt Assert Type x is the same as Type y If Type x is Undefined return true If Type x is Null return true If Type x is String then a If x and y are exactly the same sequence of code units same length and same code units at corresponding indices return true otherwise return false If Type x is Boolean then a If x and y are both true or both false return true otherwise return false If Type x is Symbol then a If x and y are both the same Symbol value return true otherwise return false If x and y are the same Object value return true Otherwise return false IsLessThan x y LeftFirst The abstract operation IsLessThan takes arguments x an ECMAScript language value y an ECMAScript language value and LeftFirst a Boolean It provides the semantics for the comparison x lt y returning true false or undefined which indicates that at least one operand is NaN The LeftFirst flag is used to control the order in which operations with potentially visible side effects are performed upon x and y It is necessary because ECMAScript specifies left to right evaluation of expressions If LeftFirst is true the x parameter corresponds to an expression that occurs to the left of the y parameter s corresponding expression If LeftFirst is false the reverse is the case and operations must be performed upon y before x It performs the following steps when called If the LeftFirst flag is true then a Let px be ToPrimitive x number b Let py be ToPrimitive y number Else a NOTE The order of evaluation needs to be reversed to preserve left to right evaluation b Let py be ToPrimitive y number c Let px be ToPrimitive x number If Type px is String and Type py is String then a If IsStringPrefix py px is true return false b If IsStringPrefix px py is true return true c Let k be the smallest non negative integer such that the code unit at index k within px is different from the code unit at index k within py There must be such a k for neither String is a prefix of the other d Let m be the integer that is the numeric value of the code unit at index k within px e Let n be the integer that is the numeric value of the code unit at index k within py f If m lt n return true Otherwise return false Else a If Type px is BigInt and Type py is String then i Let ny be StringToBigInt py ii If ny is NaN return undefined iii Return BigInt lessThan px ny b If Type px is String and Type py is BigInt then i Let nx be StringToBigInt px ii If nx is NaN return undefined iii Return BigInt lessThan nx py c NOTE Because px and py are primitive values evaluation order is not important d Let nx be ToNumeric px e Let ny be ToNumeric py f If Type nx is the same as Type ny return Type nx lessThan nx ny g Assert Type nx is BigInt and Type ny is Number or Type nx is Number and Type ny is BigInt h If nx or ny is NaN return undefined i If nx is ∞𝔽or ny is ∞𝔽 return true j If nx is ∞𝔽or ny is ∞𝔽 return false k If ℝ nx lt ℝ ny return true otherwise return false Note Step step arc string check differs from step c step binary op string check in the algorithm that handles the addition operator sec applystringornumericbinaryoperator by using the logical and operation instead of the logical or operation Note The comparison of Strings uses a simple lexicographic ordering on sequences of code unit values There is no attempt to use the more complex semantically oriented definitions of character or string equality and collating order defined in the Unicode specification Therefore String values that are canonically equal according to the Unicode standard could test as unequal In effect this algorithm assumes that both Strings are already in normalized form Also note that for strings containing supplementary characters lexicographic ordering on sequences of UTF code unit values differs from that on sequences of code point values IsLooselyEqual x y The abstract operation IsLooselyEqual takes arguments x an ECMAScript language value and y an ECMAScript language value It provides the semantics for the comparison x y returning true or false It performs the following steps when called If Type x is the same as Type y then a Return IsStrictlyEqual x y If x is null and y is undefined return true If x is undefined and y is null return true NOTE This step is replaced in section B If Type x is Number and Type y is String return IsLooselyEqual x ToNumber y If Type x is String and Type y is Number return IsLooselyEqual ToNumber x y If Type x is BigInt and Type y is String then a Let n be StringToBigInt y b If n is NaN return false c Return IsLooselyEqual x n If Type x is String and Type y is BigInt return IsLooselyEqual y x If Type x is Boolean return IsLooselyEqual ToNumber x y If Type y is Boolean return IsLooselyEqual x ToNumber y If Type x is either String Number BigInt or Symbol and Type y is Object return IsLooselyEqual x ToPrimitive y If Type x is Object and Type y is either String Number BigInt or Symbol return IsLooselyEqual ToPrimitive x y If Type x is BigInt and Type y is Number or if Type x is Number and Type y is BigInt then a If x or y are any of NaN ∞𝔽 or ∞𝔽 return false b If ℝ x ℝ y return true otherwise return false Return false IsStrictlyEqual x y The abstract operation IsStrictlyEqual takes arguments x an ECMAScript language value and y an ECMAScript language value It provides the semantics for the comparison x y returning true or false It performs the following steps when called If Type x is different from Type y return false If Type x is Number or BigInt then a Return Type x equal x y Return SameValueNonNumeric x y NoteThis algorithm differs from the SameValue Algorithm in its treatment of signed zeroes and NaNs |
2021-08-08 04:37:16 |
海外TECH |
DEV Community |
Horizontal Pod Autoscaler On EKS Cluster |
https://dev.to/awscommunity-asean/horizontal-pod-autoscaler-on-eks-cluster-g33
|
Horizontal Pod Autoscaler On EKS Cluster AbstractThis post introduce you Horizontal Pod Autoscaler HPA which is the best combination with cluster autoscaler to provide HA for your applications Table Of ContentsWhat is Horizontal Pod AutoscalerInstall metric serverCreate HPA yamlTest HPA with cluster autoscalerTroubleshoot What is Horizontal Pod Autoscaler HPA The Kubernetes Horizontal Pod Autoscaler automatically scales the number of pods in a deployment replication controller or replica set based on that resource s CPU utilization Install metric server Metrics Server is a scalable efficient source of container resource metrics for Kubernetes built in autoscaling pipelines These metrics will drive the scaling behavior of the deployments Without metric server you will get lt unknown gt metric when trying to add HPA kubectl get hpa NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGEapp Deployment app lt unknown gt sDescribe the HPA and see it is not able to collect metrics kubectl describe hpa app Events Type Reason Age From Message Warning FailedComputeMetricsReplicas ms x over ms horizontal pod autoscaler invalid metrics invalid out of first error is failed to get cpu utilization unable to get metrics for resource cpu unable to fetch metrics from resource metrics API the server could not find the requested resource get pods metrics ks io Warning FailedGetResourceMetric s x over ms horizontal pod autoscaler unable to get metrics for resource cpu unable to fetch metrics from resource metrics API the server could not find the requested resource get pods metrics ks io There s no metric installed yet kubectl get apiservice grep metricNow we deploy the Metrics Server kubectl apply f Check metric server and apiService kubectl get deployment metrics server n kube systemNAME READY UP TO DATE AVAILABLE AGE metrics server s kubectl get apiservice grep metricvbeta metrics ks io kube system metrics server True sAfter install metric server we can apply HPA and use following commands kubectl top nodes kubectl top pods Create HPA yaml Use CDKS to create ks yaml files as code Read moreAn exmaple of HPAfrom constructs import Constructfrom cdks import Chartfrom imports import ksfrom cdks import Chart Appclass AppHpa Chart def init self scope Construct id str name space super init scope id namespace name space app name app app label dev app name ks KubeHorizontalPodAutoscalerVBeta self AppHpa metadata ks ObjectMeta labels app label name app name spec ks HorizontalPodAutoscalerSpec max replicas min replicas scale target ref ks CrossVersionObjectReference kind Deployment name app name api version apps v metrics ks MetricSpec type Resource resource ks ResourceMetricSource name cpu target ks MetricTarget type Utilization average utilization app App AppHpa app app hpa app synth Output after running cdks syncapiVersion autoscaling vbetakind HorizontalPodAutoscalermetadata labels dev app name app namespace devspec maxReplicas metrics resource name cpu target averageUtilization type Utilization type Resource minReplicas scaleTargetRef apiVersion apps v kind Deployment name app Test HPA with cluster autoscaler Checkout Kubernetes Cluster Autoscaler With IRSAAssume we set the targetCPUUtilizationPercentage to and use the service then we see it auto scaling a new node due to resource request MEM of app is high Mi to serve the new podNAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE app Deployment app ms kubectl get pod grep app app fffcc x Running happ fffcc nhtl Pending s kubectl get nodeNAME STATUS ROLES AGE VERSIONip ap northeast compute internal Ready lt none gt h v eks acip ap northeast compute internal Ready lt none gt dh v eks acip ap northeast compute internal Ready lt none gt s v eks ac kubectl get pod grep appapp fffcc x Running happ fffcc svkjl Running msNow we change the targetCPUUtilizationPercentage to and see if the HPA scaledown the number of app kubectl get hpa appNAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGEapp Deployment app m kubectl get pod grep appapp fffcc x Running h kubectl get hpa appNAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGEapp Deployment app m Troubleshoot When applying HPA I got the error failed to get cpu utilization missing request for cpuEvents Type Reason Age From Message Warning FailedComputeMetricsReplicas m x over m horizontal pod autoscaler invalid metrics invalid out of first error is failed to get cpu utilization missing request for cpu Warning FailedGetResourceMetric ms x over m horizontal pod autoscaler missing request for cpu kubectl get hpa css NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGEcss Deployment css lt unknown gt mFailing with the metrics is because the POD is not ready We need to check its readinessProb and either resource request in my case I just need to add the resource request to it resources requests cpu m memory MiThe first update it recreate the pod and got high request kubectl get hpa css NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGEcss Deployment css msIt scaleout one more pod and ater the target reduce kubectl get hpa cssNAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGEcss Deployment css msConditions Type Status Reason Message AbleToScale True ScaleDownStabilized recent recommendations were higher than current one applying the highest recent recommendation ScalingActive True ValidMetricFound the HPA was able to successfully calculate a replica count from cpu resource utilization percentage of request Later it removes the pod to meet the expected kubectl get pod l app cssNAME READY STATUS RESTARTS AGEcss cbfd mtxd Running m ltag user id follow action button background color important color df important border color important Vu DaoFollow Awesome Devops AWS SA CloudOpz vumdao vumdao |
2021-08-08 04:03:47 |
海外ニュース |
Japan Times latest articles |
Tokyo feared the Games would spread COVID-19. The numbers suggest that didn’t happen. |
https://www.japantimes.co.jp/news/2021/08/08/national/tokyo-olympics-coronavirus-spread/
|
Tokyo feared the Games would spread COVID The numbers suggest that didn t happen Japan had feared that the Games might spread COVID introduce new variants and overwhelm the medical system But the numbers from inside the Olympic bubble |
2021-08-08 13:38:43 |
海外ニュース |
Japan Times latest articles |
Japan’s miracle run ends in final as U.S. wins women’s basketball gold |
https://www.japantimes.co.jp/sports/2021/08/08/olympics/summer-olympics/olympic-basketball/japan-us-women-basketball/
|
akatsuki |
2021-08-08 13:16:55 |
ニュース |
BBC News - Home |
Tokyo Olympics: Team GB to match London 2012 with 65 medals won |
https://www.bbc.co.uk/sport/olympics/58125822
|
total |
2021-08-08 04:28:08 |
ニュース |
BBC News - Home |
Covid-19: Quarantine-free travel to France resumes as UK rules change |
https://www.bbc.co.uk/news/uk-58130944
|
changesome |
2021-08-08 04:15:40 |
ニュース |
BBC News - Home |
The Papers: Climate catastrophe warning, and winter flu tests |
https://www.bbc.co.uk/news/blogs-the-papers-58132519
|
stark |
2021-08-08 04:10:31 |
ニュース |
BBC News - Home |
Tokyo Olympics: GB's Laura Kenny sixth as USA's Jennifer Valente wins women's omnium |
https://www.bbc.co.uk/sport/av/olympics/58133164
|
Tokyo Olympics GB x s Laura Kenny sixth as USA x s Jennifer Valente wins women x s omniumWatch the final race of the women s omnium as USA s Jennifer Valente takes the gold with Great Britain s Laura Kenny finishing sixth at the Tokyo Olympics |
2021-08-08 04:22:18 |
ニュース |
BBC News - Home |
Tokyo Olympics: Jason Kenny wins seventh gold but Laura Kenny reign as omnium champion over |
https://www.bbc.co.uk/sport/olympics/58133154
|
Tokyo Olympics Jason Kenny wins seventh gold but Laura Kenny reign as omnium champion overJason Kenny becomes the first Briton to win seven Olympic golds by defending his keirin title but wife Laura s reign as women s omnium champion has ended |
2021-08-08 04:39:48 |
ニュース |
BBC News - Home |
Tokyo Olympics medal table - which country has won most golds? |
https://www.bbc.co.uk/sport/olympics/57836709
|
tokyo |
2021-08-08 04:19:14 |
LifeHuck |
ライフハッカー[日本版] |
腕元からイヤホンを取り出す時代。ワイヤレスイヤホン内蔵型スマートウォッチ |
https://www.lifehacker.jp/2021/08/machi-ya-wearbuds_pro-start.html
|
wearbudspro |
2021-08-08 14:00:00 |
北海道 |
北海道新聞 |
女子オムニアム梶原悠未が「銀」 自転車女子初のメダル |
https://www.hokkaido-np.co.jp/article/576315/
|
東京五輪 |
2021-08-08 13:04:00 |
北海道 |
北海道新聞 |
バスケ日本女子が銀メダル 初の表彰台、米国は7連覇 |
https://www.hokkaido-np.co.jp/article/576314/
|
東京五輪 |
2021-08-08 13:04:00 |
ニュース |
THE BRIDGE |
インドネシア最大のBNPL(後払)スタートアップKredivo、SPACを25億米ドルで買収し米IPOへ |
http://feedproxy.google.com/~r/SdJapan/~3/fwT0JiWpH1Y/credit-lender-kredivo-to-go-public-via-25-billion-spac-merger-pickupnews
|
|
2021-08-08 04:05:24 |
コメント
コメントを投稿