IT |
ITmedia 総合記事一覧 |
[ITmedia News] X Blue(旧Twitter Blue)に「青いチェックマーク」を隠せる新機能追加 |
https://www.itmedia.co.jp/news/articles/2308/03/news085.html
|
itmedianewsxblue |
2023-08-03 06:31:00 |
Google |
カグア!Google Analytics 活用塾:事例や使い方 |
VT-4のスタンバイ時のゆらゆら点滅を消す方法(USBバスパワー) |
https://www.kagua.biz/marke/podcast/20230803a1.html
|
roland |
2023-08-02 21:00:20 |
AWS |
AWS News Blog |
New Seventh-Generation General Purpose Amazon EC2 Instances (M7i-Flex and M7i) |
https://aws.amazon.com/blogs/aws/new-seventh-generation-general-purpose-amazon-ec2-instances-m7i-flex-and-m7i/
|
New Seventh Generation General Purpose Amazon EC Instances Mi Flex and Mi Today we are launching Amazon Elastic Compute Cloud Amazon EC Mi Flex and Mi instances powered by custom th generation Intel Xeon Scalable processors available only on AWS that offer the best performance among comparable Intel processors in the cloud up to faster than Intel processors utilized by other cloud providers Mi Flex instances are … |
2023-08-02 21:13:08 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
NPMコマンド実践ガイド:パッケージを熟知し、プロジェクトを最新に保つ |
https://qiita.com/itinerant_programmer/items/658df1cdeacb2687a111
|
nodejs |
2023-08-03 06:56:19 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
「npm audit」でJavaScriptプロジェクトのセキュリティをチェックしよう! |
https://qiita.com/itinerant_programmer/items/153c68f3e50fdc5ac565
|
javascript |
2023-08-03 06:50:51 |
海外TECH |
Ars Technica |
Internet providers that won FCC grants try to escape broadband commitments |
https://arstechnica.com/?p=1958448
|
member |
2023-08-02 21:18:16 |
海外TECH |
MakeUseOf |
12 Fun AI Tools You Should Check Out |
https://www.makeuseof.com/fun-ai-tools/
|
development |
2023-08-02 21:15:24 |
海外TECH |
MakeUseOf |
The Best Cooling Accessories and Gadgets for the Steam Deck |
https://www.makeuseof.com/cooling-accessories-steam-deck/
|
The Best Cooling Accessories and Gadgets for the Steam DeckThe Steam Deck runs hot if you play high performance games over a long time Pick out any of these accessories to lower its temp and keep it cool |
2023-08-02 21:01:26 |
海外TECH |
MakeUseOf |
5 Tech-Driven Ways to Boost Mental Health With Exercise |
https://www.makeuseof.com/exercise-mental-health-tech/
|
exerciseexercise |
2023-08-02 21:01:25 |
海外TECH |
DEV Community |
#DEVDiscuss: API Designing |
https://dev.to/devteam/devdiscuss-api-designing-4c1e
|
DEVDiscuss API DesigningTime for DEVDiscuss ーright here on DEV Building Resilient Systems with Idempotent APIs Karishma Shukla・Jul webdev python api javascript Inspired by karishmashukla s Top post tonight s topic is API Designing Effective API design is essential for creating user friendly efficient and maintainable software systems Idempotency is just one aspect so what elements of API design are most crucial to you and your team Questions How do you handle versioning effectively When it comes to error handling in APIs what practices have you found most effective How important is idempotency in your line of work Any triumphs fails or other stories you d like to share on this topic |
2023-08-02 21:52:13 |
海外TECH |
DEV Community |
Build DOCKER multi-platform image using buildx REMOTE builder NODE |
https://dev.to/aboozar/build-docker-multi-platform-image-using-buildx-remote-builder-node-5631
|
Build DOCKER multi platform image using buildx REMOTE builder NODEIf you re trying to create a multi platform docker image on your Apple M Pro you may encounter some issues with emulation How to get around this issue is explained in this post ProblemI have the new Apple M Pro MacBook fancy smancy laptop workhorse The M Pro aarch processor is very fast and very friendly on the battery but there are also some not so small issues associated with working on a new chip architecture I ve tried to create a few multi platform docker images with buildx and some are just not correctly emulated on the M The parallelism of buildx was also an issue but the emulation gave me the most trouble SolutionUse buildx remote nodes to build on native architecture What do you needMore than one docker enabled device in your network like Virtual Machine ServerNasRaspberry Pilaptop PCssh access to these devicesIn my case I have a CX VM on HETZNER that is amd x based and my own M Pro that is arm aarch based HOW Step InstallationBuildx buildkit is since the newer versions of Docker a built in function You can check it s availability with the following command ❯docker buildx versiongithub com docker buildx v bdffbebedddccaaa Step Setup ssh for your docker worker nodeThe remote host where we also want to run Docker needs to be configured with a password less ssh connections This post will not explain how to do that as there are many articles explaining how to set up a public private key access to a device if you already have the keys you can copy them to your target device like so ssh copy id USERNAME TARGET VM HOSTIn order to run a command with the user environment available you need to make sure your sshd service allows it When running a command through ssh you will have a limited environment and that needs to be adjusted In order to have a correct environment where docker is known you need to set the PermitUserEnvironment no property to PermitUserEnvironment yes in the etc ssh sshd conf file on your VM When this is adjusted you need to restart the sshd service On my CX VM with Ubuntu server I used this command It might be different for your device sudo systemctl restart sshdNow you have to set the environment for ssh login to your VM through the terminal ssh USER HERE TARGET VM HOST cd sshcreate a file called environment with the following value in itPATH usr bin bin usr sbin sbin usr local binthe last usr local bin is where the docker command lives So now it will be available Check if you can run docker with the command below from local machine laptop It should work docker H ssh USERNAME HERE TARGET VM HOST infoDo not forget to change the values in the command to appropriate values for your situation Step Create a buildx local nodeLet s first create the local platform In my case that is the Apple M Pro node It should build all the arm aarch targets docker buildx create name local remote builder node local remote builder platform linux arm linux riscv linux ppcle linux sx linux mipsle linux mips linux arm v linux arm v linux arm v driver opt env BUILDKIT STEP LOG MAX SIZE driver opt env BUILDKIT STEP LOG MAX SPEED I ve played a bit with the settings but this seems to work best for me I will update as needed or if I find settings that work even better Now we have a local config for a builder called local remote builder You can check if you have it by running docker buildx ls command NAME NODE DRIVER ENDPOINT STATUS PLATFORMSlocal remote builder docker container local remote builder unix var run docker sock running linux arm linux riscv linux ppcle linux sx linux mipsle linux mips linux arm v linux arm v linux amd linux amd v linux Step Create a target buildx remote nodeIn my case this will be the amd x builder node The platforms corresponding to that architecture should be send there We have already configured the ssh access and the environment and tested that docker can access it Now we need to add it to the buildx targetdocker buildx create name local remote builder append node intelarch platform linux amd linux ssh USERNAME TARGET VM HOST driver opt env BUILDKIT STEP LOG MAX SIZE driver opt env BUILDKIT STEP LOG MAX SPEED Do not forget to change the values in the command to appropriate values for your situation This command will append the remote node to the local remote builder and call the node intelarch You can check it again by running docker buildx ls command again NAME NODE DRIVER ENDPOINT STATUS BUILDKIT PLATFORMSlocal remote builder docker container local remote builder orbstack running v linux arm linux riscv linux ppcle linux sx linux mipsle linux mips linux arm v linux arm v linux amd linux amd v linux intelarch ssh aboozar running v linux amd linux linux amd v linux amd v Step buildx use and bootstrapIn order to start using this builder setup we need to tell buildx to start using it and we need to bootstrap it docker buildx use local remote builderdocker buildx inspect bootstrapoutput intelarch internal booting buildkit starting container buildx buildkit intelarch localremote builder internal booting buildkit pulling image moby buildkit buildx stable s done creating container buildx buildkit local remote builder s done DONE s intelarch internal booting buildkit starting container buildx buildkit intelarch s done DONE sName localremote builderDriver docker containerNodes Name local remote builderEndpoint unix var run docker sockStatus runningPlatforms linux arm linux riscv linux ppcle linux sx linux mipsle linux mips linux arm v linux arm v linux amd linux amd v linux Name intelarchEndpoint ssh aboozar Status runningPlatforms linux amd linux linux amd v Step build a multi platform imageThe command below will build for amd and arm but will direct the amd build to the remote node and the arm build will be done on the local machine docker buildx build platform linux amd linux arm v push t name target tag This will result in something like this on the docker hub ConclusionThe most obvious issue in this setup is that I can only build for multiple platforms when within my own network That is not necessarily true if you used a remote ssh accessible host or IP I did not do that and that limits me to these builds when I have my remote node available in the network For now that is not a real issue for me It solved my concurrency problem I had one build where I had to start the server in order to configure it during the docker build Buildx does this in parallel and that gave me a port conflict as one was a bit faster but not ready when the other also tried to start That was a problem when I tried to build all on only my local node When I added the remote node this problem went away as the port was used on a completely different machine Overall I am currently content with this solution |
2023-08-02 21:37:43 |
海外TECH |
DEV Community |
How to simply expose an endpoint with API Key in Laravel |
https://dev.to/tonyjoe/how-to-simply-expose-an-endpoint-with-api-key-in-laravel-3i1i
|
How to simply expose an endpoint with API Key in LaravelWe all need sooner or later to expose an endpoint quickly and with the greatest possible security Laravel provides advanced methods to manage authentication whether username password or API token But here we are talking about an agile method that we can use in a project where for example we do not intend to use users or use Laravel Sanctum First the basics What is an API Key An API Key is a key or token to be used for authenticating one or more server to server calls In other words it is a secret key and therefore must never be exposed in the frontend code such as that of a SPA StepsCreate a keyCreate a middleware that checks the API KeyCreate an example route and controllerTest with PostmanCreate a test class Create a key Add a variable in the env file env APP FAST API KEY paste here a generated api keyThe key must be in the env file because we don t want to keep it in repository SMALL TIP to generate a key on the fly Launch php artisan tinker and then simply Str random Then add an array key that refer the variable in the env file config app phpreturn fast api key gt env APP FAST API KEY SMALL TIP In case remember to launch php artisan cache config Create a middleware that checks the API Key php artisan make middleware VerifyFastApiKey app Http Middleware VerifyFastApiKey phpclass VerifyFastApiKey public function handle Request request Closure next Response apiKey config app fast api key apiKeyIsValid empty apiKey amp amp request gt header x api key apiKey abort if apiKeyIsValid Access denied return next request Create an alias for this middleware app Http Kernel phpclass Kernel extends HttpKernel protected middlewareAliases with fast api key gt App Http Middleware VerifyFastApiKey class Create an example route and controller Add some routes in routes api php with the newly created with fast api key middleware routes api phpRoute group prefix gt v middleware gt with fast api key function Route post just an example SomethingController class justAnExample Create an example controller php artisan make controller SomethingController app Http Controllers SomethingController phpnamespace App Http Controllers class SomethingController extends Controller public function justAnExample return msg gt It works Test with Postman First call the endpoint just an example without an API Key set in Headers and check if it fails as expected Finally call the endpoint just an example with the correct API Key set in the Header X API Key and check if it works as expected Create a test class Make test class php artisan make test FastApiKeyTestAdd some test methods tests Feature FastApiKeyTest phpclass FastApiKeyTest extends TestCase public function test fail without api key void response this gt postJson api v just an example response gt assertStatus public function test fail with wrong api key void response this gt postJson api v just an example X API Key gt a wrong key response gt assertStatus public function test success with corrent api key void response this gt postJson api v just an example X API Key gt config app fast api key response gt assertStatus Finally launch the tests php artisan testEnjoy your coding |
2023-08-02 21:20:22 |
Apple |
AppleInsider - Frontpage News |
Belkin launches new 2-in-1 wireless charging pad with MagSafe |
https://appleinsider.com/articles/23/08/02/belkin-launches-new-2-in-1-wireless-charging-pad-with-magsafe?utm_medium=rss
|
Belkin launches new in wireless charging pad with MagSafeBelkin has introduced a new in MagSafe compatible charger that s great for the desk and travel Belkin s new in wireless charging pad with MagSafeEarlier in Belkin launched another product under its BoostCharge Pro banner a power bank that also features a built in wireless charger for the Apple Watch or AirPods Pro nd Generation Now the company is back with a slightly different design for a in charger that keeps things completely wireless for your iPhone this time around Read more |
2023-08-02 21:16:29 |
海外TECH |
Engadget |
Microsoft’s AI-infused sidebar rolls out to Windows 11 beta testers |
https://www.engadget.com/microsofts-ai-infused-sidebar-rolls-out-to-windows-11-beta-testers-211546573.html?src=rss
|
Microsoft s AI infused sidebar rolls out to Windows beta testersMicrosoft is rolling out Windows Copilot in preview today Windows Insiders in the Beta Channel can install a preview build that offers the first semi public availability for the AI infused sidebar announced at Build “This first preview focuses on our integrated UI experience with additional functionality coming down the road in future previews the company wrote in a blog post today Windows Copilot is a system level version of the browser based Copilot the company began previewing in February Microsoft views the tool ーalso coming to Microsoft Office and Teams ーas representing a monumental shift in how customers interact with Microsoft software “AI is going to be the single largest driver of innovation for Windows in the years to come Panos Panay Microsoft Executive Vice President and Chief Product Officer told Engadget s Devindra Hardawar in an interview at Build “It s going to change the way you work change your interaction models to make it easier It s going to understand so much about what you need Microsoft says the preview s “controlled feature rollout will hold back some of Copilot s full functionality for future builds The company also cautions that new Windows Insiders joining the Beta Channel today won t be able to install this update It says even some established Windows Insiders may not see the build immediately but it will “increase the rollout in the coming weeks The rollout follows Microsoft s release of a Copilot Preview in late June for developers running preview builds MicrosoftOnce you have the correct preview installed Build or higher you can activate Windows Copilot by clicking the corresponding button on the taskbar a blue ribbon ring with a yellow “PRE badge or typing the shortcut Win C “Windows Copilot will appear as a side bar docked to the right where it won t overlap with your desktop content and will run unobstructed alongside your open app windows allowing you to interact with Windows Copilot anytime you need the company wrote Microsoft listed some examples of queries Copilot can handle in this early stage For example you can ask it to perform basic Windows tasks like “Change to dark mode or “Turn on do not disturb In addition it can summarize active websites in the Edge browser compose stories and generate AI art The company says an ellipses button at the top right of the Copilot sidebar lets you submit feedback This article originally appeared on Engadget at |
2023-08-02 21:15:46 |
ニュース |
BBC News - Home |
Canada PM Justin Trudeau and wife Sophie separate |
https://www.bbc.co.uk/news/world-us-canada-66389069?at_medium=RSS&at_campaign=KARANGA
|
conversations |
2023-08-02 21:38:38 |
ニュース |
BBC News - Home |
Brazil police raids leave at least 45 people dead |
https://www.bbc.co.uk/news/world-latin-america-66387599?at_medium=RSS&at_campaign=KARANGA
|
gangs |
2023-08-02 21:25:24 |
ニュース |
BBC News - Home |
Etsy U-turn in row over withholding sellers' money |
https://www.bbc.co.uk/news/business-66387147?at_medium=RSS&at_campaign=KARANGA
|
marketplace |
2023-08-02 21:31:59 |
ニュース |
BBC News - Home |
Niger: First UK nationals safely out of the country, foreign minister says |
https://www.bbc.co.uk/news/uk-politics-66384101?at_medium=RSS&at_campaign=KARANGA
|
foreign |
2023-08-02 21:45:54 |
ニュース |
BBC News - Home |
The Hundred 2023: Sunil Narine's heroics inspire Oval Invincibles to victory over London Spirit |
https://www.bbc.co.uk/sport/cricket/66388263?at_medium=RSS&at_campaign=KARANGA
|
The Hundred Sunil Narine x s heroics inspire Oval Invincibles to victory over London SpiritSunil Narine whacked off five balls at the death to give Oval Invincibles a three wicket victory over London Spirit at Lord s |
2023-08-02 21:15:10 |
コメント
コメントを投稿