投稿時間:2022-01-26 00:42:42 RSSフィード2022-01-26 00:00 分まとめ(46件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… Apple、「iPhone 13 Pro/13 Pro Max」のマクロ写真が対象のフォトコンテスト「Shot on iPhoneチャレンジ」を開催 https://taisy0.com/2022/01/25/151170.html iphone 2022-01-25 14:28:56
python Pythonタグが付けられた新着投稿 - Qiita 【合格】Pythonエンジニア認定データ分析試験の勉強方法 https://qiita.com/n-k-j/items/8df610c27eb57a79869b PRIMESTUDYを先に全部消化していたら、もう少し点数伸びていたかも試験結果合格点合格基準は点Pythonデータ分析試験の合格証Pythonデータ分析試験の試験結果レポート週間前にPythonエンジニア基礎試験に合格していたので、基礎はOKだろうと思い臨んだところ、Python文法基礎のカテゴリを全部落としました。 2022-01-25 23:09:21
Ruby Rubyタグが付けられた新着投稿 - Qiita 多重代入についてまとめてみました https://qiita.com/IshidaKeisuke/items/20f52bb948843ce9a184 2022-01-25 23:03:34
Linux Ubuntuタグが付けられた新着投稿 - Qiita Ubuntu Server 20.04.3 LTS 構築#2 初期設定2 https://qiita.com/art22/items/7f3598d8ff626e7a277a 実際にGUIで表示出来るように設定する。 2022-01-25 23:13:59
AWS AWSタグが付けられた新着投稿 - Qiita 【AWS】アーキテクチャ・サービスの活用まとめ https://qiita.com/hello112334/items/c1340a8aba9ad243748c 【AWS】アーキテクチャ・サービスの活用まとめインデックス料金と構築の検討事例設計書・報告書関連セミナー・カンファレンス関連その他料金と構築の検討クラウド構成と料金試算例一覧アマゾンウェブサービスAWSは、開発環境としてはもちろん、ウェブサイト・ウェブアプリケーションからファイルサーバー、社内業務アプリケーション、動画配信、IoT、AI機械学習までにいたるまで、数多くの用途で活用されています。 2022-01-25 23:35:41
Docker dockerタグが付けられた新着投稿 - Qiita UnauthorizedエラーでDockerのイメージがpullできない・docker loginコマンドでログインできない https://qiita.com/haruna-nagayoshi/items/98be456c5f9db94976b5 気になって調べたけど、リンクをクリックしたときにアプリケーションが起動して特定のコンテンツに遷移する仕組みのことをディープリンクというらしい。 2022-01-25 23:45:08
Docker dockerタグが付けられた新着投稿 - Qiita DockerからLaravel環境構築メモ 〜PHP8.0 Apache2 MySQL8.0.20〜 https://qiita.com/kitajii/items/40ce2202f6623ad58dcf DockerからLaravel環境構築メモPHPApacheMySQL構築する環境PHPApatchMySQLLaravalDockerディレクトリ構造プロジェクトフォルダ┣ーdocker┃┣ーMySQL┃┃┗ーDockerfile┃┗php┃┣ーdefaultconf┃┣ーDockerfile┃┗ーphpini┗ーdockercomposeymlDockerfiledefaultconfDockerfilephpinidockercomposeymlのつのファイルを作っていきます。 2022-01-25 23:19:56
Linux CentOSタグが付けられた新着投稿 - Qiita MIRACLE LINUX 8.4 を Azure でセットアップする https://qiita.com/rkamei-github/items/06d5ae3f700818d0c686 次のサイズの選択ですが、イメージ発行者の推奨がどれも選べない場合は、すべてのサイズを表示を選択して、妥当なものを選択します。 2022-01-25 23:29:54
Azure Azureタグが付けられた新着投稿 - Qiita MIRACLE LINUX 8.4 を Azure でセットアップする https://qiita.com/rkamei-github/items/06d5ae3f700818d0c686 次のサイズの選択ですが、イメージ発行者の推奨がどれも選べない場合は、すべてのサイズを表示を選択して、妥当なものを選択します。 2022-01-25 23:29:54
Ruby Railsタグが付けられた新着投稿 - Qiita 多重代入についてまとめてみました https://qiita.com/IshidaKeisuke/items/20f52bb948843ce9a184 2022-01-25 23:03:34
技術ブログ Developers.IO AWSの一時クレデンシャルが期限切れなら再認証させるシェルスクリプト(zsh) https://dev.classmethod.jp/articles/shell-script-zsh-to-re-authenticate-when-aws-temporary-credentials-have-expired/ awscli 2022-01-25 14:56:24
海外TECH Ars Technica Testing Intel’s 12th-gen Alder Lake laptop CPUs: Many cores make light work https://arstechnica.com/?p=1827859 improvements 2022-01-25 14:00:43
海外TECH MakeUseOf How to Consume APIs in React Using Fetch and Axios https://www.makeuseof.com/how-to-consume-apis-in-react-using-fetch-and-axios/ axioswant 2022-01-25 14:45:22
海外TECH MakeUseOf Proof of Stake vs. Delegated Proof of Stake: What's the Difference? https://www.makeuseof.com/proof-of-stake-vs-delegated-proof-of-stake/ Proof of Stake vs Delegated Proof of Stake What x s the Difference Proof of Stake and Delegated Proof of Stake are consensus mechanisms employed by various blockchain platforms Here s how they both differ 2022-01-25 14:30:12
海外TECH MakeUseOf 7 Ways Your Children Might Bypass Parental Control Software https://www.makeuseof.com/tag/7-ways-children-might-bypass-parental-control-software/ control 2022-01-25 14:15:12
海外TECH MakeUseOf Everything You Need to Know About HDMI Alt Mode and USB Type-C https://www.makeuseof.com/tag/everything-need-know-hdmi-alt-mode-usb-type-c/ Everything You Need to Know About HDMI Alt Mode and USB Type CThe new HDMI Alt Mode standard will allow phones and tablets to stream directly to monitors and TVs using USB C to HDMI cables Here s all you need to know about it 2022-01-25 14:05:12
海外TECH MakeUseOf MYX II Review: This Peloton Alternative Keeps Us Coming Back for More https://www.makeuseof.com/myx-ii-review-peloton-alternative/ MYX II Review This Peloton Alternative Keeps Us Coming Back for MoreThe MYX II Plus spin bike brings the heat to the table To feel the burn on the daily without the hassle of a gym we recommend giving it a spin 2022-01-25 14:05:12
海外TECH MakeUseOf 8 Smart Gadgets for Your Next Camping Trip https://www.makeuseof.com/camping-trip-smart-gadgets/ useful 2022-01-25 14:01:56
海外TECH MakeUseOf The 7 Best 4K Projectors https://www.makeuseof.com/best-4k-projectors/ cinema 2022-01-25 14:01:55
海外TECH DEV Community How to Generate QR Code in Laravel 8 https://dev.to/sureshramani/how-to-generate-qr-code-in-laravel-8-2dhj How to Generate QR Code in Laravel QR codes are sometimes needed for product identity inventory and others Then how to generate a QRcode it s easy we can use Simple QRcode to create QRcode in laravel framework Nowadays we all know how much use the QR code QR code is simply an encrypted image of some content that is not readable It needs to use some of the QR code readers In this article we will both learn how to create or generate a QRcode so that when we scan the code it can be directed to SMS email website or just to find out what data is behind the QR code In this article we will start from scratch by starting with creating a new laravel project This guide will take you through all the necessary steps which will tell you how to generate various QR codes in the Laravel application using the simple QR code package A simple QR code generator gives you the freedom to generate different types of QR Codes in the Laravel app It gives a simple QrCode wrapper which is easy to integrate into laravel How to Generate QR Code in Laravel Create Laravel ProjectAdd Database DetailsInstall QR Code PackageRegister QR Code ServiceCreate ControllerAdd RouteGenerate QR Codes in Blade ViewRun Laravel App Create Laravel ProjectFirst open Terminal and run the following command to create a fresh Laravel project composer create project prefer dist laravel laravel qr code exampleor if you have installed the Laravel Installer as a global composer dependency laravel new qr code example Add Database DetailsAfter Installation Go to the project root directory open the env file and set database detail as follow DB CONNECTION mysql DB HOST DB PORT DB DATABASE lt DATABASE NAME gt DB USERNAME lt DATABASE USERNAME gt DB PASSWORD lt DATABASE PASSWORD gt Install QR Code PackageGet into the command prompt type the given command and begin installing the simplesoftwareio simple qrcode package it profoundly helps create various kinds of QR codes in the laravel app composer require simplesoftwareio simple qrcode Register QR Code ServiceYou have to register the QR code services into the config app php file so open the file and update the providers and alias array with the given below services lt php return providers gt SimpleSoftwareIO QrCode QrCodeServiceProvider class aliases gt QrCode gt SimpleSoftwareIO QrCode Facades QrCode class Create ControllerIn laravel all the business logic goes into the controller file and we need a controller to create one by using the given command php artisan make controller QrCodeControllerNext Open QrCodeController php and add the following code into the file lt phpnamespace App Http Controllers use Illuminate Http Request class QrCodeController extends Controller public function index return view qrcode Add RouteNow open the web php file and add the following routes into it which is located inside the routes directory lt phpuse Illuminate Support Facades Route use App Http Controllers QrCodeController Web Routes Route get qrcode QrCodeController class index Generate QR Codes in Blade ViewWe will show you how to use the view file and generate simple and colored QR Codes in laravel Now you are ready to set up a blade view file hence creating the blade view file within the views folder after that add the provided code in the resources views qrcode blade php file lt DOCTYPE html gt lt html gt lt head gt lt meta charset utf gt lt title gt How to Generate QR Code in Laravel lt title gt lt meta name csrf token content csrf token gt lt link href dist css bootstrap min css rel stylesheet gt lt head gt lt body gt lt div class container mt gt lt div class card gt lt div class card header gt lt h gt Simple QR Code lt h gt lt div gt lt div class card body gt QrCode size gt generate lt div gt lt div gt lt div class card gt lt div class card header gt lt h gt Color QR Code lt h gt lt div gt lt div class card body gt QrCode size gt backgroundColor gt generate lt div gt lt div gt lt div gt lt body gt lt html gt Run Laravel AppEventually use the PHP artisan command to start the laravel server also use the given URL to view the app php artisan serve 2022-01-25 14:18:52
海外TECH DEV Community Self-hosted fonts with Next.js and Material UI https://dev.to/elisabethleonhardt/self-hosted-fonts-with-nextjs-and-material-ui-b3k Self hosted fonts with Next js and Material UIA few days back I needed to import some woff files into my Next js project and pass them to Material UI It took me a while to figure out how to do it so here is a quick step by step tutorial for everyone who needs it and my forgetful future self Get a fresh next js project up and runningYou know the drill Run npx create next app fonts cd into the new directory and run npm run dev to see the Next js starter in your browser window on localhost Install Material UIOnce you have your project open install Material UI with npm install mui material emotion react emotion styled see the installation docs for any questions you might have regarding the installation or if some time has passed since this tutorial was published Locate your font filesFind the public folder inside the root of your project directory You can put your fonts directly inside this folder although I recommend creating a subfolder called fonts especially if your project has the potential to grow a bit I took a snapshot of my folder structure here For now my fonts have their folder and everything else is just dumped inside the public folder since I don t have many static files for now Use your font inside CSSNow you have to give your CSS access to your font which you do by using the font face rule This is an instruction for your CSS to get the font from where you point it to similar to the src attribute of an img tag The source can be inside the project or you can instruct the code to download the source from a CDN Google Fonts being one of the more popular ones If you actually wanted to do that here are the instructions The font face rule should be put inside a global CSS file I put mine into the global css Next js had already created for me you can find it inside styles gt global css font face font family GothamMedium src url fonts GothamRnd Medium woff format woff font display swap You declare the name you will use for your font in my case GothamMedium the source URL and the format Be aware that the source URL is the relative path inside the public folder so you shouldn t specify public or something like that in the source and then be confused like me because the code didn t find the font The font display swap instruction is there to improve the performance of the page It will tell the browser to render text right away with a system font and later repaint the content as soon as the custom font is loaded If you did everything right you already should be able to use your font Render hello world in a paragraph tag to see your loaded font in action Use your font inside MUIAs the last step go inside the app js file and declare a theme and a ThemeProvider Let s first declare an empty theme and look at the difference between the font used by the paragraph tag vs the font used by the Typography component import styles globals css import createTheme ThemeProvider from mui material styles import Typography from mui material export let theme createTheme function MyApp Component return lt ThemeProvider theme theme gt lt Typography gt Hello world from typography component lt Typography gt lt p gt Hello world from paragraph tag lt p gt lt Component pageProps gt lt ThemeProvider gt export default MyApp So the font is already working but Material UI has to pick it up yet This can be done by simply declaring the font inside Material UI s theme object Just use the same name for the font you used earlier in the CSS export let theme createTheme typography fontFamily GothamMedium sans serif Taking a look at the browser we can now see that Material UI is already using the loaded font because both Hello worlds is that the Hello wold plural look the same That s it I hope it helped and saved you some time Have a great week 2022-01-25 14:15:22
海外TECH DEV Community Deploying to GitHub Pages using GitHub Actions https://dev.to/jamesives/deploying-to-github-pages-using-github-actions-1nkd Deploying to GitHub Pages using GitHub ActionsLike many developers in this day and age I rely on a service provided by GitHub called GitHub Pages to deploy my side projects experiments and blog It is free has custom domain support and overall works really well for static sites The only downside is that deploying a page can sometimes be a hassle depending on the code structure In this article I ll talk about using GitHub Actions to simplify this process I have also recorded a video if that s more your speed In order to better illustrate lets take a basic Angular application and observe its package json file Here we have scripts for starting the application locally and another for compilingthe production ready build When the build script is finished it pushes the contents into a subfolder called build which is what we use on our web server scripts build ng build start ng start test ng test When maintaining a project like this on GitHub you d usually push your source code to the main branch ignoring any build artifacts If you re leveraging GitHub Pages you d typically have the compiled version of your application sitting on another branch such as docs or gh pages which is what GitHub Pages would use to serve your application to the masses Where this becomes tricky is when you need to actually commit that compiled code For every change you make to your source code you need to manually commit the compiled code which adds another step to the process increasing the chance that you may forget to do it Additionally what if you don t have access to your computer and want to make a quick update on your phone or tablet but you can t re build your application Enter the GitHub Pages Deploy ActionThe best thing to do in my opinion is to automate this process using GitHub Actions GitHub Actions is a CI CD tool that allows you to trigger a workflow on any event that GitHub Supports It s very similar to things like CircleCI and Jenkins except it has really great support for this sort of task in the form of community created actions To get started simply create a yml file in the github workflows directory for this we ll call it deploy yml The following boilerplate will run a job called Build and Deploy whenever a commit is pushed to the main branch Once the workflow runs it will use git to checkout the current branch so we can start processing our build name Build and Deployon push branches mainjobs build and deploy runs on ubuntu latest concurrency ci github ref steps name Checkout ️ uses actions checkout vNext up we ll need to add a step to compile our production ready build For this we can add two new steps one which configures our Node version to ensure it matches our application followed by another that runs the necessary commands with npm Depending on how your application is built you may need to add another step between these to install any sort of required environments such as Python or Java name Build and Deployon push branches mainjobs build and deploy runs on ubuntu latest concurrency ci github ref steps name Checkout ️ uses actions checkout v uses actions setup node v with node version name Install and Build run npm ci npm run buildLastly we need to add a step which will make the deployment for us For this we can leverage the github pages deploy action action made by yours truly In this step you ll need to configure the name of the folder where your compiled code gets pushed into and then the branch you d like to push that compiled code to You can change the branch that GitHub Pages uses by going to your repository settings name Build and Deployon push branches mainjobs build and deploy runs on ubuntu latest concurrency ci github ref steps name Checkout ️ uses actions checkout v name Install and Build This example project is built using npm and outputs the result to the build folder Replace with the commands required to build your project or remove this step entirely if your site is pre built run npm ci npm run build name Deploy uses JamesIves github pages deploy action v with branch gh pages The branch the action should deploy to folder build The folder the action should deploy Depending on your needs you can configure the deployment step in multiple different ways If you need to deploy to a different repository you can do that by leveraging the repository name field you can even specify a target folder if you want your production build to deploy to a specific folder within a branch Take a look at the documentation for more details name Deploy uses JamesIves github pages deploy action v with branch gh pages folder build repositorty name JamesIves lab target folder publicOnce the workflow has been pushed to your project you ll be able to see the workflow runs by selecting the Actions tab within the GitHub interface If everything looks good and there s no errors everything will be green and your application will be deployed Keeping it UpdatedLike any sort of third party dependency it s always a good idea to keep it updated and GitHub Actions are no different Using GitHub s built in Dependabot service you can configure it to make frequent pull requests against your project to update your workflow versions as they become available on the marketplace To do this you can create a dependabot yml file within the github directory and add the following to it version updates package ecosystem github actions directory schedule interval daily time open pull requests limit Closing NotesAround three years ago I created the github pages deploy action project as my first real venture into the world of open source I built this action so I could make continued updates to a blog while being away from my work laptop The community response has been fantastic and I m very happy with how it has evolved over the years as a result I even had the opportunity to be interviewed by GitHub for my involvement back in which you can read here In the three years that I ve maintained this project it has seen the following as of January Referenced in public workflows Commits Stars Pull Requests ContributorsIf you d like to check out some of my other projects you can check out the Fetch API Data Action which I wrote an article about a while ago or you can check out this one which I created to simplify the process of adding GitHub Sponsors to the README of popular projects as a perk for donating If you d like to get in touch I can be reached on Twitter Additionally you can drop a note on the discussion board for the project if you have specific questions related to it or drop a comment below 2022-01-25 14:12:15
海外TECH DEV Community Debugging RAM: Detect/Fix Memory Leaks in Managed Languages - Heap Deep Dive, Part 2 https://dev.to/codenameone/debugging-ram-detectfix-memory-leaks-in-managed-languages-heap-deep-dive-part-2-384h Debugging RAM Detect Fix Memory Leaks in Managed Languages Heap Deep Dive Part In the previous installment I talked about the Java garbage collector In this part I ll discuss the most common memory issue the memory leak I focus on managed languages specifically Java but I will mention some native code tools which are interesting A memory leak contributes to heap size which isn t the most pressing bug in most cases But when left alone memory usage can become a problem and by that point finding the issue is hard Unlike a crash dump where we get a reference to a specific line a memory leak can remain hidden What are the Consequences of Memory Leaks Unfortunately this often means that memory leaks can carry into production and even cause problems to end users E g This recent story about memory leaks hobbling Apples latest M computers Virtual memory effectively means operating systems can carry memory leaks for a very long time The performance overhead will be noticeable though With the garbage collector we often rely on the automatic memory management to solve such memory issues But that s just not the case in real life Typically this problem is harder to solve for languages with manual memory management and those with reference counting I ll specifically exclude Rust in this discussion I don t have enough experience in it to say anything of value It seems very interesting but has some complexities There are powerful tools for application memory profiling but even they often show data as byte arrays This doesn t bring us any closer to solving the issue In this article I ll walk you through debugging memory usage I m assuming that you already know there s a leak after reviewing memory usage So the focus here is on narrowing it down Types of Heap RAMOne problem with tracking heap memory is managing expectations You would expect that a memory allocation will cause an equivalent growth in memory and freeing the memory would restore things This isn t always the case Most memory leaks happen in the heap but there are rare cases where the source of the leak can be in native code PermGen space etc We should debug native issues using native memory tools We can tune other types of memory via JVM flags You can often detect the source of the memory leak by looking at the out of memory error message The following types are common PermGen space this was common in older JVMs especially with tools that do heavy bytecode manipulation It isn t as common today thanks to dynamic PermGen spaceJava heap space Requested array size exceeds VM limit Out of swap space etc this probably means the leak is in your code or in a rd party library But it s in Java code which is good news If the stack points at a native method this could relate to a native method leakNotice that this isn t accurate since a leak in native memory can deplete the Java heap and vice versa We ll need to check both but it will give us a sense of where to start Your Tool BoxThere are MANY profiling tools for tracking fixing memory leaks It s impossible to give a proper review for even a small segment of the available richness I won t go even into a fraction of what s available Instead I ll focus on two tools VisualVM and Chrome DevTools with a focus on Node VisualVM lets us review the running application to get a snapshot of memory usage Chrome DevTools is a more general purpose debugger that includes the kitchen sink for JavaScript developers It can connect to the running node application and debug them I won t be discussing Java Flight Recorder JFR and Mission Control These tools are effectively the replacement tools for VisualVM But they aren t as convenient Yes they can detect frequent garbage collection etc but they aren t as ideal for fine grained debugging Flight recorder also has problematic licensing issues If you would like to use that instead check out this article by Ashish Choudhary Yourkit Profiler Eclipse MAT NetBeans Profiler Parasoft Insure etc Those are all great tools that can help a lot in digging deeper but they warrant a product review not a technical articleLeakCanary There are other mobile tools but again I want to focus more on the generic backendValgrind This is an interesting native tool to debug memory leaks in LinuxCRT Library For visual studio Microsoft provides some great primitivesSome static analysis tools such as SonarCloud or FindBugs can detect leaks This won t detect all leaks but they can point at some problematic cases VisualVMYou can get VisualVM here Once installed you can launch VisualVM and connect it to our running application to see the process In the image above VisualVM is monitoring itself that s pretty meta You can perform manual garbage collection which is very important to get a sense of the size of a leak The heap graph provides you a bird s eye view of the amount of memory over time and the trend Chrome DevToolsIf you did front end work with Chrome surely you ran into the everything but the kitchen sink debugging tools that are integrated into Chrome Personally I prefer the Firefox equivalents They can connect pretty seamlessly to Node where they can provide many of the standard debugging capabilities such as snapshots How to detect Leaks Leaks are pretty obvious when you see the memory grow and you don t see it shrinking back But how can you pinpoint the source of the leak There are several strategies for this In Java you could in theory do an aggressive leak test like this void leakUnitTest performRiskyOperation System gc Thread sleep Runtime r Runtime getRuntime long free r freeMemory for int iter iter lt iter performRiskyOperation System gc Thread sleep assertThat Math abs r freeMemory free lt validThreshold There are a lot of things going on here so let s go over them individually I run the risky operation once before starting this is important Static code and variable initializations take up RAM but aren t a leakI explicitly run System gc This isn t an option in all languages and normally isn t recommended But it “works Even an explicit GC might have asynchronous elements so a sleep is in orderI run the test times to make sure a small leak isn t adding upI have a threshold of valid values Garbage collectors aren t perfect We need to accept that some elements might take a while to get collected The Java API has a lot of built in static context e g pools in primitive objects that can cause minor unavoidable memory increases This number shouldn t be too big thoughAnother important note is to use a simple garbage collector when running this test a good practice altogether I recommend reading my previous post on the subject The problem is the threshold It effectively eliminates a lot of the benefit of the test but unfortunately there s no way around it Let s look at a less automated way to detect leaks Ideally this is something that platforms will address more readily in the future We can detect leaks using VisualVM while we reproduce the issue Press the garbage collector button and keep your eye on memory usage This should bring you to a point where the graph slowly grows based on a specific action you take Once you have that you can narrow it down to a method and a test case Is RAM Increasing Periodically What if RAM is just getting chewed up while you re literally doing nothing This is never the case Something is happening in the background and this background process causes the problem That s actually an excellent thing It means you can isolate this background process and debug only that Compare Snapshots to Find the Object typeThe most important tool in our arsenal is the heap dump In VisualVM you can grab a dump by pressing the button on the top right side It looks like this At the bottom you can see the classes sorted by number of instances size of instances This can help in narrowing a memory leak Just grab two dumps Then compare the RAM taken by a specific class to determine whether this class can be the one that leaked With Chrome DevTools you can grab a snapshot using the main UI You can then use view sort and filter the resulting objects in the snapshots This is a very similar process to the one in VisualVM or pretty much any monitoring tool You can narrow down the references and even see the stack matching a specific allocation in the code You can also make use of verbose GC trace GC in NodeJS to see details about the collected object I often feel that this is a bit like drinking from a firehose It s very hard to debug even a simple application with that output But it can be useful if you re looking for something very specific Common Types of Memory LeaksLeaks in managed platforms are effectively references to an element that is no longer necessary There are many samples of this but they all boil down to discarding said reference The most common problem is caching Creating an efficient caching solution without leaking is almost impossible Also static context is always a risk so you need to guard yourself against that and try to minimize it Notice that singleton is still a static context StringsJava strings are interned which effectively means they can enter a global application scope If you parse a lot of data try to avoid strings to keep memory usage down and use streams NIO instead Strings also take up a lot of space in NodeJS Interning happens there too but since strings and string objects are pretty different the problem isn t as obvious Hidden SemanticsA good example here is Swing code like this new JTable myModel Developers often discard the JTable object and keep the model But because of the way MVC works in some UI frameworks like Swing Codename One etc a view registers itself as a listener to the model This means that if you keep a reference to the model the JTable can t be removed Since frameworks like this rely on hierarchy this means all the elements in the Window containing the JTable can t be removed as well The solution for this is simple Use debuggers Not just to debug code But to inspect rd party objects You need to familiarize yourself with the objects that are stored as part of these libraries Context LeakI mentioned statics as an obvious source of a leak but there are other places that trigger a similar function ThreadLocal in Java effectively serves that purpose Storing an object in a place such as session scope can lead to its retention well past its usefulness E g this pseudo code might look harmless session store myUserData But if myUserData includes a reference to global data or other users then we might leak those users with every new session Worse this is a security vulnerability A hacker can start opening sessions until our server crashes Whatever is stored in static thread or any global context must always be a flat object or verifiably small object This is a good practice for scalability security etc Resource LeakWhen doing research for this article pretty much every post mentioned leaking file resources etc This is a separate problem File resource leaks used to be a problem years ago for some OSs Current GC and cleanup make it so that those leaks almost don t matter However database connections should be recycled to the pool and leaking them is indeed an issue The problem is that those aren t exactly a leak like the other ones mentioned here You will run into a different error such as a problem connecting to the database since connection resources were exhausted Despite having a lot of RAM So I don t think this is the right article to discuss those How can we Prevent Leaks The most ideal situation is to never run into the problem Obviously having unit tests that check for RAM with the reasonable stipulations above is helpful But as I mentioned above they are flaky Always run unit tests while limiting the virtual machine RAM to verify that there s no significant leak An out of heap crash during unit tests is a great indicator of a leak Write defensive code when building intricate APIs IntelliJ IDEA has some pretty complex code for binding IDE elements to plugins This is a prime location for leaks and bugs So the clever developers at JetBrains added logs in their code that detect such leaks on an unload Take a page from their book predict future problems If you have an API that lets developers register think about a way to detect leaks Print out the list of remaining objects before the application is destroyed It s possible those are leaks Pretty much everyone said this always but try to get as much code to be stateless as you reasonably can This will be good for scaling as well Obviously you shouldn t be afraid of session state But you should be deeply familiar with every object that goes in the session Finally run a memory monitor on your app Review the objects do they make sense Try to explain the logic of the objects you see in RAM E g if your app has a lot of byte objects but doesn t use images or primitive data there might be a leak TL DRMemory profilers are almost identical across platforms We can look at the graph of memory growth and grab snapshots for the current memory state We can then compare the snapshots to narrow down the general location of a leak We shouldn t wait for memory leaks to come up as production issues We can use some simple strategies to avoid them in the first place Create memory leak unit tests although those are flakyRun tests within a limited RAM VMWrite APIs that log remaining bound objects when exitingWrite stateless code where possible and familiarize yourself with the exact stateful aspects of your code Inspect the stateful objects in a debugger to make sure they don t reference global statePeriodically review your apps RAM usage and try to make sense of the objects you see in front of youThanks for reading this far Follow me on twitter for more 2022-01-25 14:01:54
海外TECH DEV Community DeFi: Decentralized Finance - Explain like I am 5 https://dev.to/olanetsoft/defi-decentralized-finance-explain-like-i-am-5-48a3 DeFi Decentralized Finance Explain like I am DeFi is a buzzword you ll likely hear more of in Decentralized Finance DeFi refers to apps built on public blockchains that provide financial services without centralized intermediaries Guess what This new financial system is built on secure distributed ledgers similar to those used by cryptocurrencies Some platforms leverage this technology to allow consumers to lend or borrow money from others trade cryptocurrencies insure against risks and earn interest in savings like accounts As you might have guessed it s called Defi Decentralized Finance We ll learn about the decentralized financial system in this post including how it works and operates in the computer world What is Decentralized Finance DeFi Allowing people merchants and corporations to perform financial transactions using developing technologies decentralized finance eliminates intermediaries Peer to peer financial networks that use security protocols connectivity software and hardware developments are used to achieve this In simplest terms if user wants to borrow user must have some assets or money in the bank to serve as collateral The bank manager user ‍ ️ evaluates your finances and then the lender user ‍ ️ sets an interest rate for your loan repayment based on the bank s requirements The bank lends you money from its deposit pool collects your interest payments and has the power to confiscate your collateral if you don t pay The same goes for stock trading asset management insurance and almost every other type of financial service available today On the other hand decentralized Finance DeFi reimagines financial services as decentralized software applications that run without ever assuming possession of customer funds How Does Decentralized Finance DeFi Work Decentralized finance makes use of the same blockchain technology that is used in cryptocurrencies A blockchain is a distributed database or ledger that is safe and distributed A smart contract is an Ethereum account that can retain funds and send refund them based on predetermined criteria A smart contract in DeFi takes the financial institution s place in the transaction No one can edit a smart contract once it has gone live it will always function as programmed For example a contract meant to distribute allowances may be coded to transmit money from Account Y to Account Z only if Account Y has the necessary amount Decentralized Finance DeFi Rewards and RiskDeFi operations are based on open source software and can be merged and customized virtually RewardDeFi blurs the line between average customers and affluent individuals or institutions with access to a broader range of financial products Anyone can join a DeFi lending pool and lend money to others which means that anyone can lend money Depending on whether the collateral pool currently gives the best returns for your investment profile funds can automatically transfer you between them As a result the rapid innovation seen in e commerce and social media could become the norm in traditionally conservative financial institutions In the second quarter of over billion worth of cryptocurrencies was locked in DeFi contracts Learn more about the reward volumes and return here RiskDeFi has the potential to amplify cryptocurrency s already high volatility Many DeFi systems allow investors to employ leverage allowing them to borrow money in order to boost their profits but also raising their risk of losing money Since the DeFi industry began to gain traction there have been several hacks About million has been stolen Learn More Many of these were caused by mistakes in smart contract coding which puts the DeFi ecosystem in danger The following section compares and contrasts the current centralized finance system with the decentralized financial system Centralized Finance vs Decentralized Finance CentralizedYour money is kept by banks corporations whose overarching objective is to make money through centralized finance Third parties who facilitate money flow between parties abound in the financial system each charging for their services Let s say you used your credit debit card to buy a bar of chocolate The charge is sent from the merchant to an acquiring bank sending the card information to the credit debit card network The network eliminates the charge and asks your bank for payment Your bank approves the bill transmits it to the network and then delivers it to the merchant via the acquiring bank Merchants must pay for their ability to use credit and debit cards so each organization in the chain receives paid for its services DecentralizedDecentralized Finance DeFi eliminates mediators by allowing individuals corporations and merchants to execute financial transactions using developing technologies You can trade lend and borrow using software that records and validates financial transactions in distributed financial databases from anywhere with an internet connection A distributed database is accessible from multiple locations it gathers and aggregates data from all users and verifies it using a consensus process ConclusionIn this blog post we learned about the decentralized financial system how it works and operate Rewards and risk involved I d love to connect with you at Twitter LinkedIn GitHub PortfolioSee you in my next blog article Take care 2022-01-25 14:01:09
Apple AppleInsider - Frontpage News Tesla adds Apple Wallet support for insurance policy cards on iOS https://appleinsider.com/articles/22/01/25/tesla-adds-apple-wallet-support-for-insurance-policy-cards-on-ios?utm_medium=rss Tesla adds Apple Wallet support for insurance policy cards on iOSTesla has added Apple Wallet support for insurance cards allowing Tesla Insurance policyholders to add their cards to their wallets on iOS Tesla Model SThe automaker introduced Wallet support in version of the Tesla iPhone app Tesla s release notes indicate that Tesla Insurance policyholders can add their insurance card to Apple Wallet Read more 2022-01-25 14:57:55
Apple AppleInsider - Frontpage News Google kills FLoC & will stick with cookies because of privacy complaints https://appleinsider.com/articles/22/01/25/google-kills-floc-will-stick-with-cookies-because-of-privacy-complaints?utm_medium=rss Google kills FLoC amp will stick with cookies because of privacy complaintsGoogle is changing its plans to phase out browser cookies by moving away from its FLoC proposal following complaints the technology wouldn t ensure the privacy of its users Google has been planning for two years to replace cookies with other techniques used for targeted advertising to users using a system called FLoC On Tuesday Google gave in to complaints about the proposed system and is instead planning a different approach FLoC a Federated Learning of Cohorts would replace cookies by using an in browser algorithm which would analyze the user s browsing history to determine the user s interest cohort The user would be designated a cohort number that could contain thousands of people with advertisers able to use those same cohort numbers to target by interest Read more 2022-01-25 14:24:55
Apple AppleInsider - Frontpage News Apple launches 'Shot on iPhone Challenge' for macro photographers https://appleinsider.com/articles/22/01/25/apple-launches-shot-on-iphone-challenge-for-macro-photographers?utm_medium=rss Apple launches x Shot on iPhone Challenge x for macro photographersFor its latest Shot on iPhone campaign Apple is inviting iPhone Pro and iPhone Pro Max users to submit photographs shot with the macro feature of those phones Apple s long running Shot on iPhone marketing campaign continues with a new macro only challenge that runs until February Some of the most impressive examples of macro photography are shots of seemingly everyday objects like a hairbrush a food item or a subject in nature like ice snow feathers flowers insects or pets says Apple in its announcement The beauty of macro photography is its ability to turn the ordinary into the extraordinary Read more 2022-01-25 14:21:35
Apple AppleInsider - Frontpage News Best deals Jan. 25: $280 Nintendo Switch, $175 Beats Studio3 Headphones, more! https://appleinsider.com/articles/22/01/25/best-deals-jan-25-280-nintendo-switch-175-beats-studio3-headphones-more?utm_medium=rss Best deals Jan Nintendo Switch Beats Studio Headphones more Tuesday s best deals include off the Nintendo Switch half price Wacom Intuos tablets Beats Studio and discounts on SanDisk storage Best Deals for January As we do every day we ve collected some of the best deals we could find on Apple products tech accessories and other items for the AppleInsider audience If an item is out of stock it may still be able to be ordered for delivery at a later date Read more 2022-01-25 14:08:35
Apple AppleInsider - Frontpage News Apple pays record $100,500 to student who found Mac webcam hack https://appleinsider.com/articles/22/01/25/apple-pays-record-100500-to-student-who-found-mac-webcam-hack?utm_medium=rss Apple pays record to student who found Mac webcam hackA cyber security student has shown Apple how hacking its Mac webcams can then also leave devices fully open to hackers earning him from the company s bug bounty program Ryan Pickren who previously discovered an iPhone and Mac camera vulnerability has been awarded what is believed to be Apple s largest bug bounty payout According to Pickren the new webcam vulnerability concerned a series of issue with Safari and iCloud that he says Apple has now fixed Before it was patched a malicious website could launch an attack using these flaws Read more 2022-01-25 14:40:39
Apple AppleInsider - Frontpage News Apple's AirTag uncovers a secret German intelligence agency https://appleinsider.com/articles/22/01/25/apples-airtag-uncovers-a-secret-german-intelligence-agency?utm_medium=rss Apple x s AirTag uncovers a secret German intelligence agencyA researcher has sent one of Apple s AirTags to a mysterious federal authority in Germany to locate its true offices ーand to help prove that it s really part of an intelligence agency Apple s AirTags have already been used for good and for bad in cases involving the tracking of individuals but now a German researcher has used one in an expose of government secrets Activist Lilith Wittmann claims that she has uncovered how Germany s little known Federal Telecommunications Service is actually a camouflage authority for a secret intelligence agency Initially she wrote how she accidentally stumbled upon a federal authority that does not exist Read more 2022-01-25 14:43:17
海外TECH Engadget Nintendo Switch is $20 off for Amazon Prime members at Woot https://www.engadget.com/nintendo-switch-woot-sale-144458978.html?src=rss Nintendo Switch is off for Amazon Prime members at WootIt s not always easy to find deals for the Nintendo Switch so this latest bargain might be worth a look Woot is selling the blue and red LCD model for to Amazon Prime members or below the official price The company s return policy isn t the same as Amazon s but you ll have until February th to take advantage of the discount Buy Switch at Woot In a sense the hardware is almost incidental here You re buying a Switch for the games which now include many classics ranging from launch era titles like Legend of Zelda Breath of the Wild to the recent Metroid Dread Popular third party games like Fortnite are available too Still Nintendo s system is a great fit if you want TV and handheld gaming from one device ーor just want a console with a particularly kid friendly game selection There aren t many catches but they re worth noting You won t find some blockbuster multi platform games like the Call of Duty series and the Switch s era processing power won t wow you like a PlayStation or Xbox Series X might We d add that it s also a question of whether or not this is the right Switch for you ーthe Switch OLED offers markedly improved display quality battery life and tabletop gaming for while the Switch Lite is a bargain if you re just interested in portable use At though the standard LCD Switch represents a good balance between features and price Follow EngadgetDeals on Twitter for the latest tech deals and buying advice 2022-01-25 14:44:58
海外TECH Engadget Amazon's cashierless Go stores are coming to the suburbs https://www.engadget.com/amazon-go-store-suburbs-141216011.html?src=rss Amazon x s cashierless Go stores are coming to the suburbsYou might not have to venture downtown or to a grocery chain to visit an Amazon Go store USA Todayreports Amazon plans to open a new version of the cashierless store designed for suburban areas The locations will still focus on essentials ready to eat food drinks and snacks just with layouts more suited to these outlying regions The shops will still rely on computer vision to detect what you buy Once you ve scanned your phone at the entrance camera systems detect what you grab from the shelves Amazon charges you for the items once you leave the Go store Amazon will open the first of these suburban Go stores in Mill Creek Washington sometime in the months ahead A second store will debut later in the Los Angeles area The move still leaves large parts of the US not to mention the planet without access but we suspect Amazon isn t too concerned when third party chains like Starbucks are beginning to adopt its AI based shopping tech 2022-01-25 14:12:16
Cisco Cisco Blog Building an Inclusive Future through Cisco Investments’ Aspire Fund https://blogs.cisco.com/csr/building-an-inclusive-future-through-cisco-investments-aspire-fund Building an Inclusive Future through Cisco Investments Aspire FundPlease read this conversation on Social Justice Action progress with Shari Slate Cisco s Chief Inclusion and Collaboration Officer Senior Vice President Inclusive Future and Strategy and Derek Idemoto  Cisco s Senior Vice President Corporate Development and Cisco Investments 2022-01-25 14:00:55
海外科学 NYT > Science What NYC Dog Owners Should Know About Leptospirosis https://www.nytimes.com/2022/01/25/nyregion/leptospirosis-nyc-dog.html What NYC Dog Owners Should Know About LeptospirosisThe Health Department did not confirm reports of an outbreak of the bacterial disease linked to McCarren Park but said it was working with the Parks Department to keep out the rats that spread the illness 2022-01-25 14:17:56
金融 RSS FILE - 日本証券業協会 新型コロナウイルス感染症への証券関係機関等・各証券会社の対応について(リンク集) https://www.jsda.or.jp/shinchaku/coronavirus/link.html 新型コロナウイルス 2022-01-25 15:40:00
金融 金融庁ホームページ 「Regional Banking Summit (Re:ing/SUM)」×「日経地方創生フォーラム」を開催します。 https://www.fsa.go.jp/news/r3/ginkou/20220125/20220125.html albankingsummitreingsum 2022-01-25 16:00:00
金融 金融庁ホームページ 信託業の免許について公表しました。 https://www.fsa.go.jp/news/r3/ginkou/202201/20220125.html 免許 2022-01-25 15:00:00
金融 金融庁ホームページ 第17回金融審議会公認会計士制度部会議事録について公表しました。 https://www.fsa.go.jp/singi/singi_kinyu/kounin/gijiroku/2021_1213.html 公認会計士制度 2022-01-25 15:00:00
ニュース BBC News - Home Police to investigate Downing Street lockdown parties https://www.bbc.co.uk/news/uk-politics-60123850?at_medium=RSS&at_campaign=KARANGA johnson 2022-01-25 14:35:00
ニュース BBC News - Home Scotland's work from home guidance to be relaxed next week https://www.bbc.co.uk/news/uk-scotland-60130299?at_medium=RSS&at_campaign=KARANGA nicola 2022-01-25 14:35:43
ニュース BBC News - Home Hymen repair surgery and virginity testing to be banned in UK https://www.bbc.co.uk/news/uk-politics-59960177?at_medium=RSS&at_campaign=KARANGA ukthe 2022-01-25 14:52:41
ニュース BBC News - Home Norwich boy, 4, died after neck got trapped in stairgates https://www.bbc.co.uk/news/uk-england-norfolk-60127916?at_medium=RSS&at_campaign=KARANGA hears 2022-01-25 14:15:57
北海道 北海道新聞 商店街に無人の衣料品店 北見 バー経営・本田さん https://www.hokkaido-np.co.jp/article/637552/ 北見市内 2022-01-25 23:17:38
北海道 北海道新聞 日ハム玉井「球の回転も良かった」 https://www.hokkaido-np.co.jp/article/637790/ 沖縄県名護市 2022-01-25 23:09:00
北海道 北海道新聞 レバンガ、26日ホームで新潟戦 5連敗阻止へ https://www.hokkaido-np.co.jp/article/637786/ 阻止 2022-01-25 23:04:36
海外TECH reddit Jerkin it with Gherkinit S15e9 T+2sday, yelyah delta, and Daily Charting for 1.25.22 https://www.reddit.com/r/Superstonk/comments/sces8t/jerkin_it_with_gherkinit_s15e9_t2sday_yelyah/ Jerkin it with Gherkinit Se T sday yelyah delta and Daily Charting for Good Morning Apes Some things I want to go over this morning are where we are in the cycle show you all some DIX pics do a little dive into yelyah s latest summary of current data Current Cycle Period So over the course of this T window Jan GME has gamma exposure from LEAPs that expired on Jan and FTDs from any futures contracts that expired I still think the peak of this FTD pile up is going to occur out in the beginning of February but because of the unknown nature of today s FTDs both net short long and quantity it could be significant Due to the stop on reporting by the CFTC we do not know the scope of FTDs from futures the could be minimal or significant but we had quite a lot of volume yesterday much of it internalized DP volume from around pm yesterday As for the gamma exposure well their goal appears to be to short below the exposure as it carries to much upside risk and they don t want to let a gamma ramp run wild so it s better for them to try to bring the price down in the short term than let that internalization and exposure be realized later when delta sensitivity is lower This is likely the cause of the massive shorting campaign we have seen recently and also the cause of the quot dip before the rip quot scenario we see in other short squeezes Dix Pics Their asymmetric risk is continuing to compound with the run yesterday many of the puts they loaded up on for price suppression purposes were blown up by market close They need these put walls erected in order to cover FTDs and keep the price stagnant But as many of you saw yesterday their position across all the stocks in the basket is slipping as M JWN DDS and even XRT overperformed Asymmetric risk is wider than it has been all year Approaching levels not seen since last February Yelyah Update Delta neutral still dropping with the price which means the options market is supporting the price decline the latest Delta Sensitivity spike indicates large amounts of hedging could occur with an increase in price of the underlying Vega neutral can sometimes act as a floor like it did during March of last year it s currently around Gamma sensitivity is not particularly large especially when compared with last January My person TLDR I think they continuously short under these Delta sensitivity spikes and push there exposure out to a window of time were sensitivity is reduced and upside potential from delta hedging is reduced While the options market supports our decline that is likely due to the large number of ITM puts we have seen purchased over the last week But since that hedge is inverse the hedge of a naked call if they are sold or exercised like we saw last Friday we can see positive pressure as MMs buy back in to shed their hedge Summation Because many retail investors are buying long dated calls we are see these large Delta sensitivity spikes over and over again far larger than we saw last year because many are diamond handing them and averaging down rolling forward positions This in essence can create squeeze conditions format png amp auto webp amp s aeababecbbcffa Since the majority of shorting is synthetic these positions must be inversed within days Is it any wonder that as long term options became a more widely discussed topic on this sub we have shorting on a previously unseen scale To me it looks like they are trying to get people to sell and reduce the potential for upside movement With retail holding all the shares and sitting on leverage for at least another multiple of the float this puts them in a precarious position With the current conditions in the market and asymmetric risk stacking up in both the equity and derivatives market on GME squeeze potential is very high xb You are welcome to check my profile for links to my previous DD and YouTube Livestream amp Clips Historical Resistance Support ATM offering ATM offering moon base Pre Market Analysis Pretty big short interest this morning with roughly k shares borrowed from Fidelity and about the same from IBKR But all for only price drop from yesterdays close so far I imagine they will short near open to try to get some of those and puts picked up Volume k Max Pain Max pain now moved down from yesterday this means exposure to call side hedging is getting closer Shares to Borrow IBKR Fidelity GME on pre market on the m TTM Squeeze format png amp auto webp amp s efefbfcecdbdbaeba CV VWAP Still a bit negative so some bounce back may be expected Disclaimer Although my profession is day trading I in no way endorse day trading of GME not only does it present significant risk it can delay the squeeze If you are one of the people that use this information to day trade this stock I hope you sell at resistance then it turns around and gaps up to Options present a great deal of risk to the experienced and inexperienced investors alike please understand the risk and mechanics of options before considering them as a way to leverage your position This is not Financial advice The ideas and opinions expressed here are for educational and entertainment purposes only No position is worth your life and debt can always be repaid Please if you need help reach out this community is here for you Also the NSPL Phone Hours Available hours Languages English Spanish submitted by u gherkinit to r Superstonk link comments 2022-01-25 14:18:33

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)