TECH |
Engadget Japanese |
1993年2月20日、約10万円の低価格パソコン「FM TOWNS マーティー」が発売されました:今日は何の日? |
https://japanese.engadget.com/today20-203029540.html
|
fmtowns |
2022-02-19 20:30:29 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
ABC207 D Congruence PointsをPythonと複素数で解く |
https://qiita.com/3w36zj6/items/5916e939a24c088377d8
|
tgsgejthetasgcosthetajsinthetaよってsneqgのとき、ある複素数sを回転させて複素数tに一致させる時の回転角thetaは以下のようになります。 |
2022-02-20 05:12:10 |
海外TECH |
MakeUseOf |
How to Easily Clone and Restore a Linux Disk Image With dd |
https://www.makeuseof.com/tag/easily-clone-restore-linux-disk-image-dd/
|
How to Easily Clone and Restore a Linux Disk Image With ddIf you want to wipe backup or restore data on Linux there are a number of apps you can pick But whichever Linux operating system you run there s one command that always works dd |
2022-02-19 20:30:13 |
海外TECH |
MakeUseOf |
4 Signs You’re Ready to Take Your Creative Pursuit Full-Time (And How to Do It) |
https://www.makeuseof.com/take-creative-pursuit-full-time/
|
Signs You re Ready to Take Your Creative Pursuit Full Time And How to Do It Before you quit your job and pursue your creative business full time look out for these signs to minimize all the risks involved |
2022-02-19 20:30:12 |
海外TECH |
DEV Community |
5 simple reasons why testing code is important |
https://dev.to/evybauer/5-simple-reasons-why-testing-code-is-important-3707
|
simple reasons why testing code is importantIt is not news that testing code is essential for a project Nowadays with the need for development cycles to spin faster and code to be frequently pushed to production testing code is crucial to avoid problems in production This article suggests simple reasons why testing code is important to help reinforce the testing habit ️THE AVERSION EFFECT IS TESTING REALLY PAINFUL For some developers testing can be considered painful due to the lack of time knowledge or clarity in terms of what should be tested Some might as well say that testing is a QA s job however not all companies have the luxury of hiring a QA professional Testing can be frustrating whether you re about to start a project or you need to implement them to an old and complex project In both situations testing needs to be interpreted as a process that takes time and will benefit the product the company and the whole team in the long run SHIPPING UNTESTED CODE A TICKING BOMB With so many interesting tools and testing suites available out there there are not good enough excuses to ship untested code By pushing untested code to production not only the developer who wrote the untested code but the entire team is signing off the damages it can cause Shipping untested code is dangerous As soon as it hits production is just a matter of time until a bomb explodes SIMPLE REASONS WHY YOU SHOULD TEST YOUR CODELet s be honest there are much more than simple reasons why testing code can be beneficial However of them are good enough to help developers judgement to ship untested code to production The decision of pushing untested code can be made in a split second the results can go from success to a big disaster depending on it Better performance From a user s prospect there is nothing worst than dealing with a non performant product By setting some rules on tests developers can prevent insane conditions from hitting production and causing poor performance For example if the user is searching for something and there are possibilities it is not performant to show the options at once In this case setting a limit on a test would help to prevent the options from being rendered If the limit is hit when the test runs the developer still has time to work on solutions and manage disasters in advance Code quality Writing tests can improve code quality in many ways The simplest way to realize that is when writing a test for the code a developer just wrote If writing the test is complicated it means the code is too complex The tests can make developers aware of code complexity and sometimes when a code could be cleaned improved refactored Code coverage It is pretty hard to achieve code coverage However what matters is not the total project s coverage percentage but making sure the lines of code and files being shipped to production are being properly tested It is better to guarantee that the new changes being shipped are tested than to waste hours debugging problems later Routine amp Confidence Writing tests on a daily basis triggers an unconscious process At some point writing code can make developers think about what the test will look like and writing the test can make them aware of possible improvements in the code It is a way to achieve better code quality and confidence naturally Review final product Here is where the famous proverb Better safe than sorry makes all sense Running tests before pushing new code to production is the perfect opportunity to test the final product before making it available for clients More importantly it ensures customers won t find bugs that can be caught in the first place ️LOOKING FOR AN EXTRA REASON Jokes apart testing code can improve devs work life balance By testing code it is possible to reduce all the stress bugs and fires that untested code can cause reveal in production Thanks to tests chances are that devs won t need to wake up in the middle of the night because an entire app went down The reasons why writing code is important are endless but keeping in mind some of them makes the testing process more organic and meaningful Tests have the power to improve a project help developers to become better developers and get the work life balance that sometimes gets lost among bugs fires and chaos caused by unhealthy code Next time someone tries to push untested code to production just remember the simple reasons |
2022-02-19 20:21:24 |
海外TECH |
DEV Community |
Google Docs with Next.js |
https://dev.to/j471n/google-docs-with-nextjs-2g0i
|
Google Docs with Next jsIn this article I am going to explain how I made the Google Docs clone with the help of Next js and Tailwind CSS I am not going to explain the whole code in this article but will discuss some key features of the code which are important Technologies I ve usedNext js is an open source development framework built on top of Node js enabling React based web applications functionalities such as server side rendering and generating static websites NextAuth js is a complete open source authentication solution for Next js applications It is designed from the ground up to support Next js and Serverless Draft js fits seamlessly into React applications abstracting away the details of rendering selection and input behavior with a familiar declarative API Firebase is a platform developed by Google for creating mobile and web applications I am using Cloud Firestroe from the Firebase which lets you store all the users info and also the documents Material Tailwind is an easy to use components library for Tailwind CSS and Material Design It features multiple React components all written with Tailwind CSS classes and Material Design guidelines Tailwind CSS is basically a utility first CSS framework for rapidly building custom user interfaces It is a highly customizable low level CSS framework that gives you all of the building blocks you need How to start Create Next appTo create a Next js app open your terminal cd into the directory you d like to create the app in and run the following command npx create next app lt project name gt After that visit the directory and start the server by using cd lt project name gt npm run devif you are using yarn then to start the server type yarn dev in the terminal For more info about Create Next app Visit Here Setup Tailwind CSS npm install D tailwindcss postcss autoprefixer npx tailwindcss init pWe need to update tailwind config js to do that look at Tailwind CSS Guide and folllow the steps Other dependencies dependencies emotion react material tailwind react next auth firebase adapter draft js firebase next next auth next nprogress emotion next pwa react react dom react draft wysiwyg react firebase hooks devDependencies autoprefixer eslint eslint config next postcss tailwindcss You can install each dependency as you progress further in the project such as firebase and next auth etc you can visit their setups Setting env local env local has three values which you need to pass to run this project NEXTAUTH URL In the development mode it should be https localhost and in production you need to change it to your website homepage URL GOOGLE CLIENT ID amp GOOGLE CLIENT SECRET go to Google Cloud Console and login with you gmail Then Create a new Project and fill all the necessary information and click on Create button After creating a project there will be a search bar in that search for APIs amp Services or just click here After visiting the page you need to make sure that you have selected you project or swithc the project if needed After selecting you desided project the visit the Credentials section on the left sidebarAfter that there will be an new option to Create Credentials click on it There will be a new menu then click on OAuth client IDIt will show you a warning to Configure Consent Screen click on it After that select the user type as External and click on Create button After that there will a form which needs to be filled After filling that form save the data And go to credential again and Create a new Credentials As you progress further then there will be some field which you need to fill very carefully It should be the Domain of your web app such as After that you need to fill the redirect URI or callback URL which will show when you click on login button For the producation it should be like After completing all the process you ll get your Client ID and Client Secret on the top right corner which will look something like this And after that you are done just paste these in the project and restart your server What does it look like LoginScreenLogin Screen for desktopLogin Screen for TabletsLogin Screen for Mobile Home Screen after LoginHome Screen after Login for Desktops Home Screen after Login for Mobile Document ScreenDocument Screen for Desktops Document Screen for Mobile FeaturesNow we have looked at the UI and let s look at what kind of feature does it have in detail Dark Mode SupportIt has dark mode support based on user preference User can switch between dark mode and light mode whenever he wants Creating New DocumentYou can create a new document by clicking the icon and then it will show you a pop up to enter the name and click on the submit button and you ll be sent to the document page where you can edit your file Open document in the new tabYou can directly open the document from your docs list or else you can click on the three dots then select the Open in new tab option then it will automatically open that in a new tab Delete a documentTo delete any document just click on three dots and select the Delete option and it will ask for the confirmation then confirm it and it will permanently delete that document Edit you DocumentYou can edit your document as you want you can change the font style or font size or whatever you want easily with the help of the Editor bar on the top Download your document as PDFYou can download or save your file in the pdf format by just clicking the top right button in the Logging OutTo logout from the website click your profile icon on the top right section WARNING I want to inform you in advance that it is not very secure and the admin which is me can see the documents created by the other users for now It s not end to end encrypted I have made this just for fun and to learn something new It is my responsibility to let you know about the downside of it The below images show how It looks like from my perspective InspirationI ve taken inspiration from Sonny Sangha and he made a full tutorial for this if you are interested then visit his YT channel and watch his content he is doing the really amazing Job I ve added some more features and other things to create something new Quick LinksView the code on Github Visit the Production Wrapping UpI ve had a great time to create this wonderful app If you enjoyed this article or like my work then don t forget to press ️ If you have any queries or suggestions don t hesitate to drop them See ya You can extend your support by buying me a Coffee You might be interested in Fully functional google search with next jsJavaScript Cheat Sheet that you should bookmarkImage Slider with Vanila JS |
2022-02-19 20:07:31 |
Apple |
AppleInsider - Frontpage News |
Pegasus spyware scandal uncovered by fake image file on an iPhone |
https://appleinsider.com/articles/22/02/19/pegasus-spyware-scandal-uncovered-by-fake-image-file-on-an-iphone?utm_medium=rss
|
Pegasus spyware scandal uncovered by fake image file on an iPhoneThe scandal over NSO Group s Pegasus spyware was uncovered by a single fake image file mistakenly left on an activist s iPhone a report states a discovery that prompted international outcry over privacy In July it was reported that spyware known as Pegasus was used to hack smartphones including iPhones owned by journalists activists and others of interest to some governments around the world While dozens of smartphones were found to be successfully hacked by the tool an investigation at the time determined that more than phone numbers were of interest to users of the tool The investigation led to further scrutiny of Pegasus NSO Group and governments who use the tool for surveillance purposes However the entire scandal only became known about due to a fake image file discovered earlier that year Read more |
2022-02-19 20:21:44 |
海外TECH |
Engadget |
QAnon founder may have been identified thanks to machine learning |
https://www.engadget.com/qanon-machine-learning-205618665.html?src=rss
|
QAnon founder may have been identified thanks to machine learningWith help from machine learning software computer scientists may have unmasked the identity of Q the founder of the QAnon movement In a sprawling report published on Saturday The New York Times shared the findings of two independent teams of forensic linguists who claim they ve identified Paul Furber a South African software developer who was one of the first to draw attention to the conspiracy theory as the original writer behind Q They say Arizona congressional candidate Ron Watkins also wrote under the pseudonym first by collaborating with Furber and then later taking over the account when it eventually moved to post on his father s chan message board The two teams of Swiss and French researchers used different methodologies to come to the same conclusion The Swiss one made up of two researchers from startup OrphAnalytics used software to break down Q s missives into patterns of three character sequences They then tracked how often those sequences repeated The French team meanwhile trained an AI to look for patterns in Q s writing Both techniques broadly fall under an approach known as stylometry that looks to analyze writing in a way that is measurable consistent and replicable To avoid the possibility of confusing their respective programs the teams limited their analysis to social media posts Among all the other possible authors they put through the test they say the writing of Furber and Watkins stood out the most for how similar it was that of Q s And they re confident in that identification The French team made of computational linguists Florian Cafiero and Jean Baptiste Camps told The Times their software correctly identified Furber s writing in percent of tests and Watkins in percent “At first most of the text is by Furber said Cafiero “But the signature of Ron Watkins increased during the first few months as Paul Furber decreased and then dropped completely People have previously used machine learning software to identify Harry Potter author J K Rowling as the secret writer of Cuckoo s Calling a crime fiction novel Rowling wrote under the pseudonym Robert Galbraith More broadly law enforcement agencies have successfully used stylometry in a variety of criminal cases including by the FBI to show that Ted Kaczynski was the Unabomber Experts The Times spoke to including Professor Patrick Juola the computer scientist who identified Rowling as the author of Cuckoo s Calling told they found the findings credible and persuasive “What s really powerful is the fact that both of the two independent analyses showed the same overall pattern Juola said Both Furber and Watkins deny they wrote any of Q s messages “I am not Q the latter told The Times Furber meanwhile said he was influenced by Q s posts to change the style of his prose a claim linguistic experts told the outlet was “implausible Also worth mentioning is the fact the analysis included tweets from Furber that date from the earliest days of Q s existence What happens next is unclear The researchers who worked on the identification told The Times they hope unmasking Q will loosen QAnon s hold on people Spreading like wildfire on social media the conspiracy theory has had a profound effect on politics in the US and other parts of the world And while Q hasn t posted a new message since the end of that hasn t dampened people s enthusiasm for conspiracies about the quot deep state quot and its involvement in their lives |
2022-02-19 20:56:18 |
ニュース |
BBC News - Home |
Two goals in stoppage time as Tottenham claim dramatic win at Man City |
https://www.bbc.co.uk/sport/football/60357463?at_medium=RSS&at_campaign=KARANGA
|
Two goals in stoppage time as Tottenham claim dramatic win at Man CityHarry Kane s stoppage time goal gives Tottenham a stunning victory over Premier League leaders Manchester City in a chaotic finale at Etihad Stadium |
2022-02-19 20:29:59 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
トヨタが韓国ポスコに鋼材の「乗り替え」画策、日本製鉄との訴訟を巡る最終対決全内幕 - 絶頂トヨタの死角 |
https://diamond.jp/articles/-/295842
|
切り替え |
2022-02-20 05:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
ジョブズと菜食主義「僕は月明かりで処女が摘んだ葉物しか食べない」 - 「超一流」の流儀 |
https://diamond.jp/articles/-/296748
|
思い込み |
2022-02-20 05:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
『角川まんが学習シリーズ 世界の歴史』が、大人の「学び直し」に最適な理由 - ビジネスを強くする教養 |
https://diamond.jp/articles/-/296607
|
読者対象は小学生から高校生だそうだが、大人が読んでも抜群におもしろい。 |
2022-02-20 05:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
源平合戦の日程も左右した!? 源頼朝の「信心深さ」 - 新説・新発見!今こそ学ぶ「歴史・地理」 |
https://diamond.jp/articles/-/296689
|
大河ドラマ |
2022-02-20 05:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
ひな人形もクリア!季節のアイテム収納にまつわる「めんどくさい」の回避法 - タスカジ最強家政婦seaさんの人生が楽しくなる整理収納術 |
https://diamond.jp/articles/-/296793
|
飾り |
2022-02-20 05:05:00 |
北海道 |
北海道新聞 |
<社説>野党の選挙協力 与党と対峙する体制を |
https://www.hokkaido-np.co.jp/article/647838/
|
選挙協力 |
2022-02-20 05:05:00 |
ビジネス |
東洋経済オンライン |
46歳社長がキーエンス→ホスト→起業で得た成功 「プロテイン」大ヒットの裏にさまざまな仕掛け | 消費・マーケティング | 東洋経済オンライン |
https://toyokeizai.net/articles/-/511927?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
東洋経済オンライン |
2022-02-20 05:30:00 |
コメント
コメントを投稿