IT |
気になる、記になる… |
Googleの折りたたみ式スマホ「Pixel Fold」のベンチマークデータ?? − 本物であれば「Tensor G2」チップを搭載 |
https://taisy0.com/2022/12/05/165752.html
|
pixelfol |
2022-12-05 13:44:05 |
IT |
気になる、記になる… |
Twelve Southのアルミニウム製PCスタンド「Curve Riser」に新色マットホワイト登場 |
https://taisy0.com/2022/12/05/165748.html
|
apple |
2022-12-05 13:32:41 |
AWS |
AWS Government, Education, and Nonprofits Blog |
Booz Allen speeds migration and reduces costs for a US government agency with the AWS Migration Acceleration Program (MAP) |
https://aws.amazon.com/blogs/publicsector/booz-allen-us-government-agency-aws-migration-acceleration-program/
|
Booz Allen speeds migration and reduces costs for a US government agency with the AWS Migration Acceleration Program MAP Moving sensitive US government data to the cloud requires the meticulous application of a proven migration methodology skilled resources a robust platform and a mature logistics model A US government agency elected to move its Security and Information Event Management SIEM system from a virtualized on premise environment to the AWS Cloud AWS Partner Booz Allen performed the migration and used the AWS Migration Acceleration Program MAP and AWS Snow Family of devices as mechanisms to help the customer save time reduce costs and increase their agility to develop new features for their constituents |
2022-12-05 13:52:47 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
input type="file"でSJISのファイルをアップロードしてFileReaderで取得する時は文字コードに気をつけよう |
https://qiita.com/_neko/items/3927416eafec43f366be
|
adphpmethodpostgtltinputt |
2022-12-05 22:39:22 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
配列要素をループ処理(JavaScript) |
https://qiita.com/kkdd/items/91efba595bb537c28022
|
forconstvofarrconsolelogv |
2022-12-05 22:34:46 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
Re:JavaScriptから始める3D生活 |
https://qiita.com/kouta_vr/items/2665cf60d6a618fd3b4a
|
adventcalendar |
2022-12-05 22:15:54 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS認定SysOpsアドミニストレーター アソシエイト(SOA-C02)合格したので勉強方法メモ |
https://qiita.com/TAKA_INFRA/items/3e1e253ad7f450082543
|
sysops |
2022-12-05 22:21:56 |
golang |
Goタグが付けられた新着投稿 - Qiita |
安西先生...!! .........書籍管理アプリを作りたいです...... |
https://qiita.com/Keyl0ve/items/c705b9296fc042a931b4
|
graphql |
2022-12-05 22:31:13 |
Azure |
Azureタグが付けられた新着投稿 - Qiita |
Azure P2S VPNの証明書認証の仕組みと運用について |
https://qiita.com/hidekko/items/55fe96e6b1d6adcd1730
|
awsclientvpn |
2022-12-05 22:36:14 |
技術ブログ |
Mercari Engineering Blog |
組織内コミュニケーションにはどのようなものがあるのか分類してみた |
https://engineering.mercari.com/blog/entry/type_of_internal_communication/
|
internalenhellip |
2022-12-05 13:02:14 |
技術ブログ |
Developers.IO |
Amazon Omicsを使ってみた(Omics Storage編) #reinvent |
https://dev.classmethod.jp/articles/just-try-amazon-omics-storage/
|
omicsst |
2022-12-05 13:22:40 |
技術ブログ |
Developers.IO |
[レポート] D-1 企業内のPMを盛り上げよう! ~LINEがPMの活躍環境づくりのために取り組んでいること~ – プロダクトマネージャーカンファレンス2022 #pmconf2022 |
https://dev.classmethod.jp/articles/report-pmconf2022-d1/
|
pmconf |
2022-12-05 13:21:20 |
技術ブログ |
Developers.IO |
AWS認定資格を取得してAWS Certification Appreciation Receptionに行こう! #reinvent2022 |
https://dev.classmethod.jp/articles/aws-certification-appreciation-reception-reinvent2022/
|
awscertificati |
2022-12-05 13:09:26 |
海外TECH |
MakeUseOf |
6 Websites to Make Christmas Planning Easy for Stress-Free Holidays |
https://www.makeuseof.com/tag/websites-make-christmas-planning-stress-free/
|
happy |
2022-12-05 13:01:14 |
海外TECH |
DEV Community |
Scaling Your Compute Resources on Salesforce |
https://dev.to/salesforcedevs/scaling-your-compute-resources-on-salesforce-59jh
|
Scaling Your Compute Resources on SalesforceThe Salesforce development platform offers many powerful features to provide your team with apps that can unlock new workflows For many years the platform has run on a trifecta of technologies Visualforce to view the data Apex to handle the data and Salesforce itself to store the data Apex is like many other object oriented languages and it has a Java like syntax However Apex runs directly on Salesforce servers allowing developers to build and deploy an app without worrying about where to host it or how to secure their data The challenge of Apex and long running commandsApplications built on Salesforce run on its multitenant architecture so server resources like CPU and memory are shared among different organizations With shared resources however wouldn t it be possible for the code for one org s app to consume so much processor time and memory space that it affects other users in that same org An example of this could be a command that takes several minutes to complete Salesforce prevents situations like this from occurring by restricting how apps on its platform run If any app has the potential to interfere with other users it is restricted from completing its command execution Long running programs can potentially interrupt other work by hogging the limited resources available If so how might Salesforce developers build apps that execute long running commands which can scale with user growth while not impacting performance Salesforce Functions to the rescueEnter Salesforce Functions which are small programs written in JavaScript TypeScript or Java and deployed onto Salesforce s servers Functions can perform the resource intensive work and be invoked directly from Apex When the Salesforce Function completes the request it can send its results back to the originating Apex application which then performs any additional tasks on those results Salesforce Functions run in their own container and don t affect other tenants on the Salesforce platform The memory and CPU limits are much higher allowing you to execute longer running and more complex tasks Because Salesforce Functions run on the Salesforce platform security is baked in there s no risk of privacy loss as everything runs within the same trust boundary In this article we ll take a closer look at how to migrate a long running Apex operation into a Salesforce Function along with some general tips around the Salesforce DX suite PrerequisitesThis article will require you to have some understanding of both Apex and TypeScript but don t worry if you re not an expert We ll go through every piece of code to explain what is happening Although the completed version of our code is available as a GitHub repository you may also want to download some of the CLI tools which Salesforce provides to follow along or for your own future projects First install the sfdx CLI which is a tool that helps simplify common operations for Salesforce developers when building applications It s important that whatever you build and deploy doesn t affect your “real production Salesforce organization So create a separate scratch org that this app can interact with To get your own scratch org sign up for a free Developer Edition account To use Salesforce Functions you ll need to register for a Salesforce Functions trial by contacting your Salesforce account executive Finally you can also install the Salesforce VS Code extension to make deploying your code a little bit easier This step is optional Touring the existing codeOpen up the file at force app main default classes Dogshow cls and take a look at its contents public class Dogshow public static void updateAccounts Get the oldest accounts Account accounts SELECT Id Description FROM Account ORDER BY CreatedDate ASC LIMIT Set HTTP request HttpRequest req new HttpRequest req setEndpoint req setMethod GET Create a new HTTP object to send the request object Http http new Http HTTPResponse res http send req String body res getBody Map lt String String gt m Map lt String String gt JSON deserialize jsonStr Map lt String String gt class String dogUrl m get message loop through accounts and update the Description field for Account acct oldAccounts acct Description And their favorite dog can be found at dogUrl save the change you made update accounts These lines perform a fairly simple function It grabs the five oldest Salesforce accounts using SOQL It issues an HTTP request to which is a site that returns a JSON object with a random URL link to a very cute dog The Apex code then updates the description for those five accounts to indicate that that dog is their favorite This code is fairly innocuous but it introduces two situations that present some real problems When issuing an HTTP request several factors can affect your program For example the server you issue requests to could be overloaded and slow to respond While your own code may be performant you re at the mercy of anything outside of your control such as an external data source Although we only iterate on five accounts here what if we built an app that needed to iterate over or Looping through them one by one would be a slow albeit unavoidable process This is an opportunity for a Salesforce Function to take over some of this work Our Apex class can provide a list of accounts to update to a Salesforce Function That Salesforce Function can then issue HTTP requests and update the accounts Before seeing what that full migration might look like let s first write that Salesforce Function Developing the Salesforce FunctionUsing the sfdx CLI we can easily create a new Salesforce Function in TypeScript using a single command sf generate function n dogshowfunction l typescriptThis creates a set of files under functions dogshowfunction The most important of these is index ts which is where our main Salesforce Function code will reside However the other files are also important dealing with testing and linting code as well as defining TypeScript generation and the Salesforce deployment process Let s focus on index ts In this file you ll note that there s one function exported and it takes three parameters event This describes the payload of data that is coming in from your Apex code context This contains the authorization logic necessary to communicate with Salesforce logger This is a simple logger that also integrates with Salesforce The template code which the CLI generates shows how powerful Salesforce Functions are They can accept any JSON data sent over from Apex They can work directly with Salesforce data They integrate directly with the platform in such a way as to handle all the authentication and security for you Best of all since this particular function runs on Node js you can install and use any NPM package to supplement your code Let s do that right now by installing node fetch to issue our HTTP request npm i node fetchOur Salesforce Function will be responsible for issuing our HTTP requests and updating our five accounts To implement that functionality our function might look something like this export default async function execute event InvocationEvent lt any gt context Context logger Logger Promise lt RecordQueryResult gt const accounts event data accounts accounts forEach async account gt const response await fetch const data await response json const message And their favorite dog is data message const recordForUpdate type Account fields id account id Description account Description message context org dataApi updateRecord recordForUpdate Let s break down what s going on in the code snippet above Our event argument is essentially a JSON object which we will define in our Apex code Although this JSON object doesn t exist yet we can assume that it will have the id and Description of the account we want to update based on the behavior of our previous Apex code From here it s important to note that the context argument is essentially an instantiation of the Node js SDK for Salesforce Functions Since we can assume that this account data is provided as an array we can simply iterate through each item plugging in the record data as part of our update command Migrate the Apex CodeWith our Salesforce Function defined we can now replace the previous Apex logic with a call to this new function Issuing a call to a Salesforce Function is surprisingly simple We only need to know the name of our function and provide the data we want to send it as shown below public class Dogshow public static void updateAccounts Get the oldest accounts Account accounts SELECT Id Description FROM Account ORDER BY CreatedDate ASC LIMIT Set up the function functions Function dogshowFunction functions Function get ApexToSalesforceFunctionsMigration dogshowfunction Create a list to hold the record data List lt Map lt String String gt gt jsonObj new List lt Map lt String String gt gt for Account account accounts Map lt String Object gt obj new Map lt String Object gt obj put id account Id obj put Description account Description Add an object to the record list jsonObj add obj Send the record list to the function functions FunctionInvocation invocation dogshowFunction invoke JSON Serialize jsonObj if the function had a return value it would be available here invocation getResponse Just like that we ve taken the long running operation out of our Apex code and offloaded it to a Salesforce Function Now we can be certain that our operation will continue to run even though it uses resources more heavily The implications of Salesforce Functions cannot be overstated With Salesforce Functions handling our need for time consuming resource heavy operations apps built on the Salesforce platform now have much more potential for scaling up seamlessly ConclusionSalesforce Functions provide a way to improve workflows while building effective and durable projects Without the memory and CPU limits you would experience in Apex you can leverage Salesforce Functions for the execution of long running commands bringing scalability without a negative impact on performance We ve only begun to discuss the amazing capabilities provided by Salesforce Functions To learn more about them Salesforce Functions provides plenty of guides detailing specific tasks along with various Trailhead recipes that are worth looking into |
2022-12-05 13:43:21 |
海外TECH |
DEV Community |
Yet Another Newsletter LOL: Solid! |
https://dev.to/nickytonline/yet-another-newsletter-lol-solid-34m2
|
Yet Another Newsletter LOL Solid I started a newsletter last year and decided this week to start posting it here as well I started a newsletter Nick Taylor・Jun ・ min read news webdev Here s the elevator pitch of the newsletterYes it s yet another newsletter folks I post stuff in Slack for work and other communities I m a part of so instead of losing all those links to the “Slack hole they ll be comprised in this newsletter too Another week another newsletter Let s get to it Around the WebSolid Start is in beta and my friend Anthony has a great writeup on it Check out a first look at solidstart ajcwebdev・Nov ・ min read solidjs solidstart vite netlify All the Jamstack Conf videos are up I was working virtually for the conference as a moderator online and can say there were so many great talks Check em out Node js x runtime now available in AWS Lambda This means we ll have native fetch in Node for serverless now without any experimental flags An interesting read from an ex Twitter employee Lessons learned how I d rebuild a social web app like Twitter todayFun StuffIt would take a human forever to complete a piece all white puzzle Someone was up for the challenge but not by doing it themself They programmed a robot to do it An interesting video at the intersection of fun and computer science Words of Wisdom for the WeekThis week s words of wisdom are for content creators of any kind Theo ping gg tdotgg If you make content that you would watch you will succeed PM Dec Shameless PlugsThe stream with my friend Bekah bekahhw is up on YouTube She talked me through the Deepgram browser extension I fixed a bug in the extension and we started the beginnings of a new feature that someone could take over based on my proof of concept If you liked this newsletter you can subscribe or if RSS is your jam you can also subscribe via RSS |
2022-12-05 13:09:09 |
海外TECH |
DEV Community |
Simulate a Mouse Click Using JavaScript |
https://dev.to/mavensingh/simulate-a-mouse-click-using-javascript-549b
|
Simulate a Mouse Click Using JavaScriptNowdays simulating process is common between programmers to avoid doing tasks on their owns and it obvious why do they do it by own when they can simulate that process which will work for them whenever they want program once and use for lifetime You can also simulate the process using JavaScript In this article we ll look at how we can simulate a mouse click with JavaScript So question arises that how can we simulate it with JavaScript so basically we are going to use MouseEvent constructor of JavaScript if you don t know what MouseEvent does you ll see that in action in this article MouseEventThe MouseEventinterface represents events that occur due to the user interacting with a pointing device such as a mouse Common events using this interface include click dblclick mouseup mousedown Learn more about MouseEvent MouseEvent constructor supports multiple browser compatibility so you can use this for any browser you want MouseEvent Constructor in ActionLets trigger a mouse click event by using the MouseEvent constructor Below is the code document body addEventListener click gt name prompt Enter you name console log name const simulate new MouseEvent click view window bubbles true cancelable true clientX document body dispatchEvent simulate Let s break the code line by line for better understanding what is happening here We added a click event on document body with the addEventListener method and inside our callback function we re calling prompt function and then printing the the name variable Then we called MouseEvent function and passed first argument as click as first argument to set the type of mouse event The nd argument we passed is an object that sets the some properties to make mouse event work viewis set to windowso that we can trigger the click event on an element within window bubbles is set to trueto make it propagate from child parent clientX is the x coordinate of the mouse click on the document Then we are calling document body dispatchEvent to trigger the click event on the body element Now when dispatch is run we will see a prompt appears in window and asks for your name and when you feed your name in prompt and hit enter you ll see your name appear name console My Personal Blogging Website Programming Geeks ClubMy Facebook Page Programming Geeks ClubMy Telegram Channel Programming Geeks Club My Twitter Account Kuldeep Singh |
2022-12-05 13:08:51 |
Apple |
AppleInsider - Frontpage News |
New AirPods Pro extend Apple's wireless earbud market dominance |
https://appleinsider.com/articles/22/12/05/new-airpods-pro-extend-apples-wireless-earbud-market-dominance?utm_medium=rss
|
New AirPods Pro extend Apple x s wireless earbud market dominanceApple s launch of the second generation AirPods Pro helped extend its lead in the True Wireless Stereo market in the third quarter according to new market research data Second generation AirPods ProApple s AirPods lineup has dominated the TWS market for quite a while and for the third quarter of it continued to do so With the introduction of its updated AirPods Pro in September that lead has extended even further Read more |
2022-12-05 13:32:02 |
海外TECH |
CodeProject Latest Articles |
How to Build a Feature Flags Service in a Few Minutes |
https://www.codeproject.com/Tips/5348829/How-to-Build-a-Feature-Flags-Service-in-a-Few-Minu
|
projects |
2022-12-05 13:50:00 |
海外TECH |
CodeProject Latest Articles |
A Sonos Speaker System Remote for the TTGO T-Display v1 |
https://www.codeproject.com/Articles/5348831/A-Sonos-Speaker-System-Remote-for-the-TTGO-T-Displ
|
sonos |
2022-12-05 13:37:00 |
ニュース |
BBC News - Home |
Raheem Sterling: No threat of violence in England star's break-in - police |
https://www.bbc.co.uk/news/uk-england-surrey-63858882?at_medium=RSS&at_campaign=KARANGA
|
oxshott |
2022-12-05 13:39:23 |
ニュース |
BBC News - Home |
Prince Harry says 'it's a dirty game' in new Netflix trailer |
https://www.bbc.co.uk/news/uk-63861642?at_medium=RSS&at_campaign=KARANGA
|
dirty |
2022-12-05 13:56:09 |
ニュース |
BBC News - Home |
UK weather: Met Office warns of below freezing temperatures |
https://www.bbc.co.uk/news/uk-63857912?at_medium=RSS&at_campaign=KARANGA
|
temperatures |
2022-12-05 13:26:38 |
ニュース |
BBC News - Home |
Child aged 12 dies of invasive strep A in London |
https://www.bbc.co.uk/news/health-63860028?at_medium=RSS&at_campaign=KARANGA
|
child |
2022-12-05 13:04:31 |
ニュース |
BBC News - Home |
Labour promise biggest ever transfer of powers |
https://www.bbc.co.uk/news/uk-politics-63851922?at_medium=RSS&at_campaign=KARANGA
|
starmer |
2022-12-05 13:05:18 |
ニュース |
BBC News - Home |
Explosions hit two military airfields in Russia - reports |
https://www.bbc.co.uk/news/world-europe-63857451?at_medium=RSS&at_campaign=KARANGA
|
airfields |
2022-12-05 13:14:42 |
ニュース |
BBC News - Home |
Who is going on strike and what are their pay claims? |
https://www.bbc.co.uk/news/business-62134314?at_medium=RSS&at_campaign=KARANGA
|
disruption |
2022-12-05 13:37:50 |
ニュース |
BBC News - Home |
Cristiano Ronaldo: Saudi Arabian club Al-Nassr make offer for Portugal forward |
https://www.bbc.co.uk/sport/football/63862054?at_medium=RSS&at_campaign=KARANGA
|
world |
2022-12-05 13:33:03 |
ニュース |
BBC News - Home |
'A feeling only sport can give you' - Stokes |
https://www.bbc.co.uk/sport/cricket/63856470?at_medium=RSS&at_campaign=KARANGA
|
group |
2022-12-05 13:23:00 |
仮想通貨 |
BITPRESS(ビットプレス) |
[日経] パフィン、ウクライナ企業と提携 開発費用7割削減 |
https://bitpress.jp/count2/3_9_13480
|
開発 |
2022-12-05 22:54:21 |
コメント
コメントを投稿