TECH |
Techable(テッカブル) |
NICT、ドローン4機の群飛行に成功。自ら接近回避も |
https://techable.jp/archives/176908
|
位置情報 |
2022-04-13 04:00:44 |
Linux |
Ubuntuタグが付けられた新着投稿 - Qiita |
Raspberry Pi4, Ubuntu21.10, OpenVINO2022.1, NCS2環境構築 |
https://qiita.com/kose3/items/06ba015e01257f9c1491
|
intel |
2022-04-13 13:03:11 |
技術ブログ |
Developers.IO |
Gather.Town でペット(犬)が飼えるようになりました。 |
https://dev.classmethod.jp/articles/pet-comes-gather-town/
|
gathertown |
2022-04-13 04:37:57 |
海外TECH |
DEV Community |
Menghitung Selisih Antara Dua Tanggal Dengan Php |
https://dev.to/medan_in_code/menghitung-selisih-antara-dua-tanggal-dengan-php-3lpo
|
Menghitung Selisih Antara Dua Tanggal Dengan PhpTutorial ini akan menunjukan bagaimana cara menghitung selisih antara dua tanggal di php Disini kita akan menggunakan dua cara yang pertama menggunakan strtotime dan kedua menggunakan fungsi diff Cara Pertama lt php tgl strtotime tgl strtotime jarak tgl tgl hari jarak echo hari gt Cara pertama ini kita mengkonversi kedua tanggal menjadi detik dengan fungsi strtotime kemudian mengurangkan keduanya terakhir kita konversi detik Untuk contoh diatas kita konversi menjadi hari Sekedar catatan strtotime hanya mencakup mulai dari tanggal Januari jadi kurang cocok untuk menghitung umur jika dibawah tanggal tersebut Cara Kedua lt php tgl new DateTime tgl new DateTime jarak tgl gt diff tgl echo jarak gt d gt Untuk cara kedua kita menggunakan fungsi diff fungsi diff memiliki beberapa keluaran seperti contoh diatas kita menggunakan gt d untuk hari Untuk yang lain bisa dilihat dibawah d untuk selisih hari m untuk selisih bulan y untuk selisih tahun h untuk jam i untuk menit s untuk detik invert bernilai atau jika tanggal yang dikurangkan lebih kecil dari tanggal pengurang begitu juga sebaliknya days untuk menghitung total selisih hari Jika dilihat d dan days sama sama menunjukan selisih hari bedanya days mengeluarkan total jadi kalau kita menggurangkan dengan maka akan keluar kalau menggunakan d akan tetap mengeluarkan Sekian tutorial kali ini jika ada yang kurang dipahami silahkan tanyakan dibawah |
2022-04-13 04:08:09 |
海外TECH |
DEV Community |
Less verbose, better maintenance |
https://dev.to/maaarkin/less-verbose-better-maintenance-3j9b
|
Less verbose better maintenanceAll the codes that you will see in this post you can check hereIn the last post we delivered the content to response in our controller but the code it s not too readable In this post we will refact the code to be more readable and easy to deliver our content Inside cmd http folder we will create a new folder called helper This package will group functions to help the http layer to deal with request and response that will be used by any other handler in our project First of all lets refact our book handler in cmd http book go and see how our getAll will befunc f FeiraHandler getAll w http ResponseWriter r http Request feiraFilter getFilterQuery r if results err f service GetAll feiraFilter err nil helper HandleError w err else if results nil amp amp len results gt helper JsonResponse w results http StatusOK else helper NoContent w Now the helper will help us to deal with error and with the response data In the helper package we will create a response go and will move the addDefaultHeaders and writeData presents in book handler to our response go file We will start to the more easy method here the NoContent function cmd http helper response go func NoContent w http ResponseWriter addDefaultHeaders w w WriteHeader http StatusNoContent We just will add the default headers and send a Header to No Content Status We will write the json data to response cmd http helper response go func JsonResponse w http ResponseWriter data interface httpStatus int addDefaultHeaders w w WriteHeader httpStatus writeData w data Again we just move the boilerplate code to write data to a new function in helper package Now we will refact our error method to improve the process cmd http helper response go func HandleError w http ResponseWriter err error addDefaultHeaders w httpError DealWith err w WriteHeader httpError Status if httpError Status http StatusNoContent writeData w httpError look that we have a new method called DealWith this method will check if the error is a registered error or an unexpected error to our application At the moment we will create an error go inside helper folder to create the DealWith method for our code works without any error cmd http helper error go type HttpError struct Status int json Description string json description omitempty Messages string json messages omitempty func DealWith err error HttpError return HttpError Status http StatusInternalServerError Description Internal error please report to admin In the next post we will describe the DealWith method to know a better way to produce errors in http layer |
2022-04-13 04:05:19 |
海外TECH |
DEV Community |
Webix Gantt Chart. Handy web tool for efficient project management |
https://dev.to/serhiipylypchuk1991/webix-gantt-chart-handy-web-tool-for-efficient-project-management-14no
|
Webix Gantt Chart Handy web tool for efficient project managementIn a previous article on one of the most popular Agile approaches I introduced you to such a Japanese project management tool as Kanban And today I m going to move from the far east to the far west part of the world In this publication you will learn about the Gantt method its history and modern implementations BackgroundThe first prototype of the so called Gantt Chart was invented oddly enough by the Polish engineer Karol Adamecki back in He developed a fundamentally new approach for visualizing and analyzing interrelated processes in production steelmaking and successfully used it in practice Later he named his invention the harmonogram Since Adametsky published only in Russian and Polish his work was not widely known in English speaking countries But in another American engineer Henry Gantt introduced his own analogue of a similar system in the United States He used his invention to track the time that factory workers spent on the current tasks Subsequently these two systems were combined into the solution we now know as Gantt Chart ApplicationSo let s find out what kind of tasks can be covered using Gantt Chart Generally such a system allows one to solve several issues related to project management at once First of all you will be able to plan each stage of the project with well defined start and end dates of the workflow Besides the Gantt Chart allows you to identify milestones the most important events of the project And thanks to the development of software the Adamecki Gantt chart allows you to track the progress of tasks link dependent tasks manage resources and costs and improve collaboration between team members But it was not always so DevelopmentFor a long time such diagrams were drawn on paper by hand As a consequence of any change to the graph the entire diagram had to be redrawn Later project managers started using paper tapes and special rectangles to indicate the columns of the chart This approach made the analysis process significantly faster The reason was that the key elements could be freely moved rather than redrawing the diagrams again and again In a modern management environment no one uses hand drawing for such analysis anymore If you ask Uncle Google about the digital analogues of the Gantt Chart the browser will show you a lot of ready made apps both paid and free They will more than cover the basic needs of the average project manager But what if you are faced with the task to implement such a system in your own application The answer is simple you need to look not for a static app but for a flexible widget that can be used both independently and as a plug in In this article I want to talk about one of such widgets Next we will dive into the JavaScript Gantt Chart developed by the Webix team Let s see what it is and what its advantage is What is Webix Gantt ChartWebix Gantt is a comprehensive JavaScript solution for Agile project management In short the widget functionality allows working with projects of any complexity scheduling tasks and tracking their progress marking important workflow milestones managing resources and much more In fact you can find all this functionality in the vast majority of such kinds of apps To save your time I will skip the detailed description of trivial things related to the functionality After all if you are reading this article you already have some idea of the basic principles of working with Gantt Charts But if you still want to refresh your knowledge you can find all the information you need in the appropriate guide Now let s take a closer look at the benefits of the Gantt Chart widget and its configurations AdvantagesOn the Internet you can find a lot of ready made applications and services that allow you to create Gantt Charts and use them to manage your projects But the weak side of such tools is their static state If we are talking about desktop apps they need to be installed and used locally When using the corresponding online services you need to share all your data with a third party resource This approach is more flexible but it doesn t look safe In both cases you are limited to the initial functionality that was laid down by the developers of the respective products The other side of the coin is that you need to use only of the features proposed In this case you have no way to shed the extra ballast And this in turn will affect the app s performance So now let s dive into the advantages of a similar solution offered to us by the Webix team Based on the fact that Gantt Chart is a web application written in JavaScript and CSS you can use the widget as a separate app or integrate it as a third party module with React Angular and other frameworks flexibly configure the component by adding only features that cover your project needscustomize the appearance and behavior of the component not limited to the basic functionalityuse the ready made Node js and Go backend or connect your custom one If you don t see clear advantages in all I have mentioned above and the flexibility of settings is not a priority for you then you should look for another tool As a variant you can look at the GanttPro service The next part of the article is for those who think out of the box and are not limited to certain templates I will tell you more about how to initialize configure customize and localize the Gantt Chart widget How to Create a Widget with Basic FunctionalityLet s start with the fact that Gantt Chart is an advanced extension of the Webix library To use the widget include the library resources first and then the corresponding js and css files of the widget itself lt head gt lt Webix resources gt lt script src codebase webix js type text javascript gt lt script gt lt link rel stylesheet href codebase webix css type text css gt lt Gantt Chart resources gt lt script type text javascript src codebase gantt js gt lt script gt lt link rel stylesheet href codebase gantt css type text css gt lt head gt After including the required scripts you need to call the widget s constructor To start executing the app code only after the page is fully loaded pass it to the webix ready … function lt body gt lt script gt webix ready function Gantt Chart constructor webix ui view gantt url your backend lt script gt lt body gt As you can see to initialize the widget you only need to write a few lines of code Now you can create and manage your projects using a convenient interface and basic functionality A few more words about licensing Like other complex widgets Gantt Chart depends on the Webix core and is distributed with the Pro version of the library You can download the trial Pro version with all complex widgets which is free for days This will allow you to try all the benefits and flexibility of working with the Gantt Chart in practice And after this you can decide whether this tool is right for you or not ConfiguringWebix Gantt Chart is a kind of constructor It consists of several components of the core library Each of them includes an API with which you can customize the appearance and behavior of certain parts of the interface Besides the widget has a set of its own configurations It is worth clarifying here that you can configure the widget using the simplest and most convenient JSON syntax All you need is to set the necessary properties to the appropriate values Let s look at some of the configurations in detail Connecting to BackendTo start working with your projects you need to load the corresponding data In a real case the data will be stored on a remote server When initializing the app you should specify a link to the server script your own or one of two solutions available on our github Gantt will load your project data and send all changes back to the server if needed To connect Gantt Chart to the backend use the url property Read more about working with the server side in the corresponding article view gantt url your backend a link to your server script Linking TasksEach project may include a huge number of additional tasks Each of these tasks may directly depend on the readiness of other tasks To visualize such dependencies the widget provides special lines that allow you to link the tasks to each other This kind of linking is supported by default To switch it off you need to set the links property to false view gantt … links false Critical PathEach project has certain time frames To meet the deadline it is necessary to complete each of the tasks timely and consistently To analyze the project deadline the widget provides a special critical path It allows you to display a chain of tasks that need to be completed on time to meet project deadlines Gantt Chart analyzes only the tasks with the end to start links If the schedules of such tasks are overlapped or set without considering the margin of time and real life can be unforeseeable the widget will consider them critical and highlight in red To show the critical path you need to set the criticalPath property to true view gantt … criticalPath true Split TasksBesides the links between different tasks you can also create related subtasks within a specific task The parts of a split task will be displayed in one row and connected to each other by a dotted line Unlike the basic tasks subtasks of a split task are not displayed in the tree and cannot include nested items To enable split tasks you need to set the split property to true view gantt … split true Working with ResourcesOne of the distinguishing features of Webix Gantt is the ability to work with resources You can efficiently manage resources by assigning them to certain project tasks You will also be able to view resources in the tree and chart using a special mode as well as analyze the workload of resources via a special diagram To enable the resources support you need to set the resources property to true view gantt url your backend resources true The widget will load the required data by the specified url After this the users will be able to manage the corresponding resources via a suitable editor Resources View ModeBy default the widget displays only the tasks in the tree and chart In this way you can view the projects tasks and subtasks as well as milestones significant project events But you can switch to the resources view mode as well In this mode the widget displays only the tasks grouped by resources they are assigned to There is also a separate Unassigned section that contains all the unassigned tasks To enable the resources view mode you need to set the display property to a resources value view gantt … resources true required string display resources Resources DiagramBesides the view mode you can also display resources on a special diagram It allows you to analyze the workload of each resource by hours and tasks for each work day If the resource limit is exceeded the Gantt will highlight it in red on the diagram To display the resources diagram you need to enable the resources support and set the resourcesDiagram property to true view gantt url your backend resources true required string show the diagram under the main chart resourcesDiagram true In the sections above I described only a small part of all the Gantt Chart settings You can find the full list of widget configurations in the corresponding article CustomizationBesides configuring via the built in settings you have an ability to customize almost any part of the interface and its behavior But for this you need to understand what is going on under the hood of Gantt Chart The structure of the widget is built as a SPA application based on the MV pattern of the Webix Jet framework In this case the interface View is separated from the business logic Model Each of the interface elements is a separate component of the Webix library button select toolbar and others Significant parts of the interface tree chart and others are stored in separate classes inherited from the JetView class And the business logic which is a model is also stored separately in the form of modules In the context of framework these modules are called services To customize the interface and logic of the app all you need to do is get a PhD in programming and then dig into the widget code a bit And even for this you need to know at least the key principles of working with the Webix Jet framework Read the Webix Jet framework through the eyes of a freshman article to find out the basic principles of working with the framework or refer to the documentation for more detailed information How to Customize the InterfaceAnd now let s move on to the customization itself As I mentioned above each element of the interface is a separate component of the Webix library Each significant part of the interface is a class that consists of these components You can easily change add or completely remove any part of the interface Let s imagine that you have to add an extra column to the task tree First you need to create a new CustomTree class by inheriting it from the class that stores the task tree interface settings gantt views tree In this case we are going to use the config method included into all non abstract classes of the widget This method defines a module view To change the module interface you need to override either the config or init methods The common rule works in the following way if you are sure that all changes in the UI don t break the inner logic you can use the config method Otherwise you need to use the init one The config lifecycle method is inherited from the JetView class It is responsible for customizing the part of the interface that you want to change Inside this method you should get the configuration object of the new class It corresponds to the configurations of the treetable component After this you can add a new column template into the array of the columns property and return the new settings In code it looks like this class CustomTree extends gantt views tree config const ui super config get config object of treetable add a new column template ui columns splice id progress header template progress width return new settings return ui Next you need to replace the class you inherited with the one you created This can be done using the override property in the widget constructor view gantt url override new Map gantt views tree CustomTree This is a simple way to change the interface of Gantt Chart To learn more about the widget customization refer to its documentation LocalizationThe ease of localization is one of the nice bonuses of the Gantt widget By default all the interface labels are displayed in English But you can easily create several custom locales and switch between them To translate labels in a particular language you should create a separate locale and specify the necessary translations there gantt locales ua Add task Добавитизавдання Add project Добавитипроект … When the locale with custom translations is ready you should apply it to the entire app This can be done using the locale property in the widget constructor id gantt id view gantt url your backend locale lang ua If you want to create an international app you should provide several locales and switch between them dynamically To do this you need to access the locale service of the Jet framework using its getService method After this call the setLang method of the locale service It takes the name of the locale to be applied as a parameter const locale gantt id getService locale locale setLang your locale ua en ru custom one Note that the widget is distributed only with the English locale by default But the library provides a special place where users can post custom locales as well These translations can be found on the webix hub ConclusionIn this article I introduced you to the Webix Gantt widget and its main features As you can see it is a very functional and flexible component in terms of configuration and customization Among other things you can integrate it with any framework or library To find more information about the capabilities and settings of Gantt Chart refer to the widget documentation |
2022-04-13 04:05:03 |
海外TECH |
DEV Community |
Setting up YOLO with Darknet |
https://dev.to/ethand91/setting-up-yolo-with-darknet-1ehm
|
Setting up YOLO with Darknet IntroductionHello In this tutorial I will show you how to setup YOLO with Darknet What is YOLO YOLO You Only Look Once is a single stage detector that is popular due to it s speed and accuracy it has been used in various applications to detect people animals traffic signals etc There are other object detectors such as R CNN however they are not as reliable as YOLO In this tutorial we will be building YOLOv v is significantly larger than previous models but it is the best one to use What is Darknet Darknet is an open source neural network framework written in C and CUDA It is fast easy to install and supports CPU and GPU computation Setting up YOLO with DarknetFirst we need to install darknetgit clone amp amp cd darknetmakeNext we need to download the pre trained weightswget wget Or you can use the following bash script Now we can try out the detector on the sample images provided in the repository darknet detector test cfg coco data cfg yolov cfg yolov weights data horses jpgIf all goes well you should see the predictions in the terminal there will also be a file called predictions jpg which when opened should look something like the below image Making the detection faster with GPUYou can get the same results but with much faster time by enabling the GPU flag To do this just modify the Makefile GPU Then rerun makemake ConclusionIn this tutorial I have shown how to setup Yolo with Darknet I am currently interested in yolov If you have any cool sample projects please share Like me work I post about a variety of topics if you would like to see more please like and follow me Also I love coffee |
2022-04-13 04:04:40 |
医療系 |
医療介護 CBnews |
ニンテダニブエタンスルホン酸塩の副作用症例記載-厚労省、医薬品・医療機器等安全性情報を公表 |
https://www.cbnews.jp/news/entry/20220413123243
|
医療機器 |
2022-04-13 14:00:00 |
医療系 |
医療介護 CBnews |
国民健康・栄養調査、会場での身体状況調査中止も-厚労省が検討会で企画案など提示、コロナ状況勘案 |
https://www.cbnews.jp/news/entry/20220413123707
|
健康増進法 |
2022-04-13 13:35:00 |
ニュース |
ジェトロ ビジネスニュース(通商弘報) |
3月の米国向け海上コンテナは前年同月比0.8%増、日本発は13.1%減 |
https://www.jetro.go.jp/biznews/2022/04/49ce87c9f744e676.html
|
海上コンテナ |
2022-04-13 04:30:00 |
ニュース |
ジェトロ ビジネスニュース(通商弘報) |
米フィラデルフィア市、屋内でのマスク着用義務を再開 |
https://www.jetro.go.jp/biznews/2022/04/f473c8f167fbfbe7.html
|
義務 |
2022-04-13 04:10:00 |
海外ニュース |
Japan Times latest articles |
54% of vaccinated people in Japan want to receive fourth COVID-19 shot |
https://www.japantimes.co.jp/news/2022/04/13/national/fourth-covid-shot-interest/
|
shota |
2022-04-13 13:44:18 |
海外ニュース |
Japan Times latest articles |
Japan’s machinery orders fell for second month in February |
https://www.japantimes.co.jp/news/2022/04/13/business/february-machinery-orders-fall/
|
Japan s machinery orders fell for second month in FebruaryThe data adds to concerns that Japanese firms are holding off on investments due to rising energy and raw materials costs fueling fears about the |
2022-04-13 13:16:04 |
海外ニュース |
Japan Times latest articles |
Japanese inn retracts ban on Russians and Belarusians at urging of local officials |
https://www.japantimes.co.jp/news/2022/04/13/national/japanese-inn-russians/
|
Japanese inn retracts ban on Russians and Belarusians at urging of local officialsThe inn located in Shiga Prefecture admitted that rejecting guests from the two countries was the wrong way to denounce Russia s aggression against Ukraine |
2022-04-13 13:12:24 |
海外ニュース |
Japan Times latest articles |
FIFA launches new streaming service for documentaries and live games |
https://www.japantimes.co.jp/sports/2022/04/13/soccer/fifa-plus-streaming-service/
|
FIFA launches new streaming service for documentaries and live gamesThe new platform which is advertiser funded also includes an archive featuring highlights or full replays of every World Cup and Women s World Cup match ever |
2022-04-13 13:08:39 |
ニュース |
BBC News - Home |
Shanghai lockdown: iPhone maker halts operations at China sites |
https://www.bbc.co.uk/news/business-61089733?at_medium=RSS&at_campaign=KARANGA
|
shanghai |
2022-04-13 04:32:22 |
ニュース |
BBC News - Home |
US cryptocurrency expert jailed for helping North Korea evade sanctions |
https://www.bbc.co.uk/news/business-61090064?at_medium=RSS&at_campaign=KARANGA
|
cryptocurrency |
2022-04-13 04:48:25 |
ニュース |
BBC News - Home |
The Papers: PM refuses to quit and Russia plans eastern assault |
https://www.bbc.co.uk/news/blogs-the-papers-61088948?at_medium=RSS&at_campaign=KARANGA
|
donbas |
2022-04-13 04:37:55 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
ウクライナのサイバー全面戦争、露の実力はB級か - WSJ発 |
https://diamond.jp/articles/-/301590
|
全面戦争 |
2022-04-13 13:04:00 |
北海道 |
北海道新聞 |
<デジタル発>日ハム新球場「エスコンフィールド」 その全容が見えてきた |
https://www.hokkaido-np.co.jp/article/668583/
|
北広島市 |
2022-04-13 13:34:04 |
北海道 |
北海道新聞 |
首相、まん延防止適用検討せず 新型コロナ、感染拡大巡り |
https://www.hokkaido-np.co.jp/article/668925/
|
参院本会議 |
2022-04-13 13:16:19 |
北海道 |
北海道新聞 |
銀歯公定価格、8%値上げ 5月、ロシア侵攻で高騰 |
https://www.hokkaido-np.co.jp/article/668954/
|
公定価格 |
2022-04-13 13:06:14 |
北海道 |
北海道新聞 |
愛媛の竹林に乳児遺体 死体遺棄事件か、県警捜査 |
https://www.hokkaido-np.co.jp/article/668967/
|
赤ちゃん |
2022-04-13 13:01:00 |
IT |
週刊アスキー |
レノボ、業務用パッケージも用意されるスマートグラス「ThinkReality A3」を発表 |
https://weekly.ascii.jp/elem/000/004/089/4089108/
|
realityaindustrialedition |
2022-04-13 13:10:00 |
マーケティング |
AdverTimes |
フルスピード上場廃止へ 親会社フリービットがTOB |
https://www.advertimes.com/20220413/article381665/
|
上場廃止 |
2022-04-13 04:08:33 |
ニュース |
THE BRIDGE |
限定品EC「Soldout」が40億円、Play-to-EarnゲームのISKRAが42億円調達など——韓国スタートアップシーン週間振り返り(4月4日~4月8日) |
https://thebridge.jp/2022/04/startup-recipe-apr-4-apr-8
|
限定品EC「Soldout」が億円、PlaytoEarnゲームのISKRAが億円調達などー韓国スタートアップシーン週間振り返り月日月日本稿は、韓国のスタートアップメディア「StartupRecipe스타트업레시피」の発表する週刊ニュースを元に、韓国のスタートアップシーンの動向や資金調達のトレンドを振り返ります。 |
2022-04-13 04:00:55 |
コメント
コメントを投稿