Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Postfixで587ポートから、マイネットワーク内から外部ドメインへのメール送信ができない原因 |
https://teratail.com/questions/337991?rss=all
|
できることは、LightsailにブラウザからSSH接続して、「自分自身への送信と受信」と「外部ドメインGoogleからの受信」の点です。 |
2021-05-13 05:23:35 |
海外TECH |
Ars Technica |
Amazon’s 2nd-gen Echo Show offers better cameras, CPUs, and speakers |
https://arstechnica.com/?p=1764517
|
digital |
2021-05-12 20:12:47 |
海外TECH |
DEV Community |
How to Fetch Data in React from a GraphQL API |
https://dev.to/reedbarger/how-to-fetch-data-in-react-from-a-graphql-api-2m5n
|
How to Fetch Data in React from a GraphQL APIHere is the simplest way to start working with a GraphQL API from your React app using the Fetch API No external libraries needed Ready for the next step Join The React BootcampThe React Bootcamp takes everything you should know about learning React and bundles it into one comprehensive package including videos cheatsheets plus special bonuses Gain the insider information hundreds of developers have already used to master React find their dream jobs and take control of their future Click here to be notified when it opens |
2021-05-12 20:42:53 |
海外TECH |
DEV Community |
Javascript local storage - beginner's guide |
https://dev.to/arikaturika/javascript-local-storage-beginner-s-guide-1gk1
|
Javascript local storage beginner x s guideBefore going into any kind of explanation we need to understand the difference between server side storage and client side storage when it comes to websites and applications Server side means that we store our data on a server using a database cleint side consists of JavaScript APIs that allow you to store data on the client in the browser WHAT IS LOCAL STORAGE In simple terms the local storage can be compared to a data base except it s found in a browser and not on a server It s basically a huge Javascript object inside which we are able to store data in the form of key value pairs Not only we can store data we can also delete or retrieve it a complete list of browsers which have a localStorage cant be found here The data you store in the localStorage never leaves you machine doesn t get sent back to the server unlike with cookies which will discuss in a future article and depending on the browser you can store up to MB of data In technical terms the localStorage read only property of the window interface allows you to access a Storage object for the Document s origin the stored data is saved across browser sessions WHY USE IT Local storage lets us cache some application data in the browser for later usage Therefore it is very useful if we want to speed applications up since the data is stored totally on the client it does not travel between the client and server on each request or response This way we can allow an user for example to continue a game where they left off or serve them relevant content based on their previous visit of our website I m mostly using it when I m building static websites Since I don t need any backend language or logic to store data in the browser my web pages can run independently of any web server There are two types of storages local and session but for now the only difference you should remember is that the local storage has no expiration date meaning that the data will stay in there until we remove it manually whereas the session one gets cleared once we close the browser session I will be using Chrome browser for this article but generally accessing the localStorage of any browser is pretty similar We open the console F navigate to the Application tab and in the menu on the left we ll see Local storage under the Storage tab Something like this If we expand the Local storage dropdown we ll get to this view We have two columns Key and Value and usually they re filled with data which I just removed before taking the screen shot The way we can access this storage object and populate the two columns is by making use of some specific methods Remember local storage is read only meaning we can add read and delete data from it but we can t modify it at most we can overwrite the previous value of a key by re adding to the storage using the same key and the new value we want to store For access we should use the following syntax window localStorage or localStorageIf we want to add something we can do it like this localStorage setItem key value To access a value we write this localStorage getItem key And lastly we can delete one specific value localStorage removeItem key Or we can clear the whole local storage localStorage clear Now let s try to actually write some code I will use my console for simplicity s sake Let s add an item window localStorage setItem city Toronto Now local storage looks like this One important thing to remember is that the localStorage can store only strings To store objects we must first convert them to strings using the JSON stringify method And we convert the strings back into objects after we retrieve them from the localStorage using the JSON parse Let s add some more values using different types of data as keys and values window localStorage setItem number const person name Alan age JSON stringify person returns name Alan age window localStorage setItem person name Alan age Now the local storage will look like this We can add as many key value pairs as we want as long as the data doesn t exceed MB Now let s retrieve the value of the person key convert it to an object and print it to the console const result windows localStorage getItem person console log result returns name Alan age const objectResult JSON parse result console log objectResult returns name Alan age Finally let s delete one item only followed by clearing the whole localStorage windows localStorage removeItem windows localStorage clear THINGS TO REMEMBER ABOUT THE LOCAL STORAGEit is tab specific meaning each browser tab we open will have different data in the localStoragesome browsers when used in incognito mode don t allow for setting data in the localStorageit is synchronous meaning each operation will execute one after the other this might work for small projects but it will impact the runtime of the more complex ones it can only store data string data this is fine for small projects but it can be cumbersome to serialize data in complex ones SUPER IMPORTANT THING TO REMEMBERLocal storage should under no circumstances be used to store sensitive information e g passwords or personal details since the data inside it can be accessed from anywhere on the page it has no real protection and it s susceptible to cross site scripting Image source ThisIsEngineering thisisengineering on Pexels |
2021-05-12 20:42:46 |
海外TECH |
DEV Community |
Announcing Tauri Beta - More efficient crossplatform apps with better features |
https://dev.to/tauri/announcing-tauri-beta-more-efficient-crossplatform-apps-with-better-features-1nbd
|
Announcing Tauri Beta More efficient crossplatform apps with better featuresHello fellow engineers project managers and technocrats Today after exactly two years of work we are proud to announce the Beta release of Tauri Github Repository Website So what Is Tauri Tauri enables you to make apps using the Webview technology stack that each operating system provides It empowers you to call into the app backend using a JS api which gives you opt in access to things like the filesystem All of this is done without needing to ship a localhost server and while maintaining a secure context for your application Tauri apps can have custom menus and tray type interfaces They can be updated securely and are managed by the user s operating system as expected Their ultimate binaries are very small because they not only use the system s webview they also do not need to ship a runtime like Node js since the final binary is compiled from Rust This makes Tauri apps quite small and performant and also turns the reversing of Tauri apps into a task that is neither trivial nor fun If you want to find out more we recommend checking out the intro on our website or diving into the architectural design document In short Tauri is a toolkit for creating smaller faster and more secure desktop apps with a web frontend Tauri s core system is written in stable Rust and currently uses that for the main process However you do not need to write Rust code to interact Nevertheless we plan on providing bindings to other languages after the full release We are finally happy enough with its shape and approach that we are marking its status as Beta This means that over the course of the next several months a few things are going to happen We will make sure it builds properly on all the platforms we want to support This includes the major Desktops and the Major Mobile operating systems We will employ a third party security consultancy to perform a horizontal security audit so that we can be confident that the core libraries are safe to use We will fix bugs that arise and work on reducing final bundle sizes as much as possible What s New So many things have changed that we can t fit the full list here Instead we ll just be summarising the biggest changes If you want the gory details visit our Release Notes However if you already started a Tauri project back in the Alpha days check out this migration page to get informed as to what you have to do to get back in the saddle WRY Webview Rendering librarY Tauri Alpha used bindings to webview webview a C library While these got the job done they were quite buggy on Windows and were lacking a lot of features we wanted We ve replaced these with WRY a new pure Rust Webview library we developed for Tauri WRY has proven to be much more stable on Windows and adds the following features to all platforms Custom window styles frameless transparent invisible always on topHeight and width constraintsDraggable regionsProgrammatic setting of size and size constraints window styles minimized maximized titleCustom app menusSystem tray support TAOFor the first part of its existence WRY depended on winit the amazing Windowing provider for many operating systems As time went on however we also need some advanced features like menubar and system tray which contradicted with their vision and thus we made the hard decision to fork winit and republish it under a different name TAO This means that the TAuri Organisation controls all first order dependencies Rust CLIWe ve moved almost every command to a new CLI written in Rust This means Node js is no longer required for developing Tauri apps although it is recommended for now unless you have problems with node js and compiling some of the libraries for imagemin We ll be moving the final commands over soon making the JS CLI a thing of the past Want to test it while we are still in beta cargo install tauri cli version beta cargo tauri versioncargo tauri beta cargo run SupportIt is now possible to run your Tauri application with cargo run instead of through the Tauri CLI This is possible through a new internal codegen crate that can generate everything required from your Tauri config file This still requires you to have a valid tauri conf json along with whatever assets inside your distDir already generated For the time being the codegen will not run your beforeBuildCommand or beforeDevCommand from the config New Web Content LoaderWe ve removed both the no server and embedded server modes and replaced them with a new custom protocol loader This combines the security of the no server mode with the stability of the embedded server and is more performant than both MultiwindowIt s finally here Thanks to WRY s improved interface we ve been able to add one of the most requested features to Tauri You can now create multiple windows either at launch through tauri conf json or programatically through Rust We ve used this in our new Splashscreen Guide which allows your app s web contents to load in the background while a splashscreen is displayed Improved Command HandlingWe ve added some macros that makes creating Rust commands as simple as writing a function Defining commands is no longer a multi file mess tauri command fn my custom command println I was invoked from JS fn main tauri Builder default No need to write a fancy handler either Just pass in a list of all your commands invoke handler tauri generate handler my custom command generate run tauri generate context expect error while running application Calling your commands is super easy as wellimport invoke from tauri apps api tauri invoke my custom command Tauri s command feature also supports passing arguments returning values and errors and running async functions UpdaterWe ve added a new updater feature allowing you to easily ship updates to your Tauri apps You can create a custom update notification and progress indicator or use the builtin update prompts Updates are signed on publish and verified before installing so users can be sure they aren t getting a malicious version of your app External AuditWe are working together with Doyensec to undertake a complete horizontal audit of the critical components of Tauri Tao amp Wry Doyensec has a long history of analysing Electron apps so they are extraordinarily qualified to investigate the issues surrounding desktop apps Once the audit is completed and we have resolved any and all concerns raised by the auditors we will have crossed the threshold to a stable ecosystem and the release will follow If you plan to use Tauri in production please consider making a donation to our Open Collective fundraising campaign to support this expensive endeavour Get Started With TauriIf you d like to get started making apps with Tauri check out our getting started guide Within a few minutes you ll have your first Tauri app up and running What Tauri does notTauri does not use Internet Explorer based Webviews so there is no outdated Internet Explorer code being shipped in your app Seriously stop spreading FUD Tauri does not ship Node js by default and actually you don t even need to have Node js installed on your machine to build Tauri apps You can in fact just use the Rust CLI and even build your entire frontend with a WASM based system like YEW Tauri does not run a devserver for your HTML CSS JS framework There are just too many of them and they change all the time so it is not worth the maintenance burden Tauri does not want you to build your assets using any kind of nodejs based SSR server because that doesn t make sense Tauri does not always have a problem when things don t work sometimes it is the framework or the human operator Tauri does not claim fitness for any purpose because it is open source software maintained by volunteers Who is TauriThe Tauri organisation aims to be a sustainable collective based on principles that guide sustainable free and open software communities To this end it is currently becoming a Programme within the Commons Conservancy and you can contribute financially via Open Collective What s Next We ve got a lot planned for Tauri like Arm Android iOS support a testing framework and binding to other languages for the main process See our roadmap for the full list If you d like to help add these features to Tauri or if you have any questions we d love for your to join our Discord Server at Let us know that you want to contribute and we ll find a good task for you and guide you along You can also help us out by donating to our Open Collective however if your company actually turns a profit using Tauri you should really consider the benefits of becoming a platinum sponsor And speaking of sponsoring how many open source projects do you sponsor We hear that Babel needs support Title Graphic Alve Larsson |
2021-05-12 20:26:41 |
海外TECH |
CodeProject Latest Articles |
Easy HttpClient testing with Goldlight.HttpClientTestSupport |
https://www.codeproject.com/Articles/5302033/Easy-HttpClient-testing-with-Goldlight-HttpClientT
|
goldlight |
2021-05-12 20:05:00 |
海外科学 |
NYT > Science |
Climate Change Is Making Big Problems Bigger |
https://www.nytimes.com/2021/05/12/climate/climate-change-EPA.html
|
health |
2021-05-12 20:42:15 |
海外科学 |
NYT > Science |
C.D.C. Advisers Endorse Pfizer Vaccine for Children Ages 12 to 15 |
https://www.nytimes.com/2021/05/12/health/coronavirus-vaccine-children.html
|
nationwide |
2021-05-12 20:06:48 |
ニュース |
@日本経済新聞 電子版 |
NYダウ急落、681ドル安 米長期金利が上昇
https://t.co/Kw8KvYzls4 |
https://twitter.com/nikkei/statuses/1392572776548945920
|
米長期金利 |
2021-05-12 20:09:57 |
ニュース |
@日本経済新聞 電子版 |
子のワクチン「すぐに」3割、米調査 親の懸念が課題に
https://t.co/RGuFfMCaGG |
https://twitter.com/nikkei/statuses/1392572265590452224
|
調査 |
2021-05-12 20:07:55 |
ニュース |
@日本経済新聞 電子版 |
GAFAの税負担、なぜ軽い? ビジュアル解説
https://t.co/VAhGgAA1Sg |
https://twitter.com/nikkei/statuses/1392572263325523968
|
税負担 |
2021-05-12 20:07:54 |
海外ニュース |
Japan Times latest articles |
Japan to ban foreign residents who traveled to India, Nepal and Pakistan |
https://www.japantimes.co.jp/news/2021/05/12/national/india-pakistan-nepal-japan-ban/
|
Japan to ban foreign residents who traveled to India Nepal and PakistanThe new rules which come amid an upsurge in the region in new variants of the coronavirus will allow Japanese nationals coming from those countries |
2021-05-13 06:42:02 |
海外ニュース |
Japan Times latest articles |
Late Japanese designer Kenzo’s private art collection auctioned |
https://www.japantimes.co.jp/culture/2021/05/12/arts/late-japanese-designer-kenzos-private-art-collection-auctioned/
|
auctioneda |
2021-05-13 05:30:11 |
ニュース |
BBC News - Home |
Israel-Gaza: Rockets pound Israel after militants killed |
https://www.bbc.co.uk/news/world-middle-east-57094737
|
strikes |
2021-05-12 20:42:19 |
ニュース |
BBC News - Home |
Blackpool lightning strike: Family tribute to Jordan Banks |
https://www.bbc.co.uk/news/uk-england-lancashire-57093289
|
brightest |
2021-05-12 20:29:54 |
ニュース |
BBC News - Home |
PM 'apologises for events in Ballymurphy' in 1971 |
https://www.bbc.co.uk/news/uk-northern-ireland-57093548
|
belfast |
2021-05-12 20:33:27 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
住友生命社長が業界の課題“営業職員の制度改革”から「イチ抜け」宣言した理由 - 保険の裏 営業の闇 |
https://diamond.jp/articles/-/270309
|
住友生命 |
2021-05-13 05:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
明治安田生命社長が明かす、「品格」を営業職員の評価に加えた真意 - 保険の裏 営業の闇 |
https://diamond.jp/articles/-/270308
|
意気込み |
2021-05-13 05:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
ANAがついに夏冬ボーナスゼロ提案!業績最悪でも「つぶれずにいる」理由 - ダイヤモンド 決算報 |
https://diamond.jp/articles/-/270802
|
全日本空輸 |
2021-05-13 05:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
生保レディー「給与・勤続年数・年齢構成」の赤裸々実態!日系生保9社アンケートで判明 - 保険の裏 営業の闇 |
https://diamond.jp/articles/-/270307
|
勤続年数 |
2021-05-13 05:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
小林化工と日医工の過度な「安定供給主義」、圧力の正体とは? - 医薬経済ONLINE |
https://diamond.jp/articles/-/270550
|
|
2021-05-13 05:05:00 |
ビジネス |
電通報 | 広告業界動向とマーケティングのコラム・ニュース |
全国12000人に聞く、日本の「個人」と「家族・コミュニティー」と「社会」の現在地 |
https://dentsu-ho.com/articles/7761
|
日本全国 |
2021-05-13 06:00:00 |
ビジネス |
電通報 | 広告業界動向とマーケティングのコラム・ニュース |
メンタルダウンの仕組みが見えてきた |
https://dentsu-ho.com/articles/7752
|
開催 |
2021-05-13 06:00:00 |
LifeHuck |
ライフハッカー[日本版] |
検索バーへの入力をショートカットできるChrome拡張機能【今日のライフハックツール】 |
https://www.lifehacker.jp/2021/05/234255lht-jumprope-ai.html
|
chrome |
2021-05-13 06:00:00 |
北海道 |
北海道新聞 |
中東情勢緊迫 報復の応酬、即時停止を |
https://www.hokkaido-np.co.jp/article/543138/
|
中東情勢 |
2021-05-13 05:05:00 |
ビジネス |
東洋経済オンライン |
ケインズ「一般理論」の「一般」に込められた真意 社会科学史上「最も影響力のある名著」の読み方 | 経済学 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/427830?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
一般理論 |
2021-05-13 05:40:00 |
ビジネス |
東洋経済オンライン |
「社内炭素価格」を取り入れる企業が増えるわけ 脱炭素の動きに対応、課題は投資判断への反映 | 素材・機械・重電 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/427590?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
投資判断 |
2021-05-13 05:30:00 |
コメント
コメントを投稿