IT |
ITmedia 総合記事一覧 |
[ITmedia News] TVer、人気バラエティのオリジナル企画を配信 「ロンドンハーツ」など リアルタイム配信を機に攻勢へ |
https://www.itmedia.co.jp/news/articles/2204/05/news160.html
|
itmedianewstver |
2022-04-05 21:36:00 |
AWS |
lambdaタグが付けられた新着投稿 - Qiita |
CloudFrontによる静的Webホスティング+署名付きURLの生成 |
https://qiita.com/t17_hr/items/12ee99a63565d5541b83
|
CloudFrontによる静的Webホスティング署名付きURLの生成はじめにLambdaでCloudFrontの署名付きURLを生成し、Sオブジェクトのキャッシングを実装。 |
2022-04-05 21:45:16 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
PythonでTomlを読み込もう! |
https://qiita.com/muzudho1/items/202fec22def14fd92510
|
|
2022-04-05 21:41:16 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
Nuxtをインストール後にnpm run devでエラーを吐く時の解決方法 |
https://qiita.com/tenopee/items/820c441e3736f17e866a
|
次にNodejsのドキュメントでLTSバージョンを確認しました。 |
2022-04-05 21:23:31 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
良いコードとは |
https://qiita.com/t-tokio/items/3d6186ce2e3fff74dfbd
|
良いコードとは結論他人が見てわかりやすく意味のわかるコードが一番良いコードだと思います具体的にどのようなことを意識すれば良いコードになるのか纏めてみたいと思います。 |
2022-04-05 21:54:31 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
CodeBuildで利用するproxy設定をパラメータストア化する |
https://qiita.com/y-suzuki-biz/items/94b1f41d0e5937642c3f
|
前提CodePipelineから、GithubgtCodeBuildの形で、CodePipelineからCodeBuildは実行する流れCodeBuildはbuildspec内で、proxyやvpcエンドポイントへの通信が必要となるパラメータストアに、httpproxy、httpsproxy、noproxyを定義している結論CodeBuildの環境変数noproxyは、sapnortheastamazonawscomssmapnortheastamazonawscomをPLAINTEXTで登録CodeBuildの環境変数httpproxy、httpsproxyは、パラメータストア参照で登録buildspecの中で、noproxyをパラメータストアから読み出し、環境変数に設定するbuildspecymlversionenvparameterstorepsnoproxynoproxyパラメータストアからnoproxyの値を読み出すphasesinstallcommandsunsetnoproxyこの時点のnoproxyは、sとssmがセットされているのでnoproxyをリセットexportnoproxypsnoproxyパラメータストアから読み出したnoproxyの値で設定echohttpproxyCodeBuildの環境変数にパラメータストア参照で設定しているためパラメータストアのhttpproxyの値がセットされているechohttpsproxy同上試したこと冒頭の記載の通り、以下のように全てのプロキシ設定をCodeBuildの環境変数でパラメータストアを参照するとうまく行きません以下のように、DOWNLOADSOURCEの箇所でエラーとなってしまいます。 |
2022-04-05 21:52:26 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
CloudFrontによる静的Webホスティング+署名付きURLの生成 |
https://qiita.com/t17_hr/items/12ee99a63565d5541b83
|
CloudFrontによる静的Webホスティング署名付きURLの生成はじめにLambdaでCloudFrontの署名付きURLを生成し、Sオブジェクトのキャッシングを実装。 |
2022-04-05 21:45:16 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
良いコードとは |
https://qiita.com/t-tokio/items/3d6186ce2e3fff74dfbd
|
良いコードとは結論他人が見てわかりやすく意味のわかるコードが一番良いコードだと思います具体的にどのようなことを意識すれば良いコードになるのか纏めてみたいと思います。 |
2022-04-05 21:54:31 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
EC2+RDSでrailsの環境構築 |
https://qiita.com/koyama_0122/items/7da5d05b5cd1474ec41b
|
ECRDSでrailsの環境構築はじめにEC上にrails環境を構築する手順を備忘録として残しておきます。 |
2022-04-05 21:45:20 |
海外TECH |
MakeUseOf |
How to Customize the New Tab Page in Microsoft Edge |
https://www.makeuseof.com/microsoft-edge-customize-new-tab-page/
|
customize |
2022-04-05 12:30:14 |
海外TECH |
DEV Community |
Best Dermatologist Boston |
https://dev.to/gragejhon/best-dermatologist-boston-41de
|
Best Dermatologist BostonPeople s judge one another it is not the right thing to do but still people do So the first impression is important with the help of the best dermatologist Boston take care of your skin Search for the top dermatology Boston with their profile and customer review There are a lot of skin problems that we have that may be a reflection of the internal health problem So please check the doctor instead of covering up with cosmetics |
2022-04-05 12:51:20 |
海外TECH |
DEV Community |
Protecting and Hiding your Bing Maps Key |
https://dev.to/cschotte/protecting-and-hiding-your-bing-maps-key-2pn6
|
Protecting and Hiding your Bing Maps Key IntroductionWhen using Bing Maps for Enterprise in your solution application you need a Basic Key limited free trial or an Enterprise key to use the services For example you would add a Bing Maps Key to the script URL loading the Bing Maps Web Control like this lt script src key your bing maps key gt lt script gt Now your key is open text on your site source code and people who look can find and use your key Search engines will index your page and as a result will also store your key Is this a problem Not really ProtectingThe Bing Maps key is mainly used to determine the usage and allow access to Bing Maps features To protect your Bing Maps key so it can t be misused on other websites there is an option in the Bing Maps Dev Center to protect your key This security option allows you to specify a list of referrers website URLs and IP numbers who can use your key When at least one referrer rule is active any requests that omit a referrer and any requests from non approved referrers will be blocked preventing others from using your key for requests You can have up to referrer and IP security rules per key Your key is now protected but is still visible in your website code So how do I hide my Bing Maps key A best practice is never to store any keys or certificates in source code HidingTo hide the Bing Maps key you create a simple API endpoint that will only return the Bing Maps key if the request comes from a trusted referral URL The Bing Maps Samples site is a good example that uses this approach In this example we are using an Anonymous HttpTrigger Azure Function written in C that returns the Bing Maps key public static class GetBingMapsKey private static readonly string allowd http localhost FunctionName GetBingMapsKey public static IActionResult Run HttpTrigger AuthorizationLevel Anonymous get Route null HttpRequest req string referer req Headers Referer if string IsNullOrEmpty referer return new UnauthorizedResult string result Array Find allowd site gt referer StartsWith site StringComparison OrdinalIgnoreCase if string IsNullOrEmpty result return new UnauthorizedResult Get your Bing Maps key from string key Environment GetEnvironmentVariable BING MAPS SUBSCRIPTION KEY return new OkObjectResult key The Bing Maps key is stored server side in this Azure Function Application settings field We are using the GetEnvironmentVariable to get the key Next we need to load the Bing Maps script and get the key from the API client side Finally we use the following code snippet to load Bing Maps dynamically lt script gt Dynamic load the Bing Maps Key and Script Get your own Bing Maps key at async gt let script document createElement script let bingKey await fetch then r gt r text then key gt return key script setAttribute src key bingKey document body appendChild script lt script gt The browser will run this code and create at runtime in the DOM the same line of lt script gt tag we have seen at the beginning of this blog post to load Bing Maps and the Key An additional advantage is that the Bing Maps key is not stored in the source code anymore and that you can use IaC and build pipelines to deploy the solution Note Only hiding the Bing Maps key alone is not enough as a security measure We recommend you still enable the security option in the Bing Maps Dev Center |
2022-04-05 12:48:20 |
海外TECH |
DEV Community |
Multiple Aspect Ratios and Resolutions in SpriteKit Games |
https://dev.to/johansteen/multiple-aspect-ratios-and-resolutions-in-spritekit-games-5951
|
Multiple Aspect Ratios and Resolutions in SpriteKit GamesBuilding a pixel based game that supports multiple resolutions and aspect ratios which also has to work consistently on any screen from a small iPhone to a K Apple TV is quite a challenge Especially when factoring in that the gameplay experience must remain equal and fair where no device gets an advantage because of a more favorable screen size while also ensuring that the game looks great on any screen I ve just faced this challenge for the shoot em up game I m developing in Swift using the SpriteKit framework Let s take a look at the problem and the solutions I ve come up with The ProblemAs it is a shmup with predetermined enemy behavior the gameplay must remain the same where the enemy waves always enter the screen at the same time and at the same position no matter what device the player is using which can range in aspect ratios from iPad to iPhone That s quite a span Apart from appearing at the same position and at the exact same time on each play through also consider things like velocity position size path node coordinates and so on that must remain identical between different resolutions Scaling and compensating all game coordinates and entity behavior attributes could be a potential nightmare to handle if not abstracting between the actual device resolution and the game world The OptionsOne simple solution would be to make the game in a predetermined size and scale it to use as much as it can on the device screen and have black bars around the game on devices where it does not fit As letterbox is not popular with Apple I suppose using the dead space for optional GUI elements instead of just black bars could be a potential solution in some cases But not great If actually wanting to always take full advantage of the device screen and have no real dead areas no matter what aspect ratio it gets a bit more tricky For this game I want the actual gameplay area to fill the entire screen on each device that can run the game while still remaining true to the initial requirement of a consistent gameplay experience So no form of basic letterbox is acceptable The next option would be to design the game for the widest possible screen and then let the camera pan as the player moves the craft on devices which can not fit the entire play area on screen When the player moves towards a screen edge the camera would pan along to reveal more That would not be that bad and we ve got rid of the letterbox In the case of a shmup and a device with a narrow screen this solution would potentially make the player miss spotting enemies if not keep patrolling left and right That s the deal breaker as that does fulfill the requirement to keep the gameplay consistent between devices For other game types this might be a good way to go The third option the one I decided to go with is to decide on a base size in points for the game I ll refer to this size as the game s logical size The game is scaled so the logical size always fits on the device screen this is the area where all gameplay takes place and provides consistent values to use for all movement and time calculations The background artwork will need to have additional margins that will be displayed on devices that have additional space outside the logical game size so the background keeps filling the screen and will look beautiful on every device No important action will happen out in the margin areas to keep the main gameplay experience consistent between devices A conclusion I made is that it is practically impossible to make the experience completely identical between different devices without using letterbox for a game of this type The third option get us close though close enough to an acceptable level of maintaining consistency while also still looking great on each device So the best option in many cases for these kind of games Let s examine the actual implementation in more detail Logical SizeI decided to use a logical size of x points which gives me a aspect ratio I found that to be a comfortable size that are somewhere in the middle not too far off from any screen of the devices the game will support To keep this aspect ratio and still fill the screen of any device I am creating the background artwork to have large enough margins to be able to expand outside the logical size and fill the entire screen on any device For iPhones up to the iPhone series is already a perfect fit Naturally the same goes for Apple TV which is the device I personally enjoy the most as a gaming device and tvOS will probably where I first release the game iPhone X and other newer phones are wider than so that s a case where additional margin on the background artwork is required This additional space will partly just be visual candy to make the background fill the entire screen There will be no important action happening out in the margins to guarantee that the actual gameplay remains the same between devices The HUD on the other hand will take advantage of the additional size which makes this solution differ quite a bit compared to just using some sort of letterbox The HUD will use the full size of the device and move controls like the thumbstick fire buttons and other labels out of the way from the game play area when a device screen allows for it Then we have the other side of the spectrum the iPad which is narrower than Most iPads are at a aspect ratio with some exceptions like the Pro which is slightly wider The iPad was the reason I at one time considered going with a logical size for the game so I only had to deal with adjusting the width That size did generate way too much dead space on wider devices and was too much of a compromise So eventually I ended up at a middle ground which I m happy with now For the iPad I use the margins to add additional height to squeeze down the logical gameplay area to fit within a section of the iPad s screen Initially I planned to grow it from the center and have top and bottom margins on the iPad By adding a margin on the top the iPad gets an increased line of sight compared to other devices That would give the player an advantage on the iPad by seeing the enemies earlier as most of them will come from the top I might have a few enemies coming from the side where the iPhone will see them earlier but that will be a more negligible advantage To solve that I decided to place the entire margin on the bottom of the screen instead to ensure that playing on the iPad doesn t let you spot the enemies earlier to keep the gameplay equal and fair between devices Getting some extra room at the bottom should add minimal extra advantage The extra height on the iPad is also used to move the touch controls partly out of the way from the active play area so the thumbstick and fire buttons is located in the margins when possible ImplementationThe implementation is not very complex I keep an enum with game configuration constants where I placed the definition for the logical size of the game which I can refer to whenever I need to do any calculation based on the size enum GameConfiguration enum Core static let gameWidth CGFloat static let gameHeight CGFloat When a scene is presented I get the actual device size from view frame size and use that together with logical size to calculate the factor needed to divide the device size with to get a size for the the scene that will fit the logical size perfectly in the view and add the margin in the correct direction when required to use a margin class GameManager func presentScene var factor view frame size height GameConfiguration Core gameHeight if view frame size width factor lt GameConfiguration Core gameWidth factor view frame size width GameConfiguration Core gameWidth let sceneSize CGSize width view frame size width factor height view frame size height factor let scene LevelScene size sceneSize scene scaleMode aspectFit view presentScene scene Safe AreasDuring level design and defining the enemy movements and their spawn and trigger positions I m working with a safe area where the important gameplay happens In the latest version of my Level Editor I ve added safe area overlays for different devices so I see that triggers and positions are within an area that will look great on any device and at the same time also lets me see that the background artwork fills out the screen properly This also lets me verify that the enemies doesn t abruptly enters or exits on devices with other ratios than I can add necessary adjustments during positioning of entities in levels to ensure that the level design will work great on any supported screen size Asset ResolutionsAs the game is scaled from a logical size I ve to take that into account when creating assets and design them at a resolution where they will remain crisp after the game scene has scaled from it s logical size to the actual resolution it will be displayed in While I work in a predetermined size of x points and might define the player s craft at a size of points the actual pixel resolution will vary considerably for different devices An asset of points will need to be in a pixel resolution of pixels on a K Apple TV to remain perfectly sharp and crisp The same point asset would only require pixels on an iPhone to be perfectly crisp To help me quickly calculate pixel sizes for assets I m using an old trusty spreadsheet I often forget how handy a spreadsheet can be when it comes to track different things during development So I created this document with Numbers where I can change the asset size in points and quickly see the perfect pixel size for each relevant device The highest resolution required is for the Apple TVk with the iPad Pro not far behind Every asset for the game will be made to hold up for the K resolution and then I m using a command line gulp script that scales them down to perfect sizes for other devices The script also handle the background artwork where it both crop tiles and resizes the tiles for different devices The script updates the asset catalog directly in Xcode when run Once I ve fine tuned the Asset Catalog Generator script more I ll probably open source it and put it on GitHub |
2022-04-05 12:46:15 |
海外TECH |
DEV Community |
How to download single github file |
https://dev.to/mark_homaa/how-to-download-single-github-file-3kdg
|
single |
2022-04-05 12:45:57 |
海外TECH |
DEV Community |
Integrating Django framework with Matomo web analytics platform |
https://dev.to/mikolajbuchwald/integrating-django-framework-with-matomo-web-analytics-platform-4hch
|
Integrating Django framework with Matomo web analytics platformRecently I wanted to integrate a web application we are working on with Matomo analytics functionalities Django web framework was used in this application on the backend side It turned out that there was a package for integrating Matomo with Django injecting JavaScript via Django s template mechanism However this package was from yo and it was written for piwik the former name of the Matomo So I decided to refresh the package and I created django matomo The module is available at pip with pip install django matomoPyPi website of the packageThe source code is available at the django matomo GitHub repositoryI contacted the Matomo Team and they agreed to update the official support for the integration for Django to django matomo It is now listed at their website There is also a post I created on Django forums if anyone have questions regarding the integration on the Django side Credits for the django piwik legacy package goes to its creator Raphael Jasjukaitis |
2022-04-05 12:42:33 |
海外TECH |
DEV Community |
¿Hacer una conversión rápida de sus archivos NSF a formato MSG? |
https://dev.to/terry_edwards_8e5c421ad89/hacer-una-conversion-rapida-de-sus-archivos-nsf-a-formato-msg-2lag
|
¿Hacer una conversión rápida de sus archivos NSF a formato MSG Los usuarios pueden hacer una conversión rápida de sus archivos NSF a formato MSG sin enfrentar ningún obstáculo utilizando esta herramienta DataVare Convertidor NSF a MSG Es una aplicación probada profesionalmente que un usuario puede usar Esta herramienta Convertidor NSF a MSG es una aplicación increíble que un usuario puede usar La aplicación sigue una conversión eficiente de los archivos NSF al formato MSG La herramienta proporciona un resultado bien calificado La herramienta no enfrenta ningún tipo de interrupción al convertir sus archivos NSF al formato MSG La herramienta realiza un proceso de conversión fluido Proporciona una plataforma segura para convertir sus archivos NSF de Lotus Notes a formato MSG La aplicación es una aplicación avanzada para ser utilizada por la herramienta Esta aplicación se puede utilizar en cualquier sistema operativo Windows La herramienta convierte directamente todos los archivos NSF de Lotus Notes al formato MSG Además la herramienta no enfrenta ningún tipo de pérdida o corrupción de datos durante toda la tarea de conversión La herramienta proporciona un resultado sin esfuerzo al convertir sus archivos NSF No es obligatorio que los usuarios instalen Lotus Notes para convertir los archivos NSF Además la herramienta admite cualquier versión de Lotus Notes Cualquier usuario novato puede convertir de manera confiable sus archivos NSF Cualquier usuario novato puede convertir sus archivos NSF sin enfrentar ningún obstáculo Los usuarios pueden obtener un resultado muy satisfecho cada vez y pueden obtener un resultado instantáneo con la aplicación Procedimiento para convertir los archivos NSFEl procedimiento para convertir sus archivos NSF al formato MSG se proporciona a continuación Paso instale la aplicación NSF to MSG Converter en su sistema operativo MACPaso Inicie la herramienta Paso Agregue los archivos NSF que desea convertirPaso Ahora obtenga una vista previa de todos los archivos NSF seleccionadosPaso Elija el formato en el que desea convertir sus archivos NSFPaso Finalice los pasos haciendo clic en el botón convertir ahora Estos pasos pueden ser realizados de forma fácil y fiable por cualquier usuario Los usuarios sin ningún obstáculo pueden realizar la conversión de los archivos fácilmente Atributos clave de la herramientaEstos son los atributos clave de esta increíble herramienta NSF to MSG Converter Estudiemos ahora esta herramienta conversión instantáneaTodos los archivos NSF se convierten instantáneamente al formato MSG mediante esta increíble aplicación En solo unos pocos pasos simples y sencillos esta herramienta convierte todos los archivos NSF Sin ningún tipo de daño la aplicación realiza su tarea de conversión AutodependienteEsta herramienta NSF to MSG Converter es una herramienta independiente para ser utilizada por cualquier usuario No es necesario que ningún usuario técnicamente capacitado lleve a cabo la conversión de los archivos NSF Es una herramienta autoexpresiva que un usuario puede utilizar mantener la estructuraLa jerarquía o la originalidad de los archivos se han mantenido como están durante toda la tarea de conversión Las metapropiedades de los archivos también permanecen intactas durante la conversión de los archivos NSF al formato MSG Todos los metadatos incluidos cc bcc de enviado fecha hora asunto hipervínculos fuente color imágenes en línea etc se han mantenido tal como están en la herramienta Los archivos se conservan mediante esta NSF en la herramienta MSG Converter Buena compatibilidadLa compatibilidad de la aplicación es increíble Los usuarios pueden utilizar la aplicación en cualquiera de los sistemas operativos de Windows La aplicación se puede utilizar desde versiones antiguas hasta nuevas de Windows Escanear y obtener una vista previaLa herramienta proporciona una opción de escaneo y vista previa Con el escaneo automático del archivo los usuarios pueden obtener un resultado saludable cada vez Esta increíble herramienta mantiene la precisión de los archivos Sin barrera de tamañoNo hay ningún tipo de restricción de tamaño que enfrenten los usuarios Esta increíble aplicación puede convertir archivos NSF de tamaño MB a GB Ultimas palabrasPrueba esta increíble aplicación para llevar a cabo la conversión de archivos NSF al formato MSG Es una aplicación flexible que un usuario puede utilizar La herramienta también proporciona una versión de demostración de la aplicación Esta versión de demostración estádisponible de forma gratuita para todos los usuarios Esta versión de demostración ayuda a los usuarios a convertir algunos de los archivos NSF Mientras que la versión con licencia de la aplicación ayuda a los usuarios a convertir cualquier cantidad de archivos NSF y también actualizaciones de por vida Más información |
2022-04-05 12:33:18 |
海外TECH |
DEV Community |
Level up your Heroku autoscaling in 15 minutes |
https://dev.to/eabraham/level-up-your-heroku-autoscaling-in-15-minutes-jd7
|
Level up your Heroku autoscaling in minutesOne of the most powerful features of Dynoscale s Heroku autoscaling is the ability to configure it to meet the needs of your app without needing to write complex code This tutorial will show you how to make advanced use of Dynoscale s Heroku autoscaling to meet the needs of your app s unique performance requirements It will also show you how to enable the highest levels of autoscaling for your app with just a few configuration steps This post covers advanced Heroku autoscaling topics that build upon a prior post covering the basics Tuning Web Request QueuingFor a great end user experience on your website lowering backend latency is crucial Amazon discovered ten years ago that every ms of latency cost them in sales Google discovered that adding seconds to the generation time of a search page reduced traffic by We can match the correct thresholds for your traffic to reduce queue time by spending a few minutes examining the Web Dyno Activity report Your users and customers will be able to load a page of your site faster if the queue time is reduced Navigate to the Web Dyno Activity report Dynoscale sets your web upscale and downscale thresholds to and milliseconds respectively by default These are useful settings but it s possible that your application has a unique traffic pattern in which case different thresholds would improve your autoscaling Take the case above the queue time was high from AM to AM however the auto upscale was not triggered This means that queries in the p category experienced roughly milliseconds of additional backend request time due to queue time In this case I recommend lowering the upscale threshold to ms and monitoring to see if auto scaling performance improves Keep in mind not to overfit your thresholds based on a specific scenario This frequently results in completely unanticipated behavior outside of the specific scenario Cost cutting during known periods of lower trafficImagine a scenario where your application provides a service for business users who mostly use it during weekdays On weekends your application receives significantly less traffic and you would like to run one web dyno instead of two during this period to cut costs Navigate to Web Dyno Auto Scaling Page and create a new rule In the new rule set the lower dyno bound to one and match the upper bound to the default rule s Set the Start At and End At to AM and PM respectively and the Day of Week to Weekend Click Save to commit the rule and downscale to one dyno on weekends Preparing for a period of planned higher trafficConsider a scenario in which your app s marketing team is about to launch a major campaign at a m the next day a Tuesday You need to increase the dyno ranges to four and eight for a twelve hour period to ensure the application can manage the increased traffic In advance of the campaign navigate to Web Dyno Auto Scaling Page and create a new rule In the new rule set the lower dyno bound to four and the upper bound to eight Next set the Day of Week to Tuesday and the Start At and End At to AM and PM respectively Click Save to create the new rule Once the campaign has run its course delete this new auto scaling rule Optimizing for cost savings over traffic demandWhen analyzing the Web Dyno Activity report it may become clear that small bursts of traffic are driving your application to auto scale up However the traffic drops off soon and you end up running extra dynos Reducing the upscale dyno increment and the downscale cooldown time would be beneficial The scale up increment is two and the downscale cool down is one hundred and twenty seconds in this situation Navigate to Web Dyno Auto Scaling Page and edit the active rule Reduce the upscale increment from two to one and the downscale cooldown to sixty seconds Click Save to commit the rule and cut costs Optimizing for traffic demand over cost savingsWhen checking the Web Dyno Activity report it may be obvious that heavy loads are driving your service to auto scale up but scaling up to meet demand can take a long time Users of your application will encounter increased queue time and a worse experience during this scaling up phase Increasing the upscale dyno increment and reducing the upscale cooldown time would be useful The scale up increment is two and the autoscale cool down is sixty seconds in this instance Navigate to Web Dyno Auto Scaling Page and edit the active rule Increase the upscale increment from two to four and decrease the upscale cooldown to thirty seconds Click Save to commit the rule and improve request queue time ConclusionThe flexibility to tailor Dynoscale s Heroku autoscaling to fit your app s needs without having to write sophisticated code is one of its most powerful features This tutorial showed you how to use Dynoscale s Heroku autoscaling in a more complex way to fulfill the performance requirements of your app It also demonstrated how to adjust just a few configuration settings to enable the maximum capabilities of autoscaling for your app |
2022-04-05 12:31:34 |
海外TECH |
DEV Community |
Figure out a Guide to Understand How to Delete Cash App Account |
https://dev.to/evakai68/figure-out-a-guide-to-understand-how-to-delete-cash-app-account-4mne
|
Figure out a Guide to Understand How to Delete Cash App AccountCould it be said that you are one of those Cash App clients why should looking stop utilizing the Cash App benefits and are looking for one more source to take care of your monetary necessities and prerequisites For that you need to initially bring the right data about How To Delete Cash App Account as rapidly as could really be expected |
2022-04-05 12:30:49 |
海外TECH |
DEV Community |
Code Smell 127 - Mutable Constants |
https://dev.to/mcsee/code-smell-127-mutable-constants-26dj
|
Code Smell Mutable ConstantsYou declare something a constant But you can mutate it TL DR Use inmutable constants ProblemsMutabilityThe Least Surprise Principle violationCoupling SolutionsEnforce mutabilityAvoid constants They are hard to mock in tests ContextWe learned to declare constants in our first course on computer programming As always it is not important if something is constant It is important if it does not mutate Sample Code Wrongconst DISCOUNT PLATINUM const DISCOUNT GOLD const DISCOUNT SILVER Since variables are constants we cannot reassign themconst DISCOUNT PLATINUM Error We can group themconst ALL CONSTANTS DISCOUNT PLATINUM GOLD SILVER const ALL CONSTANTS ErrorALL CONSTANTS DISCOUNT PLATINUM NOT AN ERROR WTF const ALL CONSTANTS Object freeze DISCOUNT PLATINUM GOLD SILVER const ALL CONSTANTS ErrorALL CONSTANTS DISCOUNT PLATINUM NOT AN ERROR WTF Rightexport const ALL CONSTANTS Object freeze DISCOUNT Object freeze PLATINUM GOLD SILVER const ALL CONSTANTS ErrorALL CONSTANTS DISCOUNT PLATINUM ERROR Code works but it is coupled and we cannot test itClass TaxesProvider applyPlatinum product Now we can couple to a interface the protocol of taxes provider Since class has no setters it is constant an immuatable And we can replace it on tests Detection X Semi Automatic We can perform mutation testing to find changed values TagsConstants ConclusionMutability is very important We need to enforce it with the right tools Relations Code Smell Mutable Const Arrays Maxi Contieri・Aug ・ min read javascript oop programming codenewbie Code Smell Variables Reuse Maxi Contieri・Dec ・ min read oop programming webdev tutorial Code Smell Constants and Magic Numbers Maxi Contieri・Oct ・ min read beginners codenewbie daysofcode codequality More InfoThe Evil Power of Mutants CreditsThis smell was inspired by ThisPhoto by Sangharsh Lohakare on UnsplashYou start digging in the code The more you dig the more stuff you turn up Eventually you dig yourself into a hole you can t get out of To avoid digging your own grave refactoring must be done systematically Eric Gamma Software Engineering Great Quotes Maxi Contieri・Dec ・ min read codenewbie programming quotes software This article is part of the CodeSmell Series How to Find the Stinky parts of your Code Maxi Contieri・May ・ min read codenewbie tutorial codequality beginners |
2022-04-05 12:25:59 |
海外TECH |
DEV Community |
Deciding on a Programming Language for Game Dev |
https://dev.to/gamedev/deciding-on-a-programming-language-13ba
|
Deciding on a Programming Language for Game DevOur first step in learning how to make games was to decide on which programming language to use I am an experienced software developer so I guided this decision This is Game Dev From Scratch and we want to learn about programming We don t want to use a game maker tool or a third party engine at least not in the beginning We would like our game to run in the browser so that people can discover and play it easily We have lofty goals so we want to use a high performance language Typically browser games are written in JavaScript I don t mind JavaScript and I use it for front end web development JavaScript has dynamic typing but I believe that static typing is advantageous for all but the smallest projects This stackoverflow page explains the difference JavaScript is not a slow language but it s not the quickest either TypeScript is JavaScript with static typing bolted on The transpiler is slow It was developed by Microsoft Call me a bigot but I don t like Microsoft and I don t like TypeScript I do much of my professional work in Python I really like the light weight syntax without all those pesky braces and semicolons Python is great for experiments and has been adopted by the scientific and artificial intelligence communities Although Python has some excellent and very fast libraries for mathematics scientific computing and AI the Python language itself is much slower than JavaScript and for that reason I don t think that it s ideal for game development Mainstream stand alone games are often written in C C has been described as an octopus made by nailing extra legs onto a dog When invited to reflect on whether he should have written git in C Linus Torvalds retorted that C is a horrible language It s made more horrible by the fact that a lot of substandard programmers use it to the point where it s much much easier to generate total and utter crap with it Quite frankly even if the choice of C were to do nothing but keep the C programmers out that in itself would be a huge reason to use C If C is a dog it s a good old dog The C programming language was created by Dennis Ritchie in the early s In my opinion just about every programming language that has come after C is largely inferior to C and none is wholly superior to it It is not so easy to get started with C compared to Python for example but I believe that I can make up for that with some helpful libraries and syntactic sugar Can we make a browser game written in C According to Mozilla s Game development page yes we can We can compile C or C to WebAssembly using a tool called emscripten and WebAssembly runs much faster than JavaScript in the browser As I understand the popular SDL library has been ported to work with emscripten Using SDL and OpenGL we can build a browser version of our game and native versions for the major platforms all from the same code base I have some prior experience with SDL and OpenGL In summary we considered several different programming languages for learning about game development and we decided to use C JavaScript good for web dynamic typing not the quickest TypeScript I don t like it Python beautiful syntax but it s too slow C Linus doesn t like it C is the worst programming language except for all the others that have been tried |
2022-04-05 12:24:21 |
海外TECH |
DEV Community |
Hello guys |
https://dev.to/othm4_n/hello-guys-55ln
|
developer |
2022-04-05 12:23:34 |
海外TECH |
DEV Community |
This is a test #2 |
https://dev.to/lemonfront/this-is-a-test-2-26gh
|
Detail Nothing |
2022-04-05 12:21:04 |
Apple |
AppleInsider - Frontpage News |
Mailchimp hack potentially leading to crypto wallet thefts |
https://appleinsider.com/articles/22/04/05/mailchimp-hack-potentially-leading-to-crypto-wallet-thefts?utm_medium=rss
|
Mailchimp hack potentially leading to crypto wallet theftsEmail marketing firm Mailchimp confirms that hackers used one of its own internal tools to access accounts of customers working in finance and cryptocurrency ーand a follow up attack could lead to crypto wallet draining In total some Mailchimp accounts were reportedly viewed and data from of them was downloaded Among the affected users was the Trezor cryptocurrency app which has since tweeted advice for its customers MailChimp have confirmed that their service has been compromised by an insider targeting crypto companies We have managed to take the phishing domain offline We are trying to determine how many email addresses have been affected ーTrezor Trezor April Read more |
2022-04-05 12:03:33 |
海外TECH |
Engadget |
GM and Honda announce plans to build 'affordable' EVs arriving in 2027 |
https://www.engadget.com/gm-and-honda-announce-plans-to-co-develop-e-vs-by-2027-122123142.html?src=rss
|
GM and Honda announce plans to build x affordable x EVs arriving in GM and Honda will co develop a series of affordable EVs using a global architecture and GM s Ultium battery technology the companies announced They promised to build vehicles in multiple product segments including the compact crossover category calling it a quot new chapter quot in their partnership That significantly expands on previous news that Honda would create two EVs using GM s battery technology quot GM and Honda will share our best technology design and manufacturing strategies to deliver affordable and desirable EVs on a global scale including our key markets in North America South America and China said GM CEO and chair Mary Barra nbsp The companies promised to share technology design and sourcing strategies while working toward quot standardizing equipment and processes to achieve world class quality higher throughput and greater affordability quot GM s press release states The companies will also discuss EV battery collaboration in an effort to drive down costs and improve performance and sustainability nbsp The Honda EEngadgetThe word quot affordable quot comes up a lot in the press release as both companies emphasized the idea of building cheaper EVs than are currently available quot Honda and GM will build on our successful technology collaboration to help achieve a dramatic expansion in the sales of electric vehicles quot said Honda president amp CEO Toshihiro Mibe nbsp The tie up makes a lot of sense particularly for Honda which has lagged way behind rivals in terms of EV development By joining forces with GM it can share development costs and contribute its considerable BEV and hybrid expertise The two automakers previously announced a collaboration in to produce autonomous vehicles with Honda taking a stake in GM s Cruise self driving division The companies also joined force on hydrogen fuel cells Honda recently showed that it can build EVs with the Honda E a cute and technologically advanced vehicle with limited battery range designed mostly for urban use More recently it unveiled a pair of vehicles it s developing with GM including the Prologue to be launched in early followed by Acura s first EV SUV GM meanwhile continues to develop its Ultium battery tech that uses pouch and prismatic style cells rather than cylindrical cells like Tesla The aim to use it in up to plus vehicles over the coming years with the first models arriving in GM affirmed that it would release quot a new all electric product for North America positioned at a price point lower than the upcoming Chevrolet Equinox EV building on the million units of EV capacity the company plans to install by the end of quot |
2022-04-05 12:21:23 |
海外TECH |
Engadget |
PayPal's credit card will offer up to three percent cashback |
https://www.engadget.com/paypal-cashback-mastercard-credit-card-more-cashback-120039521.html?src=rss
|
PayPal x s credit card will offer up to three percent cashbackPayPal has revealed its upgraded credit card which will now offer users more cashback depending on how they make their purchases As before users will still get unlimited two percent cashback on anything they buy wherever a Mastercard is accepted However if you check out with PayPal you ll get unlimited three percent cashback This goes for online mobile and in store with the PayPal QR Code payments The new PayPal Cashback Mastercard still has no annual fee and you ll now get cashback daily rather than having to wait for a monthly statement PayPal says it has redesigned the card s user interface on its app and the web It promises a more simplified way to access rewards and make payments Existing users will automatically get access to the upgraded card while newcomers will get a bonus of on their first spent The new PayPal Cashback Mastercard will be available soon though be sure to look at the fine print before applying Offering customers more cashback should help PayPal better compete with rival companies The Apple Card also has no annual fee It offers three percent cashback for Apple Store purchases two percent on Apple Pay purchases and one percent on other purchases |
2022-04-05 12:00:39 |
Cisco |
Cisco Blog |
How to Leverage Proactive Cybersecurity to Drive Growth in Today’s Hybrid World |
https://blogs.cisco.com/customerexperience/how-to-leverage-proactive-cybersecurity-to-drive-growth-in-todays-hybrid-world
|
How to Leverage Proactive Cybersecurity to Drive Growth in Today s Hybrid WorldA recent study showed that those who outperformed their peers by as much as million annually made cybersecurity the foundation of their growth strategy See what steps you can take today to proactively secure digital experiences of tomorrow |
2022-04-05 12:00:51 |
海外TECH |
CodeProject Latest Articles |
uSNMP - a small and portable 'C' SNMP library |
https://www.codeproject.com/Articles/5329002/uSNMP-a-small-and-portable-C-SNMP-library
|
nodemcu |
2022-04-05 12:17:00 |
ニュース |
@日本経済新聞 電子版 |
コーヒーを飲む習慣で痛風発症リスクを軽減。防衛医大などの研究グループが調べたところ、飲用習慣を持つ人が週1日飲む日を増やした場合、痛風発症リスクが25%程度軽減される可能性があるとわかりました。
https://t.co/Nbph4JRzDc |
https://twitter.com/nikkei/statuses/1511327872308363272
|
コーヒーを飲む習慣で痛風発症リスクを軽減。 |
2022-04-05 13:00:18 |
ニュース |
@日本経済新聞 電子版 |
Amazon、衛星打ち上げ ブルーオリジンなど3社と契約
https://t.co/3ChnV9OPOH |
https://twitter.com/nikkei/statuses/1511327107103670272
|
amazon |
2022-04-05 12:57:16 |
ニュース |
@日本経済新聞 電子版 |
輸入企業、難路のドル調達 消える「買う権利」
https://t.co/dTveYUl3Cv |
https://twitter.com/nikkei/statuses/1511325949144420358
|
難路 |
2022-04-05 12:52:40 |
ニュース |
@日本経済新聞 電子版 |
マンションで各戸の玄関に置き配 三井不動産、順次導入
https://t.co/Cy6VJdJ9gw |
https://twitter.com/nikkei/statuses/1511323919302619147
|
三井不動産 |
2022-04-05 12:44:36 |
ニュース |
@日本経済新聞 電子版 |
メタバース空間での作品取引や流通をNFTが支えています。ブロックチェーン技術を活用し、作品が唯一無二であると証明できるNFTの普及で、市井のクリエーターたちが脚光を浴び始めました。
https://t.co/QLpVdxuZPq |
https://twitter.com/nikkei/statuses/1511322778808602626
|
|
2022-04-05 12:40:04 |
ニュース |
@日本経済新聞 電子版 |
首相提唱の脱炭素「共同体」、日ASEANでCO2利活用
https://t.co/CZ9nWmPoZC |
https://twitter.com/nikkei/statuses/1511322060286398464
|
asean |
2022-04-05 12:37:12 |
ニュース |
@日本経済新聞 電子版 |
「秋田は脱炭素を支える県になっていくというプライドを地域で共有したい」。三菱商事などと企業連合を組み、洋上風力発電事業に地元から唯一参画するウェンティ・ジャパンの佐藤裕之社長が思いを語りました。
https://t.co/91xHWT7Wck |
https://twitter.com/nikkei/statuses/1511317770310406156
|
「秋田は脱炭素を支える県になっていくというプライドを地域で共有したい」。 |
2022-04-05 12:20:10 |
ニュース |
@日本経済新聞 電子版 |
宇宙飛行士に4127人応募 前回の4.3倍、過去最多
https://t.co/WyQP926B3V |
https://twitter.com/nikkei/statuses/1511315636709851136
|
過去最多 |
2022-04-05 12:11:41 |
ニュース |
@日本経済新聞 電子版 |
ワクチン3回目、現役世代に遅れ 対象の2割が未接種
https://t.co/8kzpuuoLAZ |
https://twitter.com/nikkei/statuses/1511314147044036608
|
現役 |
2022-04-05 12:05:46 |
ニュース |
BBC News - Home |
British father and son, 9, killed in Australian mountain landslide |
https://www.bbc.co.uk/news/world-australia-60991775?at_medium=RSS&at_campaign=KARANGA
|
critical |
2022-04-05 12:42:36 |
ニュース |
BBC News - Home |
British charity hunts for team to run Antarctica post office |
https://www.bbc.co.uk/news/uk-60994404?at_medium=RSS&at_campaign=KARANGA
|
general |
2022-04-05 12:46:13 |
ニュース |
BBC News - Home |
'Hero' Richard Woodcock sacrificed life to save boy in Milton Keynes |
https://www.bbc.co.uk/news/uk-england-beds-bucks-herts-60996074?at_medium=RSS&at_campaign=KARANGA
|
hears |
2022-04-05 12:38:59 |
ニュース |
BBC News - Home |
Energy: What do we know about the UK's new strategy? |
https://www.bbc.co.uk/news/uk-politics-60982346?at_medium=RSS&at_campaign=KARANGA
|
government |
2022-04-05 12:22:54 |
ニュース |
BBC News - Home |
Liverpool: Mohamed Salah wants to sign new deal - Egypt sports minister |
https://www.bbc.co.uk/sport/football/60997940?at_medium=RSS&at_campaign=KARANGA
|
ashraf |
2022-04-05 12:04:58 |
北海道 |
北海道新聞 |
日0―2ロ(5日) 日本ハム4連敗 |
https://www.hokkaido-np.co.jp/article/666010/
|
日本ハム |
2022-04-05 21:21:42 |
北海道 |
北海道新聞 |
広3―1巨(5日) 広島が連敗ストップ |
https://www.hokkaido-np.co.jp/article/666017/
|
適時 |
2022-04-05 21:20:00 |
北海道 |
北海道新聞 |
ヤマハ発動機がバッテリー回収 電動自転車用、発火の恐れ |
https://www.hokkaido-np.co.jp/article/666013/
|
電動自転車 |
2022-04-05 21:19:00 |
北海道 |
北海道新聞 |
「鬼滅の刃」が能狂言に 野村萬斎さん演出で上演 |
https://www.hokkaido-np.co.jp/article/665922/
|
人気漫画 |
2022-04-05 21:04:11 |
北海道 |
北海道新聞 |
音楽祭SORAON 6月開催 新十津川ふるさと公園 21年予定からコロナで延期 中島美嘉さんら10組出演 |
https://www.hokkaido-np.co.jp/article/666006/
|
soraon |
2022-04-05 21:13:00 |
北海道 |
北海道新聞 |
泉誠二さん死去 89歳 北電会長、道経連会長を歴任 |
https://www.hokkaido-np.co.jp/article/666000/
|
北海道電力 |
2022-04-05 21:07:32 |
北海道 |
北海道新聞 |
万博整備事業「自民に懇願を」 太田房江議員、維新が反発 |
https://www.hokkaido-np.co.jp/article/666002/
|
太田房江 |
2022-04-05 21:09:00 |
北海道 |
北海道新聞 |
5~11歳ワクチン接種率、道内6・8% 副反応懸念根強く「様子見」続く |
https://www.hokkaido-np.co.jp/article/665985/
|
新型コロナウイルス |
2022-04-05 21:09:05 |
北海道 |
北海道新聞 |
小樽看護 続く苦境 心優会が引き継ぎ 初年度の入学者は定員割れ |
https://www.hokkaido-np.co.jp/article/665999/
|
准看護師 |
2022-04-05 21:04:00 |
北海道 |
北海道新聞 |
鬼ケ島の「ぼろバス」窮地、高松 運輸局が異例の事業停止に |
https://www.hokkaido-np.co.jp/article/665998/
|
事業停止 |
2022-04-05 21:03:00 |
海外TECH |
reddit |
いしきひくいチョコ作った |
https://www.reddit.com/r/lowlevelaware/comments/twtdnc/いしきひくいチョコ作った/
|
wlevelawarelinkcomments |
2022-04-05 12:03:45 |
コメント
コメントを投稿