python |
Pythonタグが付けられた新着投稿 - Qiita |
AtCoder茶色になったぜ |
https://qiita.com/hiro1729/items/9b87ac9c9ece6ad33f7c
|
atcoder |
2023-01-08 07:36:03 |
Git |
Gitタグが付けられた新着投稿 - Qiita |
git 、DB関連コマンド |
https://qiita.com/7days60365882/items/109bc5345bc3b07cf1e6
|
gitcheckout |
2023-01-08 07:56:47 |
海外TECH |
MakeUseOf |
How to Restart Any iPhone, Even if the Buttons Are Broken |
https://www.makeuseof.com/how-to-restart-any-iphone-even-if-the-buttons-are-broken/
|
brokenneed |
2023-01-07 22:30:15 |
海外TECH |
DEV Community |
Performance comparison: ReductStore vs. Minio |
https://dev.to/reductstore/performance-comparison-reductstore-vs-minio-5cek
|
Performance comparison ReductStore vs MinioWe often use blob storage like S if we need to store data of different formats and sizes somewhere in the cloud or inour internal storage Minio is an S compatible storage which you can run on your private cloud bare metal serveror even on an edge device You can also adapt it to keep historical data as a time series of blobs The moststraightforward solution would be to create a folder for each data source and save objects with timestamps in theirnames bucket cv camera bin bin binIf you need to query data you should request a list of objects in the cv camera folder and filter them by nameaccording to the given time interval This approach is simple to implement but it has some disadvantages the more objects the folder has the longer the querying takes big overhead for small objects timestamps as strings and minimum file size is Kb or due to the block size of thefile system FIFO quota to remove old data when we reach a certain limit may not work for intensive write operations ReductStore aims to solve these issues It has a strong FIFO quota an HTTP API for querying data via timeintervals and it composes objects or records into blocks for efficient disk usage and search Minio and ReductStore have Python SDKs so we can use them to implement read and write operations and comparethe performance Read Write Data With MinioFor benchmarks we create two functions to write and read CHUNK COUNT chunks from minio import Minioimport timeminio client Minio access key minioadmin secret key minioadmin secure False def write to minio count for i in range CHUNK COUNT count CHUNK SIZE object name f data str int time time ns bin minio client put object BUCKET NAME object name io BytesIO CHUNK CHUNK SIZE return count count data to print it in main functiondef read from minio t t count t str int t t str int t for obj in minio client list objects test prefix data if t lt obj object name lt t resp minio client get object test obj object name count len resp read return countYou can see that minio client doesn t provide any API query data with patterns so we have to browse the whole folderon the client side to find the needed object If you have billions of objects it stops working You have to storeobject paths in some time series database or create a hierarchy of folders e g create one new folder per day Read Write Data With ReductStoreWith ReductStore this is a much easier from reduct import Client as ReductClientreduct client ReductClient async def write to reduct count bucket await reduct client create bucket test exist ok True for i in range CHUNK COUNT await bucket write data CHUNK count CHUNK SIZE return countasync def read from reduct t t count bucket await reduct client get bucket test async for rec in bucket query data int t int t count len await rec read all return count BenchmarksWhen we have the write read functions we can finally write our benchmarks import ioimport randomimport timeimport asynciofrom minio import Miniofrom reduct import Client as ReductClientCHUNK SIZE CHUNK COUNT BUCKET NAME test CHUNK random randbytes CHUNK SIZE minio client Minio access key minioadmin secret key minioadmin secure False reduct client ReductClient Our function were here if name main print f Chunk size CHUNK SIZE Mb count CHUNK COUNT ts time time size write to minio print f Write size Mb to Minio time time ts s ts read time time size read from minio ts time time print f Read size Mb from Minio time time ts read s loop asyncio new event loop ts time time size loop run until complete write to reduct print f Write size Mb to ReductStore time time ts s ts read time time size loop run until complete read from reduct ts time time print f Read size Mb from ReductStore time time ts read s For testing we need to run the databases It is easy to do with docker compose services reduct storage image reductstorage engine v volumes reduct data data ports minio image minio minio volumes minio data data command minio server data console address ports Run the docker compose configuration and the benchmarks docker compose up dpython main py ResultsThe script print the results for given CHUNK SIZE and CHUNK COUNT On my device I got the following numbers ChunkOperationMinioReductStore Mb requests Write s sRead s s Mb requests Write s sRead s s Mb requests Write s sRead s sAs you can see ReductStore is always faster for write operations times faster for Mb blobs and a bitslower for reading when we have many small objects You may notice that the speed decreases for both databases when wereduce the size of the chunks This can be explained with HTTP overhead because we spend a dedicated HTTP request foreach write or read operation ConclusionsReductStore could be a good option for applications where you need to store blobs historically with timestamps andwrite data continuously It has a strong FIFO quota to avoid problems with disk space and it is very fast for intensivewrite operations References ReductStoreMinioReductStore Client SDK for PythonFull Example on GitHub |
2023-01-07 22:36:19 |
海外TECH |
DEV Community |
6 Project Management Tools To Boost Your Productivity |
https://dev.to/arafat4693/5-project-management-tools-to-boost-your-productivity-2d20
|
Project Management Tools To Boost Your ProductivityProject management tools are essential because they help project managers and team members efficiently plan track and collaborate on the various tasks and deliverables required to complete a project meeting deadlines and within budget In addition these tools can help keep projects organized and keep all team members aware of their responsibilities and deadlines I have listed seven project management tools keeping the productivity in mind These are WP Project ManagerWP Project Manager is a plugin that adds project management features to a WordPress site Once the plugin is installed users can create projects and assign tasks to team members Tasks can have deadlines and descriptions and can be organized into categories Users can also track the progress of tasks and projects and view them in a calendar view The plugin also includes a built in messaging system which allows team members to communicate with each other within the context of a specific project NotionNotion is a versatile workspace that can be used as a project management tool It allows users to create organize and manage their work and personal tasks It is a flexible platform that can be used for a variety of purposes including note taking project management and team collaboration One key feature of Notion is its ability to create databases which are customizable collections of information that can be used to track and organize a wide range of data For example users might create a database to track their tasks and customize it to include fields for the task name description due date and completion status Notion includes various other features such as a built in calendar integrations with other tools and a customizable workspace layout These features make it easy for users to customize the platform to meet their specific needs and workflows TrelloTrello is a project management tool that allows users to organize and prioritize their work by creating boards lists and cards It is designed to help teams collaborate on projects and track progress in an organized and visual way With Trello users can create boards representing different projects or focus areas Within each panel users can create lists to represent different stages of a project or different categories of work For example a list could represent a to do list an in progress list and a complete list Users can then create cards within each list to represent individual tasks or items of work Cards can include descriptions due dates attachments and labels Users can also assign tasks to team members and add comments or attachments to cards to facilitate communication and collaboration Trello also includes a calendar view and integrations with tools like Google Calendar and Slack AsanaAsana is similar to Trello but more comprehensive In addition to Trello s Kanban style layout Asana has other powerful applications related to Kanban With Asana users can create projects and tasks set deadlines and assignees and track progress They can also add details such as descriptions attachments and comments to tasks In addition Asana includes a variety of views including a calendar view and a list view which allow users to see their assignments and projects in different ways PodioPodio is more than just a project management solution It acts as a database for the entire company You can use Podio to house your company s CRM You can have web design project boards like Trello You can even create help desk applications in Podio One key feature of Podio is its customizable workspace layout Users can create apps to represent different aspects of their work and then customize the fields and functionality of each app to meet their specific needs For example a team might create an app to track customer support tickets and customize the app to include fields for the customer s name email address and description of the issue WrikeWrike is a project management and collaboration tool that helps teams plan organize and track their work It includes task management file sharing and real time collaboration designed to help teams work more efficiently and effectively One key feature of Wrike is its customizable task management system Users can create tasks set deadlines assign team members and track progress and they can also add details such as descriptions attachments and comments to tasks Wrike also includes a range of views and filters allowing users to see their assignments and projects differently and focus on specific aspects of their work ConclusionThe easiest way to complete a big project is to break it down into smaller tasks Project Management tools will help make the big project look smaller and give you a sense of achievement after completing every subtask Subtasks are a great way to capture the individual components of a multi step process And in the design process there are quite a few steps involved |
2023-01-07 22:12:16 |
Apple |
AppleInsider - Frontpage News |
Cherry KC 6000C for Mac review: A mediocre wired keyboard |
https://appleinsider.com/articles/23/01/07/cherry-kc-6000c-for-mac-review-a-mediocre-wired-keyboard?utm_medium=rss
|
Cherry KC C for Mac review A mediocre wired keyboardA wired keyboard might be beneficial if you re tired of constantly re charging the batteries in all your devices but the Cherry KC C for Mac isn t the first one we d recommend considering Cherry KCC for MacThe Cherry KC C has a fixed wired USB C connection which could make it less useful for older Macs and inconvenient for newer ones When using it some force was needed to press the keys with only a mediocre feel in exchange for the effort Read more |
2023-01-07 22:07:08 |
海外TECH |
Engadget |
Apple reportedly cancels development of fourth-generation iPhone SE |
https://www.engadget.com/apple-reportedly-cancels-development-of-fourth-generation-i-phone-se-222516288.html?src=rss
|
Apple reportedly cancels development of fourth generation iPhone SEApple has reportedly canceled the development of a new iPhone SE According to analyst Ming Chi Kuo the company recently told suppliers it would not release a fourth generation SE model sometime in In a Medium post spotted by MacRumors Kuo said the device would have been the debut of Apple s first in house G modem adding that the company had planned to test and fine tune the chip on the SE before rolling it out more broadly to the iPhone and beyond Instead Kuo suggests Apple is now more likely to continue using Qualcomm modems through Kuo doesn t say why Apple shelved the fourth generation iPhone SE or if the performance of its own G chip had anything to do with the decision For the better part of a decade Apple has tried to reduce its dependence on Qualcomm In the two ended their bitter patent feud and signed a “multiyear wireless chip supply deal Months later however Apple bought the majority of Intel s mobile modem business Then at the end of the company disclosed it was working on its own cellular chipset There s been little news about the project since |
2023-01-07 22:25:16 |
海外ニュース |
Japan Times latest articles |
Japanese influences reimagine Australia’s lamington dessert |
https://www.japantimes.co.jp/life/2023/01/08/food/australia-lamington-lammo-yuzu-matcha/
|
eaten |
2023-01-08 07:00:47 |
ニュース |
BBC News - Home |
PM Sunak welcomes 'valuable' talks with health leaders |
https://www.bbc.co.uk/news/health-64189116?at_medium=RSS&at_campaign=KARANGA
|
health |
2023-01-07 22:45:50 |
ニュース |
BBC News - Home |
Iran protests: Two men hanged over killing of militiaman |
https://www.bbc.co.uk/news/world-middle-east-64196635?at_medium=RSS&at_campaign=KARANGA
|
confessions |
2023-01-07 22:06:45 |
ニュース |
BBC News - Home |
Liverpool 2-2 Wolverhampton Wanderers: Sides forced to settle for replay after Anfield draw |
https://www.bbc.co.uk/sport/football/64168002?at_medium=RSS&at_campaign=KARANGA
|
Liverpool Wolverhampton Wanderers Sides forced to settle for replay after Anfield drawLiverpool and Wolves are forced to settle for an FA Cup third round replay after a thrilling encounter finishes level at Anfield |
2023-01-07 22:13:38 |
ニュース |
BBC News - Home |
FA Cup: Liverpool v Wolverhampton Wanderers: Darwin Nunez levels for Liverpool with 'super finish' |
https://www.bbc.co.uk/sport/av/football/64200640?at_medium=RSS&at_campaign=KARANGA
|
FA Cup Liverpool v Wolverhampton Wanderers Darwin Nunez levels for Liverpool with x super finish x Watch as Liverpool s Darwin Nunez draws level against Wolves with a first time finish off an exceptional Trent Alexander Arnold pass in the FA Cup |
2023-01-07 22:17:21 |
ニュース |
BBC News - Home |
FA Cup: Liverpool v Wolverhampton Wanderers: Goncalo Guedes fires Wolves into lead after Alisson Becker mishap |
https://www.bbc.co.uk/sport/av/football/64200635?at_medium=RSS&at_campaign=KARANGA
|
FA Cup Liverpool v Wolverhampton Wanderers Goncalo Guedes fires Wolves into lead after Alisson Becker mishapWolves Goncalo Guedes reacts quickly to convert an Alisson miss kick inside Liverpool s box in the FA Cup third round at Anfield |
2023-01-07 22:19:03 |
北海道 |
北海道新聞 |
地下鉄衝突事故で1人死亡 メキシコ市、57人負傷 |
https://www.hokkaido-np.co.jp/article/784685/
|
衝突事故 |
2023-01-08 07:28:00 |
ニュース |
Newsweek |
プーチンの軽率な開戦決断は、癌のホルモン療法による「誇大妄想のせい」(デンマーク軍情報機関) |
https://www.newsweekjapan.jp/stories/world/2023/01/post-100528.php
|
|
2023-01-08 07:30:00 |
コメント
コメントを投稿