names
stringlengths 1
98
| readmes
stringlengths 8
608k
| topics
stringlengths 0
442
| labels
stringclasses 6
values |
---|---|---|---|
IOTCS | iotcs gitee https gitee com wittqueen iotcs iotcs http 47 108 190 157 http 47 108 190 157 8080 index html net core3 1 plc opc ua mqtt thingsboard mqtt mysql webhook mqtt websocket mqtt opcua s7 modbus plc plc image images shouye jpg windows windows net core3 1 https dotnet microsoft com zh cn download dotnet thank you runtime aspnetcore 3 1 24 windows x64 binaries bin windows path dotnet info release app dotent iotcs edgegateway server dll iotcs edgegateway server exe windows windows linux linux net core3 1 https dotnet microsoft com zh cn download dotnet thank you runtime aspnetcore 3 1 24 linux x64 binaries tar zxvf aspnetcore runtime 3 1 24 linux x64 tar gz c opt netcoresdk ln s opt netcoresdk usr local bin dotnet info release app dotent iotcs edgegateway server dll linux systemd vim usr lib systemd system gatewayd service unit description gateway system service after network target service workingdirectory gateway netcore iotcs type simple user root group root execstart gateway sdk dotnet iotcs edgegateway server dll restart always restartsec 10 syslogidentifier dotnet zl environment aspnetcore environment production environment dotnet print telemetry message false install wantedby multi user target opcua linux amd64 docker docker pull iotcs igateway 0 6 docker run restart always name iigateway dit p 8001 8001 p 9001 9001 iotcs igateway 0 6 admin 1111 image images 1648884682 jpg image images 1648891338 jpg image images 1648891309 jpg id image images shebei jpg image images datalocation jpg image images 1648891377 jpg image images 1648891419 jpg image images diagnostics png hearteen image images jpg | driver iotcs can iot mitsubishi mqtt mqtt-broker omron opc-ua siemens-s7-plcs gateway bacnet modbus can-bus thingsboard thingscloud allen-bradley | server |
moko-errors | moko errors img logo png github license https img shields io badge license apache 20license 202 0 blue svg style flat http www apache org licenses license 2 0 download https img shields io maven central v dev icerock moko errors https repo1 maven org maven2 dev icerock moko errors kotlin version https kotlin version aws icerock dev kotlin version group dev icerock moko name errors mobile kotlin errors this is a kotlin multiplatform library that provides automatic exception handling and automatic error displaying to a screen table of contents features features requirements requirements installation installation usage usage samples samples set up locally set up locally contributing contributing license license features exceptionhandler implements safe code execution and automatic exception display using errorpresenter exceptionmappersstorage singleton object storage that stores a set of exception converters to error classes required for errorpresenter objects errorpresenter classes implements a strategy for displaying exceptions in a user friendly form on the platforms converts the exception class to an error object to display there are several errorpresenter implementations alerterrorpresenter displays errors text in alert dialogs toasterrorpresenter displays errors text in toasts for android and in alert dialog for ios snackbarerrorpresenter displays errors text in snackbar for android and in alert dialog for ios selectorerrorpresenter for selecting error presenter by some custom condition requirements gradle version 6 8 android api 16 ios version 11 0 installation root build gradle groovy allprojects repositories mavencentral project build gradle groovy dependencies commonmainapi dev icerock moko errors 0 6 0 usage exceptionmappersstorage registration of simple custom exceptions mapper in the singleton storage kotlin exceptionmappersstorage register illegalargumentexception stringdesc will map all illegalargumentexception instances to stringdesc illegal argument was passed desc register httpexception int will map all httpexception instances to int it code registration of custom exception mapper with condition kotlin exceptionmappersstorage condition stringdesc registers exception mapper throwable stringdesc condition it is customexception it code 10 condition that maps throwable boolean mapper custom error happened desc mapper for throwable that matches to the condition for every error type you should to set fallback default value using method setfallbackvalue except stringdesc class which already has default value kotlin exceptionmappersstorage setfallbackvalue int 520 sets for int error type default value as 520 creates new mapper that for any unregistered exception will return the fallback value 520 val throwabletointmapper throwable int exceptionmappersstorage throwablemapper using factory method throwablemapper you can create exception mappers automaticlly kotlin val throwabletointmapper throwable int exceptionmappersstorage throwablemapper if a default value is not found when creating a mapper using factory method throwablemapper an exception will be thrown fallbackvaluenotfoundexception the registration can be done in the form of an endless chain kotlin exceptionmappersstorage condition stringdesc condition it is customexception it code 10 mapper custom error happened desc register illegalargumentexception stringdesc illegal argument was passed desc register httpexception int it code setfallbackvalue int 520 exceptionhandler e g declare exceptionhandler property in some viewmodel class kotlin class simpleviewmodel val exceptionhandler exceptionhandler viewmodel bind exceptionhandler in the platform code on android in an activity of fragment kotlin viewmodel exceptionhandler bind lifecycleowner this activity this on ios in a viewcontroller swift viewmodel exceptionhandler bind viewcontroller self creating instances of exceptionhandler class which uses throwable stringdesc mappers kotlin exceptionhandler stringdesc errorpresenter errorspresenterinstance concrete errorpresenter implementation exceptionmapper exceptionmappersstorage throwablemapper create mapper throwable stringdesc from exceptionmappersstorage oncatch optional global catcher println got exception it e g here we can log all exceptions that are handled by exceptionhandler and use it to safe requests in viewmodel kotlin fun onsendrequest viewmodelscope launch exceptionhandler handle serverrequest some dangerous code that can throw an exception finally optional finally block some code execute starts code execution in handle lambda also you can add some custom catch handlers for exceptionhandler that work as a catch in the try catch operator kotlin fun onsendrequest viewmodelscope launch exceptionhandler handle serverrequest catch illegalargumentexception specifying exception class some custom handler code false true cancels errorpresenter false allows execution of errorspresenter execute starts code execution in handle lambda errorpresenter there are errorpresenter interface implementations alerterrorpresenter displays errors text in alert dialogs toasterrorpresenter displays errors text in toasts for android for ios shows alert dialog snackbarerrorpresenter displays errors text in snackbar for android for ios shows alert dialog selectorerrorpresenter for selecting error presenter by some custom condition you need to pass some errorpresenter to errorhandler instance e g creation of error presenters in common code kotlin val alerterrorpresenter alerterrorpresenter alerttitle error desc positivebuttontext ok desc val toasterrorpresenter toasterrorpresenter duration toastduration long selectorerrorpresenter special presenter that select some error presenter by custom condition lambda which should return some errorpresenter to be used for showing errors kotlin val selectorerrorpresenter selectorerrorpresenter throwable when throwable is customexception alerterrorpresenter else toasterrorpresenter and pass some errorpresenter to errorhandler kotlin val exceptionhandler exceptionhandler errorpresenter selectorerrorpresenter exceptionmapper exceptionmappersstorage throwablemapper samples please see more examples in the sample directory sample set up locally the errors directory errors contains the errors library the sample directory sample contains sample apps for android and ios plus the mpp library connected to the apps contributing all development both new features and bug fixes is performed in the develop branch this way master always contains the sources of the most recently released version please send prs with bug fixes to the develop branch documentation fixes in the markdown files are an exception to this rule they are updated directly in master the develop branch is pushed to master on release for more details on contributing please see the contributing guide contributing md license copyright 2020 icerock mag inc licensed under the apache license version 2 0 the license you may not use this file except in compliance with the license you may obtain a copy of the license at http www apache org licenses license 2 0 unless required by applicable law or agreed to in writing software distributed under the license is distributed on an as is basis without warranties or conditions of any kind either express or implied see the license for the specific language governing permissions and limitations under the license | android ios kotlin kotlin-native kotlin-multiplatform moko coroutines error-handling | front_end |
Coda | description python and c realization of nlp stack for russian and english language includes sentence splitter tokenizer morphology disambiguation dependency parser stresser inflector name entity recognizer requirements ubuntu 14 04 or higher cmake version 2 8 gcc version 4 8 python version 2 7 graphviz to create dot files for trees okular to visualize pdf files with trees language pack ru base for russian language support cffi version 1 9 installation 1 sudo bash build cpp sh this script builds c part of application and puts libraries execution files and configs to opt coda 2 sudo bash build cpp sh d this step is optional the script builds c part of application and puts libraries and execution files to opt coda debug 3 bash install python sh this script installs python wrapper egg over c to corresponding site packages folder usage example try python coda python usage example py usage example py content python coding utf 8 from coda tokenizer import tokenizer from coda disambiguator import disambiguator from coda syntax parser import syntaxparser if name main tokenizer tokenizer ru disambiguator disambiguator ru syntax parser syntaxparser ru sentence u tokens tokenizer tokenize sentence disambiguated disambiguator disambiguate tokens tree syntax parser parse disambiguated print tree to string tree draw dot file tmp tree1 dot show true expected output 0 1 s 1 1 v 2 1 v 3 2 s 4 5 a 5 3 s 6 3 pr 7 6 s example tree 1 https cloud githubusercontent com assets 6217675 20967627 b846dbb4 bc80 11e6 931e 93f7ebc97c44 png publications http www dialog 21 ru digests dialog2015 materials pdf muzychkaspiontkovskayai pdf http www dialog 21 ru digests dialog2014 materials pdf muzychkasa pdf http www dialog 21 ru digests dialog2014 materials pdf kudinovms pdf | ai |
|
Cloud-Engineering-Class | cloud engineering class this is class 1 journey into cloud engineering | cloud |
|
chat-gui | strims gg chat gui source code for the chat client at strims gg https chat strims gg this is a work in progress install node js visit https nodejs org and install the package to be able to use npm install the node dependencies bash npm install you can now build the project bash for development npm run build for production npm run build production implementation testing bash start webpack server at http localhost 8282 npm run start automatically build for when you re running your own webserver npm run watch check the readme at assets dev for more information on testing favicon for future reference the favicon is generated via bash convert orig png define icon auto resize 256 128 96 72 64 48 32 24 16 favicon ico license see license md license md | front_end |
|
Mini-Project-2 | mini project 2 rtos kernel | os |
|
Sentiment-Analysis-with-RNN-and-CNN | sentiment analysis project of sjtu cs438 internet based information extraction technologies for a given comment on anything included in the train corpus the model predicts its polarity positive negative with an architecture that first converts the words into embedding vectors then passes them through a neural network combining lstm and convolutional layers to achieve better performance dataset we collected and annoted a dataset containing 34639 chinese comments and 13385 english comments on movies books music and electronic devices which can be found in the dataset dataset folder precision chinese 87 47 english 83 69 you may use your own word embedding and train the model with a new language examples the cake is a lie negative i m lovin it positive team members xiangyu chen https github com cxy1997 zelin ye https github com shinshiner minchao lee https github com marshalleeeeee zhiwen qiang https github com qlightman | machine-learning sentiment-analysis rnn cnn pytorch | server |
Computer-Vision-Python-OCR-Object-Detection-Quick-Starter | computer vision python ocr object detection quick starter computer vision python ocr amp object detection quick starter by packt publishing | ai |
|
Cloud-Engineering | cloud engineering altschool of cloud engineering v2 2nd semester assignment submission | cloud |
|
IMT_Microcontroller-Architecture-and-Interfacing-with-ARM-Cortex | arm embedded systems and iot course welcome to the arm embedded systems and iot course this repository contains the materials and code for a comprehensive course on embedded systems that covers arm architecture basics interrupts real time processing audio processing communications iot and bootloader implementation course overview the course is designed for students and professionals in the field of embedded systems or iot who want to learn about arm architecture real time processing audio processing communications and iot by the end of this course you will be able to understand the basics of arm architecture and peripherals implement interrupt handling techniques using the nested vectored interrupt controller nvic build a real time scheduler using the systick and operating systems os basics implement audio processing techniques using the digital to analog converter dac implement communication protocols such as serial infrared ir universal asynchronous receiver transmitter uart and serial peripheral interface spi build iot applications using wi fi modules and web development techniques implement a bootloader to update firmware in your microcontroller course outline the course is divided into 7 chapters with a total of 22 lectures here is an overview of the course outline chapter lecture title outlines chapter 1 arm architecture basics 1 arm architecture arm history power factors in arm arm processor design arm core peripheral amba bus definition bus matrix harvard to von neumann conversion register definition and driver setup 2 rcc peripheral imt sdk for arm setup code naming convention microcontroller clock types pll and fll different reset types reset and clock control peripheral driver 3 dio peripheral digital input output peripheral basics different input and output modes building dio driver for st microcontroller interfacing leds interfacing 7 segment displays interfacing tactile switches chapter 2 arm interrupts 4 nvic interrupts basics interrupt handling techniques the nested vectored interrupt controller interrupt priority grouping 5 nvic driver nvic registers definition building nvic driver simulating interrupts feature 6 exti external interrupt basics afio peripheral building exti driver chapter 3 real time 7 systick timer basics systick core peripheral interval vs busy wait delay synchronous vs asynchronous design callback function building systick driver 8 os scheduler operating systems basics building real time scheduler time triggered design patter and real dynamic design aspects 9 led matrix pov concept 7 segment displays in pov pattern interfacing led matrix display chapter 4 audio processing 10 dac digital to analog converter basics r2r dac building dac driver 11 audible signals human voice characteristics sampling and quantization dealing with audio files mono vs stereo using picaxe and aux speaker playing sounds over dac chapter 5 communications 12 serial to parallel serial vs parallel communication extending dio pins to unlimited number interfacing led matrix serially 13 ir communication communication over light basics nec ir protocol building ir receiver driver 14 uart serial communication characteristics uart basics building uart driver interfacing usb ttl module 15 spi and tft spi basics building spi driver pixel color modes display types and comparison interfacing tft displays bit map images playing video samples 16 dma direct memory access definitions and basics dma authorities against processor dma driver build chapter 6 iot 17 wifi module wifi basics wifi module interfacing networking client and server model 18 web development html basics php basics http requests building simple web page 19 iot building free server with a simple web page connecting microcontroller to web server microcontroller communication over http chapter 7 bootloader 20 story of flashing c build process memory sections startup code flashing sequence and burner types hex file format 21 hex parser building hex parser driver file transfer over uart 22 bootloader implementation flash driver software bootloader sequence intended audience this course is intended for students and professionals with a basic understanding of microcontroller programming and electronics some experience with c programming is recommended but not required recommended reading here are some recommended books and resources for further reading arm system developer s guide designing and optimizing system software by andrew n sloss dominic symes and chris wright embedded systems real time operating systems for arm cortex m microcontrollers by jonathan valvano the definitive guide to arm cortex m3 and cortex m4 processors by joseph yiu programming with stm32 getting started with the nucleo board and c c by donald norris frequently asked questions faqs what programming language is used in this course this course primarily uses c programming language what microcontroller is used in this course this course uses stmicroelectronics stm32 microcontroller do i need to have any prior knowledge of arm architecture no this course covers the basics of arm architecture and peripherals is there any software required for this course yes you will need the integrated development environment ide keil uvision5 and the stm32cubemx software can i get help if i have questions or get stuck during the course yes you can ask questions and get help through the course forums or by email getting started to get started with this course follow these steps 1 clone or download this repository to your local machine 2 install the integrated development environment ide keil uvision5 or the stm32cubemx software 3 follow the instructions provided in each lecture to set up your development environment and complete the exercises that s it we hope you enjoy this course and find it useful in your embedded systems and iot projects | audio-processing bootloader communications iot real-time arm-architecture-basics arm-interrupts tft-display wifi-modules ili9481 st7735s tft-displays hx8357b | os |
Customer-Relationship-Manager | crm customer relationship manager a basic crud app using spring framework for backend development a simple project for spring framework beginners where you can create read update or delete from your database in addition as a plus feature you can search for a customer index png getting started prerequisites 1 must install maven or if you re using eclipse jee ide make sure that m2e plugin is installed 2 check sql scripts to create the database built with spring 5 https spring io projects spring framework including spring mvc spring core spring aop maven https maven apache org dependency management hibernate orm http hibernate org orm object relational mapping eclipse https www eclipse org java ide mysql https www mysql com relational database management system | server |
|
litiv | litiv computer vision framework license https img shields io badge license apache 202 green svg https tldrlegal com license apache license 2 0 apache 2 0 language https img shields io badge lang c 2b 2b14 f34b7d svg http en cppreference com w cpp compiler support build status https travis ci org plstcharles litiv svg branch master https travis ci org plstcharles litiv stable release https img shields io github release plstcharles litiv svg https github com plstcharles litiv releases this framework contains various libraries executables and scripts originating from computer vision r d projects undertaken in the litiv lab laboratoire d interpr tation et de traitement d images et vid o http www polymtl ca litiv en at polytechnique montr al for now it primarily consists of c algorithm implementations and utilities most of which rely on opencv http opencv org its build system is based on cmake https cmake org and its structure is inspired by opencv the framework should be compatible with most unix windows systems given proper configuration it has been developed in part on windows 7 8 10 with msvc2015v3 and ubuntu fedora with clion most of the source code behind the litiv framework is available under the apache 2 0 license https tldrlegal com license apache license 2 0 apache 2 0 see the license license txt file for more information some third party libraries and utilities are provided under their own bsd 2 clause https tldrlegal com license bsd 2 clause license freebsd or 3 clause https tldrlegal com license bsd 3 clause license revised licenses specific licensing details are available in each source file or folder while this means the litiv framework source code can be used in distributed commercial applications be aware that external algorithms that may be used therein e g vibe fastpd are covered by patents in some countries note that we will offer no legal advice on possible patent infringements cases the litiv framework should be primarily used for testing evaluation research and development purposes in an academic setting the framework currently has little documentation outside doxygen comments in header files if you want to learn more about the algorithms your best bet is to read the papers that introduced them more minimalist code samples unit tests are also always in the works for now module behavior validation primarily relies on assertions and part of these are only enabled for debug builds if you are looking for a place to start digging it is recommended to start in the apps apps and samples samples folders their executable projects can provide a high level look at some features of the framework the apps apps folder contains mostly development sandboxes and testbenches mostly uncommented while the samples samples folder contains cleaner use case examples with more adequate descriptions structure overview as stated before the litiv framework structure is inspired by opencv s structure this means libraries are split into modules modules and they are all assembled under a global library world modules world for easier linking third party components are kept in their own folder 3rdparty 3rdparty at the root level the apps apps and samples samples folders contain various executables which rely on litiv algorithms and utilities for testing and evaluation the scripts scripts folder contains evaluation test scripts that once had some purpose in the lab it needs cleaning for testing each subproject can have its own test directory and it will automatically be parsed and added via ctest all internal modules can be dynamically or statically linked on unix systems and only statically linked on windows symbol exports are still missing requirements the primary goal here is to have the framework core only depend on opencv cmake and have as many opencv based implementations as possible this is not always possible however so building without all dependencies will disable some features here is the list of required and optional dependencies cmake https cmake org 3 1 0 required opencv http opencv org 3 0 0 required glfw http www glfw org 3 0 0 or freeglut http freeglut sourceforge net 2 8 0 optional for glsl implementations glew http glew sourceforge net 1 9 0 optional for glsl implementations glm http glm g truc net optional for glsl implementations cuda https developer nvidia com cuda toolkit 7 0 with compute 3 0 optional for some optimizations boost http www boost org 1 49 optional for some 3rdparty implementations e g sospd opengm https github com plstcharles opengm optional for mutual segmentation algorithms a dockerfile which builds an ubuntu image including all these dependencies is available here dockerfile the images built by travis are periodically uploaded to docker hub here https hub docker com r plstcharles litiv base and here https hub docker com r plstcharles litiv building this is a cmake based project to get your desired solution format makefiles sln and compile the framework you must create a build directory somewhere ideally in this directory startup cmake from there via command line or gui and point to the source directory where this readme is located for example in command line git clone https github com plstcharles litiv cd litiv mkdir build cd build cmake using the cmake gui is highly encouraged as you will have direct access to more options when configuring the framework it is also easier to set paths to missing optional 3rd party libraries using the interface modules overview a list of all internal modules is presented below for more information refer to their readme files datasets modules datasets provides dataset parsing and evaluation utilities with precaching and async processing support features2d modules features2d provides feature descriptors matchers lbsp modules features2d include litiv features2d lbsp hpp dasc modules features2d include litiv features2d dasc hpp lss modules features2d include litiv features2d lss hpp mi modules features2d include litiv features2d mi hpp shapecontext modules features2d include litiv features2d sc hpp imgproc modules imgproc provides image processing algos and utilities edge detectors modules imgproc include litiv imgproc edgedetectorlbsp hpp slic superpixels extractor modules imgproc include litiv imgproc slic hpp image warper modules imgproc include litiv imgproc imwarp hpp test modules test provides utilities for project wide unit performance testing never exported for external usage utils modules utils equivalent of opencv s core module contains miscellaneous common utilities see list here modules utils readme md video modules video provides background subtraction algos utilities lobster modules video include litiv video backgroundsubtractorlobster hpp subsense modules video include litiv video backgroundsubtractorsubsense hpp pawcs modules video include litiv video backgroundsubtractorpawcs hpp and others modules video include litiv video vptz modules vptz provides a compact version of the virtualptz library https bitbucket org pierre luc st charles virtualptz standalone used to evaluate ptz trackers world modules world provides nothing and pre links other modules to make linking easier faster elsewhere notes for a more user friendly stable and documented background subtraction video segmentation framework with various other utilities see andrews sobral s bgslibrary https github com andrewssobral bgslibrary release notes and versions for the litiv framework are maintained through github releases https github com plstcharles litiv releases you are expected to configure and compile the framework yourself based on your own needs your machine s capabilities citation if you use a module from this framework in your own work please cite its related litiv publication s as acknowledgment see this page http www polymtl ca litiv pub index php for a full list contributing if you have something you d like to contribute to the litiv framework algorithm improvement or bugfix you can send it in as a pull request | algorithms opencv computer-vision litiv segmentation image-processing library | ai |
Microcontroller_Embedded_Systems_Design | 3ta4 labs embedded systems design labs with arm cortex m stm32f429 microcontroller source code only | os |
|
open-llm-webui | open llm webui this repository contains a web application designed to execute large language models llms such as the open calm model https huggingface co cyberagent and the japanese gpt neox model https huggingface co rinna japanese gpt neox 3 6b instruction sft installation please follow these steps to install the software create a new conda environment bash conda create n ollm python 3 10 conda activate ollm clone the software repository bash git clone https github com uminosachi open llm webui git cd open llm webui for the cuda environment install the following packages bash pip install r requirements txt running the application bash python ollm app py open http 127 0 0 1 7860 in your browser downloading the model to download the model launch this application click on the download model button next to the llm model id wait for the download to complete note the downloaded model file will be stored in the cache huggingface hub directory of your home directory model list provider model names rinna bilingual gpt neox 4b bilingual gpt neox 4b instruction sft japanese gpt neox 3 6b japanese gpt neox 3 6b instruction sft japanese gpt neox 3 6b instruction sft v2 japanese gpt neox 3 6b instruction ppo thebloke llama 2 7b chat gptq llama 2 13b chat gptq stabilityai stablelm tuned alpha 3b stablelm tuned alpha 7b japanese stablelm base alpha 7b japanese stablelm instruct alpha 7b cyberagent open calm small open calm medium open calm large open calm 1b open calm 3b open calm 7b decapoda research llama 7b hf llama 13b hf please check the license in the model credit section below usage enter your message into the input text box under advanced options adjust the values for max new tokens temperature top k top p and repetition penalty as necessary press enter on your keyboard or click the generate button note if the cloud based model has been updated it might be downloaded upon execution if you enable the cpu execution checkbox the model will utilize the argument device map cpu when you enable the translate ja en en ja checkbox any input in japanese will be translated to english responses in english will be translated back into japanese note downloading the translation model for the first time may take some time ui image images open ollm webui ui image 1 png model credit rinna developed by rinna co ltd https rinna co jp copyright c 2023 rinna co ltd license the mit license https opensource org licenses mit llama 2 developed by meta ai https ai meta com copyright c 2023 meta platforms inc license llama 2 community license https github com facebookresearch llama blob main license stablelm japanese stablelm base developed by stability ai https stability ai copyright c 2023 stability ai ltd license apache license 2 0 https github com stability ai stablelm blob main license japanese stablelm instruct developed by stability ai https stability ai copyright c 2023 stability ai ltd license japanese stablelm research license agreement https huggingface co stabilityai japanese stablelm instruct alpha 7b blob main license opencalm developed by cyberagent inc https www cyberagent co jp copyright c 2023 cyberagent inc license cc by sa 4 0 https creativecommons org licenses by sa 4 0 creative commons attribution sharealike 4 0 international license | language-model llm huggingface huggingface-transformers transformers gradio nlp | ai |
Advanced-Machine-Learning-Specialization | advanced machine learning specialization advanced machine learning specialization on coursera | ai |
|
SQL-Employee-Database-Analysis | sql employee database analysis data modeling engineering and analysis on a sql employee database along with additional analysis using sqlalchemy and pandas data engineering steps inspect the six csv files and determine column headers and data types look for columns with the same headers across the csv files note that employee number emp no is an integer and observed across 5 of the 6 csv files employees titles salaries dept emp and dept manager note that department number dept no is a string varchar and shared across 3 of the 6 files departments dept emp and dept manager set emp no in the employees csv file as the primary key and reference emp no in the other csv files as a foriegn key set dept no as a primary key in the departments csv and reference dept no as a foriegn key in dept emp and dept mangager csv files other than emp no and salary which are set to integers all other column headers are set to strings varchar the relationship types used were many to one an example an employee can have multiple department managers employee database entity relationship diagram erd showing the relationships between tables employee database erd https user images githubusercontent com 48166327 59970917 7bcf7480 9526 11e9 9edb 2ac834493bac png after analyzing the average salary data across job title it was clear that the numbers reported were not correct for example senior engineers and managers were making less than staff average salary by title https user images githubusercontent com 48166327 59970920 825dec00 9526 11e9 8406 61aba47c7d6b png | server |
|
frontend-tips | front end tips a series of super tiny quick tips tricks and best practices of front end development the series cover different topics css html javascript typescript browser developer tools contributing pull requests are welcomed to submit your favorite tip please create a markdown file and put it in the contents contents folder the content of markdown file has to look like md category created tags title the content of post category can be one of tip trick or practice created the date that post is created tags the list of topic s separated by a comma title must match with the file name here contents convert string to number mdx is an example about this project is developed by nguyen huu phuoc i love building products and sharing knowledge be my friend on twitter https twitter com nghuuphuoc github https github com phuocng | front-end front-end-development html css javascript developer-tools tips-and-tricks best-practices eleventy | front_end |
EmbeddedFinalProject | embeddedfinalproject this is the code the smart home system written for the smart home sensor designed for adam kinsley brian dalmar and nick saccomanno s intro to embedded systems final project the design is intended to read two adc values and one i2c value and upload them to thingspeak there are five files in this repository three of the five files in this repository lightsensor motionsensor and motionsensor are for reading the value from each individual sensor used allsensors compiles these three files and retrieves data from each sensor serialcommunication relays the sensor data to a thingspeak channel | os |
|
Second-Chance | large scale project secondchance intellij idea https img shields io badge intellijidea 000000 svg style for the badge logo intellij idea logocolor white java https img shields io badge java 23ed8b00 svg style for the badge logo java logocolor white mongodb https img shields io badge mongodb 234ea94b svg style for the badge logo mongodb logocolor white neo4j https img shields io badge neo4j 008cc1 style for the badge logo neo4j logocolor white secondchance is an e commerce that offers the possibility of selling and buying vinted items every user can create insertions and look for articles selled by people in the nearby or through direct searches features admin visualize statistics specifying a k parameter view top k rated user per country view top k interesting insertions per category view top k viewed insertions per category view top k users with more purchased items view top k users with more sold items number of likes per category suspend a user delete an insertion user sign in in the application visualize home visualize viral insertions visualize feed visualize his her profile visualize personal information browse his her insertions visualize insertions he she is interested in browse his her orders visualize followers and following users add credit to the personal balance account create a new insertion delete an insertion of your own search insertions by seller brand or using filters visualize an insertion like an insertion buy relative item search a user follow unfollow a user visualize suggested users logout from the application queries mongodb search insertions by seller brand or filters search user by username or filters get viral insertions top k rated users by country top k users with more purchased items top k users with more sold items top k interesting insertions by category top k viewed insertions by category neo4j suggest new sellers based on the same country and followers suggest new insertions based on similar interested insertions and category get the k insertions posted by the followers of a specific user show to the admin the amount of like per category details there is not a cart a user can buy one item at a time clicking on the shop button the part regarding users correlation is managed with neo4j a review is done a rating 1 5 stars and a comment regarding the product and is associated to the user every user has a personal wallet that can recharge inserting a code in a specific field when a purchase is computed the amount is decreased suggestions are based on location likes and followed people link dataset1 dataset2 dataset3 containing items dataset4 containing reviews site for genersting rasndom users actors actors role normal user can buy or sell admin can delete items posts and every inappropriate content can suspend a user generate statistics and codes considerations datasets fields selection category name price currency likes count status brand codcountry variation 0 color color image url id size seller view gender nations considered italy canada spain austria germany france brazil netherlands poland ireland united kingdom great britain mongodb collections collection what inside user personal information reviews embedded items sold embedded items purchased embedded suspended bool code codes credit insertion details interested views code code credit balance username credit user field values type id 61fd8cc3edf5f2f4bd1366b9 varchar address 913 2627 donec st string city vienna string country italy canada spain austria germany france brazil netherlands poland ireland united kingdom great britain string email sem ut aol edu string name ruben torphy string password 45a0af6e6952e0a7e2a0a25f951a271 string suspended false boolean username a es string reviews array rating 4 5 double sold array purchased array insertion field values type id 61c05c3e13a1030b20ac150a varchar brand micheal kors string category clothing accessories bags beauty house jewelry kids shoes string color red orange yellow string country italy canada spain austria germany france brazil netherlands poland ireland united kingdom great britain string description text string gender m f u string image url http www something com string interested 10 integer price 10 56 double seller username string size xs s m l xl string status new excellent good used very used string timestamp 2020 02 07 05 11 36 0000 string views 10 integer code field values type code 3ssxtpfqtg varchar credit 200 int32 balance username username string credit 10 56 double neo4j vertices user insertion edges u user posted i insertion u user follows v user u user interested i insertion license mit free software hell yeah these are reference links used in the body of this note and get stripped out when the markdown processor does its job there is no need to format nicely because it shouldn t be seen thanks so http stackoverflow com questions 4823468 store comments in markdown syntax dataset1 https data world wordlift shopping demo workspace file filename amazon fashion csv dataset2 https data world jfreex products catalog from newchiccom dataset3 https data world promptcloud amazon australia product listing workspace project summary agentid promptcloud datasetid amazon australia product listing dataset4 https www kaggle com asmaoueslati womensclothingecommerce site https generatedata com generator | server |
|
RayTracingChess | chess renderer using ray traycing this project was the main deliverable of the winter semester course computer graphics the application is capable of rendering the chessboard with arbitrarily placed pieces it uses the phong shading model and supports shadows and reflections only the obj model files are supported how it works classical ray tracing approach is used as the computation of the intersections with the model s triangles represents the most significant bottleneck of the application the method fast minimum storage ray triangle intersection was implemented the bounding boxes are used as well dependencies msvc compiler eigen configuration it is possible to set the camera s resolution and fov the position of the light in the scene background color recursion depth of ray tracing the colors of the pieces and chessboard fields as well as the reflectance and the shininess regarding the chessboard model the user can set the position of each piece both the renderer and the model configuration can be done using the files configchessdefault and configrtdefault install and run 1 open rtchess sln with visual studio 2 compile release mode is recommended 3 run see synopses the program uses free model file chess obj by author cjx3711 http www turbosquid com fullpreview index cfm id 544320 it is possible to use your own but the program expects the separated models chess pieces and chessboard to follow specific name convention see the chess obj model file synopsis rtchess model config chessboard config ray tracer output model model file name obj config chessboard chessboard configuration file config ray tracer ray tracer configuration file output output file ppm authors jan bednarik jan bednarik hotmail cz jakub kvita kvitajakub gmail com gallery ray traced chess 01 screenshots 01 png ray traced chess 02 screenshots 02 png ray traced chess 03 screenshots 03 png ray traced chess 04 screenshots 04 png ray traced chess 05 screenshots 05 png ray traced chess 06 screenshots 06 png ray traced chess 07 screenshots 07 png | server |
|
advanced_lane_detection | advanced lane detection annotated output images annotated test2 png overview detect lanes using computer vision techniques this project is part of the udacity self driving car nanodegree https www udacity com drive and much of the code is leveraged from the lecture notes the following steps were performed for lane detection compute the camera calibration matrix and distortion coefficients given a set of chessboard images apply a distortion correction to raw images use color transforms gradients etc to create a thresholded binary image apply a perspective transform to rectify binary image birds eye view detect lane pixels and fit to find the lane boundary determine the curvature of the lane and vehicle position with respect to center warp the detected lane boundaries back onto the original image output visual display of the lane boundaries and numerical estimation of lane curvature and vehicle position here https youtu be lsd wy1bqlw is the final video output on youtube the same video is out mp4 in this repo the original video is project video mp4 dependencies python 3 5 numpy opencv python matplotlib pickle how to run run python line fit video py this will take the raw video file at project video mp4 and create an annotated output video at out mp4 afterwards it will display an example annotated image on screen to run the lane detector on arbitrary video files update the last few lines of line fit video py camera calibration the camera was calibrated using the chessboard images in camera cal jpg the following steps were performed for each calibration image convert to grayscale find chessboard corners with opencv s findchessboardcorners function assuming a 9x6 board after the above steps were executed for all calibration images i used opencv s calibratecamera function to calculate the distortion matrices using the distortion matrices i undistort images using opencv s undistort function to illustrate the following is the calibration image camera cal calibration5 jpg calibration5 camera cal calibration5 jpg here is the same image undistored via camera calibration undist cal5 output images undistort calibration png the final calibration matrices are saved in the pickle file calibrate camera p lane detection pipeline the following describes and illustrates the steps involved in the lane detection pipeline for illustration below is the original image we will use as an example orig test images test2 jpg undistort image using the camera calibration matrices in calibrate camera p i undistort the input image below is the example image above undistorted undist output images undistort test2 png the code to perform camera calibration is in calibrate camera py for all images in test images jpg the undistorted version of that image is saved in output images undistort png thresholded binary image the next step is to create a thresholded binary image taking the undistorted image as input the goal is to identify pixels that are likely to be part of the lane lines in particular i perform the following apply the following filters with thresholding to create separate binary images corresponding to each individual filter absolute horizontal sobel operator on the image sobel operator in both horizontal and vertical directions and calculate its magnitude sobel operator to calculate the direction of the gradient convert the image from rgb space to hls space and threshold the s channel combine the above binary images to create the final binary image here is the example image transformed into a binary image by combining the above thresholded binary filters binary output images binary test2 png the code to generate the thresholded binary image is in combined thresh py in particular the function combined thresh for all images in test images jpg the thresholded binary version of that image is saved in output images binary png perspective transform given the thresholded binary image the next step is to perform a perspective transform the goal is to transform the image such that we get a bird s eye view of the lane which enables us to fit a curved line to the lane lines e g polynomial fit another thing this accomplishes is to crop an area of the original image that is most likely to have the lane line pixels to accomplish the perspective transform i use opencv s getperspectivetransform and warpperspective functions i hard code the source and destination points for the perspective transform the source and destination points were visually determined by manual inspection although an important enhancement would be to algorithmically determine these points here is the example image after applying perspective transform warped output images warped test2 png the code to perform perspective transform is in perspective transform py in particular the function perspective transform for all images in test images jpg the warped version of that image i e post perspective transform is saved in output images warped png polynomial fit given the warped binary image from the previous step i now fit a 2nd order polynomial to both left and right lane lines in particular i perform the following calculate a histogram of the bottom half of the image partition the image into 9 horizontal slices starting from the bottom slice enclose a 200 pixel wide window around the left peak and right peak of the histogram split the histogram in half vertically go up the horizontal window slices to find pixels that are likely to be part of the left and right lanes recentering the sliding windows opportunistically given 2 groups of pixels left and right lane line candidate pixels fit a 2nd order polynomial to each group which represents the estimated left and right lane lines the code to perform the above is in the line fit function of line fit py since our goal is to find lane lines from a video stream we can take advantage of the temporal correlation between video frames given the polynomial fit calculated from the previous video frame one performance enhancement i implemented is to search 100 pixels horizontally from the previously predicted lane lines then we simply perform a 2nd order polynomial fit to those pixels found from our quick search in case we don t find enough pixels we can return an error e g return none and the function s caller would ignore the current frame i e keep the lane lines the same and be sure to perform a full search on the next frame overall this will improve the speed of the lane detector useful if we were to use this detector in a production self driving car the code to perform an abbreviated search is in the tune fit function of line fit py another enhancement to exploit the temporal correlation is to smooth out the polynomial fit parameters the benefit to doing so would be to make the detector more robust to noisy input i used a simple moving average of the polynomial coefficients 3 values per lane line for the most recent 5 video frames the code to perform this smoothing is in the function add fit of the class line in the file line py the line class was used as a helper for this smoothing function specifically and line instances are global objects in line fit py below is an illustration of the output of the polynomial fit for our original example image for all images in test images jpg the polynomial fit annotated version of that image is saved in output images polyfit png polyfit output images polyfit test2 png radius of curvature given the polynomial fit for the left and right lane lines i calculated the radius of curvature for each line according to formulas presented here http www intmath com applications differentiation 8 radius curvature php i also converted the distance units from pixels to meters assuming 30 meters per 720 pixels in the vertical direction and 3 7 meters per 700 pixels in the horizontal direction finally i averaged the radius of curvature for the left and right lane lines and reported this value in the final video s annotation the code to calculate the radius of curvature is in the function calc curve in line fit py vehicle offset from lane center given the polynomial fit for the left and right lane lines i calculated the vehicle s offset from the lane center the vehicle s offset from the center is annotated in the final video i made the same assumptions as before when converting from pixels to meters to calculate the vehicle s offset from the center of the lane line i assumed the vehicle s center is the center of the image i calculated the lane s center as the mean x value of the bottom x value of the left lane line and bottom x value of the right lane line the offset is simply the vehicle s center x value i e center x value of the image minus the lane s center x value the code to calculate the vehicle s lane offset is in the function calc vehicle offset in line fit py annotate original image with lane area given all the above we can annotate the original image with the lane area and information about the lane curvature and vehicle offset below are the steps to do so create a blank image and draw our polyfit lines estimated left and right lane lines fill the area between the lines with green color use the inverse warp matrix calculated from the perspective transform to unwarp the above such that it is aligned with the original image s perspective overlay the above annotation on the original image add text to the original image to display lane curvature and vehicle offset the code to perform the above is in the function final viz in line fit py below is the final annotated version of our original image for all images in test images jpg the final annotated version of that image is saved in output images annotated png annotated output images annotated test2 png discussion this is an initial version of advanced computer vision based lane finding there are multiple scenarios where this lane finder would not work for example the udacity challenge video includes roads with cracks which could be mistaken as lane lines see challenge video mp4 also it is possible that other vehicles in front would trick the lane finder into thinking it was part of the lane more work can be done to make the lane detector more robust e g deep learning based semantic segmentation https arxiv org pdf 1605 06211 pdf to find pixels that are likely to be lane markers then performing polyfit on only those pixels | lane-detection lane-boundaries lane-lines lane-curvature camera-calibration computer-vision lane-finding lane-detector self-driving-car udacity-carnd | ai |
389Kfall17 | cmsc389k full stack web development with node js imgur http i imgur com 19j0ajp png course description this course provides a comprehensive practical introduction to modern full stack web development using javascript and node js the course will start with html css javascript then we will move into node js and learn how to build back end applications finally we will learn about express js server side development framework and mongodb database in order to create a complete web application course details course cmsc389k https ntst umd edu soc search courseid cmsc389k sectionid termid 201708 opensectionsonly on creditcompare credits courselevelfilter all instructor facetoface on blended on online on coursestartcompare coursestarthour coursestartmin coursestartam courseendhour courseendmin courseendam teachingcenter all classday1 on classday2 on classday3 on classday4 on classday5 on prerequisites c or better in cmsc216 and cmsc250 credits 1 seats 30 lecture time fridays 3 3 50pm location csi 3118 semester fall 2017 textbook none course facilitators ishaan parikh https www linkedin com in iparikh and sashank thupukari https www linkedin com in sthupukari faculty advisor john dickerson http jpdickerson com syllabus last updated october 18 2017 topics covered html and css javascript ecmascript 2015 e6 variables data types expressions operators conditionals iteration statements functions functional programming callbacks interaction with dom dom manipulation event handling jquery ajax node js file manipulation modules server applications writing server applications in node js and express mongodb deploying and hosting server applications grading grades will be maintained on the cs department a href https grades cs umd edu grades server a you are responsible for all material discussed in lecture and posted on the class repository including announcements deadlines policies etc your final course grade will be determined according to the following percentages percentage title description 55 projects weekly individual projects that teach practical skills and real life applications 20 midterm examination 25 final project final project to demonstrate mastery of all topics learned and apply knowledge to create a new application from scratch any request for reconsideration of any grading on coursework must be submitted within one week of when it is returned no requests will be considered afterwards week topic assignment 1 9 1 html css personal website p1 out 2 9 8 javascript language w dom p1 due js function implementation p2 out 3 9 15 jquery and ajax p2 due 50 state game p3 out 4 9 22 node js 5 9 29 express js p3 due pok mon api p4 out 6 10 6 express js cont 7 10 13 express js cont p4 due 8 10 20 midterm review representatives website p5 out 9 10 27 midterm 10 11 3 databases p5 due 11 11 10 databases cont final project out 12 11 17 web sockets break 11 24 13 12 1 now lab 14 12 8 presentations final project due projects projects must be submitted electronically following the instructions given in each project assignment projects may not be submitted by any other means e g please do not email your projects to us it is your responsibility to test your program and verify that it works properly before submitting all projects are due at 11 59 pm on the day indicated on the project assignment projects may be submitted up to 24 hours late for a 10 penalty if you submit both on time late your project will receive the maximum of the penalty adjusted scores you may submit multiple times unlike lower level programming classes we will not provide you with test cases e g public tests before projects are due you will be responsible for developing your own tests and for using appropriate testing techniques also we expect your projects to use proper style and documentation outside of class communication with course staff we will interact with students outside of class in primarily two ways in person during office hours and piazza email should only be used for emergencies and not class related questions e g projects instructor dr john dickerson john cs umd edu tas ishaan parikh iparikh umd edu sashank thupukari sthukupa terpmail umd edu excused absence and academic accommodations see the section titled attendance absences or missed assignments available at a href http www ugst umd edu courserelatedpolicies html course related policies a disability support accommodations see the section titled accessibility available at a href http www ugst umd edu courserelatedpolicies html course related policies a academic integrity note that academic dishonesty includes not only cheating fabrication and plagiarism but also includes helping other students commit acts of academic dishonesty by allowing them to obtain copies of your work in short all submitted work must be your own cases of academic dishonesty will be pursued to the fullest extent possible as stipulated by the a href http osc umd edu osc default aspx office of student conduct a it is very important for you to be aware of the consequences of cheating fabrication facilitation and plagiarism for more information on the code of academic integrity or the student honor council please visit http www shc umd edu course evaluations if you have a suggestion for improving this class don t hesitate to tell the instructor or tas during the semester at the end of the semester please don t forget to provide your feedback using the campus wide courseevalum system your comments will help make this class better thanks to the writers of a href https www cs umd edu class fall2016 cmsc330 syllabus shtml this a syllabus for the wording of much of this document | front_end |
|
Getting-Started-with-NLP | getting started with natural language processing this repository accompanies the book getting started with natural language processing available here https www manning com books getting started with natural language processing query natural you can use the coupon code slkochmar to get a 42 discount chapter 1 introduction https github com ekochmar getting started with nlp blob master chapter1 ipynb chapter 2 your first nlp example https github com ekochmar essential nlp blob master chapter2 ipynb chapter 3 introduction to information search https github com ekochmar essential nlp blob master chapter3 ipynb chapter 4 information extraction https github com ekochmar essential nlp blob master chapter4 ipynb chapters 5 6 author attribution and user profiling https github com ekochmar essential nlp blob master chapters5 6 ipynb chapters 7 8 sentiment analysis https github com ekochmar essential nlp blob master chapters7 8 ipynb chapter 9 topic analysis https github com ekochmar essential nlp blob master chapter9 ipynb chapter 10 topic modeling https github com ekochmar essential nlp blob master chapter10 ipynb chapter 11 named entity recognition https github com ekochmar essential nlp blob master chapter11 ipynb installation instructions to run the notebooks on your machine check if python 3 is installed all code was written and tested with python 3 7 in addition you will need the following libraries notebooks tested with the versions indicated in the brackets nltk v 3 5 check installation instructions for the toolkit at https www nltk org install html and the accompanying data at https www nltk org data html spacy v 3 1 3 check installation instructions at https spacy io usage you will also need to install models e g en core web sm en core web md and en core web lg using the instructions on the website gensim v 3 8 0 check installation instructions at https radimrehurek com gensim matplotlib v 3 1 3 check installation instructions at https matplotlib org users installing html scikit learn v 0 22 1 check installation instructions at http scikit learn org stable install html numpy v 1 18 1 check installation instructions at https www scipy org install html pandas v 1 0 1 check installation instructions at https pandas pydata org pandas docs stable getting started install html alternatively a number of these libraries can be installed in one go through anaconda https www anaconda com products individual distribution for more information on jupyter notebooks check https jupyter org | ai |
|
Remie-Gia-Venus-Pastor---Miss-M. | remie gia venus pastor miss m introduction to information technology | server |
|
chromosight | chromosight img src docs logo chromosight gif alt animated logo width 200 pypi version https badge fury io py chromosight svg https badge fury io py chromosight install with bioconda https img shields io badge install 20with bioconda brightgreen svg style flat http bioconda github io recipes chromosight readme html build https github com koszullab chromosight actions workflows build yml badge svg branch master https github com koszullab chromosight actions workflows build yml docker image on quay https img shields io badge container quay io brightgreen docker image on quay https quay io repository biocontainers chromosight codecov https codecov io gh koszullab chromosight branch master graph badge svg https codecov io gh koszullab chromosight read the docs https readthedocs org projects chromosight badge https chromosight readthedocs io python package to detect chromatin loops and other patterns in hi c contact maps associated publication https www nature com articles s41467 020 19562 7 documentation and analyses examples https chromosight readthedocs io scripts used for the analysis presented in the article https github com koszullab chromosight analyses scripts installation stable version with pip sh pip3 install user chromosight stable version with conda sh conda install c bioconda c conda forge chromosight or if you want to get the latest development version pip3 install user e git https github com koszullab chromosight git master egg chromosight usage the two main subcommands of chromosight are detect and quantify for more advanced use there are two additional subcomands generate config and list kernels to get the list and description of those subcommands you can always run bash chromosight help pattern detection is done using the detect subcommand the quantify subcommand is used to compute pattern matching scores for a list of 2d coordinates on a hi c matrix the generate config subcommand is used to create a new type of pattern that can then be fed to detect using the custom kernel option the list kernels command is used to view informations about the available patterns get started to get a first look at a chromosight run you can run chromosight test which will download a test dataset from the github repository and run chromosight detect on it you can then have a look at the output files generated important options when running chromosight detect there are a handful parameters which are especially important min dist minimum genomic distance from which to detect patterns for loops this means the smallest loop size accepted i e distance between the two anchors max dist maximum genomic distance from which to detect patterns increasing also increases runtime and memory use pearson detection threshold decrease to allow a greater number of pattern detected with potentially more false positives setting a very low value may actually reduce the number of detected patterns this is due to the algorithm which might merge neighbouring patterns perc zero proportion of zero pixels allowed in a window for detection if you have low coverage increasing this value may improve results example to detect all chromosome loops with sizes between 2kb and 200kb using 8 parallel threads bash chromosight detect threads 8 min dist 20000 max dist 200000 hic data cool output prefix options pattern exploration and detection explore and detect patterns loops borders centromeres etc in hi c contact maps with pattern matching usage chromosight detect kernel config file pattern loops pearson auto win size auto iterations auto win fmt json npy norm auto raw force subsample no inter tsvd smooth trend n mads 5 min dist 0 max dist auto no plotting min separation auto dump dir threads 1 perc zero auto perc undetected auto contact map prefix chromosight generate config preset loops click contact map norm auto raw norm win size auto n mads 5 threads 1 prefix chromosight quantify inter pattern loops subsample no win fmt json kernel config file norm auto raw norm threads 1 n mads 5 win size auto perc undetected auto perc zero auto no plotting tsvd bed2d contact map prefix chromosight list kernels long mat name kernel name chromosight test detect performs pattern detection on a hi c contact map via template matching generate config generate pre filled config files to use for detect and quantify a config consists of a json file describing parameters for the analysis and path pointing to kernel matrices files those matrices files are tsv files with numeric values as kernel to use for convolution quantify given a list of pairs of positions and a contact map computes the correlation coefficients between those positions and the kernel of the selected pattern list kernels prints information about available kernels test download example data and run loop detection on it input input hi c contact maps should be in cool format the cool format is an efficient and compact format for hi c data based on hdf5 it is maintained by the mirny lab and documented here https open2c github io cooler most other hi c data formats hic homer hic pro can be converted to cool using hicexplorer s hicconvertformat https hicexplorer readthedocs io en latest content tools hicconvertformat html or hic2cool https github com 4dn dcic hic2cool bedgraph2 format can be converted directly using cooler with the command cooler load f bg2 chrom sizes binsize in bg2 gz out cool for more informations see the cooler documentation https cooler readthedocs io en latest cli html cooler load for chromosight quantify the bed2d file is a text file with at least 6 tab separated columns containing pairs of coordinates the first 6 columns should be chrom start end chrom start end and have no header alternatively the output text file generated by chromosight detect is also accepted instructions to generate a bed2d file from a bed file are given in the documentation https chromosight readthedocs io en stable tutorial html quantification output three files are generated by chromosight s detect and quantify commands their filenames are determined by the value of the prefix argument prefix tsv list of genomic coordinates bin ids and correlation scores for the pattern identified prefix json json file containing the windows of the same size as the kernel used around the patterns from pattern txt prefix pdf plot showing the pileup average window of all detected patterns plot generation can be disabled using the no plotting option alternatively one can set the win fmt npy option to dump windows into a npy file instead of json this format can easily be loaded into a 3d array using numpy s np load function note the p values and q values provided in prefix tsv should not be used as a criterion for filtering and are only useful for ranking calls their values are obtained from a pearson correlation test and could be biased due to the dependence between contact values in the window contributing all contributions are welcome we use the numpy standard https numpydoc readthedocs io en latest format html for docstrings when documenting functions the code formatting standard we use is black https github com psf black with line length 79 to follow pep8 recommendations we use nose2 as our testing framework ideally new functions should have associated unit tests placed in the tests folder to test the code you can run bash nose2 s tests faq questions from previous users are available in the github issues https github com koszullab chromosight issues q label 3aquestion you can open a new issue for your question if it is not already covered citation when using chromosight in you research please cite the pubication https www nature com articles s41467 020 19562 7 | hi-c genomics chromatin-loops pattern-detection | ai |
Journey-to-become-a-Blockchain-Engineer | journey to become a blockchain engineer i m sharing everything i m learning to become a blockchain engineer blockchain main jpg p align center day 1 https github com spo0ds journey to become a blockchain engineer blob main day01 day01 md p blockchain bitcoin ethereum smart contracts bitcoin vs ethereum oracle problem solution hybrid smart contracts chainlink importance of ethereum chainlink features summary features of blockchain and smart contracts decentralized transparency flexibility speed efficiency security immutability removal of counterparty risks trust minimized agreements summary daos p align center day 2 https github com spo0ds journey to become a blockchain engineer blob main day02 day02 md p a live ethereum transaction wallet creation etherscan multiple accounts public and private keys as well as mnemonics mnemonic vs private vs public keys mainnet testnets initiating our first transaction transaction details gas fees transaction fees gas limit gas price gas vs gas price vs gas limit vs transaction fee gas estimator how blockchain works what happens inside blockchain hash or hashing or sha256 block blockchain decentralized distributed blockchain tokens transaction history summary p align center day 3 https github com spo0ds journey to become a blockchain engineer blob main day03 day03 md p signing and verifying a transaction public private keys signatures transactions summary concepts are same nodes centralized entity vs decentralized blockchain transactions are listed consensus proof of work sybil resistance mechanism blocktime chain selection rule nakamoto consensus block confirmations block rewards transaction fees sybil attack 51 attack drawbacks of pow proof of stake sybil resistance mechanism validators pros cons of pos scalability problem sharding solution layer 1 layer 2 rollups summary p align center day 4 https github com spo0ds journey to become a blockchain engineer blob main day04 day04 md p solidity remix ide its features solidity version defining a contract variable types declaration solidity documentation initializing functions or methods deploying a contract public internal private external visibility modifying a variable scope view functions pure function structs intro to storage arrays dynamic array fixed array adding to an array compiler errors memory keyword storage keyword mappings datastructure spdx license deploying to a live network interacting with deployed contracts evm summary p align center day 5 https github com spo0ds journey to become a blockchain engineer blob main day05 day05 md p storagefactory factory pattern new contract storagefactory import 1 contract into another deploy a contract from a contract track simple storage contracts interacting with contract deployed contract calling store retrieve functions from sf address abi compiling storing in ss through sf adding retrieve function compiling making the code lil bit simpler additional note inheritance overrides recap p align center day 6 https github com spo0ds journey to become a blockchain engineer blob main day06 day06 md p fund me purpose of this contract payable function wei gwei ether mapping msg sender msg value funding eth usd conversion deterministic problem oracle solution centralized oracles decentralized oracle networks chainlink datafeeds chainlink code documentation on eth usd importing datafeed code from chainlink npm package interfaces abi application binary interface interacting with an interface contract finding the pricefeed address deploying getprice function tuples typecasting deploying clearing unused tuple variables deploying making the contract look clean wei gwei standard matching units getting the price using get conversion rate deploying p align center day 7 https github com spo0ds journey to become a blockchain engineer blob main day07 day07 md p safemath integer overflow libraries setting threshold require statement revert deplying transaction withdraw function transfer balance this deploying owner constructor function deploying modifiers deploying resetting the funders balances to zero for loop summary deploying transaction forcing a trasacttion libraries advanced solidity immutable constant custom errors receive fallback p align center day 8 https github com spo0ds journey to become a blockchain engineer blob main day08 day08 md p web3 py simplestorage limitations of remix vscode python solidity setup vscode features testing python install troubleshooting creating a new folder simplestorage sol remember to save vscode solidity settings python formatter settings author s recommended settings working with python reading our solidity file in python running in python keyboard shortcuts py solc x importing solcx compiled sol bracket pair colorized pysolcx documentation printing compiled sol comparison wih remix lowlevelstuffs abi saving compiled code writing import json json formatting settings deploying in python bytecode abi which blockchain where to deploy ganache chain ganache ui introduction to web3 py pip install web3 import web3 http rpc provider connecting to ganache rpc server documentation chain id address privatekey deploy to ganache building a transaction nonce getting nonce create a transaction transaction parameters signing our transaction signed txn never hardcode your private keys environment variables setting environment variables limitations of exporting environment variables private key psa accessing environment variables env file gitignore pip install python dotenv load dotenv sending the signed transaction deployment p align center day 9 https github com spo0ds journey to become a blockchain engineer blob main day09 day09 md p block confirmation wait for transaction reciept interact work with thee contract address abi retrieve call transact store function creating transaction store transaction signing transaction signed store txn sending transaction send store tx tx receipt deployment some nice syntax deployment ganache cli install nodejs install yarn run ganache cli ganache documentation update privatekeys addresses http provider open new terminal deploy deploy to testnet mainnet infura alchemy create project update the rinkeby url chain id address private key deploying summary recap p align center day 10 https github com spo0ds journey to become a blockchain engineer blob main day10 day10 md p brownie simple storage brownie intro features install brownie 1st brownie simplestorage project brownie folders brownie compile store brownie deploy brownie runscripts deploy py default brownie network brownie advantages over web3 py in deploying getting address private key using accounts package add default ganache account using index add accounts using commandline add accounts using env variables adding wallets in yaml file and updating in account importing contract simplestorage importing deploying in brownie vs web3 py recreating web3 py script in brownie tests deploying to a testnet brownie console p align center day 11 https github com spo0ds journey to become a blockchain engineer blob main day11 day11 md p brownie fund me initial setup dependencies remappings rinkeby deploy script init py deploying to rinkeby deploying to ganache mock constructor parameters p align center day 12 https github com spo0ds journey to become a blockchain engineer blob main day12 day12 md p refactoring deploying to a persistant ganache adding network to brownie withdraw and fund testing default network mainnet fork custom mainnet fork adding to github where should i run my tests p align center day 13 https github com spo0ds journey to become a blockchain engineer blob main day13 day13 md p smartcontract lottery decentralized lottery setup wait is this really decentralized could we make it decentralized chainlink keepers lottery sol main functions of lottery sol address payable require minimum payment getentrancefee testing enum startlottery randomness pseudorandom numbers true randomness with chainlink vrf oracle gas and transaction gas request and receive kovan gas estimation failed after link transaction completes after transaction completes request and receive asynchronous 2 transactions clarification p align center day 14 https github com spo0ds journey to become a blockchain engineer blob main day14 day14 md p endlottery returns type variablename fulfillrandomness override modulo mod operation lottery testing deploy lottery py get account refactored contract to mock contract from abi adding vrfcoordinatormock start lottery enter lottery end lottery funding with link brownie interfaces waiting for callback integration tests vs unit tests unit testing pytest skip test cant enter unless started test can start and enter lottery test can end lottery test can pick winner correctly events and logs callbackwithrandomness integration test test deployment topics conftest py p align center day 15 https github com spo0ds journey to become a blockchain engineer blob main day15 day15 md p chainlink mix erc20s eips and token standards why make an erc20 how do we build one of these tokens solidity 0 8 1 deploy token py p align center day 16 https github com spo0ds journey to become a blockchain engineer blob main day16 day16 md p defi aave decentralized exchange dex depositing tokens lending wethgateway interest bearing token atoken why borrow stable vs variable interest rate reward token governance token programmatic interactions with aave qunt defi engineer no contract deployments here aave borrow py converting eth weth get the weth interface why not get contract p align center day 17 https github com spo0ds journey to become a blockchain engineer blob main day17 day17 md p aave borrow py lending pool lendingpool address provider fixing importing dependencies deposit function getuseraccountdata liquidation threshold getting dai conversion rate aave testnet token addresses repaying testing p align center day 18 https github com spo0ds journey to become a blockchain engineer blob main day18 day18 md p nfts erc 721 metadata token uri let s start coding initial setup simplecollectible sol factory contract safemint how do i see the nft is this decentralized ethereum size and dstorage ipfs deploy and create py ipfs companion testing what else with nfts p align center day 19 https github com spo0ds journey to become a blockchain engineer blob main day19 day19 md p advanced nft double inherited constructor tokenidtobreed settokenuri isapprovedorowner best practice p align center day 20 https github com spo0ds journey to become a blockchain engineer blob main day20 day20 md p advanced deploy and create py refactoring deploying advancedcollectible continuing our deploy script create collectible py back to testing unit testing p align center day 21 https github com spo0ds journey to become a blockchain engineer blob main day21 day21 md p integration testing create metadata py get breed sample metadata py uploading image to ipfs download ipfs command line http ipfs docs alternative pinata upload to pinata refactor to not re upload to ipfs setting the tokenuri end to end mannual test p align center day 22 https github com spo0ds journey to become a blockchain engineer blob main day22 day22 md p upgrades not really parameterize who the admins are upgradeable smart contracts decentralized social yeet migration proxies biggest gotchas transparent proxy pattern universal upgradeable proxies gas saver diamond pattern p align center day 23 https github com spo0ds journey to become a blockchain engineer blob main day23 day23 md p coding upgradeable smart contracts box sol getting proxy contracts hooking up a proxy to our implementation contract initializer encoding the initializer function get encode function assigning v2 to proxy upgrade python function testing our upgrades testing our proxy upgrades on a testnet p align center day 24 https github com spo0ds journey to become a blockchain engineer blob main day24 day24 md p full stack defi staking and depositing dapptoken sol tokenfarm sol tokenisallowed valued staked tokens issuetokens getusertotalvalue p align center day 25 https github com spo0ds journey to become a blockchain engineer blob main day25 day25 md p unstaketokens can this be reentrancy attacked scripts and tests p align center day 26 https github com spo0ds journey to become a blockchain engineer blob main day26 day26 md p testing p align center day 27 https github com spo0ds journey to become a blockchain engineer blob main day27 day27 md p front end full stack react and typescript create react app install packages create react app layout connecting your wallets header component material ui sending brownie config to the ui helper config p align center day 28 https github com spo0ds journey to become a blockchain engineer blob main day28 day28 md p yourwallet state hook stake form calling approve usecontractfunction useeffect notifications make it pretty p align center day 29 https github com spo0ds journey to become a blockchain engineer blob main day29 day29 md p events and logging in solidity events multicall batch requests p align center day 30 https github com spo0ds journey to become a blockchain engineer blob main day30 day30 md p leveraged trading in defi aave ui doing programmatically p align center day 31 https github com spo0ds journey to become a blockchain engineer blob main day31 day31 md p flash loans p align center day 32 https github com spo0ds journey to become a blockchain engineer blob main day32 day32 md p ethers js simple storage installation tiny javascript refresher asynchronous programming in javascript compiling our solidity ganache networks introduction to ethers js p align center day 33 https github com spo0ds journey to become a blockchain engineer blob main day33 day33 md p a note on await keyword adding transaction overrides transaction receipts sending a raw transaction in etherjs interacting with contracts in ethersjs environment variables better private key management optional prettier fromatting deploying to a testnet or a mainnet p align center day 34 https github com spo0ds journey to become a blockchain engineer blob main day34 day34 md p hardhat simple storage hardhat hardhat setup deploying simplestorage from hardhat networks in hardhat p align center day 35 https github com spo0ds journey to become a blockchain engineer blob main day35 day35 md p programatic verification interacting with contracts in hardhat custome hardhat tasks hardhat localhost node the hardhat console running tests hardhat gas reporter solidity coverage hardhat waffle p align center day 36 https github com spo0ds journey to become a blockchain engineer blob main day36 day36 md p hardhat fund me hardhat setup linting importing from npm hardhat deploy mocking helper hardhat config utils folder testnet demo p align center day 37 https github com spo0ds journey to become a blockchain engineer blob main day37 day37 md p solidity style guide testing fundme breakpoints debugging gas console log debugging testing fundme ii p align center day 38 https github com spo0ds journey to become a blockchain engineer blob main day38 day38 md p storage in solidity gas optimizations using storage keyword solidity chainlink style guide staging tests running scripts on a local node adding scripts to your package json p align center day 39 https github com spo0ds journey to become a blockchain engineer blob main day39 day39 md p html javascript fund me intro to front end full stack how websites work with web3 wallet html setup connecting html to metamask javascript in it s own files es6 frontend js vs nodejs sending a transaction from a website resetting an account in metamask listening for events and completed transactions input forms reading from the blockchain withdraw function p align center day 40 https github com spo0ds journey to become a blockchain engineer blob main day40 day40 md p hardhat smart contract lottery raffle hardhat setup raffle sol setup events chainlink vrf randomess in web3 implementing chainlink vrf hardhat shorthand implementing chainlink vrf the request implementing chainlink vrf the fulfill p align center day 41 https github com spo0ds journey to become a blockchain engineer blob main day41 day41 md p introduction to chainlink keepers implementing chainlink keepers checkupkeep enums implementing chainlink keepers checkupkeep continued implementing chainlink keepers performupkeep code cleanup p align center day 42 https github com spo0ds journey to become a blockchain engineer blob main day42 day42 md p mock chainlink vrfcoordinator raffle sol unit tests testing events chai matchers raffle sol unit tests continued hardhat methods time travel callstatic massive promise test raffle sol staging tests testing on a testnet p align center day 43 https github com spo0ds journey to become a blockchain engineer blob main day43 day43 md p nextjs smart contract lottery nextjs intro nextjs setup manual header i react hooks mannual header ii useeffect hook local storage isweb3enable loading web3uikit introduction to calling functions in nextjs automatic constant value ui updater p align center day 44 https github com spo0ds journey to become a blockchain engineer blob main day44 day44 md p runcontractfunction usestate calling functions in nextjs usenotification reading and displaying contract data a note about onsuccess tailwind styling introduction to hosting your site ipfs hosting on ipfs hosting on ipfs filecoin using fleek filecoin overview summary p align center day 45 https github com spo0ds journey to become a blockchain engineer blob main day45 day45 md p hardhat starter kit hardhat erc20s what is an erc what is an eip what is an erc20 why make an erc20 manually creating an erc20 token creating an erc20 token with openzeppelin recap p align center day 46 https github com spo0ds journey to become a blockchain engineer blob main day46 day46 md p hardhat defi and aave what is aave programatic borrowing and lending weth wrapped eth forking mainnet depositing into aave borrowing from aave repaying with aave p align center day 47 https github com spo0ds journey to become a blockchain engineer blob main day47 day47 md p the ultimate nft hardhat setup basic nft p align center day 48 https github com spo0ds journey to become a blockchain engineer blob main day48 day48 md p random nft mapping chainlink vrf requests creating rare nfts setting the nft image setting an nft mint price recap p align center day 49 https github com spo0ds journey to become a blockchain engineer blob main day49 day49 md p deploy uploading token images with pinata uploading metadata with pinata nft tests p align center day 50 https github com spo0ds journey to become a blockchain engineer blob main day50 day50 md p dynamic svg on chain nft what is a svg initial code base64 encoding advanced section encoding opcodes and calls abi encode abi encodepacked introduction to encoding function calls directly encoding recap encoding function calls directly p align center day 51 https github com spo0ds journey to become a blockchain engineer blob main day51 day51 md p dynamic svg on chain nft creating an nft tokenuri on chain making the nft dynamic dynamic svg on chain nft deploy script p align center day 52 https github com spo0ds journey to become a blockchain engineer blob main day52 day52 md p full stack nft marketplace nft marketplace contracts hardhat setup nftmarketplace sol listitem function buyitem function reentrancy attacks marketplace sol continued nftmarketplace deploy script nft marketplace tests nft marketplace scripts p align center day 53 https github com spo0ds journey to become a blockchain engineer blob main day53 day53 md p moralis front end nextjs setup adding tailwind introducing to indexing in web3 what is moralis connecting moralis to our local hardhat node p align center day 54 https github com spo0ds journey to become a blockchain engineer blob main day54 day54 md p moralis event sync p align center day 55 https github com spo0ds journey to become a blockchain engineer blob main day55 day55 md p resetting the local chain moralis cloud functions moralis cloud functions ii querying the moralis database rendering the nft images p align center day 56 https github com spo0ds journey to become a blockchain engineer blob main day56 day56 md p updating the listing buy nft listing sell page listing nfts for sale p align center day 57 https github com spo0ds journey to become a blockchain engineer blob main day57 day57 md p the graph front end what is the graph building a subgraph deploying our subgraph reading from the graph hosting our dapp p align center day 58 https github com spo0ds journey to become a blockchain engineer blob main day58 day58 md p hardhat upgrades delegate call small proxy example function selector clashes transparent upgradeable proxy contract p align center day 59 https github com spo0ds journey to become a blockchain engineer blob main day59 day59 md p build a dao what is a dao how to build a dao p align center day 60 https github com spo0ds journey to become a blockchain engineer blob main day60 day60 md p security and auditing what is an audit process slither fuzzing and eth security toolbox p align center day 61 https github com spo0ds deep dive into defi blob main day61 day61 md p deep dive into defi traditional finance system income statement fractional reserve the multiplier effect and the money supply bank notes bank notes and checks giving out loans without giving out gold reserve ratios reserve ratio requirement leverage reserve bank treasury government debt open market operations p align center day 62 https github com spo0ds deep dive into defi blob main day62 day62 md p the federal funds rate more on the fed funds rate how do target interest rates differ from money supply what happened to the gold overall discussion the discount rate repurchase agreements repo transactions fractional reserve banking deposit insurance big picture libor p align center day 63 https github com spo0ds deep dive into defi blob main day63 day63 md p connecting tradfi and defi stablecoins volatility liquidity collateral floating and fixed interest rates currency pegs types of stablecoins and comparison usdt usdc busd dai p align center day 64 https github com spo0ds deep dive into defi blob main day64 day64 md p tether usdt makerdao dai and makerdao mechanism design of maker dai and mkr dual token mechanism reserve mechanism creating dai and how it works maintaining stability crashes liquidations how is this different from lending and borrowing transparency global settlement interacting with a maker vault p align center day 65 https github com spo0ds deep dive into defi blob main day65 day65 md p smart contract module of makerdao p align center day 66 https github com spo0ds deep dive into defi blob main day66 day66 md p decentralized exchanges dexs stocks financial instruments order book market exchange broker dealer market makers market index long trade vs short trade leverage margin trading counterparty risks trade slippage p align center day 67 https github com spo0ds deep dive into defi blob main day67 day67 md p dex risk how a decentralized cryptocurrency exchange works atomic swaps liquidity pools and automated market makers liquidity pools amm impermanent loss rug pull p align center day 68 https github com spo0ds deep dive into defi blob main day68 day68 md p uniswap high level working of uniswap creating markets using uniswap exchange factories adding liquidity to markets via uniswap exchanges swapping ether for tokens swapping tokens for ether swapping tokens for tokens comparison of unswap v1 vs v2 vs v3 uniswap v1 uniswap v2 uniswap v3 frontrunning and sandwich attacks how is it related to slippage mempool p align center day 69 https github com spo0ds deep dive into defi blob main day69 day69 md p balancer index index fund what is balancer liquidity bootstrapping pools how does the balancer work smart contract walkthrough bfactory sol bpool sol p align center day 70 https github com spo0ds deep dive into defi blob main day70 day70 md p curve finance why not uniswap how does curve finance work math behind curve finance p align center day 71 https github com spo0ds deep dive into defi blob main day71 day71 md p bancor smart contract walkthrough vault sol mastervault sol externalprotectionvault sol externalrewardsvault sol p align center day 72 https github com spo0ds deep dive into defi blob main day72 day72 md p bancorarbitrage sol p align center day 73 https github com spo0ds deep dive into defi blob main day73 day73 md p carbon asymmetric liquidity overview features of carbon | blockchain roadmap smartcontracts web3 aave brownie chainlink ethereum hardhat javascript python3 typescript | blockchain |
deep-learning-for-nlp-lectures | deep learning for natural language processing lectures 2023 this repository contains slides for the course 20 00 0947 deep learning for natural language processing technical university of darmstadt summer term 2023 this course is jointly lectured by ivan habernal https www trusthlt org and martin tutek https www informatik tu darmstadt de ukp ukp home staff ukp ukp home content staff 1 details 124480 en jsp the slides are available as pdf as well as latex source code we ve used beamer because typesetting mathematics in powerpoint or similar tools is painful see the instructions below if you want to compile the slides yourselves logo https upload wikimedia org wikipedia commons thumb e e5 cc by sa icon svg 88px cc by sa icon svg png the content is licensed under creative commons cc by sa 4 0 https creativecommons org licenses by sa 4 0 which means that you can re use adapt modify or publish it further provided you keep the license and give proper credits note the following content is continuously updated as the summer term progresses if you re interested in the full previous 2022 content checkout the latest 2022 git commit https github com dl4nlp tuda deep learning for nlp lectures tree a59910534ac600a6e8c22fbcde6ae8223a87cda9 youtube playlist subscribe the youtube playlist to get updates on new lectures https youtube com playlist list pl6wlgvne6zca4gur5maakdrgxyzyaetk3 lecture 1 nlp tasks and evaluation april 11 2023 slides as pdf pdf dl4nlp2023 lecture01 pdf youtube recording https www youtube com watch v cku a34 qe lecture 2 mathematical foundations of deep learning april 18 2023 slides as pdf pdf dl4nlp2023 lecture02 pdf youtube recording https www youtube com watch v xbfncvwdctw lecture 3 text classification 1 log linear models april 25 2023 slides as pdf pdf dl4nlp2023 lecture03 pdf youtube recording https www youtube com watch v t7yz7ogtd5o lecture 4 text classification 2 deep neural networks may 2 2023 slides as pdf pdf dl4nlp2023 lecture04 pdf youtube recording https www youtube com watch v fk1y4yco3ay lecture 5 text generation 1 language models and word embeddings may 9 2023 slides as pdf pdf dl4nlp2023 lecture05 pdf youtube recording https www youtube com watch v hqcfkkymrdw lecture 6 text classification 3 learning word embeddings may 16 2023 slides as pdf pdf dl4nlp2023 lecture06 pdf youtube recording https www youtube com watch v fclxxb8 m8i lecture 7 text classification 4 recurrent neural networks may 30 2023 slides as pdf pdf dl4nlp2023 lecture07 pdf youtube recording https www youtube com watch v sgjkjroyx4s lecture 8 text generation 2 autoregressive encoder decoder with rnns and attention june 6 2023 slides as pdf pdf dl4nlp2023 lecture08 pdf youtube recording https www youtube com watch v tomytc3xaeo lecture 9 text generation 3 transformers june 13 2023 slides as pdf pdf dl4nlp2023 lecture09 pdf youtube recording https youtu be yg5qrkoe0v4 lecture 10 text classification 4 self attention and bert june 20 2023 slides as pdf pdf dl4nlp2023 lecture10 pdf youtube recording https youtu be nod9irgv9xg lecture 11 text generation 4 decoder only models and gpt june 27 2023 slides as pdf pdf dl4nlp2023 lecture11 pdf youtube recording https youtu be t3j534jye e lecture 12 contemporary llms prompting and in context learning july 4 2023 recap slides as pdf pdf dl4nlp2023 lecture12 recap pdf pptx lecture slides pdf dl4nlp 20lecture 2012 20contemporary 20llms pptx lecture 13 guest lecture by dr thomas arnold ethics of generative ai july 11 2023 slides as pdf pdf dl4nlp2023 lecture13 pdf pptx lecture slides pdf dl4nlp2023 lecture13 pptx youtube recording https www youtube com watch v lo2 w5l2y40 subtitles close caption thanks to jan k hnemund for generating the close caption for youtube with open whisper we track the subtitles here under subtitles so if you spot an error there there are many such as tanh 10h just open a bug or pr faq what are some essential pre requisites math derivatives and partial derivatives we cover them in lecture 2 if you need more i would recommend these sources jeremy kun a programmer s introduction to mathematics absolutely amazing book pay what you want for the pdf book https pimbook org deisenroth a aldo faisal and cheng soon ong mathematics for machine learning excellent resource freely available might be a bit dense https mml book github io can i have the slide deck without unfolding the content over multiple pages you can compile the slides with the handout parameter see below the section compiling handouts compiling handouts where do i find the code for plotting the functions most of the plots are generated in python jupyter in colab the links are included as comments in the respective latex sources for the slides compiling slides to pdf if you run a linux distribution e g ubuntu 20 04 and newer all packages are provided as part of texlive install the following packages plain sudo apt get install texlive latex recommended texlive pictures texlive latex extra texlive fonts extra texlive bibtex extra texlive humanities texlive science texlive luatex biber wget y install fira sans fonts required by the beamer template locally plain wget https github com mozilla fira archive refs tags 4 106 zip o 4 106 zip unzip o 4 106 zip mkdir p fonts firasans cp fira 4 106 otf fira fonts firasans rm rf fira 4 106 rm 4 106 zip fc cache f v mktexlsr compile each lecture s slides using lualatex plain lualatex dl4nlp2023 lecture tex biber dl4nlp2023 lecture bcf lualatex dl4nlp2023 lecture tex lualatex dl4nlp2023 lecture tex compiling slides using docker if you don t run a linux system or don t want to mess up your latex packages i ve tested compiling the slides in a docker install docker https docs docker com engine install create a folder to which you clone this repository for example mkdir p tmp slides run docker with ubuntu 20 04 interactively mount your slides directory under mnt in this docker container plain docker run it rm mount type bind source tmp slides target mnt ubuntu 20 04 bin bash once the container is running update install packages and fonts as above plain apt get update apt get dist upgrade y apt get install texlive latex recommended texlive pictures texlive latex extra texlive fonts extra texlive bibtex extra texlive humanities texlive science texlive luatex biber wget y fonts plain wget https github com mozilla fira archive refs tags 4 106 zip o 4 106 zip unzip o 4 106 zip mkdir p fonts firasans cp fira 4 106 otf fira fonts firasans rm rf fira 4 106 rm 4 106 zip fc cache f v mktexlsr and compile plain cd mnt dl4nlp latex lecture01 lualatex dl4nlp2023 lecture tex biber dl4nlp2023 lecture bcf lualatex dl4nlp2023 lecture tex lualatex dl4nlp2023 lecture tex which generates the pdf in your local folder e g tmp slides compiling handouts we re uploading the pdfs as presented in the lecture you can compile the slides in a concise way using the handout settings just commment uncomment the respective line at the beginning of the tex file of the lecture slides | natural-language-processing deep-learning nlp machine-learning | ai |
blk-explorer-free | this has been moved to https github com blk io epirus free | blockchain ethereum docker explorer quorum | blockchain |
blockchain | exthereum blockchain circleci https circleci com gh exthereum blockchain svg style svg https circleci com gh exthereum blockchain elixir implementation of ethereum s blockchain this includes functionality to build and verify a chain of ethereum blocks that may be advertised from any peer we complete the resultant state of the blocktree and form a canonical blockchain based on difficulty exthereum s blocks are specified in a variety of sections throughout the yellow paper http yellowpaper io but it s best to start looking under section 4 4 installation bash mix deps get mix compile if available in hex https hex pm docs publish the package can be installed by adding blockchain to your list of dependencies in mix exs elixir def deps do blockchain 0 1 6 end documentation can be generated with exdoc https github com elixir lang ex doc and published on hexdocs https hexdocs pm once published the docs can be found at https hexdocs pm blockchain https hexdocs pm blockchain debugging to debug a given run of the blockchain you can set breakpoints on contract addresses by setting the breakpoint environment variable and specifying a contract address to break on e g bash breakpoint bc1ffc1620da1468624a596cb841d35e6b2f1fb6 iex s mix 00 04 18 739 warn debugger has been enabled set breakpoint 1 on contract address 0xbc1ffc1620da1468624a596cb841d35e6b2f1fb6 breakpoint 1 triggered with conditions contract address 0xbc1ffc1620da1468624a596cb841d35e6b2f1fb6 start gas 277888 pc 0 memory 0 words 0 stack 0 0 push2 1 0 2 4 3 dup1 4 push2 5 0 6 14 7 push1 8 0 9 codecopy enter a debug command or type h for help contributing 1 fork it https github com exthereum blockchain fork 2 create your feature branch git checkout b my new feature 3 commit your changes git commit am add some feature 4 push to the branch git push origin my new feature 5 create new pull request author geoffrey hayes hayesgm ayrat badykov ayrat555 mason fischer masonforest license exthereum s blockchain is released under the mit license see the license file for further details | blockchain |
|
ALL-STORE | all store mobile app development react project | front_end |
|
doctor_booking | doctor booking a new flutter project getting started this project is a starting point for a flutter application a few resources to get you started if this is your first flutter project lab write your first flutter app https docs flutter dev get started codelab cookbook useful flutter samples https docs flutter dev cookbook for help getting started with flutter development view the online documentation https docs flutter dev which offers tutorials samples guidance on mobile development and a full api reference | api dart flutter flutter-ui getx | server |
design-system | p align center img src https user images githubusercontent com 1672302 213473448 ac8cd0f7 cde2 49ef b8ef 4067677569f2 jpg role presentation alt p p align center the helios design system provides the building blocks to design and implement consistent accessible and delightful product experiences across hashicorp p usage for guidelines on how to use helios see our documentation website https helios hashicorp design packages packages components npm version https badge fury io js 40hashicorp 2fdesign system components svg https badge fury io js 40hashicorp 2fdesign system components design system components in ember js npm package hashicorp design system components website https helios hashicorp design components https helios hashicorp design components more info see components readme packages components readme md and components contributing packages components contributing md packages ember flight icons npm version https badge fury io js 40hashicorp 2fember flight icons svg https badge fury io js 40hashicorp 2fember flight icons ember js addon with flighticon component npm package hashicorp ember flight icons website https helios hashicorp design icons library https helios hashicorp design icons library more info see ember flight icons readme packages ember flight icons readme md and ember flight icons contributing packages ember flight icons contributing md for details on how to build and test the ember js addon packages flight icons npm version https badge fury io js 40hashicorp 2fflight icons svg https badge fury io js 40hashicorp 2fflight icons website https helios hashicorp design icons library https helios hashicorp design icons library flight icons in different formats svg svg sprite react npm package hashicorp flight icons more info see flight icons readme packages flight icons readme md and flight icons contributing packages flight icons contributing md for details on how to use the sync build scripts that export the assets from figma and generate a bundle of standalone svg files packages tokens npm version https badge fury io js 40hashicorp 2fdesign system tokens svg https badge fury io js 40hashicorp 2fdesign system tokens design tokens npm package hashicorp design system tokens website https helios hashicorp design foundations tokens https helios hashicorp design foundations tokens more info see tokens readme packages tokens readme md and tokens contributing packages tokens contributing md for details on how to update the design tokens contributing workspaces this monorepo uses yarn workspaces https yarnpkg com features workspaces to manage dependencies for all packages adding new packages run this command from the monorepo root bash yarn workspace workspace npm package add dev npm package e g yarn workspace hashicorp design system components add dev ember cli flash using ember install in the monorepo run this command from the monorepo root bash yarn workspace workspace npm package run ember install npm package e g yarn workspace hashicorp design system components run ember install ember a11y refocus changesets this project uses changesets https github com changesets changesets to manage how changes will be released each user facing change to a package should come with a changeset for each package that has changed to create a changeset run and follow the prompts in your terminal bash yarn changeset see the changeset docs https github com changesets changesets blob main docs adding a changeset md for more information note if you want to ignore a changeset bump in terminal e g major bump for selected package x is n a want a patch release press return on the command line to skip that step press the spacebar to select that step releasing release prs are created and automatically updated on every pr merge by the changeset github action https github com changesets action once we are ready to do a release the pr titled version packages can be approved and merged to main and the changes will be released to npm automatically local testing of versioning you can simulate the versioning experience locally with this command bash yarn changeset version for this step to complete successfully you ll need to keep in mind the following first create a personal access token in github https github com settings tokens the name could be anything e g design system with read user and repo status scopes and then add the token to a env file in the project s root bash github token your token here second because this command relies on reading information about the change from github it only works if the changeset files already exist in prs there the best option for this is to target an existing pr branch with a changeset and run the command against that branch locally license this project is licensed under the mozilla public license 2 0 license versioning we use semver http semver org for versioning | design-system hashicorp design-systems icons components design-tokens helios emberjs | os |
applause | applause applause is a toolkit for easily creating cross platform mobile applications it consists of a dsl to describe mobile applications and a number of code generators that will use these descriptions to generate native applications for the major mobile platforms ios android windows phone development process applause uses git flow http nvie com posts a successful git branching model development is carried out on the development branch currently applause 2 is under development if you re looking for applause 1 switch to the master branch please be aware that you ll have to use very specific versions of xcode eclipse and xtext to use applause 1 | front_end |
|
EmbeddedSystemsPowerMonitoring | embeddedsystemspowermonitoring embedded systems power monitoring system develop an embedded power monitoring system that can accurately measure and report power consumption of various components in a pixel device design the hardware interface develop low level drivers and implement efficient algorithms to collect and analyze power data in real time | os |
|
pyspark-bootcamp | pyspark bootcamp what all i have implemented apache spark foundation and spark architecture data engineering and data processing in spark working with data sources and sinks working with data frames and spark sql using pycharm ide for spark development and debugging unit testing managing application logs and cluster deployment | cloud |
|
freeboard | freeboard free board noun fr b rd 1 the distance between the waterline and the main deck or weather deck of a ship or between the level of the water and the upper edge of the side of a small boat 2 the act of freeing data from below the waterline and exposing it to the world 3 a damn sexy open source real time dashboard builder viewer for iot and other web mashups demo http freeboard github io freeboard https freeboard io screenshots weather https raw github com freeboard branding master screenshots freeboard screenshot 1 jpg what is it freeboard is a turn key html based engine for dashboards besides a nice looking layout engine it provides a plugin architecture for creating datasources which fetch data and widgets which display data freeboard then does all the work to connect the two together another feature of freeboard is its ability to run entirely in the browser as a single page static web app without the need for a server the feature makes it extremely attractive as a front end for embedded devices which may have limited ability to serve complex and dynamic web pages the code here is the client side portion of what you see when you visit a freeboard at http freeboard io it does not include any of the server side code for user management saving to a database or public private functionality this is left up to you to implement should you want to use freeboard as an online service how to use freeboard can be run entirely from a local hard drive simply download clone the repository and open index html when using chrome you may run into issues with cors when accessing json based apis if you load from your local hard drive in this case you can switch to using jsonp or load index html and run from a local or remote web server 1 git clone https github com freeboard freeboard git 2 cd freeboard 3 npm install 4 grunt then run a index html or index dev html through a webserver api while freeboard runs as a stand alone app out of the box you can augment and control it from javascript with a simple api all api calls are made on the freeboard singleton object freeboard initialize allowedit callback must be called first to initialize freeboard allowedit boolean sets the initial state of freeboard to allow or disallow editing callback function function that will be called back when freeboard has finished initializing freeboard newdashboard clear the contents of the freeboard and initialize a new dashboard freeboard serialize serializes the current dashboard and returns a javascript object freeboard loaddashboard configuration callback load the dashboard from a serialized dashboard object configuration object a javascript object containing the configuration of a dashboard normally this will be an object that has been created and saved via the freeboard serialize function callback function function that will be called back when the dashboard has finished loading freeboard setediting editing animate programatically control the editing state of the of dashboard editing bool set to true or false to modify the view only or editing state of the board animate function set to true or false to animate the modification of the editing state this animates the top tab dropdown the part where you can edit datasources and such freeboard isediting returns boolean depending on whether the dashboard is in in the view only or edit state freeboard loaddatasourceplugin plugin register a datasource plugin see http freeboard github io freeboard docs plugin example html for information on creating plugins plugin object a plugin definition object as defined at http freeboard github io freeboard docs plugin example html freeboard loadwidgetplugin plugin register a widget plugin see http freeboard github io freeboard docs plugin example html for information on creating plugins plugin object a plugin definition object as defined at http freeboard github io freeboard docs plugin example html freeboard showloadingindicator show show hide the loading indicator the loading indicator will display an indicator over the entire board that can be useful when you have some code that takes a while and you want to give a visual indication and to prevent the user from modifying the board show boolean set to true or false to show or hide the loading indicator freeboard showdialog contentelement title okbuttontitle cancelbuttontitle okcallback show a styled dialog box with custom content contentelement dom or jquery element the dom or jquery element to display within the content of the dialog box title string the title of the dialog box displayed on the top left okbuttontitle string the string to display in the button that will be used as the ok button a null or undefined value will result in no button being displayed cancelbuttontitle string the string to display in the button that will be used as the cancel button a null or undefined value will result in no button being displayed okcallback function a function that will be called if the user presses the ok button freeboard getdatasourcesettings datasourcename returns an object with the current settings for a datasource or null if no datasource with the given name is found datasourcename string the name of a datasource in the dashboard freeboard setdatasourcesettings datasourcename settings updates settings on a datasource datasourcename string the name of a datasource in the dashboard settings object an object of key value pairs for the settings of the datasource the values specified here will be combined with the current settings so you do not need specify every setting if you only want to update one to get a list of possible settings for a datasource consult the datasource documentation or code or call the freeboard getdatasourcesettings function freeboard on eventname callback attach to a global freeboard event eventname string the name of a global event the following events are supported dashboard loaded occurs after a dashboard has been loaded initialized occurs after freeboard has first been initialized callback function the callback function to be called when the event occurs building plugins see http freeboard github io freeboard docs plugin example html for info on how to build plugins for freeboard testing plugins just edit index html and add a link to your javascript file near the end of the head js script loader like javascript path to my plugin file js function dom ready freeboard initialize true copyright copyright 2013 jim heising https github com jheising br copyright 2013 bug labs inc http buglabs net br licensed under the mit license | server |
|
ncs-example-application | nrf connect sdk example application this repository contains an nrf connect sdk example application the main purpose of this repository is to serve as a reference on how to structure nrf connect sdk based applications some of the features demonstrated in this example are basic zephyr application app dev skeleton zephyr workspace applications workspace app zephyr modules modules west t2 topology west t2 custom boards board porting custom devicetree bindings bindings out of tree drivers drivers out of tree libraries example ci configuration using github actions custom west extension west ext this repository is versioned together with the nrf connect sdk main tree sdk nrf this means that every time that nrf connect sdk is tagged this repository is tagged as well with the same version number and the manifest west yml entry for zephyr will point to the corresponding nrf connect sdk tag for example the ncs example application v2 3 0 will point to nrf connect sdk v2 3 0 note that the main branch always points to the development branch of nrf connect sdk also main app dev https docs zephyrproject org latest develop application index html workspace app https docs zephyrproject org latest develop application index html zephyr workspace app modules https docs zephyrproject org latest develop modules html west t2 https docs zephyrproject org latest develop west workspaces html west t2 board porting https docs zephyrproject org latest guides porting board porting html bindings https docs zephyrproject org latest guides dts bindings html drivers https docs zephyrproject org latest reference drivers index html sdk nrf https github com nrfconnect sdk nrf west ext https docs zephyrproject org latest develop west extensions html getting started before getting started make sure you have a proper nrf connect sdk development environment follow the official getting started guide https developer nordicsemi com nrf connect sdk doc latest nrf getting started html initialization the first step is to initialize the workspace folder my workspace where the example application and all nrf connect sdk modules will be cloned run the following command shell initialize my workspace for the ncs example application main branch west init m https github com nrfconnect ncs example application mr main my workspace update nrf connect sdk modules cd my workspace west update building and running to build the application run the following command shell west build b board app where board is the target board you can use the custom plank board found in this repository note that you can use zephyr and nrf connect sdk sample boards if an appropriate overlay is provided see app boards a sample debug configuration is also provided to apply it run the following command shell west build b board app doverlay config debug conf once you have built the application run the following command to flash it shell west flash | os |
|
appverse-mobile | appverse mobile current version 5 1 4 1 15 jan 2016 this repository contains the java c and html implementations for the core interfaces platform specific code and runtime of the appverse mobile platform appverse mobile is a multi platform mobile development framework allows developers to use html5 javascript css3 and to leverage native functionalities of a mobile device to build apps from a common codebase the following modules are contained within this repository appverse core this module contains the java c implementation for the core interfaces of appverse appverse core webresources this module contains the common web resources of appverse appverse platform ios this module contains the monotouch c implementation of the core interfaces appverse platform android this module contains the android java implementation of the core interfaces appverse platform wp this module contains the windows phone 8 1 c implementation of the core interfaces appverse runtime wp this module contains the windows phone 8 1 c implementation of the appverse platform sdk windows phone 8 1 appverse runtime ios this module contains the ios monotouch c implementation of the appverse platform min sdk ios 7 x appverse runtime android this module contains the android java implementation of the appverse platform min api lvl 14 more information about this project http appverse github com appverse mobile about licenses groups http appverse github com about appverse project http appverse org appverse mobile security security md license copyright c 2012 gft appverse s l sociedad unipersonal this source code form is subject to the terms of the appverse public license version 2 0 apl v2 0 if a copy of the apl was not distributed with this file you can obtain one at http appverse org legal appverse license redistribution and use in source and binary forms with or without modification are permitted provided that the conditions of the appverse public license v2 0 are met this software is provided by the copyright holders and contributors as is and any express or implied warranties including but not limited to the implied warranties of merchantability and fitness for a particular purpose are disclaimed except in case of willful misconduct or gross negligence in no event shall the copyright owner or contributors be liable for any direct indirect incidental special exemplary or consequential damages including but not limited to procurement of substitute goods or services loss of use data or profits or business interruption however caused and on any theory of liability whether in contract strict liability or tort including negligence or otherwise arising in any way out of the use of this software even if advised of the possibility of such damage | front_end |
|
Autonomous-Plastic--Bottle-Collecting-Vehicle | autonomous plastic bottle collecting vehicle embedded system design course project i ve added source code s of raspberry pi and arduino uno raspberry pi was coded in python language to detect plastic bottles utilizing opencv it initializes the picamera with specified parameters and loads a classifier from a file named bottle xml after that it captures video frames from the camera and performs object detection on the image using the loaded classifier if the object is detected the script draws rectangles around the detected object and displays the image if the object is not found the script displays a text message indicating so the script also communicates with an arduino device through the serial port sending a message based on the position of the detected object in the frame the script continues capturing and processing frames until the user presses q arduino uno was coded in c c to operate the servo motors used to operate on the cage and operate the machine vehicle the code is an implementation of a state machine for a robot that searches for a bottle captures it and returns to its starting position the robot receives commands from a raspberry pi via a serial connection the code implements functions for turning right turning left going straight searching lowering the cage to capture the bottle and raising the cage the code is written in c for the arduino platform and uses the afmotor and servo libraries to control the motors and servo the state of the robot is determined by the state variable and its behavior is controlled by the switch case statement based on the command received from the raspberry pi | os |
|
mobile-dev-notebook | mobile dev notebook a collection of resources on mobile development resources sites name description developer android https developer android com official android developers site api docs and android sdk android weekly https androidweekly net free newsletter on android related topics theappfuel https www theappfuel com get design inspiration from compilation of user flows screens from successful apps courses name free covers kotlin for android o development from beginner to advanced https www udemy com course kotlinandroid no the complete kotlin developer course https www udemy com course the complete kotlin developer course no kotlin android apps blogs name description techyourchance com https www techyourchance com youtube channels name description stevdza san https www youtube com c stevdzasan featured android only stuff tutorialseu https www youtube com c tutorialseu videos covers different topics including android youtube videos recyclerview name description creating a recyclerview that handles click events in android studio https www youtube com watch v ai9rsgcdhyq ab channel codepalace animations name description get animated android dev summit 18 https www youtube com watch v n x7sv3i3p0 ab channel androiddevelopers slide animation between activities https www youtube com watch v 0s6x3sn4eyo ab channel codinginflow communities name description reddit androiddev https www reddit com r androiddev reddit developing android apps applications name description to do list https www youtube com watch v i9mkaoz8fnk ab channel beno 27brien a very basic to do list application quiz https www youtube com watch v b21fiiyow4a t 164s ab channel tutorialseu a complete quiz app from scratch food ordering https www youtube com watch v if9pyjn3gvg ab channel thecodenest an application for ordering food notes audio only stopwatch https www youtube com watch v gqn7hqtnopa ab channel anggarisky a stopwatch application for workouts components name description custom progress bar and alert dialogs https www youtube com watch v rluvbdelwca ab channel tutorialseu design name description material io https material io assets name description material io https material io icons freesound org https freesound org sounds | kotlin tutorial intellij ide | front_end |
Strata_2018_DL_4_NLP | strata 2018 dl 4 nlp slides and code tutorials for strata data 2018 tutorial on deep learning methodologies for natural language processing notes for a code sample of rnns with attention check out taming recurrent neural networks for better summarization http www abigailsee com 2017 04 16 taming rnns for better summarization html with links to the accompanying tensorflow implementation setup download via git 1 go to your home directory by opening your terminal and entering cd 2 clone the repository by entering git clone https github com garretthoffman strata 2018 dl 4 nlp git download twitter glove vectors download the pre trained twitter glove word vectors from here https nlp stanford edu projects glove and place the file glove twitter 27b 50d txt in the data directory setup virtual environment option 1 dockerfiles recommended 3 after cloning the repo to your machine enter docker build t strata nlp image type f dockerfiles dockerfile image type dockerfiles where image type is either gpu or cpu note that in order to run these files on your gpu you ll need to have a compatible gpu with drivers installed and configured properly as described in tensorflow s documentation https www tensorflow org install 4 run the docker image by entering docker run it p 8888 8888 v path to repo root strata nlp image type where image type is either gpu or cpu depending on the image you built in the last step 5 after building starting and attaching to the appropriate docker container run the provided jupyter notebooks by entering jupyter notebook ip 0 0 0 0 allow root and navigate to the specified url http 0 0 0 0 8888 token jupyter notebook access token in your browser 6 choose 0x notebook title ipynb to open the applicable notebook debugging docker if you receive an error of the form warning error loading config file home rp docker config json stat home rp docker config json permission denied got permission denied while trying to connect to the docker daemon socket at unix var run docker sock get http 2fvar 2frun 2fdocker sock v1 26 images json dial unix var run docker sock connect permission denied it s most likely because you installed docker using sudo permissions with a packet manager such as brew or apt get to solve this permission denied simply run docker with sudo ie run docker commands with sudo docker command and options instead of just docker command and options option 2 local setup using miniconda if you don t have or don t want to use docker you can follow these steps to setup the notebook 3 install miniconda using one of the installers and the miniconda installation instructions https conda io miniconda html use python3 6 4 after the installation create a new virtual environment using this command conda create n strata nlp source activate venv 5 you are now in a virtual environment next up install tensorflow by following the instructions https www tensorflow org install 6 to install the rest of the dependenies navigate into your repository and run pip install r dockerfiles requirements txt 7 now you can run jupyter notebook to finally start up the notebook a browser should open automatically if not navigate to http 127 0 0 1 8888 http 127 0 0 1 8888 in your browser 8 choose 0x notebook title ipynb to open the applicable notebook to open the notebook | ai |
|
awesome-ml4co | awesome machine learning for combinatorial optimization resources we would like to maintain a list of resources that utilize machine learning technologies to solve combinatorial optimization problems we mark work contributed by thinklab http thinklab sjtu edu cn with maintained by members in sjtu thinklab chang liu runzhong wang jiayi zhang zelin zhao haoyu geng tianzhe wang wenxuan guo wenjie wu nianzu yang ziao guo yang li hao xiong and junchi yan we also thank all contributers from the community https github com thinklab sjtu awesome ml4co graphs contributors we are looking for post docs interested in machine learning especially for learning combinatorial solvers dynamic graphs and reinforcement learning please send your up to date resume via yanjunchi at sjtu edu cn content content table tr td colspan 2 a href survey papers 1 survey a td tr tr td colspan 2 a href problems 2 problems a td tr tr td emsp a href graph matching 2 1 graph matching gm a td td emsp a href quadratic assignment problem 2 2 quadratic assignment problem qap a td tr tr td emsp a href travelling salesman problem 2 3 travelling salesman problem tsp a td td emsp a href maximal cut 2 4 maximal cut a td tr tr td emsp a href differentiable optimization 2 5 differentiable optimization a td td emsp a href vehicle routing problem 2 6 vehicle routing problem vrp a td tr tr td emsp a href job shop scheduling problem 2 7 job shop scheduling problem jssp a td td emsp a href maximal maximum independent set 2 8 maximal maximum independent set a td tr tr td emsp a href generalization 2 9 generalization a td td emsp a href orienteering problem 2 10 orienteering problem op a td tr tr td emsp a href computing resource allocation 2 11 computing resource allocation a td td emsp a href bin packing problem 2 12 bin packing problem bpp a td tr tr td emsp a href graph edit distance 2 13 graph edit distance ged a td td emsp a href hamiltonian cycle problem 2 14 hamiltonian cycle problem hcp a td tr tr td emsp a href graph coloring 2 15 graph coloring a td td emsp a href maximal common subgraph 2 16 maximal common subgraph mcs a td tr tr td emsp a href influence maximization 2 17 influence maximization a td td emsp a href boolean satisfiability 2 18 boolean satisfiability sat a td tr tr td emsp a href mixed integer programming 2 19 mixed integer programming mip a td td emsp a href causal discovery 2 20 causal discovery a td tr tr td emsp a href game theoretic semantics 2 21 game theoretic semantics a td td emsp a href car dispatch 2 22 car dispatch a td tr tr td emsp a href electronic design automation 2 23 electronic design automation eda a td td emsp a href conjunctive query containment 2 24 conjunctive query containment a td tr tr td emsp a href virtual network embedding 2 25 virtual network embedding vne a td td emsp a href optimal power flow 2 26 optimal power flow a td tr tr td emsp a href facility location problem 2 27 facility location problem flp a td td emsp a href portfolio optimization 2 28 portfolio optimization portopt a td tr tr td emsp a href sorting ranking 2 29 sorting ranking sort rank a td td emsp a href knapsack 2 30 knapsack a td tr tr td emsp a href combinatorial drug recommendation 2 31 combinatorial drug recommendation a td td ensp td tr table survey papers content 1 neural networks for combinatorial optimization a review of more than a decade of research informs journal on computing 1999 journal https pubsonline informs org doi abs 10 1287 ijoc 11 1 15 smith kate a 2 model based search for combinatorial optimization a critical survey annals of operations research 2004 journal https link springer com article 10 1023 b anor 0000039526 52305 af zlochin mark and birattari mauro and meuleau nicolas and dorigo marco 3 a survey of reinforcement learning and agent based approaches to combinatorial optimization citeseer 2012 journal https citeseerx ist psu edu viewdoc download doi 10 1 1 468 5208 rep rep1 type pdf miagkikh victor 4 machine learning approaches to learning heuristics for combinatorial optimization problems procedia manufacturing 2018 journal https www sciencedirect com science article pii s2351978918311351 mirshekarian sadegh and sormaz dusan 5 boosting combinatorial problem modeling with machine learning ijcai 2018 paper https www ijcai org proceedings 2018 0772 pdf lombardi michele and milano michela 6 deep reinforcement learning as a job shop scheduling solver a literature review hybrid intelligent systems 2018 journal http link springer com 10 1007 978 3 030 14347 3 34 bruno cunha ana m madureira benjamim fonseca duarte coelho 7 a review of combinatorial optimization with graph neural networks bigdia 2019 paper https ieeexplore ieee org stamp stamp jsp tp arnumber 8802843 huang tingfei and ma yang and zhou yuzhen and huang honglan huang and chen dongmei and gong zidan and liu yao 8 machine learning for combinatorial optimization a methodological tour d horizon ejor 2020 journal https arxiv org abs 1811 06128 bengio yoshua and lodi andrea and prouvost antoine 9 reinforcement learning for combinatorial optimization a survey arxiv 2020 paper https arxiv org abs 2003 03600 mazyavkina nina and sviridov sergey and ivanov sergei and burnaev evgeny 10 learning graph matching and related combinatorial optimization problems ijcai 2020 paper https www ijcai org proceedings 2020 0694 pdf yan junchi and yang shuang and hancock edwin r 11 learning combinatorial optimization on graphs a survey with applications to networking ieee access 2020 journal https ieeexplore ieee org stamp stamp jsp tp arnumber 9125934 vesselinova natalia and steinert rebecca and perez ramirez daniel f and boman magnus 12 from shallow to deep interactions between knowledge representation reasoning and machine learning arxiv 2020 paper https arxiv org abs 1912 06612 bouraoui zied and cornu jols antoine and den ux thierry and destercke s bastien and dubois didier and guillaume romain and marques silva jo o and mengin j r me and prade henri and schockaert steven and serrurier mathieu and vrain christel 13 a survey on reinforcement learning for combinatorial optimization arxiv 2020 paper https arxiv org abs 2008 12248v2 yang yunhao and whinston andrew 14 research reviews of combinatorial optimization methods based on deep reinforcement learning in chinese 2020 journal http www aas net cn article doi 10 16383 j aas c200551 li kai wen and zhang tao and wang rui and qin wei jian and he hui hui and huang hong 15 graph learning for combinatorial optimization a survey of state of the art data science and engineering 2021 journal https link springer com article 10 1007 s41019 021 00155 3 peng yue choi byron and xu jianliang 16 combinatorial optimization and reasoning with graph neural networks arxiv 2021 paper https arxiv org abs 2102 09544 cappart quentin and chetelat didier and khalil elias and lodi andrea and morris christopher and velickovic petar 17 machine learning for electronic design automation eda a survey todaes 2021 journal https arxiv org abs 2102 03357 huang guyue and hu jingbo and he yifan and liu jialong and ma mingyuan and shen zhaoyang and wu juejian and xu yuanfan and zhang hengrui and zhong kai and others 18 a survey for solving mixed integer programming via machine learning neurocomputing 2022 journal https www sciencedirect com science article pii s0925231222014035 jiayi zhang and chang liu and xijun li and hui ling zhen and mingxuan yuan and yawen li and junchi yan problems content graph matching content 1 revised note on learning algorithms for quadratic assignment with graph neural networks arxiv 2017 paper https arxiv org pdf 1706 07450 pdf code https github com alexnowakvila qap pt nowak alex and villar soledad and bandeira s afonso and bruna joan 2 deep learning of graph matching cvpr 2018 paper https openaccess thecvf com content cvpr 2018 html zanfir deep learning of cvpr 2018 paper html zanfir andrei and sminchisescu cristian 3 learning combinatorial embedding networks for deep graph matching iccv 2019 paper http openaccess thecvf com content iccv 2019 papers wang learning combinatorial embedding networks for deep graph matching iccv 2019 paper pdf code https github com thinklab sjtu thinkmatch wang runzhong and yan junchi and yang xiaokang 4 deep graphical feature learning for the feature matching problem iccv 2019 paper https openaccess thecvf com content iccv 2019 papers zhang deep graphical feature learning for the feature matching problem iccv 2019 paper pdf zhang zhen and lee wee sun 5 glmnet graph learning matching networks for feature matching arxiv 2019 paper https arxiv org abs 1911 07681 jiang bo and sun pengfei and tang jin and luo bin 6 learning deep graph matching with channel independent embedding and hungarian attention iclr 2020 paper https openreview net forum id rjgbd2nyph code https github com thinklab sjtu thinkmatch yu tianshu and wang runzhong and yan junchi and li baoxin 7 deep graph matching consensus iclr 2020 paper http arxiv org abs 2001 09621 fey matthias and lenssen jan e and morris christopher and masci jonathan and kriege nils m 8 graduated assignment for joint multi graph matching and clustering with application to unsupervised graph matching network learning neurips 2020 paper https papers neurips cc paper 2020 file e6384711491713d29bc63fc5eeb5ba4f paper pdf code https github com thinklab sjtu thinkmatch wang runzhong and yan junchi and yang xiaokang 9 combinatorial learning of robust deep graph matching an embedding based approach tpami 2020 paper https doi org 10 1109 tpami 2020 3005590 code https github com thinklab sjtu thinkmatch wang runzhong and yan junchi and yang xiaokang 10 deep graph matching via blackbox differentiation of combinatorial solvers eccv 2020 paper https www ecva net papers eccv 2020 papers eccv papers 123730409 pdf code https github com martius lab blackbox deep graph matching rolinek michal and swoboda paul and zietlow dominik and paulus anselm and musil vit and martius georg 11 neural graph matching network learning lawler s quadratic assignment problem with extension to hypergraph and multiple graph matching tpami 2021 paper https arxiv org abs 1911 11308 code https github com thinklab sjtu thinkmatch wang runzhong and yan junchi and yang xiaokang 12 deep latent graph matching icml 2021 paper http proceedings mlr press v139 yu21d yu21d pdf yu tianshu and wang runzhong and yan junchi and li baoxin 13 ia gm a deep bidirectional learning method for graph matching aaai 2021 paper https ojs aaai org index php aaai article view 16461 16268 zhao kaixuan and tu shikui and xu lei 14 deep graph matching under quadratic constraint cvpr 2021 paper https openaccess thecvf com content cvpr2021 papers gao deep graph matching under quadratic constraint cvpr 2021 paper pdf gao quankai and wang fudong and xue nan and yu jin gang and xia gui song 15 gamnet robust feature matching via graph adversarial matching network mm 2021 paper https dl acm org doi pdf 10 1145 3474085 3475669 jiang bo and sun pengfei and zhang ziyan and tang jin and luo bin 16 hypergraph neural networks for hypergraph matching iccv 2021 paper https openaccess thecvf com content iccv2021 papers liao hypergraph neural networks for hypergraph matching iccv 2021 paper pdf liao xiaowei and xu yong and ling haibin 17 learning to match features with seeded graph matching network iccv 2021 paper https openaccess thecvf com content iccv2021 html chen learning to match features with seeded graph matching network iccv 2021 paper html chen hongkai and luo zixin and zhang jiahui and zhou lei and bai xuyang and hu zeyu and tai chiew lan and quan long 18 appearance and structure aware robust deep visual graph matching attack defense and beyond cvpr 2022 paper https openaccess thecvf com content cvpr2022 papers ren appearance and structure aware robust deep visual graph matching attack cvpr 2022 paper pdf code https github com thinklab sjtu robustmatch ren qibing and bao qingquan and wang runzhong and yan junchi 19 self supervised learning of visual graph matching eccv 2022 paper code https github com thinklab sjtu thinkmatch scgm liu chang and zhang shaofeng and yang xiaokang and yan junchi 20 revocable deep reinforcement learning with affinity regularization for outlier robust graph matching iclr 2023 paper https openreview net forum id qjqibo3scv code https github com thinklab sjtu rgm liu chang and jiang zetian and wang runzhong and yan junchi and huang lingxiao and lu pinyan 21 seedgnn graph neural network for supervised seeded graph matching icml 2023 paper https icml cc virtual 2023 poster 24282 yu liren and xu jiaming and lin xiaojun 22 d2match leveraging deep learning and degeneracy for subgraph matching icml 2023 paper https icml cc virtual 2023 poster 24358 liu xuan lin zhang jiaqi sun yujiu yang and haiqing yang 23 linsatnet the positive linear satisfiability neural networks icml 2023 paper https icml cc virtual 2023 poster 25110 code https github com thinklab sjtu linsatnet runzhong wang and yunhao zhang and ziao guo and tianyi chen and xiaokang yang and junchi yan quadratic assignment problem content 1 revised note on learning algorithms for quadratic assignment with graph neural networks arxiv 2017 paper https arxiv org pdf 1706 07450 pdf code https github com alexnowakvila qap pt nowak alex and villar soledad and bandeira s afonso and bruna joan 2 neural graph matching network learning lawler s quadratic assignment problem with extension to hypergraph and multiple graph matching tpami 2021 paper https arxiv org abs 1911 11308 code https github com thinklab sjtu thinkmatch wang runzhong and yan junchi and yang xiaokang 3 revocable deep reinforcement learning with affinity regularization for outlier robust graph matching iclr 2023 paper https openreview net forum id qjqibo3scv code https github com thinklab sjtu rgm liu chang and jiang zetian and wang runzhong and yan junchi and huang lingxiao and lu pinyan 4 towards quantum machine learning for constrained combinatorial optimization a quantum qap solver icml 2023 paper https icml cc virtual 2023 poster 24148 ye xinyu and yan ge and yan junchi travelling salesman problem content 1 learning combinatorial optimization algorithms over graphs neurips 2017 paper https arxiv org abs 1704 01665 dai hanjun and khalil elias b and zhang yuyu and dilkina bistra and song le 2 learning heuristics for the tsp by policy gradient cpaior 2018 paper https link springer com chapter 10 1007 978 3 319 93031 2 12 code https github com micheldeudon encode attend navigate michel deudonpierre cournutalexandre lacoste 3 attention learn to solve routing problems iclr 2019 paper https arxiv org abs 1803 08475 kool wouter and van hoof herke and welling max 4 learning to solve np complete problems a graph neural network for decision tsp aaai 2019 paper https ojs aaai org index php aaai article view 4399 prates marcelo and avelar pedro hc and lemos henrique and lamb luis c and vardi moshe y 5 an efficient graph convolutional network technique for the travelling salesman problem arxiv 2019 paper https arxiv org abs 1906 01227 code https github com chaitjo graph convnet tsp chaitanya k joshi thomas laurent xavier bresson 6 pomo policy optimization with multiple optima for reinforcement learning neurips 2020 paper https arxiv org abs 2010 16011 code https github com yd kwon pomo kwon yeong dae and choo jinho and kim byoungjip and yoon iljoo and min seungjai and gwon youngjune 7 generalize a small pre trained model to arbitrarily large tsp instances arxiv 2020 paper https arxiv org abs 2012 10658 fu zhang hua and qiu kai bin and zha hongyuan 8 a reinforcement learning approach for optimizing multiple traveling salesman problems over graphs kbs 2020 journal https www sciencedirect com science article pii s0950705120304445 hu yujiao and yao yuan and lee wee sun 9 learning 2 opt heuristics for the traveling salesman problem via deep reinforcement learning acml 2020 paper http proceedings mlr press v129 costa20a code https github com paulorocosta learning 2opt drl d o costa paulo r and rhuggenaath jason and zhang yingqian and akcay alp 10 deep reinforcement learning for combinatorial optimization covering salesman problems ieee trans cybern 2021 journal https arxiv org abs 2102 05875 kaiwen li tao zhang rui wang yuheng wang and yi han 11 the transformer network for the traveling salesman problem ipam 2021 paper http helper ipam ucla edu publications dlc2021 dlc2021 16703 pdf xavier bresson thomas laurent 12 learning improvement heuristics for solving routing problems tnnls 2021 journal https ieeexplore ieee org abstract document 9393606 casa token mfeylmrogfiaaaaa nmakjuatsooyurwhuwgynoguv453anw9enyv45xg5jb2ocps6qe4a1cfe1emfmtzbon6cl5maw wu yaoxin and song wen and cao zhiguang and zhang jie and lim andrew 13 reversible action design for combinatorial optimization with reinforcement learning arxiv 2021 paper https arxiv org abs 2102 07210 yao fan and cai renqin and wang hongning 14 solving dynamic traveling salesman problems with deep reinforcement learning tnnls 2021 journal https ieeexplore ieee org document 9537638 zizhen zhang hong liu meng chu zhou jiahai wang 15 schedulenet learn to solve multi agent scheduling problems with reinforcement learning arxiv 2021 paper https arxiv org abs 2106 03051 junyoung park sanjar bakhtiyar jinkyoo park 16 dan decentralized attention based neural network to solve the minmax multiple traveling salesman problem arxiv 2021 paper https arxiv org abs 2109 04205 cao yuhong and sun zhanhong and sartoretti guillaume 17 reinforcement learning for route optimization with robustness guarantees ijcai 2021 paper https www ijcai org proceedings 2021 0357 pdf jacobs tobias and alesiani francesco and ermis gulcin 18 learning tsp requires rethinking generalization cp 2021 paper https arxiv org pdf 2006 07054 pdf code https github com chaitjo learning tsp chaitanya k joshi quentin cappart louis martin rousseau and thomas laurent 19 the first ai4tsp competition learning to solve stochastic routing problems arxiv 2022 paper https arxiv org abs 2201 10453 code https github com paulorocosta ai for tsp competition bliek laurens and da costa paulo and afshar reza refaei and zhang yingqian and catshoek tom and vos daniel and verwer sicco and schmitt ulms fynn and hottung andre and shah tapan and others 20 graph neural network guided local search for the traveling salesperson problem iclr 2022 paper https openreview net forum id ar92oeosbig hudson benjamin and li qingbiao and malencia matthew and prorok amanda 21 preference conditioned neural multi objective combinatorial optimization iclr 2022 paper https openreview net forum id quobt9btwo lin xi and yang zhiyuan and zhang qingfu 22 learning generalizable models for vehicle routing problems via knowledge distillation neurips 2022 paper https openreview net forum id sovnpuegkmp code https github com jieyibi amdkd bi jieyi and ma yining and wang jiahai and cao zhiguang and chen jinbiao and sun yuan and chee yeow meng 23 dimes a differentiable meta solver for combinatorial optimization problems neurips 2022 paper https openreview net forum id 9u05zr0nhx qiu ruizhong and sun zhiqing and yang yiming 24 sym nco leveraging symmetricity for neural combinatorial optimization neurips 2022 paper https openreview net forum id khre2vi5rvs code https github com alstn12088 sym nco kim minsu and park junyoung and park jinkyoo 25 simulation guided beam search for neural combinatorial optimization neurips 2022 paper https openreview net forum id tyas1rpys5 code https github com yd kwon sgbs choo jinho and kwon yeong dae and kim jihoon and jae jeongwoo and hottung andr e and tierney kevin and gwon youngjune 26 generalization of neural combinatorial solvers through the lens of adversarial robustness iclr 2022 paper https openreview net forum id vjz7dpijip3 simon geisler johanna sommer jan schuchardt aleksandar bojchevski and stephan g nnemann 27 learning to cross exchange to solve min max vehicle routing problems iclr 2023 paper https openreview net forum id zcnzshc10y kim minjun and park junyoung and park jinkyoo 28 generalize learned heuristics to solve large scale vehicle routing problems in real time iclr 2023 paper https openreview net forum id 6zajpxqtlq hou qingchun and yang jingwei and su yiqiang and wang xiaoqing and deng yuming 29 roco a general framework for evaluating robustness of combinatorial optimization solvers on graphs iclr 2023 paper https openreview net forum id 2r6ymqz4mml code https github com thinklab sjtu roco lu han and li zenan and wang runzhong and ren qibing and li xijun and yuan mingxuan and zeng jia and yang xiaokang and yan junchi 30 pointerformer deep reinforced multi pointer transformer for the traveling salesman problem arxiv 2023 paper https arxiv org abs 2304 09407 code https github com pointerformer pointerformer yan jin yuandong ding xuanhao pan kun he li zhao tao qin lei song jiang bian 31 h tsp hierarchically solving the large scale traveling salesman problem aaai 2023 paper https www microsoft com en us research publication h tsp hierarchically solving the large scale traveling salesman problem code https github com learning4optimization hust h tsp xuanhao pan yan jin yuandong ding mingxiao feng li zhao lei song jiang bian 32 select and optimize learning to solve large scale tsp instances aistats 2023 paper https proceedings mlr press v206 cheng23a html hanni cheng haosi zheng ya cong weihao jiang shiliang pu 33 multi view graph contrastive learning for solving vehicle routing problems uai 2023 paper https openreview net pdf id z mrkvaxvu3 yuan jiang zhiguang cao yaoxin wu jie zhang 34 revisiting sampling for combinatorial optimization icml 2023 paper https icml cc virtual 2023 poster 23661 sun haoran goshvadi katayoon nova azade schuurmans dale and dai hanjun 35 meta sage scale meta learning scheduled adaptation with guided exploration for mitigating scale shift on combinatorial optimization icml 2023 paper https icml cc virtual 2023 poster 25138 son jiwoo and kim minsu and kim hyeonah and park jinkyoo 36 towards omni generalizable neural methods for vehicle routing problems icml 2023 paper https icml cc virtual 2023 poster 25267 code https github com royalskye omni vrp zhou jianan yaoxin wu wen song zhiguang cao jie zhang 37 deepaco neural enhanced ant systems for combinatorial optimization neurips 2023 paper https arxiv org abs 2309 14032 code https github com henry yeh deepaco haoran ye jiarui wang zhiguang cao helan liang yong li 38 linsatnet the positive linear satisfiability neural networks icml 2023 paper https icml cc virtual 2023 poster 25110 code https github com thinklab sjtu linsatnet runzhong wang and yunhao zhang and ziao guo and tianyi chen and xiaokang yang and junchi yan maximal cut content 1 learning combinatorial optimization algorithms over graphs neurips 2017 paper https arxiv org abs 1704 01665 dai hanjun and khalil elias b and zhang yuyu and dilkina bistra and song le 2 exploratory combinatorial optimization with reinforcement learning aaai 2020 paper https ojs aaai org index php aaai article view 5723 lbarrett thomas and clements william and foerster jakob and lvovsky alex 3 erdos goes neural an unsupervised learning framework for combinatorial optimization on graphs neurips 2020 paper https static aminer cn upload pdf 575 1127 1864 5eede0b791e0116a23aafe7b 1 pdf karalias nikolaos and loukas andreas 4 reversible action design for combinatorial optimization with reinforcement learning arxiv 2021 paper https arxiv org abs 2102 07210 yao fan and cai renqin and wang hongning 5 lense learning to navigate subgraph embeddings for large scale combinatorial optimisation icml 2022 paper https proceedings mlr press v162 ireland22a html code https github com davidireland3 lense ireland david and g montana 6 learning to solve combinatorial graph partitioning problems via efficient exploration arxiv 2022 paper https arxiv org abs 2205 14105 code https github com tomdbar ecord barrett thomas d and parsonson christopher wf and laterre alexandre 7 revisiting sampling for combinatorial optimization icml 2023 paper https icml cc virtual 2023 poster 23661 sun haoran goshvadi katayoon nova azade schuurmans dale and dai hanjun 8 let the flows tell solving graph combinatorial optimization problems with gflownets arxiv 2023 paper https arxiv org abs 2305 17010 dinghuai zhang hanjun dai nikolay malkin aaron courville yoshua bengio ling pan differentiable optimization content 1 differentiable learning of submodular models neurips 2017 paper https papers neurips cc paper 2017 hash 192fc044e74dffea144f9ac5dc9f3395 abstract html code https github com josipd torch submod josip djolonga andreas krause 2 optnet differentiable optimization as a layer in neural networks icml 2017 paper https dl acm org doi abs 10 5555 3305381 3305396 code https github com locuslab optnet brandon amos and j zico kolter 3 melding the data decisions pipeline decision focused learning for combinatorial optimization aaai 2019 paper https ojs aaai org index php aaai article view 3982 bryan wilder bistra dilkina milind tambe 4 differentiable convex optimization layers neurips 2019 paper https dl acm org doi abs 10 5555 3454287 3455145 code https github com cvxgrp cvxpylayers agrawal akshay and boyd stephen 5 predict optimise with ranking objectives exhaustively learning linear functions ijcai 2019 paper https dl acm org doi abs 10 5555 3367032 3367186 demirovic emir and stuckey peter j and bailey james and chan jeffrey and leckie christopher and ramamohanarao kotagiri and guns tias 6 differentiation of blackbox combinatorial solvers iclr 2020 paper https arxiv org pdf 1912 02175v2 pdf code https github com martius lab blackbox backprop marin vlastelica anselm paulus v t musil georg martius michal rol nek 7 mipaal mixed integer program as a layer aaai 2020 paper https ojs aaai org index php aaai article view 5509 code https github com amf272 mipaal aaron ferber bryan wilder bistra dilkina milind tambe 8 smart predict and optimize for hard combinatorial optimization problems aaai 2020 paper https arxiv org abs 1911 10092 code https github com jayman91 aaai predit then optimize jaynta mandi emir demirovi peter j stuckey tias guns 9 differentiation of blackbox combinatorial solvers iclr 2020 paper https openreview net forum id bkevojsypb code https github com martius lab blackbox backprop marin vlastelica pogani anselm paulus vit musil georg martius michal rolinek 10 interior point solving for lp based prediction optimization neurips 2020 paper https proceedings neurips cc paper 2020 hash 51311013e51adebc3c34d2cc591fefee abstract html code https github com jayman91 neuripsintopt jayanta mandi tias guns 11 automatically learning compact quality aware surrogates for optimization problems neurips 2020 paper https openreview net forum id v8hzdodole kai wang bryan wilder andrew perrault milind tambe 12 contrastive losses and solution caching for predict and optimize ijcai 2021 paper https www ijcai org proceedings 2021 0390 pdf code https github com jayman91 ltr predopt maxime mulamba jayanta mandi michelangelo diligenti michele lombardi victor bucarey tias guns 13 a surrogate objective framework for prediction programming with soft constraints neurips 2021 paper https openreview net forum id 9sa2xh4mgr code https github com predoptwithsoftconstraint predoptwithsoftconstraint kai yan jie yan chuan luo liting chen qingwei lin dongmei zhang 14 implicit mle backpropagating through discrete exponential family distributions neurips 2021 paper https openreview net forum id lr4aawcqgb code https github com uclnlp torch imle mathias niepert pasquale minervini luca franceschi 15 cops combinatorial optimization for panoptic segmentation a fully differentiable approach neurips 2021 paper https proceedings neurips cc paper 2021 hash 83a368f54768f506b833130584455df4 abstract html code https github com aabbas90 cops ahmed abbas paul swoboda 16 an exact symbolic reduction of linear smart predict optimize to mixed integer linear programming icml 2022 paper https proceedings mlr press v162 jeong22a html code https github com jihwan jeong xaddpy jeong jihwan parth jaggi andrew butler and scott sanner an exact symbolic reduction of linear smart predict optimize to mixed integer linear programming icml 2022 17 constrained discrete black box optimization using mixed integer programming icml 2022 paper https proceedings mlr press v162 papalexopoulos22a html papalexopoulos theodore christian tjandraatmadja ross anderson juan pablo vielma and daving belanger 18 end to end stochastic optimization with energy based model neurips 2022 paper https openreview net forum id syoodxtmcf code https github com lingkai kong so ebm lingkai kong jiaming cui yuchen zhuang rui feng b aditya prakash chao zhang 19 deep declarative networks tpami 2022 paper https ieeexplore ieee org document 9355027 code https github com anucvml ddn stephen gould richard hartley and dylan campbell 20 surco learning linear surrogates for combinatorial nonlinear optimization problems icml 2023 paper https arxiv org abs 2210 12547 code https github com facebookresearch surco ferber aaron m and huang taoan and zha daochen and schubert martin and steiner benoit and dilkina bistra and tian yuandong vehicle routing problem content 1 learning to perform local rewriting for combinatorial optimization neurips 2019 paper https arxiv org abs 1810 00337 code https github com facebookresearch neural rewriter chen xinyun and tian yuandong 2 deep reinforcement learning for the electric vehicle routing problem with time windows arxiv 2020 paper https arxiv org abs 2010 02068 lin bo and ghaddar bissan and nathwani jatin 3 efficiently solving the practical vehicle routing problem a novel joint learning approach kdd 2020 paper https www kdd org kdd2020 accepted papers view efficiently solving the practical vehicle routing problem a novel joint lea lu duan yang zhan haoyuan hu yu gong jiangwen wei xiaodong zhang yinghui xu 4 reinforcement learning with combinatorial actions an application to vehicle routing neurips 2020 paper https papers nips cc paper 2020 file 06a9d51e04213572ef0720dd27a84792 paper pdf code https github com google research tf opt arthur delarue ross anderson christian tjandraatmadja 5 a learning based iterative method for solving vehicle routing problems iclr 2020 paper https static aminer cn upload pdf program 5e5e18dd93d709897ce3720b 0 pdf lu hao and zhang xingwen and yang shuang 6 neural large neighborhood search for the capacitated vehicle routing problem arxiv 2020 paper https arxiv org abs 1911 09539 hottung andre and tierney kevin 7 learning improvement heuristics for solving routing problems tnnls 2021 journal https ieeexplore ieee org abstract document 9393606 casa token mfeylmrogfiaaaaa nmakjuatsooyurwhuwgynoguv453anw9enyv45xg5jb2ocps6qe4a1cfe1emfmtzbon6cl5maw wu yaoxin and song wen and cao zhiguang and zhang jie and lim andrew 8 reinforcement learning for route optimization with robustness guarantees ijcai 2021 paper https www ijcai org proceedings 2021 0357 pdf jacobs tobias and alesiani francesco and ermis gulcin 9 multi decoder attention model with embedding glimpse for solving vehicle routing problems aaai 2021 paper https arxiv org abs 2012 10638 code https github com liangxinedu mdam liang xin wen song zhiguang cao jie zhang 10 analytics and machine learning in vehicle routing research arxiv 2021 paper https arxiv org abs 2102 10012 bai ruibin and chen xinan and chen zhi long and cui tianxiang and gong shuhui and he wentao and jiang xiaoping and jin huan and jin jiahuan and kendall graham and others 11 rp dqn an application of q learning to vehicle routing problems arxiv 2021 paper https arxiv org abs 2104 12226 bdeir ahmad and boeder simon and dernedde tim and tkachuk kirill and falkner jonas k and schmidt thieme lars 12 deep policy dynamic programming for vehicle routing problems arxiv 2021 paper https arxiv org abs 2102 11756 kool wouter and van hoof herke and gromicho joaquim and welling max 13 learning to delegate for large scale vehicle routing neurips 2021 paper https proceedings neurips cc paper 2021 hash dc9fa5f217a1e57b8a6adeb065560b38 abstract html li sirui and yan zhongxia and wu cathy 14 learning a latent search space for routing problems using variational autoencoders iclr 2021 paper https openreview net forum id 90jprvrjbo hottung andre and bhandari bhanu and tierney kevin 15 preference conditioned neural multi objective combinatorial optimization iclr 2022 paper https openreview net forum id quobt9btwo lin xi and yang zhiyuan and zhang qingfu 16 learning generalizable models for vehicle routing problems via knowledge distillation neurips 2022 paper https openreview net forum id sovnpuegkmp code https github com jieyibi amdkd bi jieyi and ma yining and wang jiahai and cao zhiguang and chen jinbiao and sun yuan and chee yeow meng 17 sym nco leveraging symmetricity for neural combinatorial optimization neurips 2022 paper https openreview net forum id khre2vi5rvs code https github com alstn12088 sym nco kim minsu and park junyoung and park jinkyoo 18 simulation guided beam search for neural combinatorial optimization neurips 2022 paper https openreview net forum id tyas1rpys5 code https github com yd kwon sgbs choo jinho and kwon yeong dae and kim jihoon and jae jeongwoo and hottung andr e and tierney kevin and gwon youngjune 19 learning to cross exchange to solve min max vehicle routing problems iclr 2023 paper https openreview net forum id zcnzshc10y kim minjun and park junyoung and park jinkyoo 20 generalize learned heuristics to solve large scale vehicle routing problems in real time iclr 2023 paper https openreview net forum id 6zajpxqtlq hou qingchun and yang jingwei and su yiqiang and wang xiaoqing and deng yuming 21 meta sage scale meta learning scheduled adaptation with guided exploration for mitigating scale shift on combinatorial optimization icml 2023 paper https icml cc virtual 2023 poster 25138 son jiwoo and kim minsu and kim hyeonah and park jinkyoo 22 towards omni generalizable neural methods for vehicle routing problems icml 2023 paper https icml cc virtual 2023 poster 25267 code https github com royalskye omni vrp zhou jianan yaoxin wu wen song zhiguang cao jie zhang 23 deepaco neural enhanced ant systems for combinatorial optimization neurips 2023 paper https arxiv org abs 2309 14032 code https github com henry yeh deepaco haoran ye jiarui wang zhiguang cao helan liang yong li job shop scheduling problem content 1 smart manufacturing scheduling with edge computing using multiclass deep q network transactions on industrial informatics 2019 journal https ieeexplore ieee org document 8676376 chun cheng lin der jiunn deng yen ling chih hsin ting chiu 2 multi agent reinforcement learning for job shop scheduling in flexible manufacturing systems international conference on artificial intelligence for industries ai4i 2019 paper https ieeexplore ieee org document 9027776 schirin baer jupiter bakakeu richard meyes tobias meisen 3 learning to dispatch for job shop scheduling via deep reinforcement learning neurips 2020 paper https arxiv org abs 2010 12367 code https github com zcajiayin l2d zhang cong and song wen and cao zhiguang and zhang jie and tan puay siew and xu chi 4 schedulenet learn to solve multi agent scheduling problems with reinforcement learning arxiv 2021 paper https arxiv org abs 2106 03051 junyoung park sanjar bakhtiyar jinkyoo park 5 dynamic job shop scheduling in smart manufacturing using deep reinforcement learning computer networks 2021 journal https www sciencedirect com science article pii s1389128621001031 libing wang xin hu yin wang sujie xu shijun ma kexin yang zhijun liu weidong wang 6 learning to schedule job shop problems representation and policy learning using graph neural network and reinforcement learning international journal of production research 2021 journal https arxiv org abs 2106 01086 junyoung park jaehyeong chun sang hun kim youngkook kim jinkyoo park 7 explainable reinforcement learning in production control of job shop manufacturing system international journal of production research 2021 journal https www tandfonline com doi abs 10 1080 00207543 2021 1972179 journalcode tprs20 andreas kuhnle marvin carl may louis sch fer gisela lanza 8 neural dag scheduling via one shot priority sampling iclr 2023 paper https openreview net forum id wl8flaugqq jeon wonseok and gagrani mukul and bartan burak and zeng weiliang will and teague harris and zappi piero and lott christopher 9 robust scheduling with gflownets iclr 2023 paper https openreview net forum id zbuthi6wk9h zhang david w and rainone corrado and peschl markus and bondesan roberto 10 continual task allocation in meta policy network via sparse prompting icml 2023 paper https icml cc virtual 2023 poster 24080 yang yijun tianyi zhou jing jiang guodong long and yuhui shi maximal maximum independent set content 1 combinatorial optimization with graph convolutional networks and guided tree search neurips 2018 paper https arxiv org abs 1810 10659 li zhuwen and chen qifeng and koltun vladlen 2 learning what to defer for maximum independent sets icml 2020 paper http proceedings mlr press v119 ahn20a html ahn sungsoo and seo younggyo and shin jinwoo 3 distributed scheduling using graph neural networks icassp 2021 paper https ieeexplore ieee org abstract document 9414098 casa token q4corbbinpmaaaaa 0t8l49kyn9p4com20 fqinkcyk sm3ye5tempt8glg3c3wxxlvn1rgkehgriiyzicg gfb4z1a zhao zhongyuan and verma gunjan and rao chirag and swami ananthram and segarra santiago 4 solving graph based public good games with tree search and imitation learning neurlps 2021 paper https arxiv org abs 2106 06762 darvariu victor alexandru and hailes stephen and musolesi mirco 5 nn baker a neural network infused algorithmic framework for optimization problems on geometric intersection graphs neurlps 2021 paper https papers nips cc paper 2021 file c236337b043acf93c7df397fdb9082b3 paper pdf mccarty evan and zhao qi and sidiropoulos anastasios and wang yusu 6 what s wrong with deep learning in tree search for combinatorial optimization iclr 2022 paper https openreview net forum id mk0hzdqy7i1 code https github com maxiboether mis benchmark framework bother maximilian and kissig otto and taraz martin and cohen sarel and seidel karen and friedrich tobias 7 optimistic tree search strategies for black box combinatorial optimization neurlps 2022 paper https openreview net forum id jglw4dvx11f malherbe cedric and grosnit antoine and tutunov rasul and ammar haitham bou and wang jun 8 roco a general framework for evaluating robustness of combinatorial optimization solvers on graphs iclr 2023 paper https openreview net forum id 2r6ymqz4mml code https github com thinklab sjtu roco lu han and li zenan and wang runzhong and ren qibing and li xijun and yuan mingxuan and zeng jia and yang xiaokang and yan junchi 9 revisiting sampling for combinatorial optimization icml 2023 paper https icml cc virtual 2023 poster 23661 sun haoran goshvadi katayoon nova azade schuurmans dale and dai hanjun 10 unsupervised learning for combinatorial optimization needs meta learning iclr 2023 paper https openreview net forum id enyhce8zbp code https github com graph com meta co wang haoyu and li pan 11 graph based deterministic policy gradient for repetitive combinatorial optimization problems iclr 2023 paper https openreview net forum id yhiim9bgoo code https github com xzrtgmu twin nphard zhao zhongyuan and swami ananthram and segarra santiago 12 let the flows tell solving graph combinatorial optimization problems with gflownets arxiv 2023 paper https arxiv org abs 2305 17010 dinghuai zhang hanjun dai nikolay malkin aaron courville yoshua bengio ling pan generalization content 1 it s not what machines can learn it s what we cannot teach icml 2020 paper http proceedings mlr press v119 yehuda20a yehuda20a pdf gal yehuda moshe gabel and assaf schuster 2 learning tsp requires rethinking generalization cp 2021 paper https arxiv org pdf 2006 07054 pdf code https github com chaitjo learning tsp chaitanya k joshi quentin cappart louis martin rousseau and thomas laurent 3 generalization of neural combinatorial solvers through the lens of adversarial robustness iclr 2022 paper https openreview net forum id vjz7dpijip3 simon geisler johanna sommer jan schuchardt aleksandar bojchevski and stephan g nnemann 4 learning for robust combinatorial optimization algorithm and application infocom 2022 journal https ieeexplore ieee org abstract document 9796715 shao zhihui and yang jianyi and shen cong and ren shaolei 5 roco a general framework for evaluating robustness of combinatorial optimization solvers on graphs iclr 2023 paper https openreview net forum id 2r6ymqz4mml code https github com thinklab sjtu roco lu han and li zenan and wang runzhong and ren qibing and li xijun and yuan mingxuan and zeng jia and yang xiaokang and yan junchi 6 towards omni generalizable neural methods for vehicle routing problems icml 2023 paper https icml cc virtual 2023 poster 25267 code https github com royalskye omni vrp zhou jianan yaoxin wu wen song zhiguang cao jie zhang orienteering problem content 1 a reinforcement learning approach to the orienteering problem with time windows computers operations research 2021 paper https arxiv org abs 2011 03647v2 code https github com mustelideos optw rl ricardo gama hugo l fernandes 2 meta sage scale meta learning scheduled adaptation with guided exploration for mitigating scale shift on combinatorial optimization icml 2023 paper https icml cc virtual 2023 poster 25138 son jiwoo and kim minsu and kim hyeonah and park jinkyoo 3 deepaco neural enhanced ant systems for combinatorial optimization neurips 2023 paper https arxiv org abs 2309 14032 code https github com henry yeh deepaco haoran ye jiarui wang zhiguang cao helan liang yong li computing resource allocation content 1 resource management with deep reinforcement learning hotnets 2016 paper https dl acm org doi abs 10 1145 3005745 3005750 mao hongzi and alizadeh mohammad and menache ishai and kandula srikanth 2 learning to perform local rewriting for combinatorial optimization neurips 2019 paper https arxiv org abs 1810 00337 code https github com facebookresearch neural rewriter chen xinyun and tian yuandong 3 learning scheduling algorithms for data processing clusters sigcomm 2019 paper https static aminer cn storage pdf arxiv 18 1810 1810 01963 pdf code https github com hongzimao decima sim mao hongzi and schwarzkopf malte and venkatakrishnan bojja shaileshh and meng zili and alizadeh mohammad 4 smart resource allocation for mobile edge computing a deep reinforcement learning approach ieee transactions on emerging topics in computing 2019 paper https ieeexplore ieee org abstract document 8657791 jiadai lei zhao jiajia liu nei kato 5 a two stage framework and reinforcement learning based optimization algorithms for complex scheduling problems arxiv 2021 paper https arxiv org abs 2103 05847 he yongming and wu guohua and chen yingwu and pedrycz witold 6 a bi level framework for learning to solve combinatorial optimization on graphs neurips 2021 paper https arxiv org abs 2106 04927 code https github com thinklab sjtu ppo bihyb wang runzhong and hua zhigang and liu gan and zhang jiayi and yan junchi and qi feng and yang shuang and zhou jun and yang xiaokang bin packing problem content 1 small boxes big data a deep learning approach to optimize variable sized bin packing bigdataservice 2017 paper https ieeexplore ieee org abstract document 7944923 casa token mrzi xby3ycaaaaa yd9le2kbnq1tmpw 1etb0rf ofvcljj9up0z2qi6xjma uffxxszrix7rklaqed yxwuwbc4m w mao feng and blanco edgar and fu mingang and jain rohit and gupta anurag and mancel sebastien and yuan rong and guo stephen and kumar sai and tian yayang 2 solving a new 3d bin packing problem with deep reinforcement learning method arxiv 2017 paper https arxiv org abs 1708 05930 hu haoyuan and zhang xiaodong and yan xiaowei and wang longfei and xu yinghui 3 best arm identification in multi armed bandits with delayed feedback pmlr 2018 paper http proceedings mlr press v84 grover18b html grover aditya and markov todor and attia peter and jin norman and perkins nicolas and cheong bryan and chen michael and yang zi and harris stephen and chueh william and others 4 ranked reward enabling self play reinforcement learning for combinatorial optimization alexandre arxiv 2018 paper https arxiv org abs 1807 01672 laterre alexandre and fu yunguan and jabri mohamed khalil and cohen alain sam and kas david and hajjar karl and dahl torbjorn s and kerkeni amine and beguir karim 5 a multi task selected learning approach for solving 3d bin packing problem aamas 2019 paper https arxiv org abs 1804 06896 duan lu and hu haoyuan and qian yu and gong yu and zhang xiaodong and xu yinghui and wei jiangwen 6 a data driven approach for multi level packing problems in manufacturing industry kdd 2019 paper https dl acm org doi abs 10 1145 3292500 3330708 chen lei and tong xialiang and yuan mingxuan and zeng jia and chen lei 7 solving packing problems by conditional query learning openreview 2019 paper https openreview net forum id bkgtwrntpb li dongda and ren changwei and gu zhaoquan and wang yuexuan and lau francis 8 repack dense object packing using deep cnn with reinforcement learning cacs 2019 paper https ieeexplore ieee org abstract document 9024360 casa token scxezdddiwmaaaaa fglp vbiqujglzcm7yzyqndh qa8jojih zbh7ru0xsvbghh8oaxpthou3bqhbeet4nlsrdhpcu chu yu cheng and lin horng horng 9 reinforcement learning driven heuristic optimization arxiv 2019 paper https arxiv org pdf 1906 06639 pdf cai qingpeng and hang will and mirhoseini azalia and tucker george and wang jingtao and wei wei 10 a generalized reinforcement learning algorithm for online 3d bin packing aaai workshop 2020 paper https arxiv org abs 2007 00463 verma richa and singhal aniruddha and khadilkar harshad and basumatary ansuma and nayak siddharth and singh harsh vardhan and kumar swagat and sinha rajesh 11 robot packing with known items and nondeterministic arrival order tasae 2020 paper https ieeexplore ieee org abstract document 9205914 wang fan and hauser kris 12 tap net transport and pack using reinforcement learning tog 2020 paper https dl acm org doi abs 10 1145 3414685 3417796 code https github com juzhan tap net hu ruizhen and xu juzhan and chen bin and gong minglun and zhang hao and huang hui 13 simultaneous planning for item picking and placing by deep reinforcement learning iros 2020 paper http ras papercept net images temp iros files 0330 pdf tanaka tatsuya and kaneko toshimitsu and sekine masahiro and tangkaratt voot and sugiyama masashi 14 monte carlo tree search on perfect rectangle packing problem instances gecco 2020 paper https dl acm org doi abs 10 1145 3377929 3398115 pejic igor and van den berg daan 15 packit a virtual environment for geometric planning icml 2020 paper http proceedings mlr press v119 goyal20b html code https github com princeton vl packit goyal ankit and deng jia 16 online 3d bin packing with constrained deep reinforcement learning aaai 2021 paper https arxiv org abs 2006 14978 code https github com alexfrom0815 online 3d bpp drl zhao hang and she qijin and zhu chenyang and yang yin and xu kai 17 learning practically feasible policies for online 3d bin packing arxiv 2021 paper https arxiv org abs 2108 13680 hang zhao and chenyang zhu and xin xu and hui huang and kai xu 18 attend2pack bin packing through deep reinforcement learning with attention icml workshop 2021 paper https arxiv org abs 2107 04333 jingwei zhang and bin zi and xiaoyu ge 19 solving 3d bin packing problem via multimodal deep reinforcement learning aamas 2021 paper https www ifaamas org proceedings aamas2021 pdfs p1548 pdf jiang yuan zhiguang cao and jie zhang 20 learning to solve 3 d bin packing problem via deep reinforcement learning and constraint programming ieee transactions on cybernetics 2021 paper https ieeexplore ieee org document 9606618 jiang yuan and cao zhiguang and zhang jie 21 learning to pack a data driven tree search algorithm for large scale 3d bin packing problem cikm 2021 paper https dl acm org doi abs 10 1145 3459637 3481933 zhu qianwen and li xihan and zhang zihan and luo zhixing and tong xialiang and yuan mingxuan and zeng jia 22 learning efficient online 3d bin packing on packing configuration trees iclr 2022 paper https openreview net forum id bfugjlcwaq hang zhao and kai xu 23 improved algorithms for multi period multi class packing problemswith bandit feedback icml 2023 paper https icml cc virtual 2023 poster 24252 kim wonyoung and iyengar garud and zeevi assaf graph edit distance content 1 simgnn a neural network approach to fast graph similarity computation wsdm 2019 paper https arxiv org abs 1808 05689 code https github com yunshengb simgnn bai yunsheng and ding hao and bian song and chen ting and sun yizhou and wang wei 2 graph matching networks for learning the similarity of graph structured objects icml 2019 paper https arxiv org abs 1904 12787 code https github com lin yijie graph matching networks li yujia and gu chenjie and dullien thomas and vinyals oriol and kohli pushmeet 3 convolutional embedding for edit distance sigir 2020 paper https dl acm org doi abs 10 1145 3397271 3401045 code https github com xinyandai string embed dai xinyan and yan xiao and zhou kaiwen and wang yuxuan and yang han and cheng james 4 learning based efficient graph similarity computation via multi scale convolutional set matching aaai 2020 paper https ojs aaai org index php aaai article view 5720 code https github com yunshengb graphsim bai yunsheng and ding hao and gu ken and sun yizhou and wang wei 5 a bi level framework for learning to solve combinatorial optimization on graphs neurips 2021 paper https arxiv org abs 2106 04927 code https github com thinklab sjtu ppo bihyb wang runzhong and hua zhigang and liu gan and zhang jiayi and yan junchi and qi feng and yang shuang and zhou jun and yang xiaokang 6 combinatorial learning of graph edit distance via dynamic embedding cvpr 2021 paper https arxiv org abs 2011 15039 code https github com thinklab sjtu genn astar wang runzhong and zhang tianqi and yu tianshu and yan junchi and yang xiaokang hamiltonian cycle problem content 1 a bi level framework for learning to solve combinatorial optimization on graphs neurips 2021 paper https arxiv org abs 2106 04927 code https github com thinklab sjtu ppo bihyb wang runzhong and hua zhigang and liu gan and zhang jiayi and yan junchi and qi feng and yang shuang and zhou jun and yang xiaokang graph coloring content 1 deep learning based hybrid graph coloring algorithm for register allocation arxiv 2019 paper https arxiv org abs 1912 03700 das dibyendu and ahmad shahid asghar and venkataramanan kumar 2 neural models for output space invariance in combinatorial problems iclr 2022 paper https openreview net forum id ibrukc pbis nandwani yatin and jain vidit and singla parag and others 3 enhancing column generation by a machine learning based pricing heuristic for graph coloring aaai 2022 paper https www aaai org aaai22papers aaai 4026 sheny pdf code https github com joey shen mlph git shen yunzhuang yuan sun xiaodong li andrew craig eberhard and andreas t ernst 4 learning to generate columns with application to vertex coloring iclr 2023 paper https openreview net forum id jhw30a4dxto code https github com yuansuny mlcg sun yuan and ernst andreas t and li xiaodong and weiner jake maximal common subgraph content 1 fast detection of maximum common subgraph via deep q learning arxiv 2020 paper https arxiv org abs 2002 03129 bai yunsheng and xu derek and wang alex and gu ken and wu xueqing and marinovic agustin and ro christopher and sun yizhou and wang wei influence maximization content 1 learning heuristics over large graphs via deep reinforcement learning neurips 2020 paper https arxiv org abs 1903 03332 mittal akash and dhawan anuj and manchanda sahil and medya sourav and ranu sayan and singh ambuj 2 controlling graph dynamics with reinforcement learning and graph neural networks icml 2021 paper https arxiv org abs 2010 05313 eli a meirom haggai maron shie mannor gal chechik 3 lense learning to navigate subgraph embeddings for large scale combinatorial optimisation icml 2022 paper https proceedings mlr press v162 ireland22a html code https github com davidireland3 lense ireland david and g montana 4 towards one shot neural combinatorial solvers theoretical and empirical notes on the cardinality constrained case iclr 2023 paper https openreview net forum id h21yjhdzbwz code https github com thinklab sjtu one shot cardinality nn solver wang runzhong and shen li and chen yiting and yan junchi and yang xiaokang and tao dacheng 5 deep graph representation learning and optimization for influence maximization icml 2023 paper https icml cc virtual 2023 poster 24512 chen ling and junji jiang and junxiang wang and my t thai and lukas xue and james song and meikang qiu and liang zhao boolean satisfiability content 1 graph neural networks and boolean satisfiability arxiv 2017 paper https arxiv org pdf 1702 03592 b nz benedikt and matthew lamm 2 learning a sat solver from single bit supervision arxiv 2018 paper https arxiv org pdf 1903 04671 code https github com dselsam neurosat selsam daniel matthew lamm benedikt b nz percy liang leonardo de moura and david l dill 3 machine learning based restart policy for cdcl sat solvers sat 2018 paper http www t news cn floc2018 floc2018 pages proceedings paper 477 pdf liang jia hui chanseok oh minu mathew ciza thomas chunxiao li and vijay ganesh 4 learning to solve circuit sat an unsupervised differentiable approach iclr 2019 paper https openreview net pdf id bjxgz2r9t7 code https github com johannasommer generalization neural co solvers amizadeh saeed sergiy matusevych and markus weimer 5 learning local search heuristics for boolean satisfiability neurips 2019 paper https www cs cmu edu eyolcu papers learning local search heuristics sat pdf code https github com emreyolcu sat yolcu emre and poczos barnabas 6 improving sat solver heuristics with graph networks and reinforcement learning arxiv 2019 paper https arxiv org pdf 1909 11830 kurin vitaly saad godil shimon whiteson and bryan catanzaro 7 graph neural reasoning may fail in certifying boolean unsatisfiability arxiv 2019 paper https arxiv org pdf 1909 11588 chen ziliang and zhanfu yang 8 guiding high performance sat solvers with unsat core predictions sat 2019 paper https arxiv org pdf 1903 04671 selsam daniel and nikolaj bj rner 9 g2sat learning to generate sat formulas neurips 2019 paper https www ncbi nlm nih gov pmc articles pmc7138247 code https github com jiaxuanyou g2sat you jiaxuan haoze wu clark barrett raghuram ramanujan and jure leskovec 10 learning heuristics for quantified boolean formulas through reinforcement learning arxiv 2019 paper https arxiv org pdf 1807 08058 code https github com lederg learningqbf lederman gil markus n rabe edward a lee and sanjit a seshia 11 enhancing sat solvers with glue variable predictions arxiv 2020 paper https arxiv org pdf 2007 02559 han jesse michael 12 can q learning with graph networks learn a generalizable branching heuristic for a sat solver neurips 2020 paper http www cs ox ac uk people shimon whiteson pubs kurinnips20 pdf whiteson shimon 13 online bayesian moment matching based sat solver heuristics icml 2020 paper http proceedings mlr press v119 duan20c duan20c pdf code https github com saeednj bmmsat duan haonan saeed nejati george trimponias pascal poupart and vijay ganesh 14 learning clause deletion heuristics with reinforcement learning aitp 2020 paper http aitp conference org 2020 abstract paper 25 pdf vaezipoor pashootan gil lederman yuhuai wu roger grosse and fahiem bacchus 15 classification of sat problem instances by machine learning methods ceur 2020 paper http ceur ws org vol 2650 paper11 pdf danisovszky m rk zijian gy z yang and g bor kusper 16 predicting propositional satisfiability via end to end learning aaai 2020 paper https ojs aaai org index php aaai article download 5733 5589 cameron chris rex chen jason hartford and kevin leyton brown 17 neural heuristics for sat solving arxiv 2020 paper https arxiv org pdf 2005 13406 jaszczur sebastian micha uszczyk and henryk michalewski 18 nlocalsat boosting local search with solution prediction arxiv 2020 paper https arxiv org pdf 2001 09398 code https github com myxxxsquared nlocalsat zhang wenjie zeyu sun qihao zhu ge li shaowei cai yingfei xiong and lu zhang 19 optimistic tree search strategies for black box combinatorial optimization neurlps 2022 paper https openreview net forum id jglw4dvx11f malherbe cedric and grosnit antoine and tutunov rasul and ammar haitham bou and wang jun 20 goal aware neural sat solver ijcnn 2022 paper https ieeexplore ieee org document 9892733 ozolins emils karlis freivalds andis draguns eliza gaile ronalds zakovskis and sergejs kozlovics 21 neurocomb improving sat solving with graph neural networks arxiv 2022 paper https arxiv org abs 2110 14053 wang wenxi yang hu mohit tiwari sarfraz khurshid kenneth mcmillan and risto miikkulainen 22 on the performance of deep generative models of realistic sat instances sat 2022 paper https drops dagstuhl de opus volltexte 2022 16677 pdf lipics sat 2022 3 pdf garz n iv n pablo mesejo and jes s gir ldez cru 23 deepsat an eda driven learning framework for sat arxiv 2022 paper http arxiv org abs 2205 13745 li min zhengyuan shi qiuxia lai sadaf khan and qiang xu 24 satformer transformers for sat solving arxiv 2022 paper https arxiv org abs 2209 00953 shi zhengyuan min li sadaf khan hui ling zhen mingxuan yuan and qiang xu 25 augment with care contrastive learning for combinatorial problems icml 2022 paper https proceedings mlr press v162 duan22b html code https github com h4duan contrastive sat duan haonan pashootan vaezipoor max b paulus yangjun ruan and chris j maddison 26 nsnet a general neural probabilistic framework for satisfiability problems neurips 2022 paper https arxiv org abs 2211 03880 zhaoyu li xujie si 27 neural set function extensions learning with discrete functions in high dimensions neurips 2022 paper https arxiv org abs 2208 04055 nikolaos karalias joshua robinson andreas loukas stefanie jegelka 28 generalization of neural combinatorial solvers through the lens of adversarial robustness iclr 2022 paper https openreview net forum id vjz7dpijip3 simon geisler johanna sommer jan schuchardt aleksandar bojchevski and stephan g nnemann mixed integer programming content 1 sequential model based optimization for general algorithm configuration international conference on learning and intelligent optimization 2011 journal https link springer com chapter 10 1007 978 3 642 25566 3 40 hutter frank and hoos holger h and leyton brown kevin 2 non model based search guidance for set partitioning problems aaai 2012 paper https www aaai org ocs index php aaai aaai12 paper view 5082 kadioglu serdar and malitsky yuri and sellmann meinolf 3 a aupervised machine learning approach to variable branching in branch and bound citeseer 2014 journal https citeseerx ist psu edu document repid rep1 type pdf doi f35ba2bbc87dd31ae0a89d3ed9538fec9d15b4f0 alvarez alejandro marcos and louveaux quentin and wehenkel louis 4 learning to search in branch and bound algorithms neurlps 2014 paper http papers nips cc paper 5495 learning to search in branch and bound algorithms he he and daume iii hal and eisner jason m 5 learningto branch in mixed integer programming aaai 2016 paper https www aaai org ocs index php aaai aaai16 paper download 12514 11657 e b khalil p l bodic l song g nemhauser b dilkina 6 dash dynamic approach for switching heuristics european journal of operational research 2016 journal https www sciencedirect com science article pii s0377221715007559 di liberto giovanni and kadioglu serdar and leo kevin and malitsky yuri 7 learning when to use a decomposition international conference on ai and or techniques in constraint programming for combinatorial optimization problems 2017 journal https link springer com chapter 10 1007 978 3 319 59776 8 16 kruber markus and l u bbecke marco e and parmentier axel 8 learning to run heuristics in tree search ijcai 2017 paper https www ijcai org proceedings 2017 0092 pdf khalil elias b and dilkina bistra and nemhauser george l and ahmed shabbir and shao yufen 9 exact combinatorial optimization with graph convolutional neural networks neurlps 2019 paper https arxiv org abs 1906 01629 code https github com ds4dm learn2branch gasse maxime and chetelat didier and ferroni nicola and charlin laurent and lodi andrea 10 improving learning to branch via reinforcement learning neurips workshop 2020 paper https openreview net forum id z4d7 ptxtb sun haoran and chen wenbo and li hui and song le 11 reinforcement learning for variable selection in a branch and bound algorithm international conference on integration of constraint programming 2020 journal https link springer com chapter 10 1007 978 3 030 58942 4 12 etheve marc and al e s zacharie and bissuel c o me and juan olivier and kedad sidhoum safia 12 random sampling and machine learning to understand good decompositions annals of operations research 2020 journal https link springer com article 10 1007 s10479 018 3067 9 basso saverio and ceselli alberto and tettamanzi andrea 13 hybrid models for learning to branch neurlps 2020 paper https arxiv org abs 2006 15212 code https github com pg2455 hybrid learn2branch gupta prateek and gasse maxime and khalil elias b and kumar m pawan and lodi andrea and bengio yoshua 14 reinforcement learning for integer programming learning to cut icml 2020 paper http proceedings mlr press v119 tang20a html tang yunhao and agrawal shipra and faenza yuri 15 solving mixed integer programs using neural networks arxiv 2020 paper https arxiv org abs 2012 13349 nair vinod and bartunov sergey and gimeno felix and von glehn ingrid and lichocki pawel and lobov ivan and o donoghue brendan and sonnerat nicolas and tjandraatmadja christian and wang pengming and others 16 learning efficient search approximation in mixed integer branch and bound arxiv 2020 paper https arxiv org abs 2007 03948 yilmaz kaan and yorke smith neil 17 learning a large neighborhood search algorithm for mixed integer programs arxiv 2020 paper https arxiv org abs 2107 10201 sonnerat nicolas and wang pengming and ktena ira and bartunov sergey and nair vinod 18 a general large neighborhood search framework for solving integer linear programs neurlps 2020 paper https arxiv org abs 2004 00422 song jialin and lanka ravi and yue yisong and dilkina bistra 19 neural large neighborhood search neurlps workshop 2020 paper https openreview net forum id xeqhkanovw nair vinod and alizadeh mohammad and others 20 accelerating primal solution findings for mixed integer programs based on solution prediction aaai 2020 paper https arxiv org abs 1906 09575 ding jian ya chao zhang lei shen shengyin li bing wang yinghui xu and le song 21 comboptnet fit the right np hard problem by learning integer programming constraints arxiv 2021 paper https openreview net forum id z4d7 ptxtb code https github com martius lab comboptnet paulus anselm and rolinek michal and musil vit and amos brandon and martius georg 22 reinforcement learning for mixed integer programming smart feasibility pump icml workshop 2021 paper https arxiv org abs 2102 09663 qi meng and wang mengxin and shen zuo jun 23 parameterizing branch and bound search trees to learn branching policies aaai 2021 paper https www aaai org aaai21papers aaai 9826 zarpellong pdf code https github com ds4dm branch search trees zarpellon giulia and jo jason and lodi andrea and bengio yoshua 24 learning to select cuts for efficient mixed integer programming arxiv 2021 journal https arxiv org abs 2105 13645 huang zeren and wang kerong and liu furui and zhen hui ling and zhang weinan and yuan mingxuan and hao jianye and yu yong and wang jun 25 confidence threshold neural diving neurips ml4co competition workshop 2021 paper https arxiv org abs 2202 07506 taehyun yoon 26 learning large neighborhood search policy for integer programming neurlps 2021 paper https proceedings neurips cc paper 2021 hash fc9e62695def29ccdb9eb3fed5b4c8c8 abstract html wu yaoxin and song wen and cao zhiguang and zhang jie 27 generative deep learning for decision making in gas networks arxiv 2021 paper https arxiv org abs 2102 02125 lovis anderson and mark turner and thorsten koch 28 offline constraint screening for online mixed integer optimization arxiv 2021 paper https arxiv org abs 2103 13074 asunci n jim nez cordero and juan miguel morales and salvador pineda 29 mixed integer programming versus evolutionary computation for optimizing a hard real world staff assignment problem icaps 2021 paper https ojs aaai org index php icaps article view 3521 peters jannik and stephan daniel and amon isabel and gawendowicz hans and lischeid julius and salabarria lennart and umland jonas and werner felix and krejca martin s and rothenberger ralf and others 30 learning to scale mixed integer programs aaai 2021 paper https www aaai org aaai21papers aaai 7940 bertholdt pdf berthold timo and gregor hendel 31 learning pseudo backdoors for mixed integer programs aaai 2021 paper https arxiv org pdf 2106 05080 pdf aaron ferber and jialin song and bistra dilkina and yisong yue 32 confidence threshold neural diving neurips ml4co competition workshop 2021 paper https arxiv org abs 2202 07506 taehyun yoon 33 learning primal heuristics for mixed integer programs ijcnn 2021 paper https arxiv org pdf 2107 00866 pdf shen yunzhuang and sun yuan and eberhard andrew and li xiaodong 34 learning to solve large scale security constrained unit commitment problems informs journal on computing 2021 journal https pubsonline informs org doi abs 10 1287 ijoc 2020 0976 xavier a linson s and qiu feng and ahmed shabbir 35 learning to branch with tree mdps arxiv 2022 paper https arxiv org abs 2205 11107 code https github com lascavana rl2branch scavuzzo lara f chen didier ch etelat maxime gasse andrea lodi n yorke smith and karen aardal 36 a deep reinforcement learning framework for column generation arxiv 2022 paper https arxiv org abs 2206 02568 chi cheng amine mohamed aboussalah elias boutros khalil juyoung wang and zoha sherkat masoumi 37 ranking constraint relaxations for mixed integer programs using a machine learning approach arxiv 2022 journal https arxiv org abs 2207 00219 weiner jake andreas t ernst xiaodong li and yuan sun 38 learning to accelerate approximate methods for solving integer programming via early fixing arxiv 2022 journal https arxiv org abs 2207 02087 code https github com sclbd accelerated lpbox admm li longkang and baoyuan wu 39 learning to cut by looking ahead cutting plane selection via imitation learning icml 2022 paper https proceedings mlr press v162 paulus22a html paulus max b giulia zarpellon andreas krause laurent charlin and chris j maddison 40 lookback for learning to branch arxiv 2022 journal https arxiv org abs 2206 14987 gupta prateek elias boutros khalil didier chet elat maxime gasse yoshua bengio andrea lodi and m pawan kumar 41 learning to search in local branching aaai 2022 paper https ojs aaai org index php aaai article view 20294 code https github com pandat8 ml4lb liu defeng and fischetti matteo and lodi andrea 42 deep reinforcement learning for exact combinatorial optimization learning to branch arxiv 2022 paper https arxiv org abs 2206 06965 zhang tianyu and banitalebi dehkordi amin and zhang yong 43 learning to branch with tree aware branching transformers knowledge based systems 2022 journal https www sciencedirect com science article pii s0950705122007298 via 3dihub code https github com linjc16 tbrant lin jiacheng and zhu jialin and wang huangang and zhang tao 44 an improved reinforcement learning algorithm for learning to branch arxiv 2022 paper https arxiv org abs 2201 06213 qu qingyu and li xijun and zhou yunfan and zeng jia and yuan mingxuan and wang jie and lv jinhu and liu kexin and mao kun 45 learning to use local cuts arxiv 2022 paper https arxiv org abs 2206 11618 berthold timo and francobaldi matteo and hendel gregor 46 doge train discrete optimization on gpu with end to end training arxiv 2022 paper https arxiv org abs 2205 11638 abbas ahmed and swoboda paul 47 structural analysis of branch and cut and the learnability of gomory mixed integer cuts neurips 2022 paper https openreview net forum id e2grdexotzf balcan maria florina and prasad siddharth and sandholm tuomas and vitercik ellen 48 a gnn guided predict and search framework for mixed integer linear programming iclr 2023 paper https openreview net forum id phmpgt5xwae code https github com sribdcn predict and search milp method han qingyu and yang linxin and chen qian and zhou xiang and zhang dong and wang akang and sun ruoyu and luo xiaodong 49 learning cut selection for mixed integer linear programming via hierarchical sequence model iclr 2023 paper https openreview net forum id zob4p9brnck code https github com miralab ustc l2o hem torch wang zhihai and li xijun and wang jie and kuang yufei and yuan mingxuan and zeng jia and zhang yongdong and wu feng 50 on representing mixed integer linear programs by graph neural networks iclr 2023 paper https openreview net forum id 4gc3mgzra1d code https github com liujl11git gnn milp ziang chen jialin liu xinshang wang wotao yin 51 learning cut selection for mixed integer linear programming via hierarchical sequence model iclr 2023 paper https openreview net forum id zob4p9brnck code https github com miralab ustc l2o hem torch zhihai wang xijun li jie wang yufei kuang mingxuan yuan jia zeng yongdong zhang feng wu 52 gnn gbdt guided fast optimizing framework for large scale integer programming icml 2023 paper https proceedings mlr press v202 ye23e html code https github com thuiar gnn gbdt guided fast optimizing framework huigen ye hua xu hongyan wang chengming wang yu jiang 53 searching large neighborhoods for integer linear programs with contrastive learning icml 2023 paper https proceedings mlr press v202 huang23g html code https github com facebookresearch cl lns taoan huang aaron m ferber yuandong tian bistra dilkina benoit steiner 54 gnn gbdt guided fast optimizing framework for large scale integer programming icml 2023 paper https icml cc virtual 2023 poster 24107 ye huigen hua hui xu hongyan wang cheng wang and yueyen jiang causal discovery content 1 dags with no tears continuous optimization for structure learning neurips 2018 paper https arxiv org pdf 1803 01422 pdf zheng xun and aragam bryon and ravikumar pradeep and xing eric 2 causal discovery with reinforcement learning iclr 2020 paper https arxiv org abs 1906 04477 zhu shengyu and ng ignavier and chen zhitang 3 large scale differentiable causal discovery of factor graphs neurips 2022 paper https openreview net forum id k713e8vxzwr code https github com genentech dcdfg lopez romain and h u tter jan christian and pritchard jonathan k and regev aviv 4 boosting causal discovery via adaptive sample reweighting iclr 2023 paper https openreview net forum id lnpmtk15as4 code https github com anzhang314 rescore zhang an and liu fangfu and ma wenchang and cai zhibo and wang xiang and chua tat seng 5 cuts neural causal discovery from irregular time series data iclr 2023 paper https openreview net forum id ug8bqcd3emv code https github com jarrycyx unn cheng yuxiao and yang runzhao and xiao tingxiong and li zongren and suo jinli and he kunlun and dai qionghai 6 diffusion models for causal discovery via topological ordering iclr 2023 paper https openreview net forum id idusfje4 wq code https github com vios s diffan sanchez pedro and liu xiao and o neil alison q and tsaftaris sotirios a 7 nonlinear causal discovery with latent confounders icml 2023 paper https icml cc virtual 2023 poster 23789 code https github com chunlinli defuse david kaltenpoth and jilles vreeken game theoretic semantics content 1 first order problem solving through neural mcts based reinforcement learning arxiv 2021 paper https arxiv org abs 2101 04167 xu ruiyang and kadam prashank and lieberherr karl car dispatch content 1 dispatch of autonomous vehicles for taxi services a deep reinforcement learning approach transportation research 2020 journal https www sciencedirect com science article pii s0968090x19312227 chao mao yulin liu zuo jun max shen electronic design automation content 1 on joint learning for solving placement and routing in chip design neurips 2021 paper https arxiv org abs 2111 00234 code https github com thinklab sjtu eda ai cheng ruoyu and yan junchi 2 a graph placement methodology for fast chip design nature 2021 journal https www nature com articles s41586 021 03544 w pdf azalia mirhoseini anna goldie mustafa yazgan joe wenjie jiang ebrahim songhori shen wang young joon lee eric johnson omkar pathak azade nazi jiwoo pak andy tong kavya srinivasa william hang emre tuncer quoc v le james laudon richard ho roger carpenter jeff dean 3 unsupervised learning for combinatorial optimization with principled objective relaxation neurips 2022 paper https openreview net forum id hjnn9od v47 code https github com graph com co proxydesign wang haoyu peter and wu nan and yang hang and hao cong and li pan 4 cktgnn circuit graph neural network for electronic design automation iclr 2023 paper https openreview net forum id ne2911kq1sp dong zehao and cao weidong and zhang muhan and tao dacheng and chen yixin and zhang xuan conjunctive query containment content 1 it s not what machines can learn it s what we cannot teach icml 2020 paper http proceedings mlr press v119 yehuda20a yehuda20a pdf gal yehuda moshe gabel and assaf schuster virtual network embedding content 1 virtual network embedding via monte carlo tree search ieee trans cybern 2017 journal https ieeexplore ieee org document 7859375 soroush haeri ljiljana trajkovi 2 a novel reinforcement learning algorithm for virtual network embedding neurocomputing 2018 journal https www sciencedirect com science article abs pii s0925231218300420 haipeng yao xu chen maozhen li peiying zhang luyao wang 3 neurovine a neural preprocessor for your virtual network embedding algorithm infocom 2018 paper https ieeexplore ieee org document 8486263 andreas blenk patrick kalmbach johannes zerwas michael jarschel stefan schmid wolfgang kellerer 4 a virtual network embedding algorithm based on double layer reinforcement learning tcj 2019 journal https ieeexplore ieee org document 9514735 meng li meilian lu 5 nfvdeep adaptive online service function chain deployment with deep reinforcement learning iwqos 2019 paper https ieeexplore ieee org document 9068634 yikai xiao qixia zhang fangming liu jia wang miao zhao zhongxing zhang jiaxing zhang 6 a continuous decision virtual network embedding scheme relying on reinforcement learning ieee tnsm 2020 journal https ieeexplore ieee org document 8982091 haipeng yao sihan ma jingjing wang peiying zhang chunxiao jiang song guo 7 automatic virtual network embedding a deep reinforcement learning approach with graph convolutional networks j sac 2020 journal https ieeexplore ieee org document 9060910 zhongxia yan jingguo ge yulei wu liangxiong li tong li 8 a q learning based approach for virtual network embedding in data center nca 2020 journal https link springer com article 10 1007 s00521 019 04376 6 ying yuan zejie tian cong wang fanghui zheng yanxia lv 9 accelerating virtual network embedding with graph neural networks cnsm 2020 journal https ieeexplore ieee org document 9269128 farzad habibi mahdi dolati ahmad khonsari majid ghaderi 10 dynamic virtual network embedding algorithm based on graph convolution neural network and reinforcement learning iot j 2021 journal https ieeexplore ieee org document 9475485 peiying zhang chao wang neeraj kumar weishan zhang lei liu 11 deep reinforcement based optimization of function splitting in virtualized radio access networks icc 2021 paper https ieeexplore ieee org document 9473703 code https github com rubensolozabal vnf placement optimization rl fahri wisnu murti samad ali matti latva aho 12 drl sfcp adaptive service function chains placement with deep reinforcement learning icc 2021 paper https ieeexplore ieee org document 9500964 tianfu wang qilin fan xiuhua li xu zhang qingyu xiong shu fu min gao 13 gal vne solving the vne problem with global reinforcement learning and local one shot neural prediction kdd 2023 paper https dl acm org doi 10 1145 3580305 3599358 code https github com thinklab sjtu gal vne haoyu geng runzhong wang fei wu junchi yan optimal power flow content 1 predicting ac optimal power flows combining deep learning and lagrangian dual methods aaai 2020 paper https ojs aaai org index php aaai article view 5403 ferdinando fioretto terrence w k mak pascal van hentenryck 2 adversarially robust learning for security constrained optimal power flow neurips 2021 paper https proceedings neurips cc paper 2021 hash f0f07e680de407b0f12abf15bd520097 abstract html priya donti aayushya agarwal neeraj vijay bedmutha larry pileggi j zico kolter facility location problem content 1 solving uncapacitated p median problem with reinforcement learning assisted by graph attention networks applied intelligence 2023 paper https link springer com article 10 1007 s10489 022 03453 z wang chenguang and han congying and guo tiande and ding man 2 towards one shot neural combinatorial solvers theoretical and empirical notes on the cardinality constrained case iclr 2023 paper https openreview net forum id h21yjhdzbwz code https github com thinklab sjtu one shot cardinality nn solver wang runzhong and shen li and chen yiting and yan junchi and yang xiaokang and tao dacheng portfolio optimization content 1 integrating prediction in mean variance portfolio optimization quantitative finance 2023 paper https arxiv org pdf 2102 09287 pdf butler andrew and kwon roy h 2 towards one shot neural combinatorial solvers theoretical and empirical notes on the cardinality constrained case iclr 2023 paper https openreview net forum id h21yjhdzbwz code https github com thinklab sjtu one shot cardinality nn solver wang runzhong and shen li and chen yiting and yan junchi and yang xiaokang and tao dacheng 3 linsatnet the positive linear satisfiability neural networks icml 2023 paper https icml cc virtual 2023 poster 25110 code https github com thinklab sjtu linsatnet runzhong wang and yunhao zhang and ziao guo and tianyi chen and xiaokang yang and junchi yan sorting ranking content 1 ranking via sinkhorn propagation arxiv 2011 paper https arxiv org abs 1106 1925 ryan prescott adams richard s zemel 2 predict optimise with ranking objectives exhaustively learning linear functions ijcai 2019 paper https dl acm org doi abs 10 5555 3367032 3367186 demirovic emir and stuckey peter j and bailey james and chan jeffrey and leckie christopher and ramamohanarao kotagiri and guns tias 3 stochastic optimization of sorting networks via continuous relaxations iclr 2019 paper https openreview net forum id h1ess3cckx code https github com ermongroup neuralsort aditya grover eric wang aaron zweig stefano ermon 4 differentiable ranking and sorting using optimal transport neurips 2019 paper https papers nips cc paper 2019 hash d8c24ca8f23c562a5600876ca2a550ce abstract html marco cuturi olivier teboul jean philippe vert 5 optimizing rank based metrics with blackbox differentiation cvpr 2020 paper https openaccess thecvf com content cvpr 2020 papers rolinek optimizing rank based metrics with blackbox differentiation cvpr 2020 paper pdf code https github com martius lab blackbox backprop marin vlastelica anselm paulus v t musil georg martius and michal rol nek 6 fast differentiable sorting and ranking icml 2020 paper http proceedings mlr press v119 blondel20a blondel20a pdf code https github com google research fast soft sort mathieu blondel olivier teboul quentin berthet josip djolonga 7 softsort a continuous relaxation for the argsort operator icml 2020 paper http proceedings mlr press v119 prillo20a prillo20a pdf code https github com sprillo softsort sebastian prillo julian martin eisenschlos 8 differentiable top k with optimal transport neurips 2020 paper https proceedings neurips cc paper 2020 hash ec24a54d62ce57ba93a531b460fa8d18 abstract html yujia xie hanjun dai minshuo chen bo dai tuo zhao hongyuan zha wei wei tomas pfister 9 automatic loss function search for predict then optimize problems with strong ranking property iclr 2022 paper https openreview net forum id hsktdu h94 code https github com microsoft autopredoptconnector boshi wang jialin yi hang dong bo qiao chuan luo qingwei lin 10 decision focused learning through the lens of learning to rank icml 2022 paper https proceedings mlr press v162 mandi22a html code https github com jayman91 ltr predopt jayanta mandi v ctor bucarey maxime mulamba ke tchomba tias guns 11 pirank scalable learning to rank via differentiable sorting neurips 2022 paper https openreview net forum id dl8p6rlfts3 code https github com ermongroup pirank robin marcel edwin swezey aditya grover bruno charron stefano ermon knapsack content 1 a pointer network based deep learning algorithm for 0 1 knapsack problem icaci 2018 paper https ieeexplore ieee org abstract document 8377505 gu shenshen and tao hao 2 an investigation into prediction optimisation for the knapsack problem cpaior 2019 paper https link springer com chapter 10 1007 978 3 030 19212 9 16 demirovic emir and stuckey peter j and bailey james and chan jeffrey and leckie chris and ramamohanarao kotagiri and guns tias 3 a novel method to solve neural knapsack problems icml 2021 paper http proceedings mlr press v139 li21m html li duanshun and liu jing and lee dongeun and seyedmazloom ali and kaushik giridhar and lee kookjin and park noseong 4 provably good solutions to the knapsack problem via neural networks of bounded size aaai 2021 paper https pubsonline informs org doi abs 10 1287 ijoc 2021 0225 hertrich christoph and martin skutella combinatorial drug recommendation content 1 gamenet graph augmented memory networks for recommending medication combination aaai 2019 paper https ojs aaai org index php aaai article view 3905 code https github com sjy1203 gamenet shang junyuan and xiao cao and ma tengfei and li hongyan and sun jimeng 2 safedrug dual molecular graph encoders for recommending effective and safe drug combinations ijcai 2021 paper https www ijcai org proceedings 2021 0514 pdf code https github com ycq091044 safedrug yang chaoqi and xiao cao and ma fenglong and glass lucas and sun jimeng 3 debiased longitudinal and coordinated drug recommendation through multi visit clinic recordss neurips 2022 paper https openreview net forum id zvgld2w0eas code https github com ssshddd drugrec sun hongda and xie shufang and li shuqi and chen yuhan and wen ji rong and yan rui 4 molerec combinatorial drug recommendation with substructure aware molecular representation learning www 2023 paper https dl acm org doi 10 1145 3543507 3583872 code https github com yangnianzu0515 molerec yang nianzu and zeng kaipeng and wu qitian and yan junchi 5 enhancing activity prediction models in drug discovery with the ability to understand human language icml 2023 paper https icml cc virtual 2023 poster 24953 philipp seidl and andreu vall and sepp hochreiter and gunter klambauer 6 learning subpocket prototypes for generalizable structure based drug design icml 2023 paper https icml cc virtual 2023 poster 25062 zaixin zhang and qi liu 7 decompdiff diffusion models with decomposed priors for structure based drug design icml 2023 paper https icml cc virtual 2023 poster 23697 jiaqi guan and xiangxin zhou and yuwei yang and yu bao and jian wei peng and jianzhu ma and q liu and liang wang and quanquan gu | machine-learning combinatorial-optimization operations-research paper-list | ai |
vite-howto | licence https img shields io github license ileriayo markdown badges style for the badge https opensource org licenses mit space space typescript https img shields io badge typescript 23007acc svg style for the badge logo typescript logocolor white vite how to guide there are plenty of tutorials on how to use vite to compile code written in latest and hottest technology this guide is different it is about how to split application into files packages how to use typescript to ensure compatibility how to use vite to link them back either statically or dynamically demo code is written in plain old javascript using vanilla web api i write this vite how to guide after i have read tons of webpack ssr typescript guide on the internet they try to tell you a series of command to follow blindly without a understanding of the essential problems also the solution is coupled with specific frontend framework and plugins to be one key solution but all those encapsulation makes debugging harder in this guide i will tell you how to write minimal vite without plugins and typescript configuration to do it yourself you know what is the essential problem you understand the theory you copy paste the solution then you can modify it confidently when problem arises client side rendering how to only collect used static assets into a deployable bundle packages csr html dependencies how to centralize logic style and other related dependencies into one javascript file packages csr everything in js how to reduce homepage javascript bundle size packages csr reduce homepage size how to write a website in multiple html files packages csr multiple html pages server side rendering how to auto reload node js server packages ssr auto reload node server how to develop client and server together packages ssr dev client server together how to allow client to introduce stylesheet packages ssr share index html how to share render code between client server packages ssr isomorphic render how to generate a static website packages ssr generate static website publish consume via cdn a k a dynamic linking how to consume big library via cdn packages dynamic linking use big library via cdn how to publish hybrid npm package which can be used by both script and bundler packages dynamic linking hybrid npm package how to publish new version without asking application using the library to re bundle and re deploy packages dynamic linking remote package publish consume via mono repository a k a static linking how to publish library with stylesheet and wasm dependencies packages static linking library with assets how to modify and test multiple typescript libraries within a mono repository packages static linking multiple ts libs how to ensure new code end up in correct package within a mono repository packages static linking inversion of control the guide is still work in progress you can join the discussion with author and readers https github com taowen vite howto discussions 1 problems are more important than the solutions for each topic there are 4 parts the desired source code file directory structure and the motivation what are the developer experience problems if structured this way what are the user experience problems if structured this way solution walk through solution tend to change rapidly for example webpack evolves into vite but some problems are decades old they seldom change understand the problems allow us to pick up new framework tool faster because you know what you are looking for you can reuse these examples as starter template download and install https pnpm io run pnpm install to install dependencies of all packages in the workspace in each package run pnpm dev to start dev server run pnpm build pnpm preview to start production server make some changes to deepen your understanding every example is a starter template you can reuse by copy paste it works better this way than reuse by framework with lots of options callbacks | typescript vite web | front_end |
nlpbook | applied natural language processing in the enterprise this is the companion repo for applied natural language processing in the enterprise an o reilly media publication by ankur a patel and ajay uppili arasanipalai here you will find all the source code from the book published here on github for your convenience follow the steps below to get started with setting up your environment and running the code examples setup to install all the required libraries and dependencies run the following command pip install nlpbook however the recommended approach is to use conda a cross platform language agnostic package manager that automatically handles dependency conflicts if you have not already install the miniforge distribution of python 3 8 https github com conda forge miniforge download based on your os if you are on windows you can choose the anaconda distribution of python 3 8 https www anaconda com products individual instead of the miniforge distribution if you wish to once conda is installed run the following command conda install c nlpbook nlpbook alternatively if you d like to keep your environment for this book isolated from the rest of your system which we highly recommend run the following commands conda create n nlpbook conda activate nlpbook conda install c nlpbook nlpbook then run conda activate nlpbook every time you want to return to your environment to exit the environment run conda deactivate next install the spacy models python m spacy download en core web sm python m spacy download en core web lg python m spacy download en core web trf setup environment directly if you re interested in setting up an environment to quickly get up and running with the code for this book run the following commands from the root of this repo please see the getting the code section below on how to set up the repo first conda env create file environment yml conda activate nlpbook you can also grab all the dependacies via pip pip install r requirements txt getting the code all publicly released code is in this repository the simplest way to get started is via git git clone https github com nlpbook nlpbook git if you re on windows or another platform that doesn t already have git installed you may need to obtain a git client https git scm com downloads if you want a specific version to match the copy of the book you have this can occasionally change you can find previous versions on the releases page https github com nlpbook nlpbook releases getting the data next download data from aws s3 the data files are too large to store and access on github aws s3 cp s3 applied nlp book data data recursive no sign request aws s3 cp s3 applied nlp book models ag dataset models ag dataset recursive no sign request how this repo is organized each chapter in the book has a corresponding notebook in the root of this project repository they are named chxx ipynb for the chapter xx the appendices are named apxx ipynb note this repo only contains the code for the chapters not the actual text in the book for the complete text please purchase a copy of the book https www amazon com dp 149206257x chapters 1 2 and 3 have been open sourced courtesy of o reilly and the authors once you d navigated to the nlpbook project directory you can lauch a jupyter client such as jupyter lab jupyter notebooks or vs code to view and run the notebooks contributions and errata we welcome any suggestions feedback and errata from readers if you notice anything that seems off in the book or could use improvement we ve love to hear from you feel free to submit an issue here on github or on our errata page copyright notice this material is made available by the creative commons attribution noncommercial no derivatives 4 0 international public license note you are free to use the code in accordance with the mit license but you are not allowed to redistribute or sell any of the text presented in chapters 1 2 and 3 which have been open sourced for the benefit of the community please consider purchasing a copy of the book if you are interested in reading the text that accompanies the code presented in this repo | nlp ai deep-learning | ai |
mono | p align center img src banner png alt goldfinch protocol icon width 100 p goldfinch protocol goldfinch https goldfinch finance is a decentralized lending protocol built on the blockchain this is a monorepo containing goldfinch s smart contracts web3 frontend and other supporting code for the latest documentation check out our docs https docs goldfinch finance stay up to date by joining our goldfinch discord server https discord gg goldfinch or following us on twitter goldfinch fi https twitter com goldfinch fi software development set up install vscode https code visualstudio com download clone this repo to your local computer when you open the project in a new vscode window a pop up https dev to askrishnapravin recommend vs code extensions to your future teammates 4gkb text configuring 20recommended 20extensions text vscode 2f 20in 20the 20root 20of tools we 20use 20git will display which will allow you to install all the recommended extensions for the repo installation goldfinch requires nodejs to get up and running we recommend using nvm https github com nvm sh nvm installing and updating to manage the node installation once nvm is installed set up the environment from the project root by running bash setup node using the version defined in nvmrc nvm install install yarn for package workspace management npm install global yarn now that the environment is set up prepare the projects with bash install all dependencies yarn install this will also install husky for utilizing git hooks at this point you may wish to yarn build core in order to build some of the commonly used artifacts between packages this will enable yarn start local or yarn start if you are planning to use those other requirements for certain packages you may also need to install python and add it to your path some of the dependencies require node gyp https github com nodejs node gyp which compiles native addons using python if you don t have python we recommend using pyenv which has instructions here https github com pyenv pyenv install java the frontend requires java for the firebase emulator monorepo packages packages contains all typescript packages and contracts protocol packages protocol goldfinch eng protocol solidity smart contracts and tests client2 packages client2 goldfinch eng client2 web3 frontend using react subgraph packages subgraph goldfinch eng subgraph subgraph powering the frontend functions packages functions goldfinch eng functions google cloud functions to support kyc and other server side functionality autotasks packages autotasks goldfinch eng autotasks defender autotasks and relay https docs openzeppelin com defender autotasks code for triggering periodic on chain calls utils packages utils goldfinch eng utils generally useful utilities that are shared across packages docs packages docs goldfinch eng docs static site of protocol documentation smart contract development all contracts are located under packages protocol contracts packages protocol contracts setup copy the env example at the workspace root to a new file env local fill in the test user field with some development address that you control testing all tests should be under packages protocol tests there are two kinds of tests regular all local state and mainnet forking uses state from mainnet they are located in different folders sometimes you write both for the same feature use your judgement depending on the change mainnet forking run yarn test mainnet forking in packages protocol regular tests run forge test in packages protocol if you don t already have foundry installed install foundry using the instructions here https github com foundry rs foundry once installed run the foundry tool sh script in packages protocol this will set up foundry and prepare the git submodules in the future you should run forge install in packages protocol to update your forge dependencies coverage run yarn test coverage in the protocol package to generate a coverage report for smart contract typescript tests you can specify a set of files with a glob pattern e g yarn test coverage testfiles test tranchedpool test ts see soliditiy coverage https github com sc forks solidity coverage for more info tenderly debugging we have the ability to debug profile local transactions via tenderly tenderly co to do this get hold of a transaction hash and then run bash ensure tenderly cli is installed via brew tap tenderly tenderly brew install tenderly and run this from the protocol directory tenderly export force txhash to get a local transaction run the app as normal and make the transaction via the frontend and get the hash from metamask after it s confirmed to get a test transaction write a mainnetforking test log the transaction hash in the test then run the mainnet forking test via run from the protocol directory yarn test tenderly pick up the transaction hash from the output of the test and run export as above compilation generally speaking you shouldn t need to do this since the test command automatically compiles but if you need to independently compile you can run yarn build this will run build in all packages in the monorepo including compiling the contracts beware this takes a long time to run and if you don t have environment variables set up in every package that requires it it may fail alternatively there s a lightweight version of build yarn build core this will build a handful of packages and get you ready to yarn start local or yarn start frontend development the frontend is located in packages client2 packages client2 setup within packages client2 packages client2 1 copy env example to env local 2 find the following variables in env local and update them with your api key and eoa address our local dev scripts will use these to automatically send you test eth and give you a credit line and usdc to play with js test user your metamask address only necessary if running a mainnet forked frontend alchemy api key your alchemy api key running make sure you have run yarn build core once before this yarn start local the simplest way to get going all fresh local state yarn start this will run a local mainnet forked https hardhat org hardhat network guides mainnet forking html blockchain extremely useful for certain changes requires an alchemy api key sign up for free at https www alchemy com both options will start several processes including your local blockchain and front end server it takes a min to spin up once the services are running go into packages client2 and run yarn dev to start the client changes to the frontend should be automatically hotloaded using react refresh but changes to smart contracts will require re compiling and re deploying you can do this by re running your start command note when running with start local the fake usdc address that we create will also not be visible to metamask by default so you ll need to add this as well by looking at the terminal output of the goldfinch eng protocol start command search usdc address and you should see something take that address and then go to add token in metamask and paste it in there your fake usdc balance should show up contributing see the contributing md contributing md security see the security md security md deployment local deployment contract deployment is handled automatically through the yarn start command using hardhat deploy https github com wighawag hardhat deploy and custom build scripts in packages protocol blockchain scripts mainnet deployments contracts are already deployed to mainnet we write custom scripts to do upgrades or deploy new contracts troubleshooting unrecognized network name similar errors accounts array must not be empty add your metamask address here it s possible your local environment is not set up properly or at all you may need to create an env local file wherever these are needed there is always an env example file that you can copy and rename see one time setup in frontend development for an example of this frontend front end blockchain development is still early and has rough edges here are some issues you might run into if you see others please add them here authorization required make sure you have your alchemy api key set in env local cannot set headers of undefined if you see this on the front end and the whole app blew up then try switching your metamask off of the current network and then back again eg to mainnet and then back to localhost error ethjs rpc rpc error with payload this may look like a failed transaction and metamask is just throwing some random error with no help if you re pretty sure everything should be fine then try to shut down your local server restart it and then before you try any transactions reset your metamask account and switch away and back to the local network eg local mainnet local to reset your metamask account click metamask settings advanced reset account this is fast and painless if metamask is unable to times out while trying to connect to localhost 8545 rm deployments localhost and then re running yarn start local was observed to fix this problem and enable metamask to connect error a provider or signer is needed to resolve ens names you probably have an undefined address somewhere but generally it means ethers doesn t understand the address and is trying to interpret it as an ens address appendix testing for testing the whole repo run yarn test from the root testing uid locally start the app connect with an account that is not golisted and no uid navigate to verify use the devtools and press the kyc and set us use the devtools to fund yourself with eth refresh page you should now be able to create uid | front_end |
|
RIOT | nightly ci status master master ci badge master ci link github release release badge release link license license badge license link api docs api badge api link wiki wiki badge wiki link stack overflow questions stackoverflow badge stackoverflow link twitter twitter badge twitter link matrix matrix badge matrix link p align center img src doc doxygen src riot logo svg width 66 zzzzzz zzzzzzzzzzzz zzzzzzzzzzzzzzzz zzzzzzz zzzzzz zzzzzz zzzzz zzzzz zzzz zzzz zzzzz zzzz zzzz zzzz zzzzz zzzz zzzzzz zzzz zzzzzzzz 777 7777 7777777777 zz zzzz zzzzzzzz 777 77777777 77777777777 zzzzzzz zzzz zzzzzzz 777 7777 7777 777 zzzzzzzzz zzzz z 777 777 777 777 zzzzzz zzzz 777 777 777 777 zzzzz zzzz 777 777 777 777 zzzzz zzzzz zzzz 777 777 777 777 zzzz zzzzz zzzzz 777 777 777 777 zzzz zzzzz zzzzz 777 777 777 777 zzzz zzzz zzzzz 777 777 777 777 zzzzz zzzzz zzzzz 777 777 777 777 zzzzzz zzzzzz zzzzz 777 7777777777 777 zzzzzzzzzzzzzzz zzzz 777 77777777 777 zzzzzzzzzzz z zzzzz p the friendly operating system for iot riot is a real time multi threading operating system that supports a range of devices that are typically found in the internet of things iot 8 bit 16 bit and 32 bit microcontrollers riot is based on the following design principles energy efficiency real time capabilities small memory footprint modularity and uniform api access independent of the underlying hardware this api offers partial posix compliance riot is developed by an international open source community which is independent of specific vendors e g similarly to the linux community riot is licensed with lgplv2 1 a copyleft license which fosters indirect business models around the free open source software platform provided by riot e g it is possible to link closed source code with the lgpl code features riot provides features including but not limited to a preemptive tickless scheduler with priorities flexible memory management high resolution long term timers mtd abstraction layer file system integration support 200 boards based on avr msp430 esp8266 esp32 risc v arm7 and arm cortex m the native port allows to run riot as is on linux and bsd multiple instances of riot running on a single machine can also be interconnected via a simple virtual ethernet bridge or via a simulated ieee 802 15 4 network zep ipv6 6lowpan rfc4944 rfc6282 and rfc6775 udp rpl storing mode p2p mode coap ota updates via suit mqtt usb device mode display touchscreen support ccn lite lorawan uwb bluetooth ble via nimble https github com apache mynewt nimble getting riot the most convenient way to get riot is to clone it via git console git clone https github com riot os riot this will ensure that you get all the newest features and bug fixes with the caveat of an ever changing work environment if you prefer things more stable you can download the source code of one of our quarter annual releases via github releases as zip file or tarball you can also checkout a release in a cloned git repository using console git pull tags git checkout yyyy mm for more details on our release cycle check our documentation release cycle releases https github com riot os riot releases release cycle https doc riot os org release cycle html getting started you want to start the riot just follow our quickstart guide https doc riot os org index html the quickest start or try this tutorial https github com riot os tutorials blob master readme md for specific toolchain installation follow instructions in the getting started https doc riot os org getting started html page the riot api itself can be built from the code using doxygen the latest version of the documentation is uploaded daily to doc riot os org https doc riot os org forum do you have a question want to discuss a new feature or just want to present your latest project using riot come over to our forum and post to your hearts content forum https forum riot os org contribute to contribute something to riot please refer to our contributing document contributing md mailing lists riot commits commits riot os org https lists riot os org mailman listinfo commits github notifications notifications riot os org https lists riot os org mailman listinfo notifications license most of the code developed by the riot community is licensed under the gnu lesser general public license lgpl version 2 1 as published by the free software foundation some external sources especially files developed by sics are published under a separate license all code files contain licensing information for more information see the riot website https www riot os org api badge https img shields io badge docs api informational svg api link https doc riot os org license badge https img shields io github license riot os riot license link https github com riot os riot blob master license master ci badge https ci riot os org job branch master badge master ci link https ci riot os org details branch master matrix badge https img shields io badge chat matrix brightgreen svg matrix link https matrix to riot os matrix org merge chance link https merge chance info target repo riot os riot release badge https img shields io github release riot os riot svg release link https github com riot os riot releases latest stackoverflow badge https img shields io badge stackoverflow 5briot os 5d yellow stackoverflow link https stackoverflow com questions tagged riot os twitter badge https img shields io badge social twitter informational svg twitter link https twitter com riot os wiki badge https img shields io badge docs wiki informational svg wiki link https github com riot os riot wiki | c iot os internetofthings microcontrollers rtos riot-os riotos internet internet-of-things hacktoberfest | os |
mHealthDroid | img src https user images githubusercontent com 6362660 68529077 95fdc980 02f2 11ea 87fd ad41222fa123 png w 712 height 225 what is mhealthdroid mhealhdroid is an open source mobile framework designed to facilitate the rapid and easy development of mhealth and biomedical applications the framework is devised to leverage the potential of mobile devices such as smartphones or tablets wearable sensors and portable biomedical devices these systems are used increasingly for the monitoring and delivery of personal health care and wellbeing likewise mhealthdroid aims at bringing together heterogeneous multimodal sensors including both research and commercial systems the framework comprises an extensive set of modules for sensor data acquisition data management remote storage signal processing machine learning multidimensional data visualization as well as intelligent recommendations and multimedia guidelines among others features the core of the framework is defined to operate on the android operating system however it has been implemented in a way that allows its use with any portable device in fact the core modules and components are defined to be completely independent of the underlying sensing and communication technology to utilize a new device commercial or not it is only required to include the corresponding drivers that allow the communication between the mhealthdroid modules and the specific device transparent to the user anyhow the mhealthdroid initiative already includes drivers for a wide sort of portable devices nevertheless it aims at incorporating new systems to the current portfolio of supported devices this active platform is not in development anymore but contributions are very welcome and will be reviewed suggestions and comments are also appreciated contact r d enquiries oresti bl gmail com a href http www ugr es oresti oresti ba os a contact implementation enquiries rafagarfer gmail com rafael garc a alejandrosaez3 gmail com alejandro s ez table of contents what is mhealthdroid what is mhealthdroid features what does mhealthdroid offer me features what does mhealthdroid offer me installation instructions installation instructions mhealthdroid structure mhealthdroid structure full documentation full documentation app examples app examples how to use mhealthdroid examples how to use mhealthdroid contribution guidelines contribution guidelines community community team members team members where can i get help where can i get help inspiration inspiration copyright and license copyright and license features what does mhealthdroid offer me rapid development of medical health and wellbeing applications fast and efficient communication between portable biomedical devices and portable mobile devices to gather human centered physiological and kinematic data up to now shimmer biomedical devices and mobile sensors can be used as portable biomedical devices development of applications capable of working with different portable health devices simultaneously efficient data transfer across the framework s managers fast data storage either local or remote visualization of any multimodal data streams such as patient s vital signs or kinematic data either online or offine knowledge inference by using machine learning and pattern recognition models multimedia guidelines and recommenders supported through audio video and youtube playlists as well as notification procedures system control and configuration tools to manage wifi 3g bluetooth screen brightness phone calls or text messages user logging and data privacy mechanisms installation instructions a few steps are required to get started 1 download the project source files 2 import the project to eclipse or other ide 3 add the following libraries graphview 3 0 jar guava 14 0 jar shimmer jar wekastripped jar youtubeandroidplayerapi jar 4 select mhealthdroid as library project 5 create your new project and select mhealthdroid as library 6 coding time all the libraries can be downloaded from mhealthdroid s releases https github com mhealthdroid mhealthdroid releases mhealthdroid structure img src https user images githubusercontent com 6362660 68529076 94cc9c80 02f2 11ea 8ef3 ebfaee5934ed png w 800 the figure above depicts the structure of the framework including all the existing managers and how they interact with each other all these managers are of singleton kind which means that only one unique instance can exist for each class and this instance is available from every component of the framework in the following we provide a brief description of each manager communication manager it is responsible for the connection of mobile devices smartphone tablet and biomedical devices vital data gathering local data storage and serve the collected data to the rest of the framework components remote storage manager it is devised to upload the data avalaible in the local database to a remote storage although the framework only comprises the client side of the communication we provide along with the framework a possible implementation for the server side visualization manager it supports both online and offline visualization it builds on an original extension of the graphview library http android graphview org the source code of the new version developed as part of the mhealthdroid project can be found at https github com mhealthdroid mygraphview data processing manager it is in charge of supervising and coordinating all the processes related to the inference of knowledge this manager provides signal processing data mining and machine learning techniques to extract knowledge from the biomedical data system manager this is a miscellaneous manager which allows for the configuration and monitoring of instrinsic aspects of the mobile and external devices more importantly it comprises a set of tools to support guidelines recommendations or alerts of worth in health applications full documentation the mhealthdroid full documentation can be found in a href https github com mhealthtechnologies mhealthdroid files 3827316 full documentation thesis rafael garcia pdf rafael s a and a href https github com mhealthtechnologies mhealthdroid files 3827320 full documentation thesis alejandro saez pdf alejandro s a master thesis app examples mhealthapp exemplary app intended to show the usefulness and potential of mhealthdroid more information in a href https github com mhealthdroid mhealthapp mhealthapp a repository img src https user images githubusercontent com 6362660 68529115 f8ef6080 02f2 11ea 97de b58021f53248 png w 673 height 300 https www youtube com watch v amdxw4osjcu examples how to use mhealthdroid the aim of this section is to show basic examples of how to use each manager communication manager every manager is singleton which means it is necessary to get its instance like this java communicationmanager cm communicationmanager getinstance then if one wants to storage data into the database the variable storage must be initialized this way java cm createstorage getapplicationcontext to add devices to the manager one just needs to call the appropriate functions java cm adddeviceshimmer getapplicationcontext device shimmer true cm adddevicemobile getapplicationcontext mobile device since the mobile device uses the device s sensor it is not necessary to connect it but for the shimmer devices once they have been added they need to be connected this work is done by the function connect giving as parameter the mac address java cm connect device shimmer address before the device starts to stream the enabled sensors of the devices can be set java arraylist sensortype sensors newarraylist sensortype sensors add sensortype accelerometer sensors add sensortype magnetometer sensors add sensortype gyroscope cm writeenabledsensors mobile device sensors cm writeenabledsensors device shimmer sensors the number of samples to be stored in the buffer can be chosen too java cm setnumberofsampletostorage 100 after all these things are done it is the suitable moment to start and stop whenever is wanted to stream java cm startstreaming mobile device cm startstreaming device shimmer cm stopstreaming mobile device cm stopstreaming device shimmer there are a couple of features that can be set either before or during the data streaming such as to select what device is going to store its data by default it is set to true or to set a label java cm setstoredata mobile device false cm setstoredata device shimmer true cm setlabel walking there is a way to get the device in case it is wanted to access to its specific functionalities java deviceshimmerds deviceshimmer cm getdevice device shimmer devicemobiledm devicemobile cm getdevice mobile device to insert a new users profile there are a couple of things to consider the database must be open and the table created it is also possible to check whether the login already exists in order to avoid a sql exception then the database should be closed all of this is possible by doing java cm opendatabase cm createuserstable if cm existslogin login cm adduserprofile login password age sex weight height email else toast maketext getapplicationcontext this login already exists toast length short show cm closedatabase in case there are devices streaming it is advisable to check whether any of them store data before closing the database it should be done in order to avoid a sql exception to do that it is only necessary to call the function of the communication manager named isstoring java if cm isstoring cm closedatabase remote storage manager the way to use this module is quite simple remotestoragemanager is a singleton class class instantiation restricted to one object so to obtain a remotestoragemanager instance is necessary to proceed as follows java servermanager sm servermanager getinstance it is also necessary to initialize the storage variable belonging to the remotestoragemanager class called storage this is done by java sm createstorage getapplicationcontext then the server ip address is set by means of the function setserverip also it is compulsory to set the name and path if necessary of the scripts that will be executed in the server side these scripts must be accessible from the server ip address for example using xampp like in this example the scripts inside the htdocs can be accessible by the address http serverip scriptname java sm setserverip http 192 168 1 11 sm setmobilemetadatapath insert mobile metadata php sm setmobilesignalspath insert mobile signals php sm setmobileunitspath insert mobile units php sm setshimmermetadatapath insert shimmer metadata php sm setshimmersignalspath insert shimmer signals php sm setshimmerunitspath insert shimmer units php sm setlastidpath get last id php if wifi connection is used wifi must be enabled the user can turn it on through the setwifienabled function defined on the system manager java sysm setwifienabled true getapplicationcontext there are three functions for uploading one for each database table data metadata or units for example the uploading of the the database tables for the mobile device mobile device and the ones for a given wearable monitoring device device 1 is defined as follows java to upload shimmer tables sm uploadunitstable device 1 sm uploadmetadatatable device 1 sm uploadsignalstable device 1 to upload mobile tables sm uploadunitstable mobile device sm uploadmetadatatable mobile device sm uploadsignalstable mobile device to know when the data are upload it is needed to run within a thread the function isprocessfinished an example of how to do this follows java handler mhandler new handler mhandler post isfinished runnable isfinished new runnable override public void run if rsm isprocessfinished toast maketext getactivity uploading completed toast length long show else mhandler postdelayed this 1000 once all the data are uploaded the thread responsible for the uploading must be stopped to save the waste of resources java sm finishprocess to finish according to users preferences the wifi connection could be turn off java sysm setwifienabled false getapplicationcontext to upload the local database some php scripts are necessaries provided along with the framework it is just a simple implementation different scripts could be used but the framework user must be careful with the scripts name and the paths where these are located by default if the user does not change scripts names or paths the files get last id php db config php insert mobile metadata php insert mobile signals php insert mobile units php insert shimmer metadata php insert shimmer signals php and insert shimmer units php must be located in a path where can be accessible by the address http serverip namefile php for example in the directory htdocs for xampp consequently if the user wants to use different scripts or just for server reasons needs to change their path it can be achieved by means of the following functions set mobileunitspath string path setmobilesignalspath string path setmobilemetadata path string path setshimmerunitspath string path setshimmersignalspath string path setshimmermetadatapath string path and setlastidpath string path visualization manager since it is a singleton class first it is necessary to get the instance java visualizationmanager vm visualizationmanager getinstance then a graph must be created a unique name to the graph and its type line or bars must be selected the ui context must also be indicated java vm addgraph graph graphtype line getapplicationcontext now it depends on the approach desired either online or offline here both of them are explained offline to create a series first it is necessary to create an array with the values of the y coordinates for this example the sine of a set of numbers will be used java float array new float 250 float a 0 for int i 0 i 250 i a 0 2 array i float math sin a to introduce the data into the graph the following procedure must be used java vm addserie graph sin array or java vm addserie graph sin array color blue 1 sin from 0 to 250 a series can be introduced with a description to show it one must activate the option its alignment in the graph can be set as well java vm setshowlegend graph true vm setlegendalign graph legendalign top the graph must be included in a layout in order to be painted linearlayout layout linearlayout findviewbyid r id graph vm paint graph layout horizontal and vertical labels are created automatically but they can be set like this java string month january february march april may june july august sept oct nov dec vm sethorizontallabels graph month vm setverticaltallabels graph month online like in the offine mode it is necessary to add the graph into a layout java linearlayout layoutonline linearlayout findviewbyid r id graphonline vm paint graph layoutonline to visualize online data it is necessary indicate the set of sensors desired java arraylist sensortype sensors new arraylist sensortype sensors add sensortype accelerometer x sensors add sensortype accelerometer y sensors add sensortype accelerometer z sensors add sensortype gyroscope x sensors add sensortype gyroscope y sensors add sensortype gyroscope z sensors add sensortype magnetometer x sensors add sensortype magnetometer y sensors add sensortype magnetometer z the scrollable feature of the graph must be activated otherwise online visualization will not work java vm setscrollable graph true now it is the time to use the function which does all the work to visualize the data java vm visualizationonline graph namedevice sensors to stop the visualization process the following method may be used java vm stopvisualizationonline graph namedevice there are some features that are advisable to set in order to get a better visualization in both modes make the graph scalable advisable for offine mode java vm setscalable graph true set the init and the viewport advisable for online mode java vm setviewport graph 1 200 set the values of the y axis advisable for both modes java vm setmanualyaxisbounds graph 10 10 system manager system manager is a singleton class thus to obtain the unique instance that could exists in an application it is necessary to use the getinstance function java systemmanager sm systemmanager getinstance services and setup services and setup modules are quite simple to use to perform a mobile call or to send a text message it could be done like follows java sm call number activity sm sendsms number message where number parameter is the mobile number to call or send a message and message the text message to be sent there are three kind of notifications which can be used as follow java sm sendsimplenotification title text notificationid icon context pendingintent contentintent pendingintent getactivity getapplicationcontext 0 intent 0 int flags notification flag auto cancel sm sendcomplexnotification title text notificationid icon flags contentintent context uri sounduri ringtonemanager getdefaulturi ringtonemanager type notification sm sendcomplexnotificationcustomsound title text notificationid icon flags contentintent sounduri context where title parameter is the notification title text the text to be shown notificationid the notification id icon a notification icon and context the application ui context for the last two notification type contentintent is the intent which is run when the notifications are clicked on and flags parameters are the notifications flags available for user usage note the minimum android sdk version required is 10th so some flags belonging to newer android sdk versions may do not work properly these same notifications may be scheduled it is necessary to declare in the android manifest the class scheduledtask as a receiver java receiver android name systemmanager services scheduledtask sm scheduledsimplenotification title text notificationid icon context date sm scheduledcomplexnotification title text notificationid icon flags contentintent context date sm scheduledcomplexnotificationcustomsound title text notificationid icon flags contentintent sounduri context date all parameters play the same role than explained previously except date it is a calendar type which indicates when the notification is scheduled it is also possible to schedule an audio to be reroduced by this java sm scheduledaudio path context date where path is the files path context is the application ui context and date is a calendar type indicating when the audio is scheduled to be reproduced to turn on off wi fi or bluetooth java sm setwifienabled true false context sm setbluetooth true false the first boolean parameter set the wi fi bluetooth state and context is the application ui context finally the screen brightness could be adjust as follows java sm setscreenbrightness brightness activity the parameter of brightness is a float number between 0 and 1 from dark to bright it is also possible to set it to less than 0 which means that the user default screen brightness is used guidelines the manner of using any of the guidelines modules is slightly different first it is necessary to obtain an instance of the class which will be used and once this is done just use its functions youtube to build the youtube module has been necessary the youtube android player api to employ this api is compulsory to provide at least a youtubeplayerview the class where this functionality is developed must extends the youtubebaseactivity and implements youtubeplayer oninitializedlistener an example of how to use the youtube guideline module is shown next at least the following fields need to be declared as class fields java youtubeplayerview youtubeplayerview youtubeplayer player listview videoslistview youtube youtube declaration and initialization java setcontentview r layout youtube layout player null youtubeplayerview youtubeplayerview youtubeplayerview findviewbyid r id youtube view youtubeplayerview initialize key developer this sm systemmanager getinstance youtube sm getyoutubeplayer getapplicationcontext youtubeplayerview the developer key is a variable that identifies the youtube developer submitting an api request in the case when only playing a youtube video is wanted it could be done by java youtube reproducesinglevideomode url the url parameter is the youtube video url to be reproduced that consists of the last part of the video link it is also possible to reproduce youtube playlist videos selecting the video to be reproduced using a listview view in order to do this it is necessary to have in the current layout a listview view java listview videoslistview listview findviewbyid r id listlistview youtube reproduceplaylistmode videoslistview r layout entry r id textviewsuperior r id textviewinferior r id imageviewimage playlistid the parameter entry is a layout with every entry format of the listview textviewsuperior textviewinferior and imageviewimage are fields with the title description and thumbnail of a youtube video playlistid is the id of a list of youtube videos it is also necessary to implement two abstract methods belonging to youtubeplayer oninitializedlistener java override public void oninitializationfailure provider arg0 youtubeinitializationresult arg1 toast maketext this oh dear something terrible happened sorry toast length short show override public void oninitializationsuccess provider provider youtubeplayer playa boolean wasrestored this player playa this player setplayerstyle youtubeplayer playerstyle minimal now that the player is initialized we need to set it on our youtube class youtube setplayer player audio the audio module has been developed using the media player android api to utilize this module the first thing to do is to obtain an instance of the audio class java audio audioplayer sm getaudioplayer now to play a stored audio file in the mobile phone this must be done java string path environment getexternalstoragedirectory song mp3 audioplayer loadfile path audioplayer prepare audioplayer play more functions are available such as pause resume getduration etc however every function of the mediaplayer api may be used video the video module is based on the functionality provides by the videoview view to reproduce a video which is stored in the mobile external card the following should be done java setcontentview r layout video layout videoviewvideoholder videoview findviewbyid r id videoview video video sm getvideoplayer videoholder string path enviroment getexternalstoragedirectory video mp4 video setvideopath path video play more functions are available such as pause or resume every function of the videoview class may be used data processing manager since it is a singleton class first it is necessary to get the unique instance java dataprocessingmanager dpm dataprocessingmanager getinstance it is also necessary to initialize and set for the acquisition module the storage variable belonging to the remotestoragemanager class called storage this is done by java dpm createandsetstorage getapplicationcontext now it proceeds depending on the inference knowledge approach desired online or offine offline acquisition to show how the data acquisition is done some devices and sensors where data are retrieved must be selected for example it is shown how to acquire the signals accelerometer x accelerometer y accelerometer z and timestamp of a given wearable device called shimmer chest and the gyroscope x gyroscope y gyroscope z humidity and timestamp of a portable mobile device called mobile device java arraylist pair arraylist sensortype string sensorsanddevices new arraylist pair arraylist sensortype string arraylist sensortype sensors1 new arraylist sensortype arraylist sensortype sensors2 new arraylist sensortype sensors1 add sensortype accelerometer x sensors1 add sensortype accelerometer y sensors1 add sensortype accelerometer z sensors1 add sensortype timestamp sensors2 add sensortype gyroscope x sensors2 add sensortype gyroscope y sensors2 add sensortype gyroscope z sensors2 add sensortype humidity sensors2 add sensortype timestamp string namedevice1 shimmer chest string namedevice2 mobile device pair arraylist sensortype string pair1 new pair sensors1 namedevice1 pair arraylist sensortype string pair2 new pair sensors2 namedevice2 sensorsanddevices add pair1 sensorsanddevices add pair2 now that sensorsanddevices is ready any acquisition function may be used to acquire all the selected data in the ids range 100 500 java dpm retrieveinformationbyid 100 500 sensorsanddevices to retrieve data belonging to the first existing session java dpm retrievebysession 1 sensorsanddevices to retrieve data belonging to the first second and third session java dpm retrieveinformationbyintervalsessions 1 3 sensorsanddevices to retrieve the last 20 seconds of available data in the local database java dpm retrieveinformationlastseconds 20 sensorsanddevices retrieving data using dates is slightly more complicated an example of retrieving all the data streamed from the day 24th january 2014 at 22 00 00 hour to the day 25th january 2014 at 16 00 00 follows it is important to keep in mind that month value goes in the interval 0 11 java time start new time start hour 22 start minute 0 start second 0 start year 2014 start month 0 start monthday 24 time end new time end hour 16 end minute 0 end second 0 end year 2014 end month 0 end monthday 25 dpm retrieveinformationbydates start end sensorsanddevices to retrieve all the information available java dpm retrieveallinformation sensorsanddevices pre processing from this point it is assumed that the data has been already acquired and stored in the hash variable which is defined in this manager thus to calculate either the upsampling or the downsampling one just needs to do the following java dpm downsampling 2 dpm upsampling 3 the result will be stored into the hashprocessed variable which is defined in this manager segmentation to make the segmentation first it is necessary to get the devices sample rate for this example an array with false sample rates is created java arraylist float rates new arraylist float rates add float 50 0 rates add float 50 0 rates add float 50 0 then the windowing no overlap can be calculated as follow java dpm windowing nooverlap datatype raw float 2 rates and the windowing overlap as follow dpm windowing overlap datatype raw float 2 5 float 0 5 rates features extraction the features must be defined in order to make the features extraction these are some features definitions java dpm addfeature device shimmer 1 sensortype accelerometer x featuretype maximum dpm addfeature device shimmer 2 sensortype accelerometer y featuretype minimum dpm addfeature device mobile sensortype accelerometer z featuretype variance dpm addfeature device shimmer 1 sensortype gyroscope y featuretype standard deviation dpm addfeature device shimmer 2 sensortype magnetometer x featuretype zero crossing rate dpm addfeature device mobile sensortype magnetometer z featuretype mean crossing rate owing to the previous steps the features extraction can be done from different data from not processed data and not segmented java dpm feature extraction datatype raw false false from processed data and not segmented java dpm feature extraction datatype processed false false from not processed data and segmented java dpm feature extraction datatype raw true false from processed and segmented data using the uncompleted windows java dpm feature extraction datatype processed true true classification the way to use the classification module does not change depending on the selected approach offine or online the first thing to do is to read a weka file arff format java dpm readfile environment getexternalstoragedirectory example arff now test or training instances may be set also a summary of both train instances may be obtained java dpm settraininstances dpm settestinstances string trainsummary dpm gettraininstancessummary a model may be built with the trainclassifier function the first parameter is the class attribute and usually is the last attribute the second parameter is the classifier type to be used in this case j48 decision tree the getattributes function returns a list of the existing attributes java int numattributes classification getattributes size dpm trainclassifier numattributes 1 classifiertype j48 the model may be directly loaded as well using the loadmodel method java dpm loadmodel classifier now that the model has been built this can be evaluated by the method testclassifier a summary about the evaluation may be obtained by gettestsummary method the confusion matrix is obtained using the gettestconfusionmatrix function java dpm testclassifier string summaryevaluation dpm gettestsummary string confusionmatrix dpm getconfusionmatrix to convert features vector or features matrix coming from the feature extracture stage into instances weka objects the methods featurevectortoinstances and featurematrixtoinstances are available java instances instances dpm featurevectortoinstances featurevector instances instances dpm featurematrixtoinstances featurematrix to clasify and unlabeled instance there are two functions available classifyinstancetodouble and classifyinstancetostring for example to classify the first instance of an instances object called instances java string label dpm classifyinstancetostring instances firstinstance double label dpm classifyinstancetodouble instances firstinstance online acquisition and segmentation these modules are not used in the online inference knowledge process due to that the communication manager is the one which provides the data through windows with a determinate size pre processing feature extraction and classification to make the online knowledge inference it is necessary to define the features to be extracted the classification model and the class attribute must be defined as well the previous section offine knowledge inference shows how to do it in order to execute the knowledge inference as a sequence all the steps are defined under one function java dpm inferenceonline 2 sensorsanddevices null 0 1 the last parameter indicates which kind the class attribute is and in consequence the value returned string or double in case the last parameter is 0 the returned value will be a string and will be stored in the stringclassified variable which is defuned in this manager in case the last parameter is 1 like in the example the returned value will be double and will be stored in the doubleclassified variable which is also defined in this manager there is also another function for the online knowledge inference java dpm inferenceonline 2 sensorsanddevices null 0 1 mhandler contribution guidelines how can you help mhealthdroid to be a more completed tool here we propose you some ideas adding new biomedical devices drivers would be awesome the possibility of using more and more biomedical devices makes mhealthdroid a tool more accesible for everybody to improve the data visualization including more functionalities representing online visualization for different devices in the same graph would be cool extending the pre processing module of the data processing manager by adding more methods downsampling and upsampling are already provided extending the features extraction module of the data processing manager by adding new features mean variance standard deviation zero crossing rate mean crossing rate maximum and minimum already provided to extend the funcionalities for the remote storage making possible the data transference in both ways cloud services for high performance computacion to extend the guidelines functionalities for example audio and video modules encapsulates the basic functionalities of the android media player api and the videoview android class adding extra functionalities would help to a more complete experience to add more functionalities to manage the mobile aspects to update notifications to the new ones provided by the last android versions notifications implementation to this day uses the functions provided for the android sdk version 10 more contribution ideas will be added soon community how can you keep track of the development and news of mhealthdroid follow us in our a href https twitter com mhealthdroid twitter a team members authors rafael garc a http github com rafagf email rafagarfer gmail com alejandro s ez http github com alsafer email alejandrosaez3 gmail com original idea and project coordinator dr oresti ba os research center for information and communication technology university of granada citic ugr email oresti bl gmail com collaborators prof juan antonio holgado university of granada ugr email jholgado ugr es where can i get help you can get any help you need getting in contact with any of the authors we are looking forward to help you inspiration and motivation this project is an original idea the project was initiated and developed as part of the msc thesis computer science of the authors at university of granada ugr after evaluation of the state of the art in mobile health we ended up with the conclusion that there exist multiple wearable health devices most of which are becoming commercial biomedical apps and also biomedical and mobile frameworks however no biomedical mobile framework exists in a broad sense to the best of our knowledge although there are some frameworks devised for particular clinical problems they mainly support data acquisition visualization and broadcasting powerful health applications should incorporate these features plus many others such as local and remote storage guidelines recommenders notifications or knowledge inference among others and not be limited to a particular biomedical device copyright and license project released under the license gpl v 3 | front_end |
|
InformationCraft | informationcraft slow progress lack of planning do not hope | minecraft-mod | server |
symlex | symlex a lean framework stack for agile web development based on symfony and vuetify license mit https img shields io badge license mit blue svg https github com symlex symlex blob master license build status https travis ci org symlex symlex png branch master https travis ci org symlex symlex documentation https readthedocs org projects symlex docs badge version latest style flat https docs symlex org en latest github contributors https img shields io github contributors symlex symlex svg https github com symlex symlex graphs contributors community chat https img shields io badge chat on 20gitter 4aa087 svg https gitter im symlex community twitter https img shields io badge follow symlexphp 00acee svg https twitter com symlexphp symlex aims to simplify agile web development by providing a working system that promotes best practices by example built on top of well documented and tested standard components contains everything to create full featured web applications service container rest routing twig template engine strict use of dependency injection for configuration and bootstrapping small code and memory footprint extremely fast compared to other php frameworks especially in combination with roadrunner https roadrunner dev since its initial release in 2014 it has proven to be well suited for rapidly building microservices cli and single page applications it comes complete with working examples from testing to forms and database abstraction simply delete what you don t need the kernel https github com symlex di microkernel is tiny and only creates a service container for bootstrapping your application within its context using a single container for configuration and dependency injection reduces complexity and leads to improved performance compared to other frameworks it also prevents developers from thoughtlessly installing bundles without understanding them the result is less bloat and simpler more maintainable and testable code that is fundamental for agile development img align right width 622 height 367 src https docs symlex org en latest img screenshot jpg plain classes are used wherever possible to avoid vendor lock in and enable framework independent code reuse see tradeoffs md tradeoffs md you can combine the php based backend with any javascript library or rest client the front end boilerplate is there for your convenience and puts you straight on track for building impressive single page applications with webpack and vuetify see demo symlex org https demo symlex org a working example for command line applications is included as well our complete framework documentation can be found on docs symlex org https docs symlex org en latest tuzi liu https github com tuzimoe maintains a chinese translation https docs symlex org zh latest for us note https github com symlex symlex core contains the kernel and routers as reusable components setup before you start make sure you have php 7 3 composer https getcomposer org and docker https www docker com installed on your system howto https docs symlex org en latest osx for mac os x run get composer sh to install composer locally on linux instead of using docker you can set up your own runtime environment based on the existing dockerfile https github com symlex symlex tree master dockerfile in addition you will need a database https downloads mariadb org plus nodejs https nodejs org en and npm https www npmjs com to build the frontend step 1 run composer to create a new symlex project composer create project symlex symlex myapp composer will ask for config values to generate app config parameters yml for you make sure storage cache is writable so that cache files can be created by the app step 2 start roadrunner https roadrunner dev and mariadb https mariadb org using docker compose cd myapp docker compose up note this configuration is for testing and development purposes only see comments in docker compose yml https github com symlex symlex blob master docker compose yml for details you might need to tweak it if you run docker with a different user for security reasons on os x the current release of docker is really slow https twitter com lastzero status 829191426391027712 in executing php from the host s file system docker compose up d runs docker in the background but you won t see helpful log messages in this case step 3 let make https www gnu org software make initialize the database and build the front end components for you make terminal make all database to verify everything is working run make test note you can also use this approach to execute other cli commands later make should be pre installed in typical unix development environments otherwise you might have to get it first e g by installing the xcode command line tools on os x via xcode select install or by adding the build base or build essential package on linux the makefile contains a list of all targets after successful installation open the site at http localhost 8081 and log in as admin example com using the password passwd yaml files located in app config configure the app based on parameters and services the main config files are app config web yml and app config console yml if you add localhost debug to your etc hosts and access the site with that it will load in debug mode you ll see a stack trace and other debug information on the error pages the mailhog https github com ian kent mailhog user interface is available at http localhost 8025 it can be used to receive and view mails automatically sent by the system e g when new users are created if you want to build a more light weight app have a look at our other examples https github com symlex rest api https github com symlex stream sampler full documentation https docs symlex org en latest framework login screen https docs symlex org en latest framework img login jpg roadrunner symlex now includes roadrunner https roadrunner dev a high performance php application server as an alternative to nginx https en wikipedia org wiki nginx it will be automatically downloaded when you build the docker image our installation instructions for symlex 4 4 0 won t work for previous releases as they still use nginx and php fpm instead of web and php there is now a single app service powered by roadrunner if you prefer nginx you can use an older release https github com symlex symlex releases or copy the previous config to the new release some of our example apps use nginx as well about symlex is maintained by michael mayer https blog liquidbytes net about and aims to simplify agile web development by providing a working system that promotes best practices by example michael released his first php framework http freshmeat sourceforge net projects awf in 2001 and has worked with various major framework vendors in the past building this would not have been possible without a lot of prior work by other developers thank you to those and everyone who contributed choice is the enemy of productivity put another way if your solution does everything and has no opinions about anything then it solves nothing asim aslam feel free to send an e mail to hello symlex org mailto hello symlex org if you have any questions need commercial support https blog liquidbytes net contact or just want to say hello we welcome contributions of any kind if you have a bug or an idea read our guide contributing md before opening an issue performance it s obvious that php framework performance mainly depends on the lines of code that have to be executed for each request while symlex was designed to be simple and lean a good performance is a very important by product of this approach the best code is no code where there is no code there are no bugs no api to learn no awkward ui the best refactors are deletions eric elliott as published by phpbenchmarks com http www phpbenchmarks com en benchmark apache bench php 7 3 symlex 4 1 html rest requests are more than 40 faster compared to other common php frameworks img src https symlex org images performance large svg alt response times of popular php frameworks width 100 note that these response times were measured in fully optimized production mode on fast server hardware http www phpbenchmarks com en benchmark protocol html with only 5 concurrent requests in practice differences might be much larger in terms of absolute time memory consumption should be considered as well img src https symlex org images memory large svg alt memory footprint of popular php frameworks width 100 why should you care first your users will love it as a rule of thumb 100 ms is about the limit for having them feel that the system is reacting instantaneously meaning that no special feedback is necessary except to display the result the total response time also includes network 25 ms browser and other overhead which only leaves a small fraction of those 100 ms for implementing the actual business logic second you ll save a lot of money for server infrastructure and developers are more productive as tests are running faster relationship with symfony and silex symlex was started in 2014 as a simple silex boilerplate since silex itself doesn t come with a standard edition that points you in the right direction using silex instead of symfony was recommended by sensiolabs the creators of both frameworks as a light weight alternative to symfony fosrestbundle for quickly building high performance rest services and single page web applications it was soon noticed that pimple the service container that comes with silex feels cumbersome for developers coming from symfony and makes it hard to reuse existing code in addition many silex code examples and even real world applications accessed the service container from all parts of the code not only the framework itself which circumvents inversion of control and leads to awkward testability symlex therefore promotes the strict use of dependency injection and combines the convenience of a full fledged service container with the speed of a micro framework today symlex has its own routing component based on symfony 4 and does not use silex anymore the framework has proven to be useful for a large number of different applications some of them were based on the regular symfony kernel before and did the change because they were drowning in complexity and suffered from response times well above 30 seconds in development mode symlex brought them back on track without big changes to their existing code base img src https symlex org images symlex vs symfony svg alt micro kernel architecture width 100 donations symlex is a non profit project run entirely by volunteers you re most welcome to support us via github sponsors https github com sponsors lastzero especially if you need help with using our software they will match every donation in the first year please leave a star if you like this project it provides additional motivation to keep going thank you very much 3 | symfony rest micro-framework php full-stack agile lean vuetify php-framework | front_end |
system-design-resources | system design resources these are the best resources for system design on the internet table of contents video processing video processing cluster and workflow management cluster and workflow management intra service messaging intra service messaging message queue antipattern message queue antipattern service mesh service mesh practical system design practical system design distributed file system distributed file system time series databases time series databases rate limiting rate limiting in memory database redis in memory database redis network protocols network protocols chess engine design chess engine design subscription management system subscription management system google docs google docs api design api design nosql database internals nosql database internals nosql database algorithms nosql database algorithms database replication database replication containers and docker containers and docker capacity estimation capacity estimation publisher subscriber publisher subscriber event driven architectures event driven architectures software architectures software architectures microservices microservices distributed transactions consistency patterns distributed transactions consistency patterns load balancing load balancing alerts and anomaly detection alerts and anomaly detection distributed logging distributed logging metrics and text search engine metrics and text search engine single point of failure single point of failure location based services location based services batch processing batch processing real time stream processing real time stream processing caching caching distributed consensus distributed consensus authorization authorization content delivery network content delivery network testing distributed systems testing distributed systems system design resources system design resources video processing transcoding videos at scale https www egnyte com blog 2018 12 transcoding how we serve videos at scale facebook video broadcasting https engineering fb com ios under the hood broadcasting live video to millions netflix video encoding at scale https netflixtechblog com high quality video encoding at scale d159db052746 netflix shot based encoding https netflixtechblog com optimized shot based encodes now streaming 4b9464204830 cluster and workflow management facebook cluster management https engineering fb com data center engineering twine google autopilot autoscaling https dl acm org doi pdf 10 1145 3342195 3387524 netflix workflow orchestration https netflix github io conductor opensource workflow management https github com spotify luigi meta hardware management https engineering fb com 2020 12 09 data center engineering how facebook keeps its large scale infrastructure hardware up and running meta capacity assignment https engineering fb com 2022 09 06 data center engineering viewing the world as a computer global capacity management amazon ec2 https www allthingsdistributed com 2015 07 under the hood of the amazon ec2 container service html intra service messaging what is a message queue https www cloudamqp com blog what is message queuing html airbnb idempotency https medium com airbnb engineering avoiding double payments in a distributed payments system 2981f6b070bb nginx service mesh https www nginx com learn service mesh meta async task computing https engineering fb com 2023 01 31 production engineering meta asynchronous computing message queue antipattern db as queue antipattern http blog codepath com 2012 11 15 asynchronous processing in web applications part 1 a database is not a queue using a database as a message queue https softwareengineering stackexchange com questions 231410 why database as queue so bad anti pattern of db as a queue http mikehadlow blogspot com 2012 04 database as queue anti pattern html drawbacks of db as a queue https www cloudamqp com blog why is a database not the right tool for a queue based system html service mesh kubernetes service mesh https akomljen com kubernetes service mesh kubernetes sidecar https www weave works blog introduction to service meshes on kubernetes and progressive delivery service mesh https www weave works blog introduction to service meshes on kubernetes and progressive delivery nginx service mesh https www nginx com learn service mesh practical system design facebook messenger optimisations https spectrum ieee org how facebooks software engineers prepare messenger for new years eve youtube architecture http highscalability com youtube architecture youtube scalability 2012 https www youtube com watch v w5wvu624fy8 distributed design patterns http horicky blogspot com 2010 10 scalable system design patterns html monolith to microservice https martinfowler com articles break monolith into microservices html zerodha tech stack https zerodha tech blog hello world distributed file system open source distributed file system https docs ceph com en latest architecture amazon s3 performance hacks https aws amazon com blogs aws amazon s3 performance tips tricks seattle hiring event amazon s3 object expiration https aws amazon com blogs aws amazon s3 object expiration time series databases pinterest time series database https medium com pinterest engineering goku building a scalable and high performant time series database system a8ff5758a181 uber time series db https eng uber com aresdb timeseries relational db https blog timescale com blog time series data why and how to use a relational database instead of nosql d0cd6975e87c facebook gorilla time series db http www vldb org pvldb vol8 p1816 teller pdf rate limiting circuit breaker algorithm https martinfowler com bliki circuitbreaker html uber rate limiter https github com uber go ratelimit blob master ratelimit go in memory database redis redis official documentation https redis com learn redis through redis university https university redis com redis open source repo https github com redis redis redis architecture https medium com opstree technology redis cluster architecture replication sharding and failover 86871e783ac0 network protocols what is http https engineering cred club head of line hol blocking in http 1 and http 2 50b24e9e3372 quic protocol https www akamai com blog performance http3 and quic past present and future tcp protocol algorithms https ee lbl gov papers congavoid pdf first 10 pages are important webrtc https webrtc github io webrtc org blog 2012 07 23 a great introduction to webrtc html websockets https datatracker ietf org doc html rfc6455 section 1 2 dynamic source routing using quic https fb watch fsebi4khla chess engine design chess engine building https www youtube com watch v u4ogk0mizqk subscription management system subscription manager https netflixtechblog com building a rule based platform to manage netflix membership skus at scale e3c0f82aa7bc google docs operational transform http www codecommit com blog java understanding and applying operational transformation google docs https www youtube com watch v uofzwzrspv0 list plx api design api design at airbnb https medium com airbnb engineering building services at airbnb part 1 c4c1d8fa811b swagger apis https swagger io docs specification about nosql database internals cassandra architecture https docs datastax com en archived cassandra 3 0 cassandra architecture archintro html google bigtable architecture https static googleusercontent com media research google com en archive bigtable osdi06 pdf amazon dynamo db internals https www allthingsdistributed com 2007 10 amazons dynamo html design patterns in amazon dynamo db https www youtube com watch v haepxoxvf2k internals of amazon dynamo db https www youtube com watch v yvbr71d0naq nosql database algorithms hyperloglog algorithm https odino org my favorite data structure hyperloglog log structured merge tree https www cs umb edu poneil lsmtree pdf sorted string tables and compaction strategies https github com scylladb scylla wiki sstable compaction and compaction strategies leveled compaction cassandra https www datastax com blog leveled compaction apache cassandra scylla db compaction https github com scylladb scylla wiki sstable compaction and compaction strategies indexing in cassandra https www bmc com blogs cassandra clustering columns partition composite key database replication database replication https dev mysql com doc refman 8 0 en replication html netflix data replication change data capture https netflixtechblog com dblog a generic change data capture framework 69351fb9099b linkedin logging usecases https engineering linkedin com distributed systems log what every software engineer should know about real time datas unifying containers and docker facebook twine containerization https engineering fb com developer tools zookeeper twine cloudflare containerization https blog cloudflare com cloud computing without containers docker architecture https docs docker com get started overview docker architecture capacity estimation google capacity estimation https www youtube com watch v modxc5iwtji scalability at youtube 2012 https www youtube com watch v g lgcc4kkok back of envelope calculations at aws https www youtube com watch v 3qetlv2yp0 capacity estimation http static googleusercontent com media research google com en people jeff stanford 295 talk pdf publisher subscriber oracle publisher subscriber https docs oracle com cd b10501 01 appdev 920 a96590 adg15pub htm amazon pub sub messaging https aws amazon com pub sub messaging asynchronous processing http blog codepath com 2013 01 06 asynchronous processing in web applications part 2 developers need to understand message queues async request response https www enterpriseintegrationpatterns com patterns conversation requestresponse html event driven architectures martin fowler event driven architecture https www youtube com watch v stkcrsusyp0 event driven architecture https martinfowler com articles 201701 event driven html software architectures hexagonal architecture https netflixtechblog com ready for changes with hexagonal architecture b315ec967749 hexagonal architecture alistair cockburn https alistair cockburn us hexagonal architecture the clean code by robert c martin uncle bob https blog cleancoder com uncle bob 2012 08 13 the clean architecture html cqrs https martinfowler com bliki cqrs html domaindrivendesign https martinfowler com bliki domaindrivendesign html microservices monolith architecture https buttercms com books microservices for startups should you always start with a monolith monoliths vs microservices https articles microservices com monolithic vs microservices architecture 5c4848858f59 microservices http highscalability com blog 2018 4 5 do you have too many microservices five design attributes th html uber nanoservices antipattern https www youtube com watch v kb m2fasddy uber domain oriented microservice https eng uber com microservice architecture distributed transactions consistency patterns transactional outbox https microservices io patterns data transactional outbox html sagas long lived transactions llts https www cs cornell edu andru cs711 2002fa reading sagas pdf load balancing load balancer with sticky sessions https stackoverflow com questions 10494431 sticky and non sticky sessions citrix what is load balancing https www citrix com en in solutions app delivery and security load balancing what is load balancing html nginx load balancing https www nginx com resources glossary load balancing consistent hashing https michaelnielsen org blog consistent hashing alerts and anomaly detection outlier detection https towardsdatascience com outlier detection with isolation forest 3d190448d45e anomaly detection https towardsdatascience com machine learning for anomaly detection and condition monitoring d4614e7de770 uber real time monitoring and root cause analysis argos https eng uber com argos real time alerts microsoft anomaly detection https www youtube com watch v 12xq9oldqwq t 0s facebook data engineering https engineering fb com 2016 05 09 core data introducing fblearner flow facebook s ai backbone linkedin real time alerting https engineering linkedin com blog 2019 06 smart alerts in thirdeye linkedins real time monitoring platfor linkedin isolation forests https engineering linkedin com blog 2019 isolation forest distributed logging uber distributed request tracing https eng uber com distributed tracing pintrest logging https medium com pinterest engineering open sourcing singer pinterests performant and reliable logging agent 610fecf35566 google monitoring infrastructure https www facebook com atscaleevents videos 959344524420015 metrics and text search engine facebook real time text search engine https www facebook com watch v 432864835468 elastic search time based querying https www elastic co guide en elasticsearch guide current time based html elastic search aggregation https www elastic co guide en elasticsearch guide current aggregations html single point of failure avoiding single points of failure https medium com the cloud architect patterns for resilient architecture part 3 16e8601c488e netflix multi region availability https netflixtechblog com active active for multi regional resiliency c47719f6685b oracle single points of failure https docs oracle com cd e19693 01 819 0992 fjdch index html dns single point of failure 2004 http www tenereillo com gslbpageofshame htm sharding https medium com jeeyoungk how sharding works b4dec46b3f6 location based services google s2 library https blog christianperone com 2015 08 googles s2 geometry on the sphere cells and hilbert curve batch processing map reduce architecture https static googleusercontent com media research google com en archive mapreduce osdi04 pdf real time stream processing linkedin brooklin real time data streaming https engineering linkedin com blog 2019 brooklin open source netflix real time stream processing https netflixtechblog com keystone real time stream processing platform a3ee651812a ksqldb for kafka https docs ksqldb io en latest operate and deploy how it works caching google guava cache https github com google guava wiki cachesexplained caching see the readme https github com ben manes caffeine caching http highscalability com blog 2016 1 25 design of a modern cache html microsoft caching guide https docs microsoft com en us previous versions msp n p dn589802 v 3dpandp 10 caching patterns https hazelcast com blog a hitchhikers guide to caching patterns distributed consensus paxos http ifeanyi co posts understanding consensus raft https raft github io authorization designing an authorization model for an enterprise https cerbos dev blog designing an authorization model for an enterprise the architectural patterns of cloud native authorization systems https www aserto com blog 5 laws cloud native authorization content delivery network aws cloudfront cdn with s3 https aws amazon com blogs networking and content delivery amazon s3 amazon cloudfront a match made in the cloud testing distributed systems deterministic testing https www youtube com watch v 4ffdfbi3toc system design resources designing data intensive applications book https amzn to 3synaoy whitepapers https interviewready io blog white papers worth reading for software engineers interviewready videos https interviewready io source github | cache fault-tolerance scalability system-design | os |
kanban-project-management | h1 align center kanban project management h1 kanban project management is a web application to manage software development projects kanban is a workflow management method for defining managing and improving services that deliver knowledge work it aims to help you visualize your work maximize efficiency and improve continuously demo check out the live application on frontend application only https kanban project managemen 69aa2 web app https kanban project managemen 69aa2 web app full stack application https kanban project management netlify app https kanban project management netlify app demo https user images githubusercontent com 61401062 125845756 a2bc1f07 c0b1 4585 aa92 8a8745df7eee gif features some of the things you can do with kanban project management create read update delete and list crudl https en wikipedia org wiki create read update and delete projects filter and sort projects add users to a project create read update delete and list issues of each project filter issues assign issues to users drag and drop an issue onto the kanban board create read update delete and list comments of each issue built with frontend frontend tech stack https res cloudinary com comparte image upload v1626413844 tech stack png angular https angular io an application design framework and development platform for creating efficient and sophisticated single page apps ngrx https ngrx io ngrx store provides reactive state management for angular apps inspired by redux ng zorro https ng ant design docs introduce en an enterprise class angular ui component library based on ant design ngx quill https github com killercodemonkey ngx quill an angular module for the quill rich text editor https quilljs com rxjs https rxjs dev a javascript library for reactive programming using observables to make it easier to compose asynchronous or callback based code typescript https www typescriptlang org typescript is an open source language which builds on javascript one of the world s most used tools by adding static type definitions angular cdk drag drop https material angular io cdk drag drop overview provides you with a way to easily and declaratively create drag and drop interfaces backend backend tech stack https user images githubusercontent com 61401062 130734976 e6c69175 1738 4841 8e0b cb0d3b94cd7e png nestjs https nestjs com a progressive node js framework for building efficient reliable and scalable server side applications mongodb https www mongodb com a nosql database mongoose https mongoosejs com an elegant mongodb object modeling for node js mongoose sequence https github com ramiel mongoose sequence this plugin lets you create fields which autoincrement their value getting started open in visual studio code https open vscode dev badges open in vscode svg https open vscode dev sldiaz04us kanban project management to clone and run this application you ll need git https git scm com and node js https nodejs org en download which comes with npm http npmjs com installed on your computer from your command line git clone https github com sldiaz04us kanban project management git cd kanban project management npm run install all to install all dependencies frontend and backend you can install the frontend and backend dependencies individually with npm run install frontend and npm run install backend respectively to start the backend and frontend applications you must run the commands on two different terminals backend application before you run the application you ll also need set up mongodb atlas https www mongodb com en cloud atlas a cloud mongodb service the reason why i recommend this option is due to the use of transactions to execute multiple operations in isolation and potentially undo all the operations if one of them fails in the application when a project is deleted all its issues and the comments for each of those issues are also deleted to execute transactions there must be replicas of the database and mongodb atlas offers this configuration out of the box if you want a local configuration of mongodb take a look at this article creating a mongodb replica set using docker https www sohamkamani com blog 2016 06 30 docker mongo replica set in the backend folder of the project you ll find the file env stage dev change the value of mongodb uri with the database connection string from the previous step mongodb uri mongodb srv admin password cluster0 dmpdr mongodb net myfirstdatabase retrywrites true w majority replace password with the password for the admin user replace myfirstdatabase with the name of the database that connections will use by default npm run start backend this command runs the backend application implemented in nestjs the server is listening on http localhost 3000 npm run seed database this command as its name suggests seeds the database with some data since there is no authentication system in place for the application to work as expected there must be at least one user in the database after the database is seeded you ll find a sample kanban project with one issue five predefined users myself sergio lopez diaz richard hendricks gilfoyle dinesh big head you can run the command to seed the database whenever you want there is no need to stop the backend application for that frontend application npm run start frontend this command runs the frontend application implemented in angular navigate to http localhost 4200 what s missing an authentication and authorization system the application uses the same user by default in a real product the application must have an authentication system where users can register and participate in the entire development process of one or more projects unit integration tests i skipped writing test for this project accessibility not all components have properly defined aria attributes https developer mozilla org en us docs web accessibility aria visual focus indicators etc author sergio l pez d az you can find out more about me and my projects on https img shields io badge follow blue style social logo linkedin logocolor blue labelcolor blue color gray https www linkedin com in sldiaz04us sergio lopez diaz https img shields io badge follow blue style social logo twitter logocolor blue labelcolor blue color gray https twitter com sldiaz04us sergio lopez diaz support give a if you like this project thanks a lot for stopping by and supporting me you may also like angular weather app https github com sldiaz04us angular weather app weather pwa a pwa to get the weather forecast credits inspired by trungk18 jira clone angular https github com trungk18 jira clone angular and jira software https www atlassian com software jira license feel free to use my code on your project please put a reference to this repository this project is under the mit license see the license https github com sldiaz04us kanban project management blob main license for more information | angular ngrx ng-zorro-antd ngx-quill kanban-board kanban-board-application kanban-application firebase firebase-hosting kanban nestjs nestjs-backend nestjs-mongoose mongodb mongoose netlify netlify-deployment rxjs | front_end |
javascript-basic-program | javascript basic program what is javascript and what does it do before you start learning something new it s important to understand exactly what it is and what it does this is especially useful when it comes to mastering a new programming language in simple terms javascript is a programming language used to make websites interactive if you think about the basic makeup of a website you have html which describes and defines the basic content and structure of the website then you have css which tells the browser how this html content should be displayed determining things like color and font with just html and css you have a website that looks good but doesn t actually do much javascript brings the website to life by adding functionality javascript is responsible for elements that the user can interact with such as drop down menus modal windows and contact forms it is also used to create things like animations video players and interactive maps nowadays javascript is an all purpose programming language meaning it runs across the entire software stack the most popular application of javascript is on the client side aka frontend but since node js came on the scene many people run javascript on the server side aka backend as well when used on the client side javascript code is read interpreted and executed in the user s web browser when used on the server side it is run on a remote computer you can learn more about the difference between frontend and backend programming here javascript isn t only used to create websites it can also be used to build browser based games and with the help of certain frameworks mobile apps for different operating systems the creation of new libraries and frameworks is also making it possible to build backend programs with javascript such as web apps and server apps is it still worth learning javascript in 2021 the world of web development is constantly moving with so many new tools popping up all the time it can be extremely difficult to know where you should focus your efforts as an aspiring developer you ll want to make sure that what you re learning is still relevant in today s industry if you re having doubts about javascript it s important to know that since its creation in 1995 javascript is pretty much everywhere on the web and that s not likely to change any time soon according to the 2020 stackoverflow developer survey javascript is the most commonly used programming language for the eighth year in a row it is currently used by 94 5 of all websites and despite originally being designed as a client side language javascript has now made its way to the server side of websites thanks to node js mobile devices thanks to react native and ionic and desktop courtesy of electron as long as people are interacting with the web you can assume that javascript is highly relevant there s no doubt that this is a language worth knowing with that in mind let s look at some of the key benefits of becoming a javascript expert why learn javascript the most obvious reason for learning javascript is if you have hopes of becoming a web developer even if you haven t got your heart set on a tech career being proficient in javascript will enable you to build websites from scratch a pretty useful skill to have in today s job market if you do want to become a web developer here are some of the main reasons why you should learn javascript javascript experts are versatile javascript is an extremely versatile language once you ve mastered it the possibilities are endless you can code on the client side frontend using angular and on the server side backend using node js you can also develop web mobile and desktop apps using react react native and electron and you can even get involved in machine learning if you want to become a frontend developer javascript is a prerequisite however that s not the only career path open to you as a javascript expert mastering this key programming language could see you go on to work in full stack development games development information security software engineering machine learning and artificial intelligence to name just a few ultimately if you want any kind of development or engineering career proficiency in javascript is a must javascript experts are in demand and well paid javascript is the most popular programming language in the world so it s no wonder that javascript is one of the most sought after skills in the web development industry today according to the devskiller it skills and hiring report 2020 72 of companies are looking to hire javascript experts enter the search term javascript on job site indeed and you ll find over 40 000 jobs requiring this skill in the us run the same search on linkedin and the results are in excess of 125 000 at the same time the global demand for javascript seems to outweigh the expertise available on the market according to this 2018 hackerrank report 48 of employers worldwide need developers with javascript skills while only 42 of student developers claim to be proficient in javascript and in their most recent report for 2020 hackerrank once again reports that javascript is the most popular language that hiring mangers look for in a web developer candidate not only are javascript experts in demand they are also well paid in the united states javascript developers earn an average yearly salary of 111 953 per year we ve covered this topic in more detail in our javascript salary guide but as you can see learning javascript can really boost your earning potential as a developer javascript is beginner friendly compared to many other programming languages javascript offers one of the more beginner friendly entry points into the world of coding the great thing about javascript is that it comes installed on every modern web browser there s no need to set up any kind of development environment which means you can start coding with javascript right away another advantage of learning javascript as your first programming language is that you get instant feedback with a minimal amount of javascript code you ll immediately see visible results there s also a huge javascript community on sites like stack overflow so you ll find plenty of support as you learn not only is javascript beginner friendly it will also set you up with some extremely valuable transferable skills javascript supports object oriented functional and imperative styles of programming skills which can be transferred to any new language you might learn later on such as python java or c javascript provides a crucial introduction to key principles and practices that you ll take with you throughout your career as a developer should you learn plain javascript first or can you skip to frameworks and libraries when deciding whether or not to learn javascript what you re really asking is whether or not you should learn vanilla javascript vanilla javascript just means plain javascript without any libraries or frameworks let s explore what this means in more detail now what is meant by vanilla javascript libraries and frameworks if you research the term vanilla javascript you might run into some confusion however all you need to know is that vanilla javascript is used to refer to native standards based non extended javascript there is no difference between vanilla javascript and javascript it s just there to emphasize the usage of plain javascript without the use of libraries and frameworks so what are libraries and frameworks javascript libraries and frameworks both contain sets of prewritten ready to use javascript code but they re not the same thing you can think of a framework as your blueprint for building a website it gives you a structure to work from and contains ready made components and tools that help you to build certain elements much quicker than if you were to code them from scratch some popular javascript frameworks include angular react vue and node js frameworks also contain libraries libraries are smaller than frameworks and tend to be used for more specific cases a javascript library contains sets of javascript code which can be called upon to implement certain functions and features let s imagine you want to code a particular element into your website you could write say ten lines of javascript from scratch or you could take the condensed ready made version from your chosen javascript library some examples of javascript libraries include jquery lodash and underscore the easiest way to understand how frameworks and libraries work together is to imagine you are building a house the framework provides the foundation and the structure while the library enables you to add in ready made components like furniture rather than building your own from scratch you can learn more about the relationship between languages and libraries in this post explaining the main differences between javascript and jquery for now let s go back to our original question how important is it to learn vanilla javascript should you learn vanilla javascript first when it comes to learning javascript it can be tempting to skip ahead to those time saving frameworks and libraries we just talked about and many developers do however there are many compelling arguments for learning plain javascript first while javascript frameworks may help you get the job done quicker there s only so far you can go if you don t understand the core concepts behind these frameworks frontend developer abhishek nagekar describes how not learning vanilla javascript came back to bite him when he started learning the javascript frameworks node and express as i went to write more and more code in node and express i began to get stuck at even the tiniest problems suddenly i was surrounded with words like callbacks closures event loop and prototype it felt like i got a reintroduction to javascript but this time it was not a toddler playing in its cradle it was something of a mysterious monster challenging me on every other step for not having taken it seriously the above tweet references a long running joke within the developer community and although it dates way back to 2015 it s still highly relevant today if you want to become a developer who can innovate not just execute you need to understand the underlying principles of the web not just the shortcuts this means learning vanilla javascript before you move on to frameworks in fact understanding plain javascript will help you later on when it comes to deciding whether to use a framework for a certain project and if so which framework to use why study javascript javascript is one of the 3 languages all web developers must learn 1 html to define the content of web pages 2 css to specify the layout of web pages 3 javascript to program the behavior of web pages learning speed in this tutorial the learning speed is your choice everything is up to you if you are struggling take a break or re read the material always make sure you understand all the try it yourself examples the only way to become a clever programmer is to practice practice practice code code code commonly asked questions how do i get javascript where can i download javascript is javascript free you don t have to get or download javascript javascript is already running in your browser on your computer on your tablet and on your smart phone javascript is free to use for everyone | server |
|
openjpa-schematool-fb | openjpa schematool fb http openjpa apache org builds 3 0 0 apache openjpa docs ref guide schema schematool html | server |
|
SmartCoaster | smartcoaster smart coaster project for graduate embedded system design course at fau using asf on atmel samd21j18a samd21 xplained pro board setting up the project in atmel studio 7 1 create a new gcc c asf board project 2 add the following modules using the asf wizard and click apply generic board support sleep manager delay routines cycle ac callback adc callback extint callback port sercom usart callback system tc callback tcc callback stdio 3 navigate to your atmel studio project s src folder from command line or git client i use vsc s built in git client and copy paste the following commands git init git remote add origin git pull | os |
|
natural-language-processing | natural language processing different natural language processing techniques techniques for working with natural language processing regular expression stopword removal stemming part of speech pos entity extraction word cloud creating features from text term frequency and inverse document frequency tf idf topic modeling latent dirichlet allocation lda sentiment analysis word2vector shallow neural network glimpse of recurrent neural network for natural language processing deep learning | ai |
|
DMTK | dmtk distributed machine learning toolkit https www dmtk io https www dmtk io please open issues in the project below for any technical support email to dmtk microsoft com mailto dmtk microsoft com dmtk includes the following projects dmtk framework multiverso https github com microsoft multiverso the parameter server framework for distributed machine learning lightlda https github com microsoft lightlda scalable fast and lightweight system for large scale topic modeling lightgbm https github com microsoft lightgbm lightgbm is a fast distributed high performance gradient boosting gbdt gbrt gbm or mart framework based on decision tree algorithms used for ranking classification and many other machine learning tasks distributed word embedding https github com microsoft multiverso tree master applications wordembedding distributed algorithm for word embedding implemented on multiverso updates 2017 02 04 a tutorial on the latests updates of distributed machine learning is presented on aaai 2017 https www aaai org conferences aaai aaai17 php you can download the slides here https www dmtk io tutorial on aaai2017 html 2016 11 21 multiverso https github com microsoft multiverso has been officially used in microsoft cntk https github com microsoft cntk to power its asgd parallel training 2016 10 17 lightgbm https github com microsoft lightgbm has been released which is a fast distributed high performance gradient boosting gbdt gbrt gbm or mart framework based on decision tree algorithms used for ranking classification and many other machine learning tasks 2016 09 12 a talk on the latest updates of dmtk is presented on gtc china http www gputechconf cn page home html we also described the latest research work from our team including the lightrnn to be appeared in nips2016 and dc asgd https arxiv org abs 1609 08326 2016 07 05 multiverso has been upgrade to new api overview https github com microsoft multiverso wiki overview deep learning framework torch https github com microsoft multiverso wiki multiverso torch binding benchmark theano https github com microsoft multiverso wiki multiverso python binding benchmark support has been added python lua bidding has been supported you can using multiverso with python https github com microsoft multiverso wiki multiverso python theano lasagne binding lua https github com microsoft multiverso wiki multiverso torch lua binding microsoft open source code of conduct this project has adopted the microsoft open source code of conduct https opensource microsoft com codeofconduct for more information see the code of conduct faq https opensource microsoft com codeofconduct faq or contact opencode microsoft com mailto opencode microsoft com with any additional questions or comments | dmtk multiverso lightgbm microsoft machine-learning | ai |
esp32-iot-examples | esp32 iot examples some examples for esp32 using arduino ide to run these examples you need to install arduino core for esp32 wifi chip https github com espressif arduino esp32 aws iot example https github com copercini esp32 iot examples tree master esp32 aws iot connect your esp32 to the internet of things service of amazon using x 509 certificates wifi portal https github com copercini esp32 iot examples blob master wifi portal wifi portal ino is a non blocking web portal for configurating your wifi credentials wifi nonblocking https github com copercini esp32 iot examples blob master wifi nonblocking wifi nonblocking ino an example of wifi connection re tries without blocking the rest of code good if your code can work offline too multiloop https github com copercini esp32 iot examples blob master multiloop multiloop ino why just one loop when we can run more | server |
|
Hands-On-Computer-Vision-with-Julia | hands on computer vision with julia a href https www packtpub com application development hands computer vision julia utm source github utm medium repository utm campaign 9781788998796 img src https d1ldz4te4covpm cloudfront net sites default files imagecache ppv4 main book cover 10308 cover png alt hands on computer vision with julia height 256px align right a this is the code repository for hands on computer vision with julia https www packtpub com application development hands computer vision julia utm source github utm medium repository utm campaign 9781788998796 published by packt build complex applications with advanced julia packages for image processing neural networks and artificial intelligence what is this book about hands on computer vision with julia is a thorough guide for developers who want to get started with building computer vision applications using julia julia is well suited to image processing because it s easy to use and lets you write easy to compile and efficient machine code this book covers the following exciting features analyze image metadata and identify critical data using juliaimages apply filters and improve image quality and color schemes extract 2d features for image comparison using juliafeatures cluster and classify images with knn svm machine learning algorithms recognize text in an image using the tesseract library if you feel this book is for you get your copy https www amazon com dp 1788998790 today a href https www packtpub com utm source github utm medium banner utm campaign githubbanner img src https raw githubusercontent com packtpublishing github master github png alt https www packtpub com border 5 a instructions and navigations all of the code is organized into folders for example chapter02 the code will look like the following using images sample image path sample images cats 3061372 640 jpg sample image nothing if isfile sample image path sample image load sample image path else info error image not found end following is what you need for this book hands on computer vision with julia is for julia developers who are interested in learning how to perform image processing and want to explore the field of computer vision basic knowledge of julia will help you understand the concepts more effectively with the following software and hardware list you can run all code files present in the book chapter 1 9 software and hardware list chapter software required os required 1 9 julia 0 6 3 windows 7 macos 10 8 linux 2 6 18 ubuntu linux 16 04 7 mxnet 1 2 0 windows 7 macos 10 8 linux 2 6 18 ubuntu linux 16 04 9 open cv 3 2 0 macos 10 8 linux 2 6 18 gui ubuntu linux 16 04 desktop version we also provide a pdf file that has color images of the screenshots diagrams used in this book click here to download it https www packtpub com sites default files downloads handsoncomputervisionwithjulia colorimages pdf related products paste books from the other books you may enjoy section julia high performance packt https www packtpub com application development julia high performance utm source github utm medium repository utm campaign 9781785880919 amazon https www amazon com dp 1785880918 julia for data science packt https www packtpub com big data and business intelligence julia data science utm source github utm medium repository utm campaign 9781785289699 amazon https www amazon com dp 1785289691 get to know the author dmitrijs cudihins is a skilled data scientist machine learning engineer and software developer with more than eight years commercial experience his started off as a web developer but later switched to data science and computer vision he has been a senior data scientist for the last three years providing consultancy services for a state owned enterprise there he uses julia to automate communication with citizens applying different cv techniques and scanned image processing suggestions and feedback click here https docs google com forms d e 1faipqlsdy7datc6qmel81fiuuymz0wy9vh1jhkvpy57oimekgqib ow viewform if you have any feedback or suggestions download a free pdf i if you have already purchased a print or kindle version of this book you can get a drm free pdf version at no cost br simply click on the link to claim your free pdf i p align center a href https packt link free ebook 9781788998796 https packt link free ebook 9781788998796 a p | ai |
|
033-Customer-Personality-Analysis | 033 customer personality analysis datasets from customer personality analysis dataset https www kaggle com imakash3011 customer personality analysis about this dataset customer personality analysis is a detailed analysis of a company s ideal customers it helps a business to better understand its customers and makes it easier for them to modify products according to the specific needs behaviors and concerns of different types of customers customer personality analysis helps a business to modify its product based on its target customers from different types of customer segments for example instead of spending money to market a new product to every customer in the company s database a company can analyze which customer segment is most likely to buy the product and then market the product only on that particular segment objective 1 2 3 4 2 5 steps 1 search datasets from kaggle 1 explore the dataset from the original dataset 1 download library and dataset 1 exploratory data analysis 1 cleaning dataset 1 define a question tools r language r studio desktop microsoft excel power bi table of contents 1 exploratory data analysis https github com sit 2021 int214 033 customer personality analysis blob main term assignment readme md 2 data cleaning and data transformation https github com sit 2021 int214 033 customer personality analysis blob main term assignment data cleaning and data transformation md 3 data analysis with descriptive statistics https github com sit 2021 int214 033 customer personality analysis blob main term assignment 01 explore md 4 data visualization https app powerbi com view r eyjrijoimgnjmzflotctntzjmy00mwzllweynmetnzbhzgrhnmvhmddiiiwidci6ijzmndqzmmrjltiwzditndqxzc1imwrilwfjmzm4mgjhnjmzzcisimmiojewfq 3d 3d pagename reportsection 5 analytical inferentail statistics https github com sit 2021 int214 033 customer personality analysis tree main term assignment final assignment resources important files in repository 01 explore r https github com sit 2021 int214 033 customer personality analysis blob main term assignment 01 explore md exploratory data analysis cpa original csv https github com sit 2021 int214 033 customer personality analysis blob main term assignment cpa original csv original dataset cpa cleaned csv https github com sit 2021 int214 033 customer personality analysis blob main term assignment cpa cleaned csv clean dataset g033 hypo testing r https github com sit 2021 int214 033 customer personality analysis blob main term assignment final assignment g033 hypo 20testing r hypothesis testing references link about us int214 statistics for information technology br 1 2564 team itiro 1 studentid 63130500091 2 studentid 63130500103 3 studentid 63130500153 instructor atchara tran u raikul jatawat xie git safesit23 https github com safesit23 | server |
|
ganache | using h2 instead of h1 because npm doesn t support align center on h1 tags h2 align center a href readme title ganache readme md img alt ganache src https ganache dev assets img ganache logo dark svg alt ganache width 160 a h2 h3 align center a tool for creating a local blockchain for fast ethereum development h3 p align center a title ganache on npm href https www npmjs com ganache img alt src https img shields io npm v ganache latest label npm amp color b98b5b amp style for the badge amp labelcolor 3c2c30 amp logo data image svg xml base64 phn2zyb4bwxucz0iahr0cdovl3d3dy53my5vcmcvmjawmc9zdmciihzpzxdcb3g9ijagmca0mca0mci phbhdgggzd0ittagmgg0mhy0megwvjb6iibmawxspsijzmzmii8 phbhdgggzmlsbd0iizmzmjuyysigzd0ittcgn2gynnyynmgtn1yxnggtnnyxoug3eiivpjwvc3znpgo a a href https npmtrends com ganache title historic ganache download graphs on npmtrends com img alt src https img shields io npm dm ganache color b98b5b amp style for the badge amp labelcolor 3c2c30 amp logo data image svg xml base64 phn2zyb4bwxucz0iahr0cdovl3d3dy53my5vcmcvmjawmc9zdmciihzpzxdcb3g9ijagmcaxotaumzegmje0ij48zgvmcz48c3r5bgu lmnscy0xe2zpbgw6i2u0yty2mzt9lmnscy0ye2zpbgw6izvlndy0zdt9lmnscy0ze2zpbgw6i2zmzjt9pc9zdhlszt48l2rlznm phrpdgxlpmdhbmfjagutbg9nb21hcms8l3rpdgxlpjxniglkpsjmyxllcl8yiibkyxrhlw5hbwu9ikxhewvyidiipjxniglkpsjmyxllcl84iibkyxrhlw5hbwu9ikxhewvyidgipjxwyxroignsyxnzpsjjbhmtmsigzd0itte2ns4zocwxnjaumzfjmi4yncwwldmtljuyldqumdytmi4zm3muntutnc43ns41ms01lju1yy0ums0xljc2ls42os0zljcyls43ni00ljctlja1ls42ldatnc40my4wos02ldeumzqtmjquodqsmtitmzaunzusmtuumdctmzeundjhoc41osw4lju5ldasmcwxlduuotqungwwltm4adbsmc0untrwnjiumdljmc01ljq5ltmuotetmtiumjqtoc42ni0xnwwtnzcuodctndvdotktljy5ldkxlje5ls42osw4ni40mywylja2tdgunjusndddmy44osw0os43mswwldu2ljq2ldasnjj2os44mnmwlc4xmswwlc4xn1y4ni4zm2munduumjuuoteuntesms4zni43oswxljusmswzldeuntusnc41mswyljzhnjgundmsnjgundmsmcwwldesmtisos4yogmuny42ocwzlja3ldmunjysmy42ncw0ljm2ytq3ljiyldq3ljiyldasmcwwlduunzcsni42ldiwljyyldiwljyyldasmcwwldmuodcsmi43ogmylji4ldeumtksni4wny45miw4lc4wnywxnc44mi02ljqyldi0ljeyltmumiwyoc40ms0unjismtaunjesni4znywxnc4xnswxns4yocwxns4yocwyni4xyti5ljiyldi5ljiyldasmcwxlc4xncw0ljiyyzasmi41ny0umdksni43ldiunjisny4zoswzljg5ldesnc44my0zlje2lduundetns45miwxljmyltyumjusos42my0xmc4znswxns43mi03ljisnc4yldiumtcsns45miwzljqsmtaumdcsms41nyw1ljitmi4yosw3ljg3ltgumtisos42oc0xms4ymkexoswxoswwldasmswxmzqsmtiwyzgumtetns4wnswyoc40ni0zljc0ldi5ljixlde4ljcsmcwxljiyldasnc4zncwwldyumjqsmcwylje0lja3ldqumjmtlja3ldyundqtlja4ldeundctljm1ldmtljq5ldquntfdmtyylju1lde1ns45lde2ms43oswxnjaumjksmty1ljm4lde2mc4zmvoilz48cgf0acbjbgfzcz0iy2xzltiiigq9ik0xotaumjgsmtewljc1yy0untytlje3ltiumtytms4ymi01ljkzls40ltmumdkunjctmtmunzmsni41oc0xns4wnywzms40mi0umdgsms41my0umtqsns4zni0umdksniwumdcsmswunjysmi45nc43niw0ljcsmcwuoc42miwzljctljuxlduuntvzlteuodismi4znc00lja2ldiumznjltmuntksmc0yljgzltqundetmi44my00ljqxlje0lteundkundetmywundktnc41ms4xnc0yljixlja3ltqumy4wny02ljq0ldatms45ldatnswwltyumjrdmtyyljqxldexni4ynywxndiumdysmte1ldezncwxmjbhmtksmtksmcwwldatny40ocw3ljeyyy0xljgxldmums00ljq4ldguotmtos42ocwxms4ymi00lje1ldeuodmtns44ny42ltewlja3lteuntctni4wos0zlje1lte0ljquotutmtuunzisny4yls41ocwyljc2lteuntisni45ms01ljqxlduuotitmi43ms0unjktmi42mi00ljgyltiunjitny4zoweyos4ymiwyos4ymiwwldasmc0umtqtnc4ymmmtms4xmy0xmc44mi00ljy3lte5ljczlte1lji4lti2ljetnc4yos0ylju4ltezlju5ltuuoc0yoc40ms42mi0ylc44ns01ljc0ldeumtitoc0umddbmjaunjismjaunjismcwwldesmjcumjusmtewytq3ljiyldq3ljiyldasmcwxltuunzctni42yy0untctljctmi45nc0zljy4ltmunjqtnc4znme2oc40myw2oc40mywwldasmc0xmi05lji4yy0xljuyltetmy0xljy0ltquntetmi42ls40ns0umjgtljkxls41nc0xljm2ls43owwwldy1lju3yzasns41ldmuoswxmi4ynsw4ljy2lde1bdc3ljg2ldq1yzqunzysmi43niwxmi41nswyljc2lde3ljmxldbmmtgxljy2lde2n2m0ljc2ltiunzusoc42ns05ljusoc42ns0xnvoilz48cgf0acbjbgfzcz0iy2xzltmiigq9ik0xmdusotkunznjltuumzksmy4xms0xnc4yldmumtetmtkuntgsmgwtnzkunjetndjjljkuodksodaunzmsndcumjcsodaunzmsndcumjcsnc43niwyljc2ldeylju1ldiunzysmtcumzesmcwwldasnzkunzqtndyumjqsodaunjmtndcumtnaii8 phbhdgggy2xhc3m9imnscy0ziibkpsjnoduumzisoc4woem5mc43msw1ldk5ljuyldusmta0ljksoc4woww5ljy1ldrjls45ls44os0xmc43oc03lji5ltewljc4ltcumjktnc43ns0yljc1lteylju0ltiunzytmtcumywwldasmc0xns43nyw5lji3lte2ljy3ldewlje1wiivpjwvzz48l2c pc9zdmc a a title build status href https github com trufflesuite ganache actions query workflow 3acommits branch 3adevelop event 3apush img alt src https img shields io github actions workflow status trufflesuite ganache push yml style for the badge amp labelcolor 3c2c30 amp logo github amp color b98b5b amp branch develop a p p align center a href features features a a href getting started getting started a a href documentation documentation a a href community community a a href docker docker a a href contributing contributing a a href related related a p features ganache is an ethereum simulator that makes developing ethereum applications faster easier and safer it includes all popular rpc functions and features like events and can be run deterministically to make development a breeze console log in solidity zero config mainnet forking fork any ethereum network without waiting to sync ethereum json rpc support snapshot revert state mine blocks instantly on demand or at an interval fast forward time impersonate any account no private keys required listens for json rpc 2 0 requests over http websockets programmatic use in node js pending transactions a href https github com trufflesuite ganache tree develop packages flavor readme flavors a aka plugins like a href https github com trufflesuite ganache plugin filecoin tree main packages filecoin readme filecoin a getting started ganache can be used from the command line command line use programmatically programmatic use via node js or in the browser browser use command line use you must first install node js https nodejs org v16 0 0 and npm 7 10 0 to install ganache globally run console npm install ganache global in case you re upgrading from a previous version of ganache we ve also written up this handy guide https github com trufflesuite ganache blob develop upgrade guide md on how to upgrade install ganache and to document all breaking changes to look out for once installed globally you can start ganache right from your command line console ganache your output should look something like this ganache cli v6 12 1 ganache core 2 13 1 available accounts 0 0xe261e26aecce52b3788fac9625896ffbc6bb4424 100 eth 1 0xce16e8eb8f4bf2e65ba9536c07e305b912bafacf 100 eth 2 0x02f1c4c93afed946cce5ad7d34354a150befcfcf 100 eth 3 0x0b75f0b70076fab3f18f94700ecaf3b00fe528e7 100 eth 4 0x7194d1f1d43c2c58302bb61a224d41b649e65c93 100 eth 5 0xc9a2d92c5913edead9a7c936c96631f0f2241063 100 eth 6 0xd79bcde5cb11cecd1dfc6685b65690be5b6a611e 100 eth 7 0xb6d080353f40deca2e67108087c356d3a1afcd64 100 eth 8 0x31a064deead74de7b9453beb4f780416d8859d3b 100 eth 9 0x37524a360a40c682f201fb011db7bbc8c8a247c6 100 eth private keys 0 0x7f109a9e3b0d8ecfba9cc23a3614433ce0fa7ddcc80f2a8f10b222179a5a80d6 1 0x6ec1f2e7d126a74a1d2ff9e1c5d90b92378c725e506651ff8bb8616a5c724628 2 0xb4d7f7e82f61d81c95985771b8abf518f9328d019c36849d4214b5f995d13814 3 0x941536648ac10d5734973e94df413c17809d6cc5e24cd11e947e685acfbd12ae 4 0x5829cf333ef66b6bdd34950f096cb24e06ef041c5f63e577b4f3362309125863 5 0x8fc4bffe2b40b2b7db7fd937736c4575a0925511d7a0a2dfc3274e8c17b41d20 6 0xb6c10e2baaeba1fa4a8b73644db4f28f4bf0912cceb6e8959f73bb423c33bd84 7 0xfe8875acb38f684b2025d5472445b8e4745705a9e7adc9b0485a05df790df700 8 0xbdc6e0a69f2921a78e9af930111334a41d3fab44653c8de0775572c526feea2d 9 0x3e215c3d2a59626a669ed04ec1700f36c05c9b216e592f58bbfd3d8aa6ea25f9 hd wallet mnemonic candy maple velvet cake sugar cream honey rich smooth crumble sweet treat base hd path m 44 60 0 0 account index default gas price 20000000000 gas limit 6721975 call gas limit 9007199254740991 listening on 127 0 0 1 8545 npm project use if you want to install ganache into an npm project run console npm install ganache you can then add ganache to your package json scripts json scripts ganache ganache wallet seed mycustomseed see documentation documentation for additional command line options then start it console npm run ganache programmatic use you can use ganache programmatically from node js install ganache into your npm package console npm install ganache then you can use ganache as an eip 1193 provider only as an eip 1193 provider only an eip 1193 provider and json rpc web server as an eip 1193 provider and json rpc web server as a web3 provider as a web3js provider an ethers provider as an ethersjs provider or a viem transport as a viem transport as an eip 1193 provider only javascript const ganache require ganache const options const provider ganache provider options const accounts await provider request method eth accounts params as an eip 1193 provider and json rpc web server javascript const ganache require ganache const options const server ganache server options const port 0 0 means any available port server listen port async err if err throw err console log ganache listening on port server address port const provider server provider const accounts await provider request method eth accounts params as a web3 js https www npmjs com package web3 provider to use ganache as a web3 provider javascript const web3 require web3 const ganache require ganache const web3 new web3 ganache provider note depending on your web3 version you may need to set a number of confirmation blocks const web3 new web3 ganache provider null transactionconfirmationblocks 1 as an ethers js https www npmjs com package ethers provider javascript const ganache require ganache const provider new ethers providers web3provider ganache provider as a viem https www npmjs com package viem transport to use a ganache provider as a viem transport javascript import createwalletclient custom from viem import localhost from viem chains import ganache from ganache const client createwalletclient chain localhost transport custom ganache provider browser use you can also use ganache in the browser by adding the following script to your html html script src https cdn jsdelivr net npm ganache version dist web ganache min js script note the version in the above path needs to be replaced with a version number or tag that is listed in npm https www npmjs com package ganache activetab versions from there ganache is available in your browser for use javascript const options const provider ganache provider options documentation see our interactive docs https ganache dev for a full list of ganache s rpc methods startup options the startup options are grouped in the chain database fork logging miner wallet and server namespaces and should be used as such on startup i e console ganache namespace option value for cli use and typescript const options namespace option value const provider ganache provider options for programmatic use the following options are listed for command line use but can also be used when running ganache programmatically in your project console chain chain allowunlimitedcontractsize allows unlimited contract sizes while debugging setting this to true will cause ganache to behave differently than production environments boolean default false chain allowunlimitedinitcodesize allows unlimited initcode sizes while debugging setting this to true will cause ganache to behave differently than production environments boolean default false chain asyncrequestprocessing when set to false only one request will be processed at a time boolean default true chain chainid the currently configured chain id number default 1337 i chain networkid the id of the network returned by the rpc method net version deprecated aliases networkid number default system time at process start or network id of forked blockchain if configured t chain time date that the first block should start deprecated aliases time number k chain hardfork set the hardfork rules for the evm deprecated aliases hardfork string choices constantinople byzantium petersburg istanbul muirglacier berlin london arrowglacier grayglacier merge shanghai default shanghai chain vmerrorsonrpcresponse whether to report runtime errors from evm code as rpc errors boolean default false database database dbpath specify a path to a directory to save the chain database deprecated aliases db db path string logging logging debug set to true to log evm opcodes boolean default false q logging quiet set to true to disable logging deprecated aliases quiet boolean default false v logging verbose set to true to log detailed rpc requests deprecated aliases verbose boolean default false miner b miner blocktime sets the blocktime in seconds for automatic mining a blocktime of 0 enables instamine mode where new executable transactions will be mined instantly deprecated aliases blocktime number default 0 g miner defaultgasprice sets the default gas price in wei for transactions if not otherwise specified deprecated aliases gasprice string default 0x77359400 l miner blockgaslimit sets the block gas limit in wei deprecated aliases gaslimit string default 0xb71b00 miner defaulttransactiongaslimit sets the default transaction gas limit in wei set to estimate to use an estimate slows down transaction execution by 40 string default 0x15f90 miner difficulty sets the block difficulty string default 0x1 miner callgaslimit sets the transaction gas limit in wei for eth call and eth estimategas calls string default 0x2faf080 miner instamine set the instamine mode to either eager default or strict in eager mode a transaction will be included in a block before its hash is returned to the caller in strict mode a transaction s hash is returned to the caller before the transaction is included in a block this value has no effect if blocktime is not 0 the default string choices eager strict default eager miner coinbase sets the address where mining rewards will go default 0x0000000000000000000000000000000000000000 miner extradata set the extradata block header field a miner can include string default 0x miner pricebump minimum price bump percentage needed to replace a transaction that already exists in the transaction pool string default 10 wallet wallet accounts account data in the form private key initial balance can be specified multiple times note that private keys are 64 characters long and must be entered as an 0x prefixed hex string balance can either be input as an integer or as a 0x prefixed hex string with either form specifying the initial balance in wei deprecated aliases account array a wallet totalaccounts number of accounts to generate at startup deprecated aliases accounts number default 10 d wallet deterministic use pre defined deterministic seed deprecated aliases deterministic boolean default false s wallet seed seed to use to generate a mnemonic deprecated aliases seed string default random value unless wallet deterministic is specified m wallet mnemonic use a specific hd wallet mnemonic to generate initial addresses deprecated aliases mnemonic string default generated from wallet seed u wallet unlockedaccounts array of addresses or address indexes specifying which accounts should be unlocked deprecated aliases unlock array n wallet lock lock available accounts by default good for third party transaction signing deprecated aliases secure lock boolean default false wallet passphrase passphrase to use when locking accounts deprecated aliases passphrase string wallet accountkeyspath specifies a file to save accounts and private keys to for testing deprecated aliases account keys path acctkeys string e wallet defaultbalance the default account balance specified in ether deprecated aliases defaultbalanceether number default 1000 wallet hdpath the hierarchical deterministic path to use when generating accounts string default m 44 60 0 0 fork f fork url fork from another currently running ethereum client at a given block input should be the url of the node e g http localhost 1337 you can optionally specify the block to fork from using an sign http localhost 1337 8675309 you can specify basic authentication credentials in the url as well e g wss user password example com if you need to use an infura project secret you would use it like this wss your project secret mainnet infura com alternatively you can use the fork username and fork password options deprecated aliases fork fork network a network name to fork from uses infura s archive nodes use the shorthand command ganache fork to automatically fork from mainnet at the latest block choices mainnet goerli g rli sepolia fork blocknumber block number the provider should fork from default latest block number fork prelatestconfirmations when the fork blocknumber is set to latest default the number of blocks before the remote node s latest block to fork from number default 5 fork username username to use for basic authentication does not require setting fork password when combined with fork password is shorthand for fork headers authorization basic encoded basic header if the fork headers option specifies an authorization header it will be be inserted after this basic token fork password password to use for basic authentication does not require setting fork username when combined with fork username is shorthand for fork headers authorization basic encoded basic header if the fork headers option specifies an authorization header it will be be inserted after this basic token fork jwt encoded json web token jwt used for authenticating to some servers shorthand for fork headers authorization bearer your encoded jwt if the fork headers option specifies an authorization header it will be be inserted after the jwt bearer token fork useragent the user agent header sent to the fork on each request sent as api user agent when used in the browser will be overridden by a user agent defined in the fork headers option if provided default ganache 7 0 0 beta 0 https www trufflesuite com ganache ganache at trufflesuite com fork origin the origin header sent to the fork on each request ignored in the browser will be overridden by an origin value defined in the fork headers option if provided fork headers headers to supply on each request to the forked provider headers set here override headers set by other options unless otherwise specified defaults to user agent ganache version https www trufflesuite com ganache ganache at trufflesuite com array fork requestspersecond restrict the number of requests per second sent to the fork provider 0 means no limit is applied number default 0 fork disablecache disables caching of all forking requests boolean default false fork deletecache deletes the persistent cache before starting boolean default false server server ws enable a websocket server boolean default true server wsbinary whether or not websockets should response with binary data arraybuffers or strings choices true false auto default auto server rpcendpoint defines the endpoint route the http and websocket servers will listen on default h server host hostname to listen on deprecated aliases host hostname string default 127 0 0 1 p server port port port to listen on deprecated aliases port number default 8545 detached instances ganache can be started as a background instance via the cli by providing the following argument along with any valid combination of the ganache startup arguments above console d detach run ganache in detached daemon mode boolean this will start ganache as a background process and return to the console as soon as ganache has started and is ready to receive requests a friendly name will be returned to stdout which can then be used to interact with the instance via the ganache instances command with the following arguments console commands ganache instances list list instances running in detached mode ganache instances stop name stop the instance specified by name e g start ganache on port 8544 with a block time of 10 seconds and then stop the instance console ganache port 8544 miner blocktime 10 detach salted caramel ganache ganache instances list pid name flavor version host uptime 12182 salted caramel ganache ethereum 7 6 0 127 0 0 1 8545 36s ganache instances stop salted caramel ganache process stopped with the following command you can start ganache run your tests and stop ganache when you are finished console ganache ganache detach npm run test ganache instances stop ganache or if you are running powershell on windows you can do powershell ganache ganache detach npm run test ganache instances stop ganache ganache provider events in addition to eip 1193 s https eips ethereum org eips eip 1193 message event and the legacy data event ganache emits 4 additional events ganache vm tx before ganache vm tx step ganache vm tx after and ganache vm tx console log these events can be used to observe the lifecycle of any transaction executed via sendtransaction eth call debug tracetransaction or debug storagerangeat these share the event paradigm that truffle uses https www trufflesuite com docs truffle advanced event system how to define your event handlers but without any of the wildcard handling i e no vm support for now each of these events will emit a context object which is a unique object that can be used to identify a transaction over the course of its lifecycle for example typescript interface stepevent account nonce bigint balance bigint stateroot buffer codehash buffer address buffer codeaddress buffer depth number gasleft bigint gasrefund bigint memory buffer memorywordcount bigint opcode name string fee number pc number returnstack buffer stack buffer const contexts new map provider on ganache vm tx before event context contexts set event context provider on ganache vm tx step event context data stepevent contexts get event context push event data provider on ganache vm tx console log event context logs string bigint boolean console log event logs provider on ganache vm tx after event context doathingwiththistransactionssteps contexts get event context contexts delete event context the reason this context is necessary is that ganache may run multiple transactions simultaneously so ganache vm tx step events from different transactions could be intermingled the above events will be emitted for eth call sendtransaction debug tracetransaction and debug storagerangeat currently we do not await the event listener s return value however we ll likely enable this in the future console log in solidity by default ganache logs to stdout when a contract executes a console log solidity statement during eth call eth sendtransaction personal sendtransaction and eth sendrawtransaction see the ganache console log package https github com trufflesuite ganache tree develop packages ethereum console log for implementation and usage community discord https trfl io community reddit https www reddit com r truffle docker the simplest way to get started with the docker image console docker run detach publish 8545 8545 trufflesuite ganache latest to pass options to ganache through docker simply add the arguments to the end of the run command e g console docker run detach publish 8545 8545 trufflesuite ganache latest accounts 10 debug the docker container adds an environment variable docker true when this variable is set to true case insensitive ganache uses a default hostname ip of 0 0 0 0 instead of the normal default 127 0 0 1 you can still specify a custom hostname however console docker run detach publish 8545 8545 trufflesuite ganache latest host xxx xxx xxx xxx to build and run the docker container from source console git clone https github com trufflesuite ganache git cd ganache then console docker build tag trufflesuite ganache file packages ganache dockerfile docker run publish 8545 8545 trufflesuite ganache contributing see contributing md https github com trufflesuite ganache blob develop contributing md for our guide to contributing to ganache related truffle github https www github com trufflesuite truffle drizzle github https www github com trufflesuite drizzle truffle suite website https www trufflesuite com br h4 align center a href https www trufflesuite com title brought to you by truffle img alt truffle src https ganache dev assets img truffle logo dark svg width 60 a h4 | ganache ethereum blockchain | blockchain |
cvbase | deprecated please use mmcv https github com open mmlab mmcv instead introduction pypi version https img shields io pypi v cvbase svg https pypi python org pypi cvbase python version https img shields io pypi pyversions cvbase svg build status https travis ci org hellock cvbase svg branch master https travis ci org hellock cvbase coverage status https codecov io gh hellock cvbase branch master graph badge svg https codecov io gh hellock cvbase cvbase is a miscellaneous set of tools which maybe helpful for computer vision research it comprises the following parts io helpers image video operations opencv wrappers for python2 3 and opencv 2 3 timer progress visualization plotting tools object detection utils try and start with shell pip install cvbase see documentation http cvbase readthedocs io en latest for more features and usage some popular features there are some popular features such as progress visualization timer video to frames frames to videos progress visualization if you want to apply a method to a list of items and track the progress track progress is a good choice it will display a progress bar to tell the progress and eta python import cvbase as cvb def func item do something pass tasks item 1 item 2 item n cvb track progress func tasks the output is like the following progress docs static progress gif there is another method track parallel progress which wraps multiprocessing and progress visualization python import cvbase as cvb def func item do something pass tasks item 1 item 2 item n cvb track parallel progress func tasks 8 8 workers timer it is convinient to computer the runtime of a code block with timer python import time with cvb timer simulate some code block time sleep 1 or try a more flexible way python timer cvb timer code block 1 here print timer since start code block 2 here print timer since last check print timer since start video frames conversion to split a video into frames python video cvb videoreader video file mp4 video cvt2frames frame dir besides cvt2frames videoreader wraps many other useful methods to operate a video like a list object like video cvb videoreader video file mp4 len video get total frame number video 5 get the 6th frame for img in video iterate over all frames print img shape to generate a video from frames use the frames2video method python video cvb frames2video frame dir out video file avi fps 30 video editing needs ffmpeg to cut a video python cvb cut video input mp4 output mp4 start 3 end 10 to join two video clips python cvb concat video clip1 mp4 clip2 mp4 output mp4 to resize a video python cvb resize video input mp4 resized mp4 360 240 or cvb resize video input mp4 resized mp4 ratio 2 to convert the format of a video python cvb convert video input avi output mp4 vcodec h264 | ai |
|
ELEC3050 | elec3050 embedded system design lab spring 2020 | os |
|
iotws18 | iot workshop v2 0 refreshed for oracle code 2018 for documentation and instruction see a href https github com raymondxie iotws18 wiki https github com raymondxie iotws18 wiki a main script used for workshop 1 wio js the js module provide convenient read stream and write to virtualized sensors on wio board 2 testwio js the starter nodejs code for testing your wio board and sensor setup 3 sensor config js the configuration file for your wio board sensor setup as well as mapping to device model defined in iotcs 4 wio iotcs client js the main client code that interacts with wio board and sensors on one side and communicates with iotcs on the other side 5 to run the program node wio iotcs client js provision file provision file secret then the program will continuously read input data from sensor and feed to iotcs as well as listen for commands from iotcs to control device output | server |
|
mildlyoverfitted | mildlyoverfitted code for https www youtube com c mildlyoverfitted overview name video code asynchronous requests and rate limiting link https youtu be luwsr9exle4 link https github com jankrepl mildlyoverfitted tree master mini tutorials httpx rate limiting custom optimizer in pytorch link https youtu be zvp8k4ix2cs link https github com jankrepl mildlyoverfitted tree master mini tutorials custom optimizer in pytorch deploying machine learning models on kubernetes link https youtu be dqrnt8diyw4 link https github com jankrepl mildlyoverfitted tree master mini tutorials deploying on kubernetes differentiable augmentation for gans using kornia link https youtu be j97em3clyys link https github com jankrepl mildlyoverfitted tree master github adventures diffaugment dino in pytorch link https youtu be psmmewkk4uk link https github com jankrepl mildlyoverfitted tree master github adventures dino few shot text classification with prompts link https youtu be ahqgdxcbu2m link https github com jankrepl mildlyoverfitted tree master mini tutorials fewshot text classification gpt in pytorch link https youtu be d7irm40vmym link https github com jankrepl mildlyoverfitted tree master github adventures gpt gradient with respect to input in pytorch fgsm attack integrated gradients link https youtu be 5lfiztssp40 link https github com jankrepl mildlyoverfitted tree master mini tutorials gradient wrt input growing neural cellular automata in pytorch link https youtu be 21acbwof2oo link https github com jankrepl mildlyoverfitted tree master github adventures automata haiku basics link https youtu be yxcks zoyty link https github com jankrepl mildlyoverfitted tree master mini tutorials haiku basics integer embeddings in pytorch link https youtu be bybusbvzodg link https github com jankrepl mildlyoverfitted tree master github adventures integer mixup in pytorch link https youtu be hgakhkqmxdy link https github com jankrepl mildlyoverfitted tree master github adventures mixup mlp mixer in flax and pytorch link https youtu be hqytb2gubha link https github com jankrepl mildlyoverfitted tree master github adventures mixer mocking neural networks unit testing in deep learning link https youtu be kvv9jxszvo link https github com jankrepl mildlyoverfitted tree master mini tutorials mocking neural networks ner model evaluation link https youtu be 70yauyp3hrw link https github com jankrepl mildlyoverfitted tree master github adventures ner evaluation numpy equality testing link https youtu be sai1g5fjyb8 link https github com jankrepl mildlyoverfitted tree master mini tutorials numpy equality testing openai function calling link https youtu be b7f 6ntveg link https github com jankrepl mildlyoverfitted tree master mini tutorials openai function calling pondernet in pytorch link https youtu be jlfz1du5hr4 link https github com jankrepl mildlyoverfitted tree master github adventures pondernet product quantization in faiss and from scratch link https youtu be pnvjvzekuxo link https github com jankrepl mildlyoverfitted tree master github adventures product quantization retrieval augmented generation with opensearch and reranking link https youtu be ose7ycdcpz0 link https github com jankrepl mildlyoverfitted tree master mini tutorials rag with reranking siren in pytorch link https youtu be s4ifeonlyhm link https github com jankrepl mildlyoverfitted tree master github adventures siren the lottery ticket hypothesis and pruning in pytorch link https youtu be bqt0clxxaqg link https github com jankrepl mildlyoverfitted tree master github adventures lottery the sensory neuron as a transformer in pytorch link https youtu be mi mzlhbgau link https github com jankrepl mildlyoverfitted tree master github adventures neuron torch nn embedding explained character level language model link https youtu be euwn5dhfleo link https github com jankrepl mildlyoverfitted tree master mini tutorials embedding vision transformer in pytorch link https youtu be ovb0ddftzza link https github com jankrepl mildlyoverfitted tree master github adventures vision transformer visualizing activations with forward hooks pytorch link https youtu be 1zbla7ofasy link https github com jankrepl mildlyoverfitted tree master mini tutorials visualizing activations with forward hooks | pytorch tutorial deep-learning youtube | ai |
Natural-Language-Processing | natural language processing natural language processing | nlp deep-learning tf-idf coursera sentiment-analysis seq2seq bag-of-words | ai |
pycom-libraries | p align center img src https github com pycom pycom libraries blob master img logo png width 300 p pycom libraries and examples introduction this repository contains libraries and out of the box examples for pycom devices including the shields pysense pytrack and pyscan table of contents examples examples libraries lib shields shields links pycom https pycom io forum https forum pycom io docs https docs pycom io | server |
|
cs543_hw | homework for cs543 computer vision 2015 spring homework 1 edge and boundary detection homework 2 feature tracking author xianming liu xliu illinois edu | ai |
|
ComputerVisionSummarization | toc 1 cvpr paper 1 cvpr paper 1 1 all cvpr2018 paper 11 all cvpr2018 paper 1 1 1 tracking 111 tracking 2 video collection 2 video collection 2 1 link 21 link 2 2 video rank 22 video rank 3 detection 3 detection 4 sementation 4 sementation 4 1 mask rcnn 41 mask rcnn 5 lip language 5 lip language 5 1 learning lip sync from audio 51 learning lip sync from audio 6 some interesting 6 some interesting 6 1 aging photo prediction 61 aging photo prediction 6 2 d panorama 62 d panorama 6 3 panocatcher 63 panocatcher 7 tracking 7 tracking 7 1 mot 71 mot 7 2 correlation filter 72 correlation filter 7 3 end to end representation learning for correlation filter based tracking 73 end to end representation learning for correlation filter based tracking 7 4 attentional correlation filter network for adaptive visual tracking 74 attentional correlation filter network for adaptive visual tracking 7 5 context aware correlation filter tracking 75 context aware correlation filter tracking 8 action recognition 8 action recognition 9 reconstruction 9 reconstruction 10 detection 10 detection 11 sementation 11 sementation 12 action recognition 12 action recognition 13 point cloud representation 13 point cloud representation 14 summary 14 summary 15 reference 15 reference toc 1 cvpr paper all the paper is available at official website http cvpr2018 thecvf com program main conference the offline list of paper is available at this papers cvpr2018 paper list csv 1 1 all cvpr2018 paper 1 1 1 tracking paper id type title 122 poster detect and track efficient pose estimation in videos papers 1712 09184 pdf 255 poster multi cue correlation filters for robust visual tracking 281 spotlight tracking multiple objects outside the line of sight using speckle imaging 281 poster tracking multiple objects outside the line of sight using speckle imaging 369 oral total capture a 3d deformation model for tracking faces hands and bodies papers 1801 01615 pdf 369 poster total capture a 3d deformation model for tracking faces hands and bodies 423 spotlight fast and accurate online video object segmentation via tracking parts 423 poster fast and accurate online video object segmentation via tracking parts 678 poster learning attentions residual attentional siamese network for high performance online visual tracking papers cvpr18rastrackcamerav3 3 pdf 736 spotlight ganerated hands for real time 3d hand tracking from monocular rgb papers 1712 01057 pdf 736 poster ganerated hands for real time 3d hand tracking from monocular rgb 890 poster carfusion combining point tracking and part detection for dynamic 3d reconstruction of vehicles papers carfusion pdf 892 poster context aware deep feature compression for high speed visual tracking papers 1803 10537 pdf 1022 poster a benchmark for articulated human pose estimation and tracking 1194 poster hyperparameter optimization for tracking with continuous deep q learning papers q learning pdf 1264 poster end to end flow correlation tracking with spatial temporal attention papers 1711 01124 pdf 1280 spotlight vital visual tracking via adversarial learning papers 1804 04273 pdf 1280 poster vital visual tracking via adversarial learning 1304 poster sint robust visual tracking via adversarial hard positive generation 1353 poster learning spatial temporal regularized correlation filters for visual tracking papers 1803 08679 pdf 1439 poster efficient diverse ensemble for discriminative co tracking papers 1711 06564 pdf 1494 poster correlation tracking via joint discrimination and reliability learning papers cvpr2018 correlation tracking pdf 1676 spotlight learning spatial aware regressions for visual tracking papers 1706 07457 pdf 1676 poster learning spatial aware regressions for visual tracking 1679 poster fusing crowd density maps and visual object trackers for people tracking in crowd scenes 1949 poster rolling shutter and radial distortion are features for high frame rate multi camera tracking 2129 poster high speed tracking with multi kernel correlation filters 2628 poster a causal and or graph model for visibility fluent reasoning in tracking interacting objects papers 1709 05437 pdf 2951 spotlight high performance visual tracking with siamese region proposal network 2951 poster high performance visual tracking with siamese region proposal network 3013 oral fast and furious real time end to end 3d detection tracking and motion forecasting with a single convolutional net 3013 poster fast and furious real time end to end 3d detection tracking and motion forecasting with a single convolutional net 3292 spotlight mx lstm mixing tracklets and vislets to jointly forecast trajectories and head poses 3292 poster mx lstm mixing tracklets and vislets to jointly forecast trajectories and head poses 3502 poster a prior less method for multi face tracking in unconstrained videos 3583 poster towards dense object tracking in a 2d honeybee hive papers 1712 08324 pdf 3817 spotlight good appearance features for multi target multi camera tracking papers 1709 07065 pdf 3817 poster good appearance features for multi target multi camera tracking 3980 poster a twofold siamese network for real time object tracking papers 1802 08817 pdf 2 video collection 2 1 link https pan baidu com s 1esivg90 2 2 video rank holoportation virtual 3d teleportation in real time microsoft research mp4 realtime multi person 2d human pose estimation using part affinity fields cvpr 2017 oral full resolution residual networks frrns for semantic image segmentation in street scenes yolo v2 deepglint cvpr2016 3 detection 4 sementation 4 1 mask rcnn the mask rcnn is proposed by kaiming https arxiv org abs 1703 06870 and implied in github repostory https github com matterport mask rcnn git mask rcnn extends faster r cnn by adding a branch for predicting an object mask in parallel with the existing branch for bounding box recognition output a class label a bounding box offset object mask it can run at 5 fps and training on coco takes one to two days on a single 8 gpu machine it has another application human pose estimation instance segementation bounding box object detection and person keypoint detection camera calibration by viewing each keypoint as a one hot binary mask it can estimate human pose it belongs to the instance segmentation field i have the mask rcnn in bus scene images mask rcnn result png it performs well this is all the result https pan baidu com s 1nveftpz 5 lip language it s an amazing thing that training lip language recogition 5 1 learning lip sync from audio given the audio of president barack obama we synthesize a high quality video of him speaking with accurate lip sync see video https youtu be 9yq67cjdqvw 6 some interesting 6 1 aging photo prediction takes a single photograph of a child as input and automatically produces a series of age progressed outputs between 1 and 80 years of age accounting for pose expression and illumination see video https youtu be qukluy7nave list pldewtkr3kw 2 888o0qgvnc uoeyyawmm 6 2 d panorama a 3d panorama https youtu be 1owbsr8ztp0 6 3 panocatcher https youtu be dccjgzmdwj0 7 tracking 7 1 mot method name title paper author rate cda ddalv2 confidence based data association and discriminative deep appearance learning for robust online multi object tracking papers 07893777 pdf tpami mla bae seung hwan and kuk jin yoon reading now fwt fusion of head and full body detectors for multi object tracking papers 1705 08314 pdf cvpr18 roberto henschel laura leal taixe daniel cremers bodo rosenhahn reading now lmp multiple people tracking by lifted multicut and person re identification papers multiple people tracking pdf cvpr17 tang siyu et al reading now nllmpa joint graph decomposition node labeling problem algorithms applications papers 1611 04399 pdf cvpr17 levinkov evgeny et al reading now quadmot16 multi object tracking with quadruplet convolutional neural networks papers 08099886 pdf cvpr17 son jeany et al reading now edmt enhancing detection model for multiple hypothesis tracking papers chen enhancing detection model cvpr17w chen jiahui et al reading now amir tracking the untrackable learning to track multiple cues with long term dependencies papers 1701 01909 pdf iccv17 sadeghian amir alexandre alahi and silvio savarese reading now stam16 online multi object tracking using cnn based single object tracker with spatial temporal attention mechanism papers 1708 02843 pdf iccv17 chu qi et al reading now linf1 improving multi frame data association with sparse representations for robust near online multi object tracking papers 978 3 319 46484 8 47 pdf eccv16 l fagot bouquet r audigier y dhome f lerasle reading now eamtt multi target tracking with strong and weak detections papers eamtt pdf eccv16w r sanchez matilla f poiesi a cavallaro reading now lttsc crf long term time sensitive costs for crf based tracking by detection papers lttsc crf pdf eccv16w le nam alexander heili and jean marc odobez reading now dataset pets2009 http www cvg reading ac uk pets2009 a html an old dataset br kitti tracking http www cvlibs net datasets kitti eval tracking php multi person or multi car tracking dataset br mot dataset https motchallenge net a dataset for multi person detection and tracking mostly used br ua detrac http detrac db rit albany edu a dataset for multi car detection and tracking br avss2018 challenge https iwt4s2018 wordpress com challenge avss2018 challenge based on ua detrac is opened br dukemtmc http vision cs duke edu dukemtmc a dataset for multi camera multi person tracking br posetrack https posetrack net a dataset for multi person pose tracking br nvidia ai city challenge https www aicitychallenge org challenges including traffic flow analysis anomaly detection and multi sensor vehicle detection and reidentification you may find some insteresting codes on their github repos https github com nvidiaaicitychallenge br vis drone http www aiskyeye com views index tracking videos captured by drone mounted cameras br jta dataset http imagelab ing unimore it imagelab page asp idpage 25 a huge dataset for pedestrian pose estimation and tracking in urban scenarios created by exploiting the highly photorealistic video game grand theft auto v developed by rockstar north br review p emami pm pardalos l elefteriadou s ranka machine learning methods for solving assignment problems in multi target tracking paper http xueshu baidu com s wd paperuri 3a 28dcfbdc0f8f79fe44d9166fd2481e37aa 29 filter sc long sign tn se xueshusource 2kduw22v sc vurl http 3a 2f 2farxiv org 2fpdf 2f1802 06897 ie utf 8 sc us 15766836095004964816 br wenhan luo junliang xing anton milan xiaoqin zhang wei liu xiaowei zhao and tae kyun kim multiple object tracking a literature review paper http pdfs semanticscholar org 3dff acda086689c1bcb01a8dad4557a4e92b8205 pdf br evaluation metric clear mot bernardin k stiefelhagen r evaluating multiple object tracking performance the clear mot metric paper https cvhci anthropomatik kit edu images stories msmmi papers eurasip2008 pdf br idf1 ristani e solera f zou r cucchiara r tomasi c performance measures and a data set for multi target multi camera tracking paper https users cs duke edu ristani bmtt2016 ristani2016mtmc pdf br researcher anton milan webpage and his source code http www milanton de br laura leal taix webpage and her source code https lealtaixe github io publications br dynamic vision and learning group webpage and their source code https dvl in tum de research mot br longyin wen webpage and his source code http www cbsr ia ac cn users lywen br ucf webpage http crcv ucf edu projects tracking br some source codes in above webpage are not listed in below open source such as br segtrack br exploiting hierarchical dense structures on hypergraphs for multi object tracking br learning an image based motion context for multiple people tracking br open source batch headtracking shun zhang jinjun wang zelun wang yihong gong yuehu liu multi target tracking by learning local to global trajectory models in pr 2015 paper https www researchgate net publication 265295656 multi target tracking by learning local to global trajectory models code https github com gengshan y headtracking seems like a repo br iou e bochinski v eiselein t sikora high speed tracking by detection without using image information paper http elvera nue tu berlin de files 1517bochinski2017 pdf code https github com bochinski iou tracker in international workshop on traffic and street surveillance for safety and security at ieee avss 2017 2017 br nmgc mot andrii maksai xinchao wang franc ois fleuret and pascal fua non markovian globally consistent multi object tracking paper http openaccess thecvf com content iccv 2017 papers maksai non markovian globally consistent iccv 2017 paper pdf code https github com maksay ptrack cpp in iccv 2017 br d2t christoph feichtenhofer axel pinz andrew zisserman detect to track and track to detect paper http openaccess thecvf com content iccv 2017 papers feichtenhofer detect to track iccv 2017 paper pdf code https github com feichtenhofer detect track in iccv 2017 br h2t longyin wen wenbo li junjie yan zhen lei dong yi stan z li multiple target tracking based on undirected hierarchical relation hypergraph paper http www cbsr ia ac cn users lywen papers cvpr2014 hypergraphmultitargetstracker pdf code http www cbsr ia ac cn users lywen ieee conference on computer vision and pattern recognition cvpr 2014 br ldct f solera s calderara r cucchiara learning to divide and conquer for online multi target tracking paper http ieeexplore ieee org document 7410854 code page 1 https github com francescosolera ldct code page 2 http imagelab ing unimore it imagelab researchactivity asp idactivity 09 in proceedings of international converence on computer vision iccv santiago cile dec 12 18 2015 br cem anton milan stefan roth konrad schindler continuous energy minimization for multi target tracking paper http www milanton de files pami2014 pami2014 anton pdf code http www milanton de contracking in pami 2014 br opcnf chari visesh and lacoste julien simon and laptev ivan and sivic josef on pairwise costs for network flow multi object tracking paper https arxiv org abs 1408 3304 code http www di ens fr willow research flowtrack in cvpr 2015 br ksp j berclaz f fleuret e t retken and p fua multiple object tracking using k shortest paths optimization paper https cvlab epfl ch files content sites cvlab2 files publications publications 2011 berclazftf11 pdf code https cvlab epfl ch software ksp ieee transactions on pattern analysis and machine intelligence 2011 br gmcp amir roshan zamir afshin dehghan and mubarak shah gmcp tracker global multi object tracking using generalized minimum clique graphs paper http crcv ucf edu papers eccv2012 gmcp tracker eccv12 pdf code http crcv ucf edu projects gmcp tracker european conference on computer vision eccv 2012 br online motdt long chen haizhou ai real time multiple people tracking with deeply learned candidate selection and person re identification in icme 2018 code https github com longcw motdt paper https www researchgate net publication 326224594 real time multiple people tracking with deeply learned candidate selection and person re identification br tmport e ristani and c tomasi tracking multiple people online and in real time in accv 2014 paper https users cs duke edu tomasi papers ristani ristaniaccv14 pdf code http vision cs duke edu dukemtmc br mot rnn anton milan seyed hamid rezatofighi anthony dick konrad schindler ian reid online multi target tracking using recurrent neural networks paper http www milanton de files aaai2017 aaai2017 anton rnntracking pdf code https bitbucket org amilan rnntracking in aaai 2017 br deepsort wojke nicolai and bewley alex and paulus dietrich simple online and realtime tracking with a deep association metric paper https arxiv org abs 1703 07402 code https github com nwojke deep sort in icip 2017 br sort bewley alex and ge zongyuan and ott lionel and ramos fabio and upcroft ben simple online and realtime tracking paper https arxiv org abs 1602 00763 code https github com abewley sort in icip 2016 br mdp yu xiang alexandre alahi and silvio savarese learning to track online multi object tracking by decision making paper http openaccess thecvf com content iccv 2015 papers xiang learning to track iccv 2015 paper pdf code http cvgl stanford edu projects mdp tracking in international conference on computer vision iccv 2015 br cmot s h bae and k yoon robust online multi object tracking based on tracklet confidence and online discriminative appearance learning paper https www cv foundation org openaccess content cvpr 2014 papers bae robust online multi object 2014 cvpr paper pdf code https cvl gist ac kr project cmot html in cvpr 2014 br rcmss mohamed a naiel1 m omair ahmad m n s swamy jongwoo lim and ming hsuan yang online multi object tracking via robust collaborative model and sample selection paper https users encs concordia ca rcmss include papers cviu2016 pdf code https users encs concordia ca rcmss computer vision and image understanding 2016 br mht dam chanho kim fuxin li arridhana ciptadi james m rehg multiple hypothesis tracking revisited paper https www cc gatech edu ckim314 papers mhtr iccv2015 pdf code rehg org mht in iccv 2015 br omptth jianming zhang liliana lo presti and stan sclaroff online multi person tracking by tracker hierarchy paper code http cs people bu edu jmzhang tracker hierarchy tracker hierarchy htm proc int conf on advanced video and signal based surveillance avss 2012 br smot c dicle o camps m sznaier the way they move tracking targets with similar appearance paper https www cv foundation org openaccess content iccv 2013 papers dicle the way they 2013 iccv paper pdf code https bitbucket org cdicle smot in iccv 2013 br private detection poi f yu w li q li y liu x shi j yan poi multiple object tracking with high performance detection and appearance feature paper https arxiv org pdf 1610 06136 pdf detection https drive google com open id 0b5aciy41mcahmjczs2p0dfg3emm in bmtt sensetime group limited 2016 br cvpr2017 eldar insafutdinov mykhaylo andriluka leonid pishchulin siyu tang evgeny levinkov bjoern andres bernt schiele art track articulated multi person tracking in the wild paper https arxiv org abs 1612 01465 br manmohan chandraker paul vernaza wongun choi samuel schulter deep network flow for multi object tracking paper http openaccess thecvf com content cvpr 2017 papers schulter deep network flow cvpr 2017 paper pdf br jeany son mooyeol baek minsu cho and bohyung han multi object tracking with quadruplet convolutional neural networks paper http openaccess thecvf com content cvpr 2017 papers son multi object tracking with cvpr 2017 paper pdf br iccv2017 a sadeghian a alahi s savarese tracking the untrackable learning to track multiple cues with long term dependencies paper https arxiv org abs 1701 01909 br andrii maksai xinchao wang franc ois fleuret and pascal fua non markovian globally consistent multi object tracking paper http openaccess thecvf com content iccv 2017 papers maksai non markovian globally consistent iccv 2017 paper pdf code https github com maksay ptrack cpp br christoph feichtenhofer axel pinz andrew zisserman detect to track and track to detect paper http openaccess thecvf com content iccv 2017 papers feichtenhofer detect to track iccv 2017 paper pdf code https github com feichtenhofer detect track br qi chu wanli ouyang xiaogang wang bin liu nenghai yu online multi object tracking using cnn based single object tracker with spatial temporal attention mechanism paper http openaccess thecvf com content iccv 2017 papers chu online multi object tracking iccv 2017 paper pdf br cvpr2018 ristani and c tomasi features for multi target multi camera tracking and re identification paper https arxiv org pdf 1803 10859 pdf code https github com ergysr deepcc br new paper m fabbri f lanzi s calderara a palazzi learning to detect and track visible and occluded body joints in a virtual world paper https www researchgate net publication 323957071 learning to detect and track visible and occluded body joints in a virtual world code waited br cong ma changshui yang fan yang yueqing zhuang ziwei zhang huizhu jia xiaodong xie trajectory factory tracklet cleaving and re connection by deep siamese bi gru for multiple object tracking in icme 2018 paper https arxiv org abs 1804 04555 br kuan fang yu xiang xiaocheng li and silvio savarese recurrent autoregressive networks for online multi object tracking in ieee winter conference on applications of computer vision wacv 2018 webpage http yuxng github io br tharindu fernando simon denman sridha sridharan clinton fookes tracking by prediction a deep generative model for mutli person localisation and tracking in wacv 2018 paper https arxiv org pdf 1803 03347 pdf br multi person face tracking shun zhang yihong gong jia bin huang jongwoo lim jinjun wang narendra ahuja and ming hsuan yang tracking persons of interest via adaptive discriminative features in eccv 2016 paper https link springer com content pdf 10 1007 2f978 3 319 46454 1 26 pdf code https github com shunzhang876 adaptivefeaturelearning br chung ching lin ying hung a prior less method for multi face tracking in unconstrained videos in cvpr 2018 paper http openaccess thecvf com content cvpr 2018 papers lin a prior less method cvpr 2018 paper pdf br multi person pose tracking yuliang xiu jiefeng li haoyu wang yinghong fang cewu lu pose flow efficient online pose tracking paper https arxiv org abs 1802 00977 idea is interesting but the true source code is not opened br bin xiao haiping wu and yichen wei simple baselines for human pose estimation and tracking paper https arxiv org pdf 1804 06208 pdf code https github com microsoft human pose estimation pytorch 7 2 correlation filter 7 3 end to end representation learning for correlation filter based tracking it is a tracking method based on deep learning this author designed a network consisting of correlation filter layer who solved the backpropagation program i have tried this method but it doesn t work well and have some test failure cases as following images cfnetfailcase jpg abstract we present a framework that allows the explicit incorporation of global context within cf trackers we reformulate the original optimization problem and provide a closed form solution for single and multidimensional features in the primal and dual domain video paper https arxiv org abs 1704 06036v1 matlab code https github com bertinetto cfnet git python code https github com torrvision siamfc tf advantage it s an end to end tracking method which can be trained directly it can run in real time disadvantage it s will drift with the object occlusion it s will scale wrongly with the object enlarge or being small my opion tracking should be combined both the object feature itself and the context feature 7 4 attentional correlation filter network for adaptive visual tracking paper video https youtu be wccaxliduyi code https github com jongwon20000 acfn git advantage disadvantage slow cannot run in real time 7 5 context aware correlation filter tracking bas 8 action recognition video https youtu be pw6nzxewlgm paper https www youtube com redirect q https 3a 2f 2farxiv org 2fabs 2f1611 08050 event video description v pw6nzxewlgm redir token es81j58crais9gio7m9no sakub8mtuxndaxndiwmuaxntezoti3odax 9 reconstruction video https youtu be z njxbkqnbu paper https arxiv org pdf 1707 06375 pdf video https youtu be uf4 l6h7igm video https youtu be 2cvfhy5jk1c paper http www frc ri cmu edu syang publications icra 2016 pdf code http www frc ri cmu edu syang corridor pop up html 10 detection 11 sementation 12 action recognition 13 point cloud representation 14 summary mask rcnn is amazing but it s not fast enough for real time detection there are lots of computer vision tasks need to be done and only few tasks are finished obejct recognition is the simplest task which is extremly handled and the rate of recognition is more than that of human beings but the majority tasks are still need to be done such as action recogition action predict 3d object recognition 3d object representation 3d action recognition represention of speak smell feel and vision machine vision is the kernel task for robot intelligence so don t worry about nothing to do in this field 15 reference http www themtank org a year in computer vision | ai |
|
tomochain | tomochain build status https travis ci org tomochain tomochain svg branch master https travis ci org tomochain tomochain codecov https codecov io gh tomochain tomochain branch master graph badge svg https codecov io gh tomochain tomochain join the chat at https gitter im tomochain tomochain https badges gitter im tomochain tomochain svg https gitter im tomochain tomochain utm source badge utm medium badge utm campaign pr badge utm content badge about tomochain tomochain is an innovative solution to the scalability problem with the ethereum blockchain our mission is to be a leading force in building the internet of value and its infrastructure we are working to create an alternative scalable financial system which is more secure transparent efficient inclusive and equitable for everyone tomochain relies on a system of 150 masternodes with a proof of stake voting consensus that can support near zero fee and 2 second transaction confirmation times security stability and chain finality are guaranteed via novel techniques such as double validation staking via smart contracts and true randomization processes tomochain supports all evm compatible smart contracts protocols and atomic cross chain token transfers new scaling techniques such as sharding private chain generation and hardware integration will be continuously researched and incorporated into tomochain s masternode architecture this architecture will be an ideal scalable smart contract public blockchain for decentralized apps token issuances and token integrations for small and big businesses more details can be found at our technical white paper https tomochain com wp content uploads 2020 07 technical whitepaper 1 0 pdf read more about us on our website http tomochain com our blogs and announcements https medium com tomochain our documentation portal https docs tomochain com our blockchain explorer https tomoscan io building the source tomochain provides a client binary called tomo for both running a masternode and running a full node building tomo requires both a go 1 7 and c compiler install both of these once the dependencies are installed just run the below commands bash git clone https github com tomochain tomochain tomochain cd tomochain make tomo alternatively you could quickly download our pre complied binary from our github release page https github com tomochain tomochain releases running tomo running a tomo masternode please refer to the official documentation https docs tomochain com get started run node on how to run a node if your goal is to run a masternode the recommanded ways of running a node and applying to become a masternode are explained in detail there attaching to the tomochain test network we published our test network 2 0 with full implementation of posv consensus at https stats testnet tomochain com if you d like to experiment with smart contract creation and dapps you might be interested to give these a try on our testnet in order to connect to one of the masternodes on the testnet just run the command below bash tomo attach https rpc testnet tomochain com this will open the javascript console and let you query the blockchain directly via rpc running tomo locally download genesis block genesis path location of genesis file you would like to put bash export genesis path path to genesis json testnet bash curl l https raw githubusercontent com tomochain tomochain master genesis testnet json o genesis path mainnet bash curl l https raw githubusercontent com tomochain tomochain master genesis mainnet json o genesis path create datadir create a folder to store tomochain data on your machine bash export data dir path to your data folder mkdir p data dir tomo initialize the chain from genesis bash tomo init genesis path datadir data dir initialize import accounts for the nodes s keystore if you already had an existing account import it otherwise please initialize new accounts bash export keystore dir path to keystore initialize new accounts bash tomo account new password your password file to lock your account keystore keystore dir import accounts bash tomo account import private key file of your account keystore keystore dir password your password file to lock your account list all available accounts in keystore folder bash tomo account list datadir keystore keystore dir start a node environment variables identity the name of your node password the password file to unlock your account your coinbase address address of your account which generated in the previous step network id the networkid mainnet 88 testnet 89 bootnodes the comma separated list of bootnodes find them here https docs tomochain com general networks ws secret the password to send data to the stats website find them here https docs tomochain com general networks netstats host the stats website to report to regarding to your environment find them here https docs tomochain com general networks netstats port the port used by the stats website usually 443 let s start a node bash tomo syncmode full datadir data dir networkid network id port 30303 keystore keystore dir password password rpc rpccorsdomain rpcaddr 0 0 0 0 rpcport 8545 rpcvhosts rpcapi db eth net web3 personal debug gcmode archive ws wsaddr 0 0 0 0 wsport 8546 wsorigins unlock your coinbase address identity identity mine gasprice 2500 bootnodes bootnodes ethstats identity ws secret netstats host netstats port console some explanations on the flags verbosity log level from 1 to 5 here we re using 4 for debug messages datadir path to your data directory created above keystore path to your account s keystore created above identity your full node s name password your account s password networkid our network id tomo testnet required when the networkid is testnet 89 port your full node s listening port default to 30303 rpc rpccorsdomain rpcaddr rpcport rpcvhosts your full node will accept rpc requests at 8545 tcp ws wsaddr wsport wsorigins your full node will accept websocket requests at 8546 tcp mine your full node wants to register to be a candidate for masternode selection gasprice minimal gas price to accept for mining a transaction targetgaslimit target gas limit sets the artificial target gas floor for the blocks to mine default 4712388 bootnode bootnode information to help to discover other nodes in the network gcmode blockchain garbage collection mode full archive synmode blockchain sync mode fast full or light more detail https github com tomochain tomochain blob master eth downloader modes go l24 ethstats send data to stats website to see all flags usage bash tomo help see your node on stats page testnet https stats testnet tomochain com mainnet http stats tomochain com contributing and technical discussion thank you for considering to try out our network and or help out with the source code we would love to get your help feel free to lend a hand even the smallest bit of code bug reporting or just discussing ideas are highly appreciated if you would like to contribute to the tomochain source code please refer to our developer guide for details on configuring development environment managing dependencies compiling testing and submitting your code changes to our repo please also make sure your contributions adhere to the base coding guidelines code must adhere to official go formatting https golang org doc effective go html formatting guidelines i e uses gofmt https golang org cmd gofmt code comments must adhere to the official go commentary https golang org doc effective go html commentary guidelines pull requests need to be based on and opened against the master branch any code you are trying to contribute must be well explained as an issue on our github issue page https github com tomochain tomochain issues commit messages should be short but clear enough and should refer to the corresponding pre logged issue mentioned above for technical discussion feel free to join our chat at gitter https gitter im tomochain tomochain | tomochain tomox tomoz posv tomop | blockchain |
Angela-Yu-Web-Bootcamp-2020 | about this repository contents this repository tracks my progress in march 2020 through the beginning of june 2020 completing instructional videos and programming challenges for the complete 2020 web development bootcamp available on udemy com https www udemy com course the complete web development bootcamp each week i watched the videos in the course usually at 2x speed while running on a treadmill at my local gym then later completed the programming exercises in each section about halfway through the course i started the actual programming you ll see the commit logs tracking my progress the sections directory contains brief notes i took as i watched the videos the projects directory containst the actual programming exercises in some cases the exercises were completed using cloud based tools like codepen or codesandbox wherever possible i exported those code exercises to my repository to show my work about my progress at the beginning of the course i had many years of experience in html css and javascript programming i am deeply familiar with many server side programming languages such as ruby php and to a lesser extent python however es6 css3 and modern front end frameworks such as bootstrap were very new it turns out my original schedule to complete the course in 5 weeks was too aggressive watching videos nearly every day but doing the programming only 2 3 hours per week the course took about 3 months to complete this schedule was created for myself with many years of programming experience and my nephew who had only limited html and css experience prior to starting the course original schedule angela yu webdev bootcamp schedule png i had no previous experience to any kind of server side javascript development like nodejs or express i found that i much prefer development in these environments compared to frameworks like ruby on rails where there s a little too much magic behind the scenes being done by generators and perhaps too much convention over configuration i like the balance that codes with nodejs where you can easily see your routes and template files of course nodejs and express owe a lot to ruby on rails and i brought forth some of my knowledge there early into this course you ll note that i built a singleton library to handle most of the mongodb which forced me to better understand the asynchronous nature of using callbacks in my nodejs code this slowed my progress but i feel like i achieved more course information on udemy angela yu and her group at the london app brewery did a fantastic job building this course this web development 2020 boot camp is only one of many courses from angela i have watched over the last couple of years i strongly recommend you check out all of her courses from ios and swift mobile app development to her newer courses in data science she has developed a format for beginners that is very engaging encouraging and progressive https www udemy com course ios 13 app development bootcamp https www udemy com course flutter bootcamp with dart capstone my final project not officially a part of the course is an effort to combine the secrets project which uses nodejs express and mongodb as a backend and keeper which uses reactjs as a front end i ve successfully deployed both apps separately to heroku using a mongodb atlas backend for access on the cloud i also used the dotenv package to make it easy to run both apps locally on my development laptops which includes both a 2010 model unibody macbook running macos high sierra as well as a more modern and powerful macbook pro running macos catalina it s not clear if i ll actually complete this capstone exploring several blog posts on the subject there are a few additional frameworks i should learn that would make this a lot easier i ve just started london app brewery s complete 2020 data science and machine learning bootcamp so this capstone project may end up taking the back burner for a few months https www udemy com course python data science machine learning bootcamp | front_end |
|
Beginners | beginners c c java and web development code for students of lean in igdtu this is the codebase that you guys can read and solve the issue to give a start to your open source journey you can contribute by making pull request https help github com articles creating a pull request you can suggest improvements by opening an issue or you can solve an existing issue it s advicable to link the issue that you solved in the respective pull request by leaving a comment you are free to ask your doubts on our group or even by opening an issue enjoy contributing | front_end |
|
terra-starter | buildspace web3 app on terra project welcome to get started with this project clone this repo and follow these commands 1 run yarn install at the root of your directory 2 run yarn start to start the project 3 start coding what is the vscode folder if you use vscode to build your app we included a list of suggested extensions that will help you build this project once you open this project in vscode you will see a popup asking if you want to download the recommended extensions questions have some questions make sure you head over to your buildspace dashboard https app buildspace so and link your discord account so you can get access to helpful channels teaching assistants and your instructor | front_end |
|
web-starter | archived web starter dependency status https img shields io david racse1 web starter svg https david dm org racse1 web starter devdependency status https img shields io david dev racse1 web starter svg https david dm org racse1 web starter type dev web starter is a simple web development toolset feature tools used html pug https pugjs org css postcss http postcss org csso https github com css csso suit css https suitcss github io javascript webpack https webpack js org babel https babeljs io uglifyjs http lisperator net uglifyjs images imagemin https github com imagemin imagemin svg sprite https github com jkphl svg sprite code linting stylelint http stylelint io eslint http eslint org live updating browsersync https browsersync io system requirements this toolset uses some features of unix like operating systems if you use windows please make sure you have git bash installed additionally you will need to manually add make 1 go to msys2 package repository http repo msys2 org msys x86 64 and download latest version of make 2 merge contents of usr folder into c program files git usr 3 open git bash and check that make command is available installation install dependencies npm install usage to build all resources run make to start static server and watch files for changes run make serve additionally you can take a look at the makefile makefile for more information about available commands acknowledgements web starter kit by google https developers google com web tools starter kit task automation with npm run by james halliday http substack net task automation with npm run source code for philipwalton com by philip walton https github com philipwalton blog auto build css js etc by tj holowaychuk https github com tj watch auto build css js etc license code available under mit license license | front_end |
|
Song-Play-Data-WareHouse-RedShift | sparkify song play data warehouse on aws redshift project udacity data engineering course 2 cloud data warehouses final course project assignment a music streaming startup sparkify stores all it s key event data on s3 this project implements a redshift data warehouse to consume this data from s3 load the data to redshift staging tables then transform the staged data and load it into the analytical tables and this point any analysis can easily be carried out the whole project is based on mainly aws boto3 python sdk and psycopg2 postgresql library contents 1 data to be used the data is stored in a s3 bucket 1 listening events for it s streaming data as json logfiles 2 song data for all tracks available on it s service as json files 2 python scripts in folder root and order of execution 1 create redshift cluster test connection py provisions a redshift cluster associates appropriate iam roles with the cluster allows tcp connections and tests a connection to the cluster using dwh cfg parameters br after running update the endpoint in dwh cfg for all files to use 2 sql queries py redshift queries to create delete database tables load s3 data to staging tables and insert staged data into final destination tables br the distribution of data in the cluster is also specified here with the distkey and sortkey for applicable tables 3 create tables py imports queries deletes then creates all tables 4 etl py loads data into staging tables from s3 then transforms and loads that data into the warehouse tables 3 dwh cfg contains aws and redshift parameters to run first create cluster update dwh cfg then create tables then run etl obira daniel august 2022 database schema database schema db schema png | cloud |
|
SQL-Proyect | sql proyect este proyecto fue desarrollado durante el per odo de la cursada de base de datos en la universidad nacional del centro de la provincia de buenos aires en la carrera de ingenieria de software comprende un proyecto dado por enunciado con una problematica para una base de datos sql funcional y real this project was developed during the period of the database course at the national university of the center of the province of buenos aires in the software engineering career it includes a project given by statement with a problem for a real and functional sql database | server |
|
Web-Design-And-Management | web design and management information technology major | server |
|
IbottaFS | ibottafs to see a video demo of this app go to https youtu be uzdzsamjz9s my app is called ibottafs which stands for ibotta fun size because it s a miniature version of the ibotta app it runs in xcode 8 for swift 2 3 i wrote this app for my interview job application for the ios developer position at ibotta my version of the ibotta app was designed to work like a checklist app which is different from how the actual ibotta app works today the idea behind my app flow was to do something different because i realized that when i make my shopping list i first decide what i want to buy and then decide where i m going to shop so ibottafs allows the user to search offers by category instead of by retailer which is what the current ibotta app does the first screen represents your shopping list a list of offers on products you would like to buy and where to find those offers it is prepopulated with some hard coded offers just for this demo to give an idea of what the offers will look like before you start on the first screen click on the sign to browse offers by category go through several tableviews to search for the offer that you want and when you reach an offer detail screen click add that adds your offer to the offer checklist which is the first screen and returns you to the offer checklist then when you ve added all the offers you want to the checklist you can see at a glance which retailer s offer most or all of the offers that you selected when you get to an offer detail screen you can also select retailers for this offer to see the list of retailers for that offer in its own tableview the offer detail screen is also available from the offers in the offer checklist i tried to follow an mvvc framework as best as i could providing model classes and model management classes for the data objects so that the viewcontrollers don t get too big they say that mvvc is a better framework to follow now than traditional mvc | os |
|
Nepali-Stopwords | nepali stopwords a list of stopwords commonly used words that can ignore for natural language processing for nepali language | ai |
|
NLP-Notebooks | nlp tutorial natural language processing https www topbots com generalized language models tasks datasets | nlp language-model intent-classification intent-detection sentimental-analysis entity-extraction named-entity-recognition machine-translation nlp-tutorial topic-modeling | ai |
kobalte | kobalte license badge https github com kobaltedev kobalte license license badge https img shields io github license kobaltedev kobalte a ui toolkit for building accessible web apps and design systems with solidjs packages name version description kobalte core packages core core npm https www npmjs com package kobalte core unstyled components and primitives for building accessible web apps and design systems kobalte tailwindcss packages tailwindcss tailwindcss npm https www npmjs com package kobalte tailwindcss a tailwindcss plugin for styling kobalte components states data attributes by using modifiers like ui expanded kobalte vanilla extract packages vanilla extract vanilla extract npm https www npmjs com package kobalte vanilla extract a vanilla extract plugin for styling kobalte components states data attributes by using an utility function core npm https img shields io npm v kobalte core tailwindcss npm https img shields io npm v kobalte tailwindcss vanilla extract npm https img shields io npm v kobalte vanilla extract documentation for full documentation visit kobalte dev https kobalte dev roadmap view roadmap give feedback and vote for new features at https kobalte canny io acknowledgment ariakit https ariakit org radix ui https www radix ui com react aria https react spectrum adobe com react aria zag https zagjs com license this project is licensed under the mit license | component-library design-system solidjs ui | os |
coursera-fewdwr | this project was bootstrapped with create react app https github com facebookincubator create react app below you will find some information on how to perform common tasks br you can find the most recent version of this guide here https github com facebookincubator create react app blob master packages react scripts template readme md table of contents updating to new releases updating to new releases sending feedback sending feedback folder structure folder structure available scripts available scripts npm start npm start npm test npm test npm run build npm run build npm run eject npm run eject supported browsers supported browsers supported language features and polyfills supported language features and polyfills syntax highlighting in the editor syntax highlighting in the editor displaying lint output in the editor displaying lint output in the editor debugging in the editor debugging in the editor formatting code automatically formatting code automatically changing the page title changing the page title installing a dependency installing a dependency importing a component importing a component code splitting code splitting adding a stylesheet adding a stylesheet post processing css post processing css adding a css preprocessor sass less etc adding a css preprocessor sass less etc adding images fonts and files adding images fonts and files using the public folder using the public folder changing the html changing the html adding assets outside of the module system adding assets outside of the module system when to use the public folder when to use the public folder using global variables using global variables adding bootstrap adding bootstrap using a custom theme using a custom theme adding flow adding flow adding a router adding a router adding custom environment variables adding custom environment variables referencing environment variables in the html referencing environment variables in the html adding temporary environment variables in your shell adding temporary environment variables in your shell adding development environment variables in env adding development environment variables in env can i use decorators can i use decorators fetching data with ajax requests fetching data with ajax requests integrating with an api backend integrating with an api backend node node ruby on rails ruby on rails proxying api requests in development proxying api requests in development invalid host header errors after configuring proxy invalid host header errors after configuring proxy configuring the proxy manually configuring the proxy manually configuring a websocket proxy configuring a websocket proxy using https in development using https in development generating dynamic meta tags on the server generating dynamic meta tags on the server pre rendering into static html files pre rendering into static html files injecting data from the server into the page injecting data from the server into the page running tests running tests filename conventions filename conventions command line interface command line interface version control integration version control integration writing tests writing tests testing components testing components using third party assertion libraries using third party assertion libraries initializing test environment initializing test environment focusing and excluding tests focusing and excluding tests coverage reporting coverage reporting continuous integration continuous integration disabling jsdom disabling jsdom snapshot testing snapshot testing editor integration editor integration debugging tests debugging tests debugging tests in chrome debugging tests in chrome debugging tests in visual studio code debugging tests in visual studio code developing components in isolation developing components in isolation getting started with storybook getting started with storybook getting started with styleguidist getting started with styleguidist publishing components to npm publishing components to npm making a progressive web app making a progressive web app opting out of caching opting out of caching offline first considerations offline first considerations progressive web app metadata progressive web app metadata analyzing the bundle size analyzing the bundle size deployment deployment static server static server other solutions other solutions serving apps with client side routing serving apps with client side routing building for relative paths building for relative paths azure azure firebase firebase github pages github pages heroku heroku netlify netlify now now s3 and cloudfront s3 and cloudfront surge surge advanced configuration advanced configuration troubleshooting troubleshooting npm start doesn t detect changes npm start doesnt detect changes npm test hangs on macos sierra npm test hangs on macos sierra npm run build exits too early npm run build exits too early npm run build fails on heroku npm run build fails on heroku npm run build fails to minify npm run build fails to minify moment js locales are missing momentjs locales are missing alternatives to ejecting alternatives to ejecting something missing something missing updating to new releases create react app is divided into two packages create react app is a global command line utility that you use to create new projects react scripts is a development dependency in the generated projects including this one you almost never need to update create react app itself it delegates all the setup to react scripts when you run create react app it always creates the project with the latest version of react scripts so you ll get all the new features and improvements in newly created apps automatically to update an existing project to a new version of react scripts open the changelog https github com facebookincubator create react app blob master changelog md find the version you re currently on check package json in this folder if you re not sure and apply the migration instructions for the newer versions in most cases bumping the react scripts version in package json and running npm install in this folder should be enough but it s good to consult the changelog https github com facebookincubator create react app blob master changelog md for potential breaking changes we commit to keeping the breaking changes minimal so you can upgrade react scripts painlessly sending feedback we are always open to your feedback https github com facebookincubator create react app issues folder structure after creation your project should look like this my app readme md node modules package json public index html favicon ico src app css app js app test js index css index js logo svg for the project to build these files must exist with exact filenames public index html is the page template src index js is the javascript entry point you can delete or rename the other files you may create subdirectories inside src for faster rebuilds only files inside src are processed by webpack br you need to put any js and css files inside src otherwise webpack won t see them only files inside public can be used from public index html br read instructions below for using assets from javascript and html you can however create more top level directories br they will not be included in the production build so you can use them for things like documentation available scripts in the project directory you can run npm start runs the app in the development mode br open http localhost 3000 http localhost 3000 to view it in the browser the page will reload if you make edits br you will also see any lint errors in the console npm test launches the test runner in the interactive watch mode br see the section about running tests running tests for more information npm run build builds the app for production to the build folder br it correctly bundles react in production mode and optimizes the build for the best performance the build is minified and the filenames include the hashes br your app is ready to be deployed see the section about deployment deployment for more information npm run eject note this is a one way operation once you eject you can t go back if you aren t satisfied with the build tool and configuration choices you can eject at any time this command will remove the single build dependency from your project instead it will copy all the configuration files and the transitive dependencies webpack babel eslint etc right into your project so you have full control over them all of the commands except eject will still work but they will point to the copied scripts so you can tweak them at this point you re on your own you don t have to ever use eject the curated feature set is suitable for small and middle deployments and you shouldn t feel obligated to use this feature however we understand that this tool wouldn t be useful if you couldn t customize it when you are ready for it supported browsers by default the generated project uses the latest version of react you can refer to the react documentation https reactjs org docs react dom html browser support for more information about supported browsers supported language features and polyfills this project supports a superset of the latest javascript standard br in addition to es6 https github com lukehoban es6features syntax features it also supports exponentiation operator https github com rwaldron exponentiation operator es2016 async await https github com tc39 ecmascript asyncawait es2017 object rest spread properties https github com sebmarkbage ecmascript rest spread stage 3 proposal dynamic import https github com tc39 proposal dynamic import stage 3 proposal class fields and static properties https github com tc39 proposal class public fields part of stage 3 proposal jsx https facebook github io react docs introducing jsx html and flow https flowtype org syntax learn more about different proposal stages https babeljs io docs plugins presets stage x experimental presets while we recommend using experimental proposals with some caution facebook heavily uses these features in the product code so we intend to provide codemods https medium com cpojer effective javascript codemods 5a6686bb46fb if any of these proposals change in the future note that the project only includes a few es6 polyfills https en wikipedia org wiki polyfill object assign https developer mozilla org en docs web javascript reference global objects object assign via object assign https github com sindresorhus object assign promise https developer mozilla org en us docs web javascript reference global objects promise via promise https github com then promise fetch https developer mozilla org en docs web api fetch api via whatwg fetch https github com github fetch if you use any other es6 features that need runtime support such as array from or symbol make sure you are including the appropriate polyfills manually or that the browsers you are targeting already support them also note that using some newer syntax features like for of or nonarrayvalue causes babel to emit code that depends on es6 runtime features and might not work without a polyfill when in doubt use babel repl https babeljs io repl to see what any specific syntax compiles down to syntax highlighting in the editor to configure the syntax highlighting in your favorite text editor head to the relevant babel documentation page https babeljs io docs editors and follow the instructions some of the most popular editors are covered displaying lint output in the editor note this feature is available with react scripts 0 2 0 and higher br it also only works with npm 3 or higher some editors including sublime text atom and visual studio code provide plugins for eslint they are not required for linting you should see the linter output right in your terminal as well as the browser console however if you prefer the lint results to appear right in your editor there are some extra steps you can do you would need to install an eslint plugin for your editor first then add a file called eslintrc to the project root js extends react app now your editor should report the linting warnings note that even if you edit your eslintrc file further these changes will only affect the editor integration they won t affect the terminal and in browser lint output this is because create react app intentionally provides a minimal set of rules that find common mistakes if you want to enforce a coding style for your project consider using prettier https github com jlongster prettier instead of eslint style rules debugging in the editor this feature is currently only supported by visual studio code https code visualstudio com and webstorm https www jetbrains com webstorm visual studio code and webstorm support debugging out of the box with create react app this enables you as a developer to write and debug your react code without leaving the editor and most importantly it enables you to have a continuous development workflow where context switching is minimal as you don t have to switch between tools visual studio code you would need to have the latest version of vs code https code visualstudio com and vs code chrome debugger extension https marketplace visualstudio com items itemname msjsdiag debugger for chrome installed then add the block below to your launch json file and put it inside the vscode folder in your app s root directory json version 0 2 0 configurations name chrome type chrome request launch url http localhost 3000 webroot workspaceroot src sourcemappathoverrides webpack src webroot note the url may be different if you ve made adjustments via the host or port environment variables advanced configuration start your app by running npm start and start debugging in vs code by pressing f5 or by clicking the green debug icon you can now write code set breakpoints make changes to the code and debug your newly modified code all from your editor having problems with vs code debugging please see their troubleshooting guide https github com microsoft vscode chrome debug blob master readme md troubleshooting webstorm you would need to have webstorm https www jetbrains com webstorm and jetbrains ide support https chrome google com webstore detail jetbrains ide support hmhgeddbohgjknpmjagkdomcpobmllji chrome extension installed in the webstorm menu run select edit configurations then click and select javascript debug paste http localhost 3000 into the url field and save the configuration note the url may be different if you ve made adjustments via the host or port environment variables advanced configuration start your app by running npm start then press d on macos or f9 on windows and linux or click the green debug icon to start debugging in webstorm the same way you can debug your application in intellij idea ultimate phpstorm pycharm pro and rubymine formatting code automatically prettier is an opinionated code formatter with support for javascript css and json with prettier you can format the code you write automatically to ensure a code style within your project see the prettier s github page https github com prettier prettier for more information and look at this page to see it in action https prettier github io prettier to format our code whenever we make a commit in git we need to install the following dependencies sh npm install save husky lint staged prettier alternatively you may use yarn sh yarn add husky lint staged prettier husky makes it easy to use githooks as if they are npm scripts lint staged allows us to run scripts on staged files in git see this blog post about lint staged to learn more about it https medium com okonetchnikov make linting great again f3890e1ad6b8 prettier is the javascript formatter we will run before commits now we can make sure every file is formatted correctly by adding a few lines to the package json in the project root add the following line to scripts section diff scripts precommit lint staged start react scripts start build react scripts build next we add a lint staged field to the package json for example diff dependencies lint staged src js jsx json css prettier single quote write git add scripts now whenever you make a commit prettier will format the changed files automatically you can also run node modules bin prettier single quote write src js jsx json css to format your entire project for the first time next you might want to integrate prettier in your favorite editor read the section on editor integration https prettier io docs en editors html on the prettier github page changing the page title you can find the source html file in the public folder of the generated project you may edit the title tag in it to change the title from react app to anything else note that normally you wouldn t edit files in the public folder very often for example adding a stylesheet adding a stylesheet is done without touching the html if you need to dynamically update the page title based on the content you can use the browser document title https developer mozilla org en us docs web api document title api for more complex scenarios when you want to change the title from react components you can use react helmet https github com nfl react helmet a third party library if you use a custom server for your app in production and want to modify the title before it gets sent to the browser you can follow advice in this section generating dynamic meta tags on the server alternatively you can pre build each page as a static html file which then loads the javascript bundle which is covered here pre rendering into static html files installing a dependency the generated project includes react and reactdom as dependencies it also includes a set of scripts used by create react app as a development dependency you may install other dependencies for example react router with npm sh npm install save react router alternatively you may use yarn sh yarn add react router this works for any library not just react router importing a component this project setup supports es6 modules thanks to babel br while you can still use require and module exports we encourage you to use import and export http exploringjs com es6 ch modules html instead for example button js js import react component from react class button extends component render export default button don t forget to use export default dangerbutton js js import react component from react import button from button import a component from another file class dangerbutton extends component render return button color red export default dangerbutton be aware of the difference between default and named exports http stackoverflow com questions 36795819 react native es 6 when should i use curly braces for import 36796281 36796281 it is a common source of mistakes we suggest that you stick to using default imports and exports when a module only exports a single thing for example a component that s what you get when you use export default button and import button from button named exports are useful for utility modules that export several functions a module may have at most one default export and as many named exports as you like learn more about es6 modules when to use the curly braces http stackoverflow com questions 36795819 react native es 6 when should i use curly braces for import 36796281 36796281 exploring es6 modules http exploringjs com es6 ch modules html understanding es6 modules https leanpub com understandinges6 read leanpub auto encapsulating code with modules code splitting instead of downloading the entire app before users can use it code splitting allows you to split your code into small chunks which you can then load on demand this project setup supports code splitting via dynamic import http 2ality com 2017 01 import operator html loading code on demand its proposal https github com tc39 proposal dynamic import is in stage 3 the import function like form takes the module name as an argument and returns a promise https developer mozilla org en us docs web javascript reference global objects promise which always resolves to the namespace object of the module here is an example modulea js js const modulea hello export modulea app js js import react component from react class app extends component handleclick import modulea then modulea use modulea catch err handle failure render return div button onclick this handleclick load button div export default app this will make modulea js and all its unique dependencies as a separate chunk that only loads after the user clicks the load button you can also use it with async await syntax if you prefer it with react router if you are using react router check out this tutorial http serverless stack com chapters code splitting in create react app html on how to use code splitting with it you can find the companion github repository here https github com anomalyinnovations serverless stack demo client tree code splitting in create react app also check out the code splitting https reactjs org docs code splitting html section in react documentation adding a stylesheet this project setup uses webpack https webpack js org for handling all assets webpack offers a custom way of extending the concept of import beyond javascript to express that a javascript file depends on a css file you need to import the css from the javascript file button css css button padding 20px button js js import react component from react import button css tell webpack that button js uses these styles class button extends component render you can use them as regular css styles return div classname button this is not required for react but many people find this feature convenient you can read about the benefits of this approach here https medium com seek ui engineering block element modifying your javascript components d7f99fcab52b however you should be aware that this makes your code less portable to other build tools and environments than webpack in development expressing dependencies this way allows your styles to be reloaded on the fly as you edit them in production all css files will be concatenated into a single minified css file in the build output if you are concerned about using webpack specific semantics you can put all your css right into src index css it would still be imported from src index js but you could always remove that import if you later migrate to a different build tool post processing css this project setup minifies your css and adds vendor prefixes to it automatically through autoprefixer https github com postcss autoprefixer so you don t need to worry about it for example this css app display flex flex direction row align items center becomes this css app display webkit box display ms flexbox display flex webkit box orient horizontal webkit box direction normal ms flex direction row flex direction row webkit box align center ms flex align center align items center if you need to disable autoprefixing for some reason follow this section https github com postcss autoprefixer disabling adding a css preprocessor sass less etc generally we recommend that you don t reuse the same css classes across different components for example instead of using a button css class in acceptbutton and rejectbutton components we recommend creating a button component with its own button styles that both acceptbutton and rejectbutton can render but not inherit https facebook github io react docs composition vs inheritance html following this rule often makes css preprocessors less useful as features like mixins and nesting are replaced by component composition you can however integrate a css preprocessor if you find it valuable in this walkthrough we will be using sass but you can also use less or another alternative first let s install the command line interface for sass sh npm install save node sass chokidar alternatively you may use yarn sh yarn add node sass chokidar then in package json add the following lines to scripts diff scripts build css node sass chokidar src o src watch css npm run build css node sass chokidar src o src watch recursive start react scripts start build react scripts build test react scripts test env jsdom note to use a different preprocessor replace build css and watch css commands according to your preprocessor s documentation now you can rename src app css to src app scss and run npm run watch css the watcher will find every sass file in src subdirectories and create a corresponding css file next to it in our case overwriting src app css since src app js still imports src app css the styles become a part of your application you can now edit src app scss and src app css will be regenerated to share variables between sass files you can use sass imports for example src app scss and other component style files could include import shared scss with variable definitions to enable importing files without using relative paths you can add the include path option to the command in package json build css node sass chokidar include path src include path node modules src o src watch css npm run build css node sass chokidar include path src include path node modules src o src watch recursive this will allow you to do imports like scss import styles colors scss assuming a styles directory under src import nprogress nprogress importing a css file from the nprogress node module at this point you might want to remove all css files from the source control and add src css to your gitignore file it is generally a good practice to keep the build products outside of the source control as a final step you may find it convenient to run watch css automatically with npm start and run build css as a part of npm run build you can use the operator to execute two scripts sequentially however there is no cross platform way to run two scripts in parallel so we will install a package for this sh npm install save npm run all alternatively you may use yarn sh yarn add npm run all then we can change start and build scripts to include the css preprocessor commands diff scripts build css node sass chokidar src o src watch css npm run build css node sass chokidar src o src watch recursive start react scripts start build react scripts build start js react scripts start start npm run all p watch css start js build js react scripts build build npm run all build css build js test react scripts test env jsdom eject react scripts eject now running npm start and npm run build also builds sass files why node sass chokidar node sass has been reported as having the following issues node sass watch has been reported to have performance issues in certain conditions when used in a virtual machine or with docker infinite styles compiling 1939 https github com facebookincubator create react app issues 1939 node sass has been reported as having issues with detecting new files in a directory 1891 https github com sass node sass issues 1891 node sass chokidar is used here as it addresses these issues adding images fonts and files with webpack using static assets like images and fonts works similarly to css you can import a file right in a javascript module this tells webpack to include that file in the bundle unlike css imports importing a file gives you a string value this value is the final path you can reference in your code e g as the src attribute of an image or the href of a link to a pdf to reduce the number of requests to the server importing images that are less than 10 000 bytes returns a data uri https developer mozilla org en us docs web http basics of http data uris instead of a path this applies to the following file extensions bmp gif jpg jpeg and png svg files are excluded due to 1153 https github com facebookincubator create react app issues 1153 here is an example js import react from react import logo from logo png tell webpack this js file uses this image console log logo logo 84287d09 png function header import result is the url of your image return img src logo alt logo export default header this ensures that when the project is built webpack will correctly move the images into the build folder and provide us with correct paths this works in css too css logo background image url logo png webpack finds all relative module references in css they start with and replaces them with the final paths from the compiled bundle if you make a typo or accidentally delete an important file you will see a compilation error just like when you import a non existent javascript module the final filenames in the compiled bundle are generated by webpack from content hashes if the file content changes in the future webpack will give it a different name in production so you don t need to worry about long term caching of assets please be advised that this is also a custom feature of webpack it is not required for react but many people enjoy it and react native uses a similar mechanism for images br an alternative way of handling static assets is described in the next section using the public folder note this feature is available with react scripts 0 5 0 and higher changing the html the public folder contains the html file so you can tweak it for example to set the page title changing the page title the script tag with the compiled code will be added to it automatically during the build process adding assets outside of the module system you can also add other assets to the public folder note that we normally encourage you to import assets in javascript files instead for example see the sections on adding a stylesheet adding a stylesheet and adding images and fonts adding images fonts and files this mechanism provides a number of benefits scripts and stylesheets get minified and bundled together to avoid extra network requests missing files cause compilation errors instead of 404 errors for your users result filenames include content hashes so you don t need to worry about browsers caching their old versions however there is an escape hatch that you can use to add an asset outside of the module system if you put a file into the public folder it will not be processed by webpack instead it will be copied into the build folder untouched to reference assets in the public folder you need to use a special variable called public url inside index html you can use it like this html link rel shortcut icon href public url favicon ico only files inside the public folder will be accessible by public url prefix if you need to use a file from src or node modules you ll have to copy it there to explicitly specify your intention to make this file a part of the build when you run npm run build create react app will substitute public url with a correct absolute path so your project works even if you use client side routing or host it at a non root url in javascript code you can use process env public url for similar purposes js render note this is an escape hatch and should be used sparingly normally we recommend using import for getting asset urls as described in adding images and fonts above this section return img src process env public url img logo png keep in mind the downsides of this approach none of the files in public folder get post processed or minified missing files will not be called at compilation time and will cause 404 errors for your users result filenames won t include content hashes so you ll need to add query arguments or rename them every time they change when to use the public folder normally we recommend importing stylesheets adding a stylesheet images and fonts adding images fonts and files from javascript the public folder is useful as a workaround for a number of less common cases you need a file with a specific name in the build output such as manifest webmanifest https developer mozilla org en us docs web manifest you have thousands of images and need to dynamically reference their paths you want to include a small script like pace js http github hubspot com pace docs welcome outside of the bundled code some library may be incompatible with webpack and you have no other option but to include it as a script tag note that if you add a script that declares global variables you also need to read the next section on using them using global variables when you include a script in the html file that defines global variables and try to use one of these variables in the code the linter will complain because it cannot see the definition of the variable you can avoid this by reading the global variable explicitly from the window object for example js const window this makes it obvious you are using a global variable intentionally rather than because of a typo alternatively you can force the linter to ignore any line by adding eslint disable line after it adding bootstrap you don t have to use react bootstrap https react bootstrap github io together with react but it is a popular library for integrating bootstrap with react apps if you need it you can integrate it with create react app by following these steps install react bootstrap and bootstrap from npm react bootstrap does not include bootstrap css so this needs to be installed as well sh npm install save react bootstrap bootstrap 3 alternatively you may use yarn sh yarn add react bootstrap bootstrap 3 import bootstrap css and optionally bootstrap theme css in the beginning of your src index js file js import bootstrap dist css bootstrap css import bootstrap dist css bootstrap theme css put any other imports below so that css from your components takes precedence over default styles import required react bootstrap components within src app js file or your custom component files js import navbar jumbotron button from react bootstrap now you are ready to use the imported react bootstrap components within your component hierarchy defined in the render method here is an example app js https gist githubusercontent com gaearon 85d8c067f6af1e56277c82d19fd4da7b raw 6158dd991b67284e9fc8d70b9d973efe87659d72 app js redone using react bootstrap using a custom theme sometimes you might need to tweak the visual styles of bootstrap or equivalent package br we suggest the following approach create a new package that depends on the package you wish to customize e g bootstrap add the necessary build steps to tweak the theme and publish your package on npm install your own theme npm package as a dependency of your app here is an example of adding a customized bootstrap https medium com tacomanator customizing create react app aa9ffb88165 that follows these steps adding flow flow is a static type checker that helps you write code with fewer bugs check out this introduction to using static types in javascript https medium com preethikasireddy why use static types in javascript part 1 8382da1e0adb if you are new to this concept recent versions of flow http flowtype org work with create react app projects out of the box to add flow to a create react app project follow these steps 1 run npm install save flow bin or yarn add flow bin 2 add flow flow to the scripts section of your package json 3 run npm run flow init or yarn flow init to create a flowconfig file https flowtype org docs advanced configuration html in the root directory 4 add flow to any files you want to type check for example to src app js now you can run npm run flow or yarn flow to check the files for type errors you can optionally use an ide like nuclide https nuclide io docs languages flow for a better integrated experience in the future we plan to integrate it into create react app even more closely to learn more about flow check out its documentation https flowtype org adding a router create react app doesn t prescribe a specific routing solution but react router https reacttraining com react router is the most popular one to add it run sh npm install save react router dom alternatively you may use yarn sh yarn add react router dom to try it delete all the code in src app js and replace it with any of the examples on its website the basic example https reacttraining com react router web example basic is a good place to get started note that you may need to configure your production server to support client side routing serving apps with client side routing before deploying your app adding custom environment variables note this feature is available with react scripts 0 2 3 and higher your project can consume variables declared in your environment as if they were declared locally in your js files by default you will have node env defined for you and any other environment variables starting with react app the environment variables are embedded during the build time since create react app produces a static html css js bundle it can t possibly read them at runtime to read them at runtime you would need to load html into memory on the server and replace placeholders in runtime just like described here injecting data from the server into the page alternatively you can rebuild the app on the server anytime you change them note you must create custom environment variables beginning with react app any other variables except node env will be ignored to avoid accidentally exposing a private key on the machine that could have the same name https github com facebookincubator create react app issues 865 issuecomment 252199527 changing any environment variables will require you to restart the development server if it is running these environment variables will be defined for you on process env for example having an environment variable named react app secret code will be exposed in your js as process env react app secret code there is also a special built in environment variable called node env you can read it from process env node env when you run npm start it is always equal to development when you run npm test it is always equal to test and when you run npm run build to make a production bundle it is always equal to production you cannot override node env manually this prevents developers from accidentally deploying a slow development build to production these environment variables can be useful for displaying information conditionally based on where the project is deployed or consuming sensitive data that lives outside of version control first you need to have environment variables defined for example let s say you wanted to consume a secret defined in the environment inside a form jsx render return div small you are running this application in b process env node env b mode small form input type hidden defaultvalue process env react app secret code form div during the build process env react app secret code will be replaced with the current value of the react app secret code environment variable remember that the node env variable will be set for you automatically when you load the app in the browser and inspect the input you will see its value set to abcdef and the bold text will show the environment provided when using npm start html div small you are running this application in b development b mode small form input type hidden value abcdef form div the above form is looking for a variable called react app secret code from the environment in order to consume this value we need to have it defined in the environment this can be done using two ways either in your shell or in a env file both of these ways are described in the next few sections having access to the node env is also useful for performing actions conditionally js if process env node env production analytics disable when you compile the app with npm run build the minification step will strip out this condition and the resulting bundle will be smaller referencing environment variables in the html note this feature is available with react scripts 0 9 0 and higher you can also access the environment variables starting with react app in the public index html for example html title react app website name title note that the caveats from the above section apply apart from a few built in variables node env and public url variable names must start with react app to work the environment variables are injected at build time if you need to inject them at runtime follow this approach instead generating dynamic meta tags on the server adding temporary environment variables in your shell defining environment variables can vary between oses it s also important to know that this manner is temporary for the life of the shell session windows cmd exe cmd set react app secret code abcdef npm start note quotes around the variable assignment are required to avoid a trailing whitespace windows powershell powershell env react app secret code abcdef and npm start linux macos bash bash react app secret code abcdef npm start adding development environment variables in env note this feature is available with react scripts 0 5 0 and higher to define permanent environment variables create a file called env in the root of your project react app secret code abcdef note you must create custom environment variables beginning with react app any other variables except node env will be ignored to avoid accidentally exposing a private key on the machine that could have the same name https github com facebookincubator create react app issues 865 issuecomment 252199527 changing any environment variables will require you to restart the development server if it is running env files should be checked into source control with the exclusion of env local what other env files can be used note this feature is available with react scripts 1 0 0 and higher env default env local local overrides this file is loaded for all environments except test env development env test env production environment specific settings env development local env test local env production local local overrides of environment specific settings files on the left have more priority than files on the right npm start env development local env development env local env npm run build env production local env production env local env npm test env test local env test env note env local is missing these variables will act as the defaults if the machine does not explicitly set them br please refer to the dotenv documentation https github com motdotla dotenv for more details note if you are defining environment variables for development your ci and or hosting platform will most likely need these defined as well consult their documentation how to do this for example see the documentation for travis ci https docs travis ci com user environment variables or heroku https devcenter heroku com articles config vars expanding environment variables in env note this feature is available with react scripts 1 1 0 and higher expand variables already on your machine for use in your env file using dotenv expand https github com motdotla dotenv expand for example to get the environment variable npm package version react app version npm package version also works react app version npm package version or expand variables local to the current env file domain www example com react app foo domain foo react app bar domain bar can i use decorators many popular libraries use decorators https medium com google developers exploring es7 decorators 76ecb65fb841 in their documentation br create react app doesn t support decorator syntax at the moment because it is an experimental proposal and is subject to change the current specification version is not officially supported by babel if the specification changes we won t be able to write a codemod because we don t use them internally at facebook however in many cases you can rewrite decorator based code without decorators just as fine br please refer to these two threads for reference 214 https github com facebookincubator create react app issues 214 411 https github com facebookincubator create react app issues 411 create react app will add decorator support when the specification advances to a stable stage fetching data with ajax requests react doesn t prescribe a specific approach to data fetching but people commonly use either a library like axios https github com axios axios or the fetch api https developer mozilla org en us docs web api fetch api provided by the browser conveniently create react app includes a polyfill for fetch so you can use it without worrying about the browser support the global fetch function allows to easily makes ajax requests it takes in a url as an input and returns a promise that resolves to a response object you can find more information about fetch here https developer mozilla org en us docs web api fetch api using fetch this project also includes a promise polyfill https github com then promise which provides a full implementation of promises a a promise represents the eventual result of an asynchronous operation you can find more information about promises here https www promisejs org and here https developer mozilla org en us docs web javascript reference global objects promise both axios and fetch use promises under the hood you can also use the async await https davidwalsh name async await syntax to reduce the callback nesting you can learn more about making ajax requests from react components in the faq entry on the react website https reactjs org docs faq ajax html integrating with an api backend these tutorials will help you to integrate your app with an api backend running on another port using fetch to access it node check out this tutorial https www fullstackreact com articles using create react app with a server you can find the companion github repository here https github com fullstackreact food lookup demo ruby on rails check out this tutorial https www fullstackreact com articles how to get create react app to work with your rails api you can find the companion github repository here https github com fullstackreact food lookup demo rails proxying api requests in development note this feature is available with react scripts 0 2 3 and higher people often serve the front end react app from the same host and port as their backend implementation br for example a production setup might look like this after the app is deployed static server returns index html with react app todos static server returns index html with react app api todos server handles any api requests using the backend implementation such setup is not required however if you do have a setup like this it is convenient to write requests like fetch api todos without worrying about redirecting them to another host or port during development to tell the development server to proxy any unknown requests to your api server in development add a proxy field to your package json for example js proxy http localhost 4000 this way when you fetch api todos in development the development server will recognize that it s not a static asset and will proxy your request to http localhost 4000 api todos as a fallback the development server will only attempt to send requests without text html in its accept header to the proxy conveniently this avoids cors issues http stackoverflow com questions 21854516 understanding ajax cors and security considerations and error messages like this in development fetch api cannot load http localhost 4000 api todos no access control allow origin header is present on the requested resource origin http localhost 3000 is therefore not allowed access if an opaque response serves your needs set the request s mode to no cors to fetch the resource with cors disabled keep in mind that proxy only has effect in development with npm start and it is up to you to ensure that urls like api todos point to the right thing in production you don t have to use the api prefix any unrecognized request without a text html accept header will be redirected to the specified proxy the proxy option supports http https and websocket connections br if the proxy option is not flexible enough for you alternatively you can configure the proxy yourself configuring the proxy manually enable cors on your server here s how to do it for express http enable cors org server expressjs html use environment variables adding custom environment variables to inject the right server host and port into your app invalid host header errors after configuring proxy when you enable the proxy option you opt into a more strict set of host checks this is necessary because leaving the backend open to remote hosts makes your computer vulnerable to dns rebinding attacks the issue is explained in this article https medium com webpack webpack dev server middleware security issues 1489d950874a and this issue https github com webpack webpack dev server issues 887 this shouldn t affect you when developing on localhost but if you develop remotely like described here https github com facebookincubator create react app issues 2271 you will see this error in the browser after enabling the proxy option invalid host header to work around it you can specify your public development host in a file called env development in the root of your project host mypublicdevhost com if you restart the development server now and load the app from the specified host it should work if you are still having issues or if you re using a more exotic environment like a cloud editor you can bypass the host check completely by adding a line to env development local note that this is dangerous and exposes your machine to remote code execution from malicious websites note this is dangerous it exposes your machine to attacks from the websites you visit dangerously disable host check true we don t recommend this approach configuring the proxy manually note this feature is available with react scripts 1 0 0 and higher if the proxy option is not flexible enough for you you can specify an object in the following form in package json br you may also specify any configuration value http proxy middleware https github com chimurai http proxy middleware options or http proxy https github com nodejitsu node http proxy options supports js proxy api target url ws true all requests matching this path will be proxies no exceptions this includes requests for text html which the standard proxy option does not proxy if you need to specify multiple proxies you may do so by specifying additional entries matches are regular expressions so that you can use a regexp to match multiple paths js proxy matches any request starting with api api target url 1 ws true matches any request starting with foo foo target url 2 ssl true pathrewrite foo foo beta matches bar abc html but not bar sub def html bar html target url 3 matches baz abc html and baz sub def html baz html target url 4 configuring a websocket proxy when setting up a websocket proxy there are a some extra considerations to be aware of if you re using a websocket engine like socket io https socket io you must have a socket io server running that you can use as the proxy target socket io will not work with a standard websocket server specifically don t expect socket io to work with the websocket org echo test http websocket org echo html there s some good documentation available for setting up a socket io server https socket io docs standard websockets will work with a standard websocket server as well as the websocket org echo test you can use libraries like ws https github com websockets ws for the server with native websockets in the browser https developer mozilla org en us docs web api websocket either way you can proxy websocket requests manually in package json js proxy socket your compatible websocket server target ws socket url tell http proxy middleware that this is a websocket proxy also allows you to proxy websocket requests without an additional http request https github com chimurai http proxy middleware external websocket upgrade ws true using https in development note this feature is available with react scripts 0 4 0 and higher you may require the dev server to serve pages over https one particular case where this could be useful is when using the proxy feature proxying api requests in development to proxy requests to an api server when that api server is itself serving https to do this set the https environment variable to true then start the dev server as usual with npm start windows cmd exe cmd set https true npm start windows powershell powershell env https true and npm start note the lack of whitespace is intentional linux macos bash bash https true npm start note that the server will use a self signed certificate so your web browser will almost definitely display a warning upon accessing the page generating dynamic meta tags on the server since create react app doesn t support server rendering you might be wondering how to make meta tags dynamic and reflect the current url to solve this we recommend to add placeholders into the html like this html doctype html html lang en head meta property og title content og title meta property og description content og description then on the server regardless of the backend you use you can read index html into memory and replace og title og description and any other placeholders with values depending on the current url just make sure to sanitize and escape the interpolated values so that they are safe to embed into html if you use a node server you can even share the route matching logic between the client and the server however duplicating it also works fine in simple cases pre rendering into static html files if you re hosting your build with a static hosting provider you can use react snapshot https www npmjs com package react snapshot or react snap https github com stereobooster react snap to generate html pages for each route or relative link in your application these pages will then seamlessly become active or hydrated when the javascript bundle has loaded there are also opportunities to use this outside of static hosting to take the pressure off the server when generating and caching routes the primary benefit of pre rendering is that you get the core content of each page with the html payload regardless of whether or not your javascript bundle successfully downloads it also increases the likelihood that each route of your application will be picked up by search engines you can read more about zero configuration pre rendering also called snapshotting here https medium com superhighfives an almost static stack 6df0a2791319 injecting data from the server into the page similarly to the previous section you can leave some placeholders in the html that inject global variables for example js doctype html html lang en head script window server data server data script then on the server you can replace server data with a json of real data right before sending the response the client code can then read window server data to use it make sure to sanitize the json before sending it to the client https medium com node security the most common xss vulnerability in react js applications 2bdffbcc1fa0 as it makes your app vulnerable to xss attacks running tests note this feature is available with react scripts 0 3 0 and higher br read the migration guide to learn how to enable it in older projects https github com facebookincubator create react app blob master changelog md migrating from 023 to 030 create react app uses jest https facebook github io jest as its test runner to prepare for this integration we did a major revamp https facebook github io jest blog 2016 09 01 jest 15 html of jest so if you heard bad things about it years ago give it another try jest is a node based runner this means that the tests always run in a node environment and not in a real browser this lets us enable fast iteration speed and prevent flakiness while jest provides browser globals such as window thanks to jsdom https github com tmpvar jsdom they are only approximations of the real browser behavior jest is intended to be used for unit tests of your logic and your components rather than the dom quirks we recommend that you use a separate tool for browser end to end tests if you need them they are beyond the scope of create react app filename conventions jest will look for test files with any of the following popular naming conventions files with js suffix in tests folders files with test js suffix files with spec js suffix the test js spec js files or the tests folders can be located at any depth under the src top level folder we recommend to put the test files or tests folders next to the code they are testing so that relative imports appear shorter for example if app test js and app js are in the same folder the test just needs to import app from app instead of a long relative path colocation also helps find tests more quickly in larger projects command line interface when you run npm test jest will launch in the watch mode every time you save a file it will re run the tests just like npm start recompiles the code the watcher includes an interactive command line interface with the ability to run all tests or focus on a search pattern it is designed this way so that you can keep it open and enjoy fast re runs you can learn the commands from the watch usage note that the watcher prints after every run jest watch mode http facebook github io jest img blog 15 watch gif version control integration by default when you run npm test jest will only run the tests related to files changed since the last commit this is an optimization designed to make your tests run fast regardless of how many tests you have however it assumes that you don t often commit the code that doesn t pass the tests jest will always explicitly mention that it only ran tests related to the files changed since the last commit you can also press a in the watch mode to force jest to run all tests jest will always run all tests on a continuous integration continuous integration server or if the project is not inside a git or mercurial repository writing tests to create tests add it or test blocks with the name of the test and its code you may optionally wrap them in describe blocks for logical grouping but this is neither required nor recommended jest provides a built in expect global function for making assertions a basic test could look like this js import sum from sum it sums numbers expect sum 1 2 toequal 3 expect sum 2 2 toequal 4 all expect matchers supported by jest are extensively documented here https facebook github io jest docs en expect html content br you can also use jest fn and expect fn tobecalled https facebook github io jest docs en expect html tohavebeencalled to create spies or mock functions testing components there is a broad spectrum of component testing techniques they range from a smoke test verifying that a component renders without throwing to shallow rendering and testing some of the output to full rendering and testing component lifecycle and state changes different projects choose different testing tradeoffs based on how often components change and how much logic they contain if you haven t decided on a testing strategy yet we recommend that you start with creating simple smoke tests for your components js import react from react import reactdom from react dom import app from app it renders without crashing const div document createelement div reactdom render app div this test mounts a component and makes sure that it didn t throw during rendering tests like this provide a lot of value with very little effort so they are great as a starting point and this is the test you will find in src app test js when you encounter bugs caused by changing components you will gain a deeper insight into which parts of them are worth testing in your application this might be a good time to introduce more specific tests asserting specific expected output or behavior if you d like to test components in isolation from the child components they render we recommend using shallow rendering api http airbnb io enzyme docs api shallow html from enzyme http airbnb io enzyme to install it run sh npm install save enzyme enzyme adapter react 16 react test renderer alternatively you may use yarn sh yarn add enzyme enzyme adapter react 16 react test renderer as of enzyme 3 you will need to install enzyme along with an adapter corresponding to the version of react you are using the examples above use the adapter for react 16 the adapter will also need to be configured in your global setup file initializing test environment src setuptests js js import configure from enzyme import adapter from enzyme adapter react 16 configure adapter new adapter note keep in mind that if you decide to eject before creating src setuptests js the resulting package json file won t contain any reference to it read here initializing test environment to learn how to add this after ejecting now you can write a smoke test with it js import react from react import shallow from enzyme import app from app it renders without crashing shallow app unlike the previous smoke test using reactdom render this test only renders app and doesn t go deeper for example even if app itself renders a button that throws this test will pass shallow rendering is great for isolated unit tests but you may still want to create some full rendering tests to ensure the components integrate correctly enzyme supports full rendering with mount http airbnb io enzyme docs api mount html and you can also use it for testing state changes and component lifecycle you can read the enzyme documentation http airbnb io enzyme for more testing techniques enzyme documentation uses chai and sinon for assertions but you don t have to use them because jest provides built in expect and jest fn for spies here is an example from enzyme documentation that asserts specific output rewritten to use jest matchers js import react from react import shallow from enzyme import app from app it renders welcome message const wrapper shallow app const welcome h2 welcome to react h2 expect wrapper contains welcome to equal true expect wrapper contains welcome toequal true all jest matchers are extensively documented here http facebook github io jest docs en expect html br nevertheless you can use a third party assertion library like chai http chaijs com if you want to as described below additionally you might find jest enzyme https github com blainekasten enzyme matchers helpful to simplify your tests with readable matchers the above contains code can be written more simply with jest enzyme js expect wrapper tocontainreact welcome to enable this install jest enzyme sh npm install save jest enzyme alternatively you may use yarn sh yarn add jest enzyme import it in src setuptests js initializing test environment to make its matchers available in every test js import jest enzyme using third party assertion libraries we recommend that you use expect for assertions and jest fn for spies if you are having issues with them please file those against jest https github com facebook jest issues new and we ll fix them we intend to keep making them better for react supporting for example pretty printing react elements as jsx https github com facebook jest pull 1566 however if you are used to other libraries such as chai http chaijs com and sinon http sinonjs org or if you have existing code using them that you d like to port over you can import them normally like this js import sinon from sinon import expect from chai and then use them in your tests like you normally do initializing test environment note this feature is available with react scripts 0 4 0 and higher if your app uses a browser api that you need to mock in your tests or if you just need a global setup before running your tests add a src setuptests js to your project it will be automatically executed before running your tests for example src setuptests js js const localstoragemock getitem jest fn setitem jest fn clear jest fn global localstorage localstoragemock note keep in mind that if you decide to eject before creating src setuptests js the resulting package json file won t contain any reference to it so you should manually create the property setuptestframeworkscriptfile in the configuration for jest something like the following js jest setuptestframeworkscriptfile rootdir src setuptests js focusing and excluding tests you can replace it with xit to temporarily exclude a test from being executed br similarly fit lets you focus on a specific test without running any other tests coverage reporting jest has an integrated coverage reporter that works well with es6 and requires no configuration br run npm test coverage note extra in the middle to include a coverage report like this coverage report http i imgur com 5bfhnts png note that tests run much slower with coverage so it is recommended to run it separately from your normal workflow configuration the default jest coverage configuration can be overriden by adding any of the following supported keys to a jest config in your package json supported overrides collectcoveragefrom https facebook github io jest docs en configuration html collectcoveragefrom array coveragereporters https facebook github io jest docs en configuration html coveragereporters array string coveragethreshold https facebook github io jest docs en configuration html coveragethreshold object snapshotserializers https facebook github io jest docs en configuration html snapshotserializers array string example package json json name your package jest collectcoveragefrom src js jsx rootdir node modules rootdir path to dir coveragethreshold global branches 90 functions 90 lines 90 statements 90 coveragereporters text snapshotserializers my serializer module continuous integration by default npm test runs the watcher with interactive cli however you can force it to run tests once and finish the process by setting an environment variable called ci when creating a build of your application with npm run build linter warnings are not checked by default like npm test you can force the build to perform a linter warning check by setting the environment variable ci if any warnings are encountered then the build fails popular ci servers already set the environment variable ci by default but you can do this yourself too on ci servers travis ci 1 following the travis getting started https docs travis ci com user getting started guide for syncing your github repository with travis you may need to initialize some settings manually in your profile https travis ci org profile page 1 add a travis yml file to your git repository language node js node js 6 cache directories node modules script npm run build npm test 1 trigger your first build with a git push 1 customize your travis ci build https docs travis ci com user customizing the build if needed circleci follow this article https medium com knowbody circleci and zeits now sh c9b7eebcd3c1 to set up circleci with a create react app project on your own environment windows cmd exe cmd set ci true npm test cmd set ci true npm run build note the lack of whitespace is intentional windows powershell powershell env ci true and npm test powershell env ci true and npm run build linux macos bash bash ci true npm test bash ci true npm run build the test command will force jest to run tests once instead of launching the watcher if you find yourself doing this often in development please file an issue https github com facebookincubator create react app issues new to tell us about your use case because we want to make watcher the best experience and are open to changing how it works to accommodate more workflows the build command will check for linter warnings and fail if any are found disabling jsdom by default the package json of the generated project looks like this js scripts start react scripts start build react scripts build test react scripts test env jsdom if you know that none of your tests depend on jsdom https github com tmpvar jsdom you can safely remove env jsdom and your tests will run faster diff scripts start react scripts start build react scripts build test react scripts test env jsdom test react scripts test to help you make up your mind here is a list of apis that need jsdom any browser globals like window and document reactdom render https facebook github io react docs top level api html reactdom render testutils renderintodocument https facebook github io react docs test utils html renderintodocument a shortcut https github com facebook react blob 34761cf9a252964abfaab6faf74d473ad95d1f21 src test reacttestutils js l83 l91 for the above mount http airbnb io enzyme docs api mount html in enzyme http airbnb io enzyme index html in contrast jsdom is not needed for the following apis testutils createrenderer https facebook github io react docs test utils html shallow rendering shallow rendering shallow http airbnb io enzyme docs api shallow html in enzyme http airbnb io enzyme index html finally jsdom is also not needed for snapshot testing http facebook github io jest blog 2016 07 27 jest 14 html snapshot testing snapshot testing is a feature of jest that automatically generates text snapshots of your components and saves them on the disk so if the ui output changes you get notified without manually writing any assertions on the component output read more about snapshot testing http facebook github io jest blog 2016 07 27 jest 14 html editor integration if you use visual studio code https code visualstudio com there is a jest extension https github com orta vscode jest which works with create react app out of the box this provides a lot of ide like features while using a text editor showing the status of a test run with potential fail messages inline starting and stopping the watcher automatically and offering one click snapshot updates vs code jest preview https cloud githubusercontent com assets 49038 20795349 a032308a b7c8 11e6 9b34 7eeac781003f png debugging tests there are various ways to setup a debugger for your jest tests we cover debugging in chrome and visual studio code https code visualstudio com note debugging tests requires node 8 or higher debugging tests in chrome add the following to the scripts section in your project s package json json scripts test debug react scripts inspect brk test runinband env jsdom place debugger statements in any test and run bash npm run test debug this will start running your jest tests but pause before executing to allow a debugger to attach to the process open the following in chrome about inspect after opening that link the chrome developer tools will be displayed select inspect on your process and a breakpoint will be set at the first line of the react script this is done simply to give you time to open the developer tools and to prevent jest from executing before you have time to do so click the button that looks like a play button in the upper right hand side of the screen to continue execution when jest executes the test that contains the debugger statement execution will pause and you can examine the current scope and call stack note the runinband cli option makes sure jest runs test in the same process rather than spawning processes for individual tests normally jest parallelizes test runs across processes but it is hard to debug many processes at the same time debugging tests in visual studio code debugging jest tests is supported out of the box for visual studio code https code visualstudio com use the following launch json https code visualstudio com docs editor debugging launch configurations configuration file version 0 2 0 configurations name debug cra tests type node request launch runtimeexecutable workspaceroot node modules bin react scripts args test runinband no cache env jsdom cwd workspaceroot protocol inspector console integratedterminal internalconsoleoptions neveropen developing components in isolation usually in an app you have a lot of ui components and each of them has many different states for an example a simple button component could have following states in a regular state with a text label in the disabled mode in a loading state usually it s hard to see these states without running a sample app or some examples create react app doesn t include any tools for this by default but you can easily add storybook for react https storybook js org source https github com storybooks storybook or react styleguidist https react styleguidist js org source https github com styleguidist react styleguidist to your project these are third party tools that let you develop components and see all their states in isolation from your app storybook for react demo http i imgur com 7ciawpb gif you can also deploy your storybook or style guide as a static app this way everyone in your team can view and review different states of ui components without starting a backend server or creating an account in your app getting started with storybook storybook is a development environment for react ui components it allows you to browse a component library view the different states of each component and interactively develop and test components first install the following npm package globally sh npm install g storybook cli then run the following command inside your app s directory sh getstorybook after that follow the instructions on the screen learn more about react storybook screencast getting started with react storybook https egghead io lessons react getting started with react storybook github repo https github com storybooks storybook documentation https storybook js org basics introduction snapshot testing ui https github com storybooks storybook tree master addons storyshots with storybook addon storyshot getting started with styleguidist styleguidist combines a style guide where all your components are presented on a single page with their props documentation and usage examples with an environment for developing components in isolation similar to storybook in styleguidist you write examples in markdown where each code snippet is rendered as a live editable playground first install styleguidist sh npm install save react styleguidist alternatively you may use yarn sh yarn add react styleguidist then add these scripts to your package json diff scripts styleguide styleguidist server styleguide build styleguidist build start react scripts start then run the following command inside your app s directory sh npm run styleguide after that follow the instructions on the screen learn more about react styleguidist github repo https github com styleguidist react styleguidist documentation https react styleguidist js org docs getting started html publishing components to npm create react app doesn t provide any built in functionality to publish a component to npm if you re ready to extract a component from your project so other people can use it we recommend moving it to a separate directory outside of your project and then using a tool like nwb https github com insin nwb react components and libraries to prepare it for publishing making a progressive web app by default the production build is a fully functional offline first progressive web app https developers google com web progressive web apps progressive web apps are faster and more reliable than traditional web pages and provide an engaging mobile experience all static site assets are cached so that your page loads fast on subsequent visits regardless of network connectivity such as 2g or 3g updates are downloaded in the background your app will work regardless of network state even if offline this means your users will be able to use your app at 10 000 feet and on the subway on mobile devices your app can be added directly to the user s home screen app icon and all you can also re engage users using web push notifications this eliminates the need for the app store the sw precache webpack plugin https github com goldhand sw precache webpack plugin is integrated into production configuration and it will take care of generating a service worker file that will automatically precache all of your local assets and keep them up to date as you deploy updates the service worker will use a cache first strategy https developers google com web fundamentals instant and offline offline cookbook cache falling back to network for handling all requests for local assets including the initial html ensuring that your web app is reliably fast even on a slow or unreliable network opting out of caching if you would prefer not to enable service workers prior to your initial production deployment then remove the call to registerserviceworker from src index js src index js if you had previously enabled service workers in your production deployment and have decided that you would like to disable them for all your existing users you can swap out the call to registerserviceworker in src index js src index js first by modifying the service worker import javascript import unregister from registerserviceworker and then call unregister instead after the user visits a page that has unregister the service worker will be uninstalled note that depending on how service worker js is served it may take up to 24 hours for the cache to be invalidated offline first considerations 1 service workers require https https developers google com web fundamentals getting started primers service workers you need https although to facilitate local testing that policy does not apply to localhost http stackoverflow com questions 34160509 options for testing service workers via http 34161385 34161385 if your production web server does not support https then the service worker registration will fail but the rest of your web app will remain functional 1 service workers are not currently supported https jakearchibald github io isserviceworkerready in all web browsers service worker registration won t be attempted src registerserviceworker js on browsers that lack support 1 the service worker is only enabled in the production environment deployment e g the output of npm run build it s recommended that you do not enable an offline first service worker in a development environment as it can lead to frustration when previously cached assets are used and do not include the latest changes you ve made locally 1 if you need to test your offline first service worker locally build the application using npm run build and run a simple http server from your build directory after running the build script create react app will give instructions for one way to test your production build locally and the deployment instructions deployment have instructions for using other methods be sure to always use an incognito window to avoid complications with your browser cache 1 if possible configure your production environment to serve the generated service worker js with http caching disabled http stackoverflow com questions 38843970 service worker javascript update frequency every 24 hours if that s not possible github pages github pages for instance does not allow you to change the default 10 minute http cache lifetime then be aware that if you visit your production site and then revisit again before service worker js has expired from your http cache you ll continue to get the previously cached assets from the service worker if you have an immediate need to view your updated production deployment performing a shift refresh will temporarily disable the service worker and retrieve all assets from the network 1 users aren t always familiar with offline first web apps it can be useful to let the user know https developers google com web fundamentals instant and offline offline ux inform the user when the app is ready for offline consumption when the service worker has finished populating your caches showing a this web app works offline message and also let them know when the service worker has fetched the latest updates that will be available the next time they load the page showing a new content is available please refresh message showing this messages is currently left as an exercise to the developer but as a starting point you can make use of the logic included in src registerserviceworker js src registerserviceworker js which demonstrates which service worker lifecycle events to listen for to detect each scenario and which as a default just logs appropriate messages to the javascript console 1 by default the generated service worker file will not intercept or cache any cross origin traffic like http api requests integrating with an api backend images or embeds loaded from a different domain if you would like to use a runtime caching strategy for those requests you can eject npm run eject and then configure the runtimecaching https github com googlechrome sw precache runtimecaching arrayobject option in the swprecachewebpackplugin section of webpack config prod js config webpack config prod js progressive web app metadata the default configuration includes a web app manifest located at public manifest json public manifest json that you can customize with details specific to your web application when a user adds a web app to their homescreen using chrome or firefox on android the metadata in manifest json public manifest json determines what icons names and branding colors to use when the web app is displayed the web app manifest guide https developers google com web fundamentals engage and retain web app manifest provides more context about what each field means and how your customizations will affect your users experience analyzing the bundle size source map explorer https www npmjs com package source map explorer analyzes javascript bundles using the source maps this helps you understand where code bloat is coming from to add source map explorer to a create react app project follow these steps sh npm install save source map explorer alternatively you may use yarn sh yarn add source map explorer then in package json add the following line to scripts diff scripts analyze source map explorer build static js main start react scripts start build react scripts build test react scripts test env jsdom then to analyze the bundle run the production build then run the analyze script npm run build npm run analyze deployment npm run build creates a build directory with a production build of your app set up your favorite http server so that a visitor to your site is served index html and requests to static paths like static js main hash js are served with the contents of the static js main hash js file static server for environments using node https nodejs org the easiest way to handle this would be to install serve https github com zeit serve and let it handle the rest sh npm install g serve serve s build the last command shown above will serve your static site on the port 5000 like many of serve https github com zeit serve s internal settings the port can be adjusted using the p or port flags run this command to get a full list of the options available sh serve h other solutions you don t necessarily need a static server in order to run a create react app project in production it works just as fine integrated into an existing dynamic one here s a programmatic example using node https nodejs org and express http expressjs com javascript const express require express const path require path const app express app use express static path join dirname build app get function req res res sendfile path join dirname build index html app listen 9000 the choice of your server software isn t important either since create react app is completely platform agnostic there s no need to explicitly use node the build folder with static assets is the only output produced by create react app however this is not quite enough if you use client side routing read the next section if you want to support urls like todos 42 in your single page app serving apps with client side routing if you use routers that use the html5 pushstate history api https developer mozilla org en us docs web api history api adding and modifying history entries under the hood for example react router https github com reacttraining react router with browserhistory many static file servers will fail for example if you used react router with a route for todos 42 the development server will respond to localhost 3000 todos 42 properly but an express serving a production build as above will not this is because when there is a fresh page load for a todos 42 the server looks for the file build todos 42 and does not find it the server needs to be configured to respond to a request to todos 42 by serving index html for example we can amend our express example above to serve index html for any unknown paths diff app use express static path join dirname build app get function req res app get function req res res sendfile path join dirname build index html if you re using apache http server https httpd apache org you need to create a htaccess file in the public folder that looks like this options multiviews rewriteengine on rewritecond request filename f rewriterule index html qsa l it will get copied to the build folder when you run npm run build if you re using apache tomcat http tomcat apache org you need to follow this stack overflow answer https stackoverflow com a 41249464 4878474 now requests to todos 42 will be handled correctly both in development and in production on a production build and in a browser that supports service workers https developers google com web fundamentals getting started primers service workers the service worker will automatically handle all navigation requests like for todos 42 by serving the cached copy of your index html this service worker navigation routing can be configured or disabled by eject ing npm run eject and then modifying the navigatefallback https github com googlechrome sw precache navigatefallback string and navigatefallbackwhitelist https github com googlechrome sw precache navigatefallbackwhitelist arrayregexp options of the swpreacheplugin configuration config webpack config prod js when users install your app to the homescreen of their device the default configuration will make a shortcut to index html this may not work for client side routers which expect the app to be served from edit the web app manifest at public manifest json public manifest json and change start url to match the required url scheme for example js start url building for relative paths by default create react app produces a build assuming your app is hosted at the server root br to override this specify the homepage in your package json for example js homepage http mywebsite com relativepath this will let create react app correctly infer the root path to use in the generated html file note if you are using react router 4 you can root link s using the basename prop on any router br more information here https reacttraining com react router web api browserrouter basename string br br for example js browserrouter basename calendar link to today renders a href calendar today serving the same build from different paths note this feature is available with react scripts 0 9 0 and higher if you are not using the html5 pushstate history api or not using client side routing at all it is unnecessary to specify the url from which your app will be served instead you can put this in your package json js homepage this will make sure that all the asset paths are relative to index html you will then be able to move your app from http mywebsite com to http mywebsite com relativepath or even http mywebsite com relative path without having to rebuild it azure https azure microsoft com see this https medium com to pe deploying create react app on microsoft azure c0f6686a4321 blog post on how to deploy your react app to microsoft azure see this https medium com strid host create react app on azure 986bc40d5bf2 pycfnafbg blog post or this https github com ulrikaugustsson azure appservice static repo for a way to use automatic deployment to azure app service firebase https firebase google com install the firebase cli if you haven t already by running npm install g firebase tools sign up for a firebase account https console firebase google com and create a new project run firebase login and login with your previous created firebase account then run the firebase init command from your project s root you need to choose the hosting configure and deploy firebase hosting sites and choose the firebase project you created in the previous step you will need to agree with database rules json being created choose build as the public directory and also agree to configure as a single page app by replying with y sh project setup first let s associate this project directory with a firebase project you can create multiple project aliases by running firebase use add but for now we ll just set up a default project what firebase project do you want to associate as default example app example app fd690 database setup firebase realtime database rules allow you to define how your data should be structured and when your data can be read from and written to what file should be used for database rules database rules json database rules for example app fd690 have been downloaded to database rules json future modifications to database rules json will update database rules when you run firebase deploy hosting setup your public directory is the folder relative to your project directory that will contain hosting assets to uploaded with firebase deploy if you have a build process for your assets use your build s output directory what do you want to use as your public directory build configure as a single page app rewrite all urls to index html yes wrote build index html i writing configuration info to firebase json i writing project information to firebaserc firebase initialization complete important you need to set proper http caching headers for service worker js file in firebase json file or you will not be able to see changes after first deployment issue 2440 https github com facebookincubator create react app issues 2440 it should be added inside hosting key like next hosting headers source service worker js headers key cache control value no cache now after you create a production build with npm run build you can deploy it by running firebase deploy sh deploying to example app fd690 i deploying database hosting database rules ready to deploy i hosting preparing build directory for upload uploading 75 hosting build folder uploaded successfully hosting 8 files uploaded successfully i starting release process may take several minutes deploy complete project console https console firebase google com project example app fd690 overview hosting url https example app fd690 firebaseapp com for more information see add firebase to your javascript project https firebase google com docs web setup github pages https pages github com note this feature is available with react scripts 0 2 0 and higher step 1 add homepage to package json the step below is important br if you skip it your app will not deploy correctly open your package json and add a homepage field for your project json homepage https myusername github io my app or for a github user page json homepage https myusername github io create react app uses the homepage field to determine the root url in the built html file step 2 install gh pages and add deploy to scripts in package json now whenever you run npm run build you will see a cheat sheet with instructions on how to deploy to github pages to publish it at https myusername github io my app https myusername github io my app run sh npm install save gh pages alternatively you may use yarn sh yarn add gh pages add the following scripts in your package json diff scripts predeploy npm run build deploy gh pages d build start react scripts start build react scripts build the predeploy script will run automatically before deploy is run if you are deploying to a github user page instead of a project page you ll need to make two additional modifications 1 first change your repository s source branch to be any branch other than master 1 additionally tweak your package json scripts to push deployments to master diff scripts predeploy npm run build deploy gh pages d build deploy gh pages b master d build step 3 deploy the site by running npm run deploy then run sh npm run deploy step 4 ensure your project s settings use gh pages finally make sure github pages option in your github project settings is set to use the gh pages branch img src http i imgur com hujer9l png width 500 alt gh pages branch setting step 5 optionally configure the domain you can configure a custom domain with github pages by adding a cname file to the public folder notes on client side routing github pages doesn t support routers that use the html5 pushstate history api under the hood for example react router using browserhistory this is because when there is a fresh page load for a url like http user github io todomvc todos 42 where todos 42 is a frontend route the github pages server returns 404 because it knows nothing of todos 42 if you want to add a router to a project hosted on github pages here are a couple of solutions you could switch from using html5 history api to routing with hashes if you use react router you can switch to hashhistory for this effect but the url will be longer and more verbose for example http user github io todomvc todos 42 k yknaj read more https reacttraining com react router web api router about different history implementations in react router alternatively you can use a trick to teach github pages to handle 404 by redirecting to your index html page with a special redirect parameter you would need to add a 404 html file with the redirection code to the build folder before deploying your project and you ll need to add code handling the redirect parameter to index html you can find a detailed explanation of this technique in this guide https github com rafrex spa github pages troubleshooting dev tty no such a device or address if when deploying you get dev tty no such a device or address or a similar error try the follwing 1 create a new personal access token https github com settings tokens 2 git remote set url origin https user token github com user repo 3 try npm run deploy again heroku https www heroku com use the heroku buildpack for create react app https github com mars create react app buildpack br you can find instructions in deploying react with zero configuration https blog heroku com deploying react with zero configuration resolving heroku deployment errors sometimes npm run build works locally but fails during deploy via heroku following are the most common cases module not found error cannot resolve file or directory if you get something like this remote failed to create a production build reason remote module not found error cannot resolve file or directory mydirectory in tmp build 1234 src it means you need to ensure that the lettercase of the file or directory you import matches the one you see on your filesystem or on github this is important because linux the operating system used by heroku is case sensitive so mydirectory and mydirectory are two distinct directories and thus even though the project builds locally the difference in case breaks the import statements on heroku remotes could not find a required file if you exclude or ignore necessary files from the package you will see a error similar this one remote could not find a required file remote name index html remote searched in tmp build a2875fc163b209225122d68916f1d4df public remote remote npm err linux 3 13 0 105 generic remote npm err argv tmp build a2875fc163b209225122d68916f1d4df heroku node bin node tmp build a2875fc163b209225122d68916f1d4df heroku node bin npm run build in this case ensure that the file is there with the proper lettercase and that s not ignored on your local gitignore or gitignore global netlify https www netlify com to do a manual deploy to netlify s cdn sh npm install netlify cli g netlify deploy choose build as the path to deploy to setup continuous delivery with this setup netlify will build and deploy when you push to git or open a pull request 1 start a new netlify project https app netlify com signup 2 pick your git hosting service and select your repository 3 set yarn build as the build command and build as the publish directory 4 click deploy site support for client side routing to support pushstate make sure to create a public redirects file with the following rewrite rules index html 200 when you build the project create react app will place the public folder contents into the build output now https zeit co now now offers a zero configuration single command deployment you can use now to deploy your app for free 1 install the now command line tool either via the recommended desktop tool https zeit co download or via node with npm install g now 2 build your app by running npm run build 3 move into the build directory by running cd build 4 run now name your project name from within the build directory you will see a now sh url in your output like this ready https your project name tpspyhtdtk now sh copied to clipboard paste that url into your browser when the build is complete and you will see your deployed app details are available in this article https zeit co blog unlimited static s3 https aws amazon com s3 and cloudfront https aws amazon com cloudfront see this blog post https medium com omgwtfmarc deploying create react app to s3 or cloudfront 48dae4ce0af on how to deploy your react app to amazon web services s3 and cloudfront surge https surge sh install the surge cli if you haven t already by running npm install g surge run the surge command and log in you or create a new account when asked about the project path make sure to specify the build folder for example sh project path path to project build note that in order to support routers that use html5 pushstate api you may want to rename the index html in your build folder to 200 html before deploying to surge this ensures that every url falls back to that file https surge sh help adding a 200 page for client side routing advanced configuration you can adjust various development and production settings by setting environment variables in your shell or with env adding development environment variables in env variable development production usage browser white check mark x by default create react app will open the default system browser favoring chrome on macos specify a browser https github com sindresorhus opn app to override this behavior or set it to none to disable it completely if you need to customize the way the browser is launched you can specify a node script instead any arguments passed to npm start will also be passed to this script and the url where your app is served will be the last argument your script s file name must have the js extension host white check mark x by default the development web server binds to localhost you may use this variable to specify a different host port white check mark x by default the development web server will attempt to listen on port 3000 or prompt you to attempt the next available port you may use this variable to specify a different port https white check mark x when set to true create react app will run the development server in https mode public url x white check mark create react app assumes your application is hosted at the serving web server s root or a subpath as specified in package json homepage building for relative paths normally create react app ignores the hostname you may use this variable to force assets to be referenced verbatim to the url you provide hostname included this may be particularly useful when using a cdn to host your application ci large orange diamond white check mark when set to true create react app treats warnings as failures in the build it also makes the test runner non watching most cis set this flag by default react editor white check mark x when an app crashes in development you will see an error overlay with clickable stack trace when you click on it create react app will try to determine the editor you are using based on currently running processes and open the relevant source file you can send a pull request to detect your editor of choice https github com facebookincubator create react app issues 2636 setting this environment variable overrides the automatic detection if you do it make sure your systems path https en wikipedia org wiki path variable environment variable points to your editor s bin folder you can also set it to none to disable it completely chokidar usepolling white check mark x when set to true the watcher runs in polling mode as necessary inside a vm use this option if npm start isn t detecting changes generate sourcemap x white check mark when set to false source maps are not generated for a production build this solves oom issues on some smaller machines node path white check mark white check mark same as node path in node js https nodejs org api modules html modules loading from the global folders but only relative folders are allowed can be handy for emulating a monorepo setup by setting node path src troubleshooting npm start doesn t detect changes when you save a file while npm start is running the browser should refresh with the updated code br if this doesn t happen try one of the following workarounds if your project is in a dropbox folder try moving it out if the watcher doesn t see a file called index js and you re referencing it by the folder name you need to restart the watcher https github com facebookincubator create react app issues 1164 due to a webpack bug some editors like vim and intellij have a safe write feature that currently breaks the watcher you will need to disable it follow the instructions in adjusting your text editor https webpack js org guides development adjusting your text editor if your project path contains parentheses try moving the project to a path without them this is caused by a webpack watcher bug https github com webpack watchpack issues 42 on linux and macos you might need to tweak system settings https github com webpack docs wiki troubleshooting not enough watchers to allow more watchers if the project runs inside a virtual machine such as a vagrant provisioned virtualbox create an env file in your project directory if it doesn t exist and add chokidar usepolling true to it this ensures that the next time you run npm start the watcher uses the polling mode as necessary inside a vm if none of these solutions help please leave a comment in this thread https github com facebookincubator create react app issues 659 npm test hangs on macos sierra if you run npm test and the console gets stuck after printing react scripts test env jsdom to the console there might be a problem with your watchman https facebook github io watchman installation as described in facebookincubator create react app 713 https github com facebookincubator create react app issues 713 we recommend deleting node modules in your project and running npm install or yarn if you use it first if it doesn t help you can try one of the numerous workarounds mentioned in these issues facebook jest 1767 https github com facebook jest issues 1767 facebook watchman 358 https github com facebook watchman issues 358 ember cli ember cli 6259 https github com ember cli ember cli issues 6259 it is reported that installing watchman 4 7 0 or newer fixes the issue if you use homebrew http brew sh you can run these commands to update it watchman shutdown server brew update brew reinstall watchman you can find other installation methods https facebook github io watchman docs install html build install on the watchman documentation page if this still doesn t help try running launchctl unload f library launchagents com github facebook watchman plist there are also reports that uninstalling watchman fixes the issue so if nothing else helps remove it from your system and try again npm run build exits too early it is reported that npm run build can fail on machines with limited memory and no swap space which is common in cloud environments even with small projects this command can increase ram usage in your system by hundreds of megabytes so if you have less than 1 gb of available memory your build is likely to fail with the following message the build failed because the process exited too early this probably means the system ran out of memory or someone called kill 9 on the process if you are completely sure that you didn t terminate the process consider adding some swap space https www digitalocean com community tutorials how to add swap on ubuntu 14 04 to the machine you re building on or build the project locally npm run build fails on heroku this may be a problem with case sensitive filenames please refer to this section resolving heroku deployment errors moment js locales are missing if you use a moment js https momentjs com you might notice that only the english locale is available by default this is because the locale files are large and you probably only need a subset of all the locales provided by moment js https momentjs com multiple locale support to add a specific moment js locale to your bundle you need to import it explicitly br for example js import moment from moment import moment locale fr if import multiple locales this way you can later switch between them by calling moment locale with the locale name js import moment from moment import moment locale fr import moment locale es moment locale fr this will only work for locales that have been explicitly imported before npm run build fails to minify some third party packages don t compile their code to es5 before publishing to npm this often causes problems in the ecosystem because neither browsers except for most modern versions nor some tools currently support all es6 features we recommend to publish code on npm as es5 at least for a few more years br to resolve this 1 open an issue on the dependency s issue tracker and ask that the package be published pre compiled note create react app can consume both commonjs and es modules for node js compatibility it is recommended that the main entry point is commonjs however they can optionally provide an es module entry point with the module field in package json note that even if a library provides an es modules version it should still precompile other es6 features to es5 if it intends to support older browsers 2 fork the package and publish a corrected version yourself 3 if the dependency is small enough copy it to your src folder and treat it as application code in the future we might start automatically compiling incompatible third party modules but it is not currently supported this approach would also slow down the production builds alternatives to ejecting ejecting npm run eject lets you customize anything but from that point on you have to maintain the configuration and scripts yourself this can be daunting if you have many similar projects in such cases instead of ejecting we recommend to fork react scripts and any other packages you need this article https auth0 com blog how to configure create react app dives into how to do it in depth you can find more discussion in this issue https github com facebookincubator create react app issues 682 something missing if you have ideas for more how to recipes that should be on this page let us know https github com facebookincubator create react app issues or contribute some https github com facebookincubator create react app edit master packages react scripts template readme md | front_end |
|
ITAutodidact.com | itautodidact com information technology blogs and information technology updates | server |
|
awesome-fe-team | awesome front end teams awesome https cdn rawgit com sindresorhus awesome d7305f38d29fed78fa85652e3a63e154dd8e8829 media badge svg https github com sindresorhus awesome it baidu fex http fex baidu com github https github com fex team efe http efe baidu com github https github com ecomfe alibaba fed http taobaofed org taobaoued http ued taobao org amfe https github com amfe article alinode http alinode aliyun com blog tmallfe https tmallfe github io thx mux http thx github io tencent imweb http imweb io alloyteam http www alloyteam com isux http isux tencent com tid http tid tenpay com 360 qihoo 360 http www 75team com sina ued http ued sina com cn meituan http fe meituan com qunar ued http ued qunar com ued http ued qunar com mobile blog http f2e souche com douban https github com douban f2e | front_end |
|
opentau | opentau using large language models for gradual type inference implementation for the paper type prediction with program decomposition and fill in the type training federico cassano ming ho yee noah shinn arjun guha steven holtzen https arxiv org abs 2305 17145 type inference for gradually typed languages such as typescript and python has become increasingly prevalent in the field of programming languages however current approaches often struggle with inferring descriptive types in cases in which user defined type annotations are absent especially when inferring function signatures this has motivated automated type prediction given an untyped program produce a well typed output program large language models llms are promising for type prediction but there are challenges fill in the middle performs poorly programs may not fit into the context window generated types may not type check and it is difficult to measure how well typed the output program is we address these challenges by building opentau a search based approach for type prediction that leverages large language models we propose a new metric for type prediction quality give a tree based program decomposition that searches a space of generated types and present fill in the type fine tuning for llms we evaluate our work with a new dataset for typescript type prediction and show that 47 4 of files type check 14 5 absolute improvement with an overall rate of 3 3 type errors per file additionally we build two protocols for implementing additional languages and models in our work we implement a typescript compiler that respects the protocol and a santacoder server that respects the other protocol an optional openai model endpoint also implements the protocol but it is unmaintained and not recommended for use implementing the respective protocols is relatively straightforward more information can be found in our class final project submission https github com gammatauai opentau blob main docs final report md as this work started as a class project for cs 4100 at northeastern university https www khoury northeastern edu home sholtzen assets pdf cs4100 fall22 syllabus pdf cite bibtex misc cassano2023type title type prediction with program decomposition and fill in the type training author federico cassano and ming ho yee and noah shinn and arjun guha and steven holtzen year 2023 eprint 2305 17145 archiveprefix arxiv primaryclass cs se usage we have implemented an opentau in rust which can be utilized in three ways 1 as a simple cli client that will type infer a given program more info in client 2 as a library that exposes numerous abstractions for interacting with different compilers models and type prediction strategies more info in client 3 as an evaluation tool to analyze the performance of the combinations of different models languages datasets and type prediction strategies on the task of type prediction more info in evaluator we are in the review process for our paper type prediction with program decomposition and fill in the type training federico cassano ming ho yee noah shinn arjun guha steven holtzen https arxiv org abs 2305 17145 requirements rust incoder santacoder model requirements torch tokenizers 0 12 transformers typescript compiler requirements ts node tsc python compiler requirements work in progress mypy pyright for static type checking redbaron for ast parsing with comments pandoc only for building the report installation run make while being in the directory the output binary symlinked will be at out client example completion our system was able to type infer this program ts const findallpeople function n meetings firstperson meetings sort a b a 2 b 2 const uf new unionfind n uf connect 0 firstperson let ppl for let i 0 len meetings length i len ppl let time meetings i 2 while i len meetings i 2 time uf connect meetings i 0 meetings i 1 ppl push meetings i 0 ppl push meetings i 1 i for let n of ppl if uf connected 0 n uf reset n let ans for let i 0 i n i if uf connected 0 i ans push i return ans class unionfind arr constructor n this arr array n fill null this arr foreach e i arr arr i i connect a b this arr this find a this find this arr b find a return this arr a a a this arr a this find this arr a connected a b return this find a this find b reset a this arr a a and annotate it with these types ts const findallpeople n number meetings number firstperson number number function n meetings firstperson meetings sort a b a 2 b 2 const uf unionfind new unionfind n uf connect 0 firstperson let ppl number for let i 0 len meetings length i len ppl let time number meetings i 2 while i len meetings i 2 time uf connect meetings i 0 meetings i 1 ppl push meetings i 0 ppl push meetings i 1 i for let n of ppl if uf connected 0 n uf reset n let ans number for let i 0 i n i if uf connected 0 i ans push i return ans class unionfind arr number constructor n this arr array n fill null this arr foreach e i arr arr i i connect a number b number void this arr this find a this find this arr b find a number number return this arr a a a this arr a this find this arr a connected a number b number boolean return this find a this find b reset a number void this arr a a while typescript s type inference only managed to infer these types too many any s and loose typing ts const findallpeople function n number meetings any firstperson any meetings sort a number b number a 2 b 2 const uf new unionfind n uf connect 0 firstperson let ppl for let i 0 len meetings length i len ppl let time meetings i 2 while i len meetings i 2 time uf connect meetings i 0 meetings i 1 ppl push meetings i 0 ppl push meetings i 1 i for let n of ppl if uf connected 0 n uf reset n let ans for let i 0 i n i if uf connected 0 i ans push i return ans class unionfind arr any constructor n any this arr array n fill null this arr foreach e any i string number arr x string any arr i i connect a number b string number this arr this find a this find this arr b find a string number return this arr a a a this arr a this find this arr a connected a number b number return this find a this find b reset a string number this arr a a note that typescript s inference type annotated non let bound arrow functions while our system didn t we believe that these functions should be left untyped as the signature of the function that calls them should be typed and typescript s type inference should enforce those rules our system will not battle with typescript s type inference it will try to work alongside it additionally our system will not perform any type migrations i e it will not change already defined types this is to further enforce the coalition between our system and typescript s another example generics inference our system is able to fill out generic types ts var sumfourdivisors function nums let res 0 for const e of nums const set helper e if set size 4 for const i of set res i return res function helper num const set new set const r math sqrt num 1 for let i 1 i r i if num i 0 set add i set add num i return set to ts var sumfourdivisors nums number number function nums let res number 0 for const e of nums const set set number helper e if set size 4 for const i of set res i return res function helper num number set number const set set number new set const r number math sqrt num 1 for let i 1 i r i if num i 0 set add i set add num i return set while typescript s inference couldn t give us a type checkable answer 7 28 error ts2365 operator cannot be applied to types number and unknown 7 for const i of set res i | openai rust type-inference typescript ai llm | ai |
zig-bl602-nuttx | zig on risc v bl602 with apache nuttx rtos and lorawan read the articles zig on risc v bl602 quick peek with apache nuttx rtos https lupyuen github io articles zig build an iot app with zig and lorawan https lupyuen github io articles iot to build the hello zig app for nuttx on bl602 bash enable zig app in nuttx menuconfig make menuconfig todo select application configuration examples hello zig example save the configuration and exit menuconfig build nuttx make nuttx build fails with undefined reference to hello zig main that s ok here s the fix download our modified zig app for nuttx git clone recursive https github com lupyuen zig bl602 nuttx cd zig bl602 nuttx compile the zig app for bl602 rv32imacf with hardware floating point zig build obj target riscv32 freestanding none mcpu sifive e76 hello zig main zig dump the abi for the compiled app riscv64 unknown elf readelf h a hello zig main o shows flags 0x1 rvc soft float abi which is software floating point this won t link with nuttx because nuttx is compiled with hardware floating point we change software floating point to hardware floating point edit hello zig main o in a hex editor change byte 0x24 from 0x01 to 0x03 see https en wikipedia org wiki executable and linkable format file header dump the abi for the compiled app riscv64 unknown elf readelf h a hello zig main o shows flags 0x3 rvc single float abi which is hardware floating point and will link with nuttx copy the compiled app to nuttx and overwrite hello o todo change home nuttx to your nuttx project directory cp hello zig main o home nuttx apps examples hello hello o build nuttx to link the zig object from hello o todo change home nuttx to your nuttx project directory cd home nuttx nuttx make nuttx build should now succeed boot nuttx and enter this at the nuttx shell text nuttshell nsh nuttx 10 3 0 rc2 nsh hello zig hello zig for the lorawan zig app see this convert lorawan app to zig convert lorawan app to zig to compile the lora sx1262 library in c with zig compiler see this zig compiler as drop in replacement for gcc zig compiler as drop in replacement for gcc here s how we made zig and lorawan run on bl602 nuttx zig app for nuttx apache nuttx rtos is bundled with a simple zig app let s run this on bl602 hello zig main zig hello zig main zig zig import the zig standard library const std import std import printf from c pub extern fn printf format 0 const u8 c int main function pub export fn hello zig main argc c int argv const const u8 c int argc argv printf hello zig n return 0 we fixed the last 2 lines to make the zig compiler happy zig previously printf hello zig n zig needs us to use the returned value from printf printf hello zig n previously this was missing zig needs us to return a value return 0 original version is here hello zig main zig https github com apache incubator nuttx apps blob master examples hello zig hello zig main zig enable zig app to enable the zig app in nuttx bash make menuconfig select application configuration examples hello zig example save the configuration and exit menuconfig build fails on nuttx when we build nuttx bash make we see this error text ld nuttx riscv64 unknown elf ld nuttx staging libapps a builtin list c home user nuttx apps builtin o rodata g builtins 0xbc undefined reference to hello zig main source https gist github com lupyuen 497c90b862aef48b57ff3124f2ea94d8 which looks similar to this issue https github com apache incubator nuttx issues 6219 this seems to be caused by the nuttx build not calling the zig compiler but no worries let s compile the zig app ourselves and link into nuttx compile zig app here s how we compile our zig app for risc v bl602 and link it with nuttx bash download our modified zig app for nuttx git clone recursive https github com lupyuen zig bl602 nuttx cd zig bl602 nuttx compile the zig app for bl602 rv32imacf with hardware floating point zig build obj target riscv32 freestanding none mcpu sifive e76 hello zig main zig copy the compiled app to nuttx and overwrite hello o todo change home nuttx to your nuttx project directory cp hello zig main o home nuttx apps examples hello hello o build nuttx to link the zig object from hello o todo change home nuttx to your nuttx project directory cd home nuttx nuttx make zig target why is the target riscv32 freestanding none zig targets have the form arch sub os abi riscv32 because bl602 is a 32 bit risc v processor freestanding because embedded targets don t need an os none because embedded targets don t specify the abi why is the target cpu sifive e76 bl602 is designated as rv32imacf designation meaning rv32i 32 bit risc v with base integer instructions m integer multiplication division a atomic instructions c compressed instructions f single precision floating point source https en wikipedia org wiki risc v isa base and extensions among all zig targets only sifive e76 has the same designation bash zig targets sifive e76 a c f m source https gist github com lupyuen 09d64c79e12b30e5eebc7d0a9c3b20a4 thus we use sifive e76 as our cpu target alternatively we may use baseline rv32 d as our cpu target bash compile the zig app for bl602 rv32imacf with hardware floating point zig build obj target riscv32 freestanding none mcpu baseline rv32 d hello zig main zig because baseline rv32 means rv32imacfd d for double precision floating point d means remove the double precision floating point d but keep the single precision floating point more about risc v feature flags thanks matheus https github com lupyuen zig bl602 nuttx issues 1 floating point abi when linking the compiled zig app with nuttx we see this error bash make riscv64 unknown elf ld nuttx staging libapps a hello main c home user nuttx apps examples hello o can t link soft float modules with single float modules that s because nuttx was compiled for single precision hardware floating point abi application binary interface bash do this before overwriting hello o by hello zig main o hello o expands to something like hello main c home user nuttx apps examples hello o riscv64 unknown elf readelf h a home nuttx apps examples hello hello o elf header magic 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 class elf32 data 2 s complement little endian version 1 current os abi unix system v abi version 0 type rel relocatable file machine risc v version 0x1 entry point address 0x0 start of program headers 0 bytes into file start of section headers 4528 bytes into file flags 0x3 rvc single float abi size of this header 52 bytes size of program headers 0 bytes number of program headers 0 size of section headers 40 bytes number of section headers 26 section header string table index 25 attribute section riscv file attributes tag riscv stack align 16 bytes tag riscv arch rv32i2p0 m2p0 a2p0 f2p0 c2p0 source https gist github com lupyuen 5c090dead49eb50751578f28c15cecd5 nuttx was compiled with the gcc flags march rv32imafc mabi ilp32f https gist github com lupyuen 288c980fdef75c334d32e669a921e623 whereas zig compiler produces an object file with software floating point abi bash riscv64 unknown elf readelf h a hello zig main o elf header magic 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 class elf32 data 2 s complement little endian version 1 current os abi unix system v abi version 0 type rel relocatable file machine risc v version 0x1 entry point address 0x0 start of program headers 0 bytes into file start of section headers 11968 bytes into file flags 0x1 rvc soft float abi size of this header 52 bytes size of program headers 0 bytes number of program headers 0 size of section headers 40 bytes number of section headers 24 section header string table index 22 attribute section riscv file attributes tag riscv stack align 16 bytes tag riscv arch rv32i2p0 m2p0 a2p0 f2p0 c2p0 source https gist github com lupyuen f04386a0b94ed1fb42a94d671edb1ba7 gcc won t allow us to link object files with software floating point and hardware floating point abis why did the zig compiler produce an object file with software floating point abi when sifive e76 supports hardware floating point see this https www reddit com r zig comments v2zgvh comment iavw5xp utm source share utm medium web2x context 3 patch elf header zig compiler generates an object file with software floating point abi application binary interface bash dump the abi for the compiled app riscv64 unknown elf readelf h a hello zig main o flags 0x1 rvc soft float abi this won t link with nuttx because nuttx is compiled with hardware floating point abi we fix this by modifying the elf header edit hello zig main o in a hex editor like vscode hex editor https marketplace visualstudio com items itemname ms vscode hexeditor change byte 0x24 flags from 0x01 soft float to 0x03 hard float see this https en wikipedia org wiki executable and linkable format file header we verify that the object file has been changed to hardware floating point abi bash dump the abi for the compiled app riscv64 unknown elf readelf h a hello zig main o flags 0x3 rvc single float abi this is now hardware floating point abi and will link with nuttx now we link the modified object file with nuttx bash copy the compiled app to nuttx and overwrite hello o todo change home nuttx to your nuttx project directory cp hello zig main o home nuttx apps examples hello hello o build nuttx to link the zig object from hello o todo change home nuttx to your nuttx project directory cd home nuttx nuttx make the nuttx build should now succeed is it really ok to change the abi like this well technically the abi is correctly generated by the zig compiler bash dump the abi for the compiled zig app riscv64 unknown elf readelf h a hello zig main o flags 0x1 rvc soft float abi tag riscv arch rv32i2p0 m2p0 a2p0 f2p0 c2p0 the last line translates to rv32imacf which means that the risc v instruction set is indeed targeted for hardware floating point we re only editing the elf header because it didn t seem to reflect the correct abi for the object file is there a proper fix for this in future the zig compiler might allow us to specify the floating point abi as the target bash compile the zig app for bl602 ilp32f means hardware floating point abi zig build obj target riscv32 freestanding ilp32f see this https github com ziglang zig issues 9760 issuecomment 991738757 stay tuned can we patch the elf header via command line yep we may patch the elf header via command line bash xxd c 1 hello zig main o sed s 00000024 01 00000024 03 xxd r c 1 hello zig main2 o zig runs ok the nuttx build succeeds zig runs ok on nuttx bl602 text nuttshell nsh nuttx 10 3 0 rc2 nsh hello zig hello zig hello app remember that we overwrote hello o with our zig compiled object file nuttx build will fail unless we provide the hello main function text riscv64 unknown elf ld nuttx staging libapps a builtin list c home user nuttx apps builtin o rodata g builtins 0xcc undefined reference to hello main that s why we define hello main in our zig app zig pub export fn hello main argc c int argv const const u8 c int argc argv printf hello zig n return 0 source hello zig main zig which means that the hello app will call our zig code too text nuttshell nsh nuttx 10 3 0 rc2 nsh hello hello zig pine64 pinecone bl602 board right connected to semtech sx1262 lora transceiver left over spi https lupyuen github io images spi2 title jpg pine64 pinecone bl602 board right connected to semtech sx1262 lora transceiver left over spi https lupyuen github io articles spi2 zig compiler as drop in replacement for gcc will zig compiler work as drop in replacement for gcc https lupyuen github io articles zig why zig for compiling nuttx libraries let s test it on the lora sx1262 library https lupyuen github io articles sx1262 for apache nuttx rtos here s how nuttx compiles the lora sx1262 library https lupyuen github io articles sx1262 with gcc bash lora sx1262 source directory cd home nuttx nuttx libs libsx1262 compile radio c with gcc riscv64 unknown elf gcc c fno common wall wstrict prototypes wshadow wundef os fno strict aliasing fomit frame pointer fstack protector all ffunction sections fdata sections g march rv32imafc mabi ilp32f mno relax isystem home nuttx nuttx include d nuttx dndebug darch riscv pipe src radio c o src radio o compile sx126x c with gcc riscv64 unknown elf gcc c fno common wall wstrict prototypes wshadow wundef os fno strict aliasing fomit frame pointer fstack protector all ffunction sections fdata sections g march rv32imafc mabi ilp32f mno relax isystem home nuttx nuttx include d nuttx dndebug darch riscv pipe src sx126x c o src sx126x o compile sx126x nuttx c with gcc riscv64 unknown elf gcc c fno common wall wstrict prototypes wshadow wundef os fno strict aliasing fomit frame pointer fstack protector all ffunction sections fdata sections g march rv32imafc mabi ilp32f mno relax isystem home nuttx nuttx include d nuttx dndebug darch riscv pipe src sx126x nuttx c o src sx126x nuttx o we make these changes change riscv64 unknown elf gcc to zig cc add the target target riscv32 freestanding none mcpu baseline rv32 d remove march rv32imafc and we run this bash lora sx1262 source directory cd home nuttx nuttx libs libsx1262 compile radio c with zig cc zig cc target riscv32 freestanding none mcpu baseline rv32 d c fno common wall wstrict prototypes wshadow wundef os fno strict aliasing fomit frame pointer fstack protector all ffunction sections fdata sections g mabi ilp32f mno relax isystem home nuttx nuttx include d nuttx dndebug darch riscv pipe src radio c o src radio o compile sx126x c with zig cc zig cc target riscv32 freestanding none mcpu baseline rv32 d c fno common wall wstrict prototypes wshadow wundef os fno strict aliasing fomit frame pointer fstack protector all ffunction sections fdata sections g mabi ilp32f mno relax isystem home nuttx nuttx include d nuttx dndebug darch riscv pipe src sx126x c o src sx126x o compile sx126x nuttx c with zig cc zig cc target riscv32 freestanding none mcpu baseline rv32 d c fno common wall wstrict prototypes wshadow wundef os fno strict aliasing fomit frame pointer fstack protector all ffunction sections fdata sections g mabi ilp32f mno relax isystem home nuttx nuttx include d nuttx dndebug darch riscv pipe src sx126x nuttx c o src sx126x nuttx o link zig object files with nuttx after compiling with zig cc todo change home nuttx to your nuttx project directory cd home nuttx nuttx make zig compiler shows these errors text in file included from src sx126x nuttx c 3 in file included from nuttx include debug h 39 in file included from nuttx include sys uio h 45 nuttx include sys types h 119 9 error unknown type name size t typedef size t size t nuttx include sys types h 120 9 error unknown type name ssize t typedef ssize t ssize t nuttx include sys types h 121 9 error unknown type name size t typedef size t rsize t nuttx include sys types h 174 9 error unknown type name wchar t typedef wchar t wchar t in file included from src sx126x nuttx c 4 in file included from nuttx include stdio h 34 nuttx include nuttx fs fs h 238 20 error use of undeclared identifier name max char parent name max 1 we fix this by including the right header files c if defined nuttx defined clang workaround for nuttx with zig cc include arch types h include nuttx include limits h endif defined nuttx defined clang into these source files radio c https github com lupyuen lora sx1262 blob lorawan src radio c l23 l26 sx126x nuttx c https github com lupyuen lora sx1262 blob lorawan src sx126x nuttx c l4 l7 sx126x c https github com lupyuen lora sx1262 blob lorawan src sx126x c l23 l26 see the changes https github com lupyuen lora sx1262 commit 8da7e4d7cc8f1455d750bc51d75c640eea221f41 we insert this code to tell us at runtime whether it was compiled with zig compiler or gcc c void sx126xioinit void ifdef clang warning compiled with zig cc puts sx126xioinit compiled with zig cc else warning compiled with gcc puts sx126xioinit compiled with gcc endif clang source https github com lupyuen lora sx1262 blob lorawan src sx126x nuttx c l119 l127 compiled with zig cc the lora sx1262 library runs ok on nuttx yay text nsh lorawan test sx126xioinit compiled with zig cc mlme confirm status ok joined otaa devaddr 000e268c data rate dr 2 mcps confirm status ok uplink frame 1 class a tx port 1 tx data unconfirmed 48 69 20 4e 75 74 74 58 00 data rate dr 3 u l freq 923400000 tx power 0 channel mask 0003 see the complete log https gist github com lupyuen ada7f83a96eb36ad1b9fe09da4527003 lorawan library for nuttx let s compile the huge lorawan library https lupyuen github io articles lorawan3 with zig compiler nuttx compiles the lorawan library like this bash lorawan source directory cd home nuttx nuttx libs liblorawan compile mac loramac c with gcc riscv64 unknown elf gcc c fno common wall wstrict prototypes wshadow wundef os fno strict aliasing fomit frame pointer fstack protector all ffunction sections fdata sections g march rv32imafc mabi ilp32f mno relax isystem home nuttx nuttx include d nuttx dndebug darch riscv pipe src mac loramac c o src mac loramac o we switch to the zig compiler bash lorawan source directory cd home nuttx nuttx libs liblorawan compile mac loramac c with zig cc zig cc target riscv32 freestanding none mcpu baseline rv32 d c fno common wall wstrict prototypes wshadow wundef os fno strict aliasing fomit frame pointer fstack protector all ffunction sections fdata sections g mabi ilp32f mno relax isystem home nuttx nuttx include d nuttx dndebug darch riscv pipe src mac loramac c o src mac loramac o link zig object files with nuttx after compiling with zig cc todo change home nuttx to your nuttx project directory cd home nuttx nuttx make we include the right header files into loramac c https github com lupyuen loramac node nuttx blob master src mac loramac c l33 l36 c if defined nuttx defined clang workaround for nuttx with zig cc include arch types h include nuttx include limits h endif defined nuttx defined clang see the changes https github com lupyuen loramac node nuttx commit e36b54ea3351fc80f03d13a131527bf6733410ab loramac c https github com lupyuen loramac node nuttx blob master src mac loramac c compiles ok with zig compiler todo compile the other files in the lorawan library with build zig https ziglang org documentation master zig build system todo test the lorawan library lorawan app for nuttx now we compile the lorawan app lorawan test main c https github com lupyuen lorawan test blob main lorawan test main c with zig compiler nuttx compiles the lorawan app lorawan test main c https github com lupyuen lorawan test blob main lorawan test main c like this bash app source directory cd home nuttx apps examples lorawan test lorawan test main c compile lorawan test main c with gcc riscv64 unknown elf gcc c fno common wall wstrict prototypes wshadow wundef os fno strict aliasing fomit frame pointer fstack protector all ffunction sections fdata sections g march rv32imafc mabi ilp32f mno relax isystem home nuttx nuttx include d nuttx dndebug darch riscv pipe i home nuttx apps graphics lvgl i home nuttx apps graphics lvgl lvgl i home nuttx apps include dmain lorawan test main lorawan test main c o lorawan test main c home user nuttx apps examples lorawan test o we switch to zig compiler bash app source directory cd home nuttx apps examples lorawan test compile lorawan test main c with zig cc zig cc target riscv32 freestanding none mcpu baseline rv32 d c fno common wall wstrict prototypes wshadow wundef os fno strict aliasing fomit frame pointer fstack protector all ffunction sections fdata sections g mabi ilp32f mno relax isystem home nuttx nuttx include d nuttx dndebug darch riscv pipe i home nuttx apps graphics lvgl i home nuttx apps graphics lvgl lvgl i home nuttx apps include dmain lorawan test main lorawan test main c o lorawan test o link zig object files with nuttx after compiling with zig cc todo change home nuttx to your nuttx project directory cd home nuttx nuttx make we include the right header files into lorawan test main c https github com lupyuen lorawan test blob main lorawan test main c l20 l23 c if defined nuttx defined clang workaround for nuttx with zig cc include arch types h include nuttx include limits h endif defined nuttx defined clang see the changes https github com lupyuen lorawan test commit 3d4a451d44cf36b19ef8d900281a2f8f9590de62 compiled with zig cc the lorawan app runs ok on nuttx yay text nsh lorawan test lorawan test main compiled with zig cc mlme confirm status ok joined otaa devaddr 00dc5ed5 data rate dr 2 mcps confirm status ok uplink frame 1 class a tx port 1 tx data unconfirmed 48 69 20 4e 75 74 74 58 00 data rate dr 3 u l freq 923400000 tx power 0 channel mask 0003 see the complete log https gist github com lupyuen 477982242d897771d7a5780c8a9b0910 auto translate lorawan app to zig the zig compiler can auto translate c code to zig see this https ziglang org documentation master c translation cli here s how we auto translate our lorawan app lorawan test main c https github com lupyuen lorawan test blob main lorawan test main c from c to zig change zig cc to zig translate c surround the c flags by cflags like this bash app source directory cd home nuttx apps examples lorawan test auto translate lorawan test main c from c to zig zig translate c target riscv32 freestanding none mcpu baseline rv32 d cflags fno common wall wstrict prototypes wshadow wundef os fno strict aliasing fomit frame pointer fstack protector all ffunction sections fdata sections g mabi ilp32f mno relax isystem home nuttx nuttx include d nuttx dndebug darch riscv i home nuttx apps graphics lvgl i home nuttx apps graphics lvgl lvgl i home nuttx apps include dmain lorawan test main lorawan test main c lorawan test main zig here s the original c code lorawan test main c https github com lupyuen lorawan test blob main lorawan test main c and the auto translation from c to zig translated lorawan test main zig translated lorawan test main zig here s a snippet from the original c code c int main int argc far char argv ifdef clang puts lorawan test main compiled with zig cc else puts lorawan test main compiled with gcc endif clang if we are using entropy pool and the bl602 adc is available add the internal temperature sensor data to the entropy pool init entropy pool compute the interval between transmissions based on duty cycle txperiodicity app tx dutycycle randr app tx dutycycle rnd app tx dutycycle rnd const version t appversion value firmware version const version t githubversion value github version displayappinfo lorawan test appversion githubversion init lorawan if lmhandlerinit lmhandlercallbacks lmhandlerparams loramac handler success printf loramac wasn t properly initialized n fatal error endless loop while 1 set system maximum tolerated rx error in milliseconds lmhandlersetsystemmaxrxerror 20 the lora alliance compliance protocol package should always be initialized and activated lmhandlerpackageregister package id compliance lmhpcomplianceparams lmhandlerpackageregister package id clock sync null lmhandlerpackageregister package id remote mcast setup null lmhandlerpackageregister package id fragmentation fragmentationparams isclocksynched false isfiletransferdone false join the lorawan network lmhandlerjoin set the transmit timer starttxprocess loramac handler tx on timer handle lorawan events handle event queue null never returns return 0 source https github com lupyuen lorawan test blob main lorawan test main c l271 l323 and the auto translated zig code zig pub export fn lorawan test main arg argc c int arg argv c c u8 c int var argc arg argc argc var argv arg argv argv puts lorawan test main compiled with zig cc init entropy pool txperiodicity bitcast u32 as c int 40000 randr as c int 5000 as c int 5000 const appversion version t version t value bitcast u32 as c int 16908288 const githubversion version t version t value bitcast u32 as c int 83886080 displayappinfo lorawan test appversion githubversion if lmhandlerinit lmhandlercallbacks lmhandlerparams loramac handler success printf loramac wasn t properly initialized n while true lmhandlersetsystemmaxrxerror bitcast u32 as c int 20 lmhandlerpackageregister bitcast u8 truncate i8 as c int 0 ptrcast anyopaque lmhpcomplianceparams lmhandlerpackageregister bitcast u8 truncate i8 as c int 1 inttoptr anyopaque as c int 0 lmhandlerpackageregister bitcast u8 truncate i8 as c int 2 inttoptr anyopaque as c int 0 lmhandlerpackageregister bitcast u8 truncate i8 as c int 3 ptrcast anyopaque fragmentationparams isclocksynched as c int 0 0 isfiletransferdone as c int 0 0 lmhandlerjoin starttxprocess bitcast c uint loramac handler tx on timer handle event queue inttoptr anyopaque as c int 0 return 0 source https github com lupyuen zig bl602 nuttx blob main translated lorawan test main zig l4535 l4565 we ll refer to this auto translated zig code when we manually convert our lorawan app lorawan test main c https github com lupyuen lorawan test blob main lorawan test main c from c to zig in the next section pine64 pinedio stack bl604 left talking lorawan to rakwireless wisgate right https lupyuen github io images lorawan3 title jpg pine64 pinedio stack bl604 left talking lorawan to rakwireless wisgate right https lupyuen github io articles lorawan3 convert lorawan app to zig finally we convert the lorawan app lorawan test main c https github com lupyuen lorawan test blob main lorawan test main c from c to zig to show that we can build complex iot apps in zig the lorawan app runs on pinedio stack bl604 risc v the app connects to a lorawan gateway like chirpstack or the things network and sends a data packet at regular intervals here s the original c code lorawan test main c https github com lupyuen lorawan test blob main lorawan test main c 700 lines of c code and our converted lorawan zig app lorawan test zig lorawan test zig 673 lines of zig code zig import the lorawan library from c const c cimport nuttx defines cdefine nuttx cdefine ndebug cdefine arch riscv workaround for unable to translate macro undefined identifier ll cdefine ll cdefine int c join a b a bypass zig lib include stdint h nuttx header files cinclude arch types h cinclude nuttx include limits h cinclude stdio h lorawan header files cinclude firmwareversion h cinclude libs liblorawan src apps loramac common githubversion h cinclude libs liblorawan src boards utilities h cinclude libs liblorawan src mac region regioncommon h cinclude libs liblorawan src apps loramac common commissioning h cinclude libs liblorawan src apps loramac common lmhandler lmhandler h cinclude libs liblorawan src apps loramac common lmhandler packages lmhpcompliance h cinclude libs liblorawan src apps loramac common lmhandler packages lmhpclocksync h cinclude libs liblorawan src apps loramac common lmhandler packages lmhpremotemcastsetup h cinclude libs liblorawan src apps loramac common lmhandler packages lmhpfragmentation h cinclude libs liblorawan src apps loramac common lmhandlermsgdisplay h main function that will be called by nuttx pub export fn lorawan test main argc c int argv const const u8 c int call the lorawan library to set system maximum tolerated rx error in milliseconds c lmhandlersetsystemmaxrxerror 20 todo call the lorawan library to join lorawan network and send a data packet to compile the lorawan zig app lorawan test zig lorawan test zig bash download our lorawan zig app for nuttx git clone recursive https github com lupyuen zig bl602 nuttx cd zig bl602 nuttx compile the zig app for bl602 rv32imacf with hardware floating point zig build obj verbose cimport target riscv32 freestanding none mcpu baseline rv32 d isystem home nuttx nuttx include i home nuttx apps examples lorawan test lorawan test zig patch the elf header of lorawan test o from soft float abi to hard float abi xxd c 1 lorawan test o sed s 00000024 01 00000024 03 xxd r c 1 lorawan test2 o cp lorawan test2 o lorawan test o copy the compiled app to nuttx and overwrite lorawan test o todo change home nuttx to your nuttx project directory cp lorawan test o home nuttx apps examples lorawan test lorawan test o build nuttx to link the zig object from lorawan test o todo change home nuttx to your nuttx project directory cd home nuttx nuttx make our lorawan zig app lorawan test zig lorawan test zig compiles ok with zig compiler after making the following fixes refer to auto translated zig code some parts of the lorawan zig app lorawan test zig lorawan test zig can get tricky to convert from c to zig like this c code c original c code define app tx dutycycle 40000 define app tx dutycycle rnd 5000 uint32 t txperiodicity app tx dutycycle randr app tx dutycycle rnd app tx dutycycle rnd source https github com lupyuen lorawan test blob main lorawan test main c l283 l286 which has conflicting signed randr and unsigned app tx dutycycle types we get help by referring to the auto translated zig code translated lorawan test main zig translated lorawan test main zig zig converted from c to zig const app tx dutycycle c int 40000 const app tx dutycycle rnd c int 5000 cast to u32 because randr can be negative var txperiodicity u32 bitcast u32 app tx dutycycle c randr app tx dutycycle rnd app tx dutycycle rnd which resolves the conflicting types by casting the signed result to become unsigned opaque type error when we reference lmhandlercallbacks in our lorawan zig app lorawan test zig lorawan test zig zig lmhandlercallbacks zig compiler will show this opaque type error text zig cache o d4d456612514c342a153a8d34fbf5970 cimport zig 1353 5 error opaque types have unknown size and therefore cannot be directly embedded in unions fields struct sinfofields zig cache o d4d456612514c342a153a8d34fbf5970 cimport zig 1563 5 note while checking this field pingslot pingslotinfo t zig cache o d4d456612514c342a153a8d34fbf5970 cimport zig 1579 5 note while checking this field pingslotinfo mlmereqpingslotinfo t zig cache o d4d456612514c342a153a8d34fbf5970 cimport zig 1585 5 note while checking this field req union umlmeparam zig cache o d4d456612514c342a153a8d34fbf5970 cimport zig 2277 5 note while checking this field onmacmlmerequest fn loramacstatus t c mlmereq t timertime t callconv c void opaque type error is explained here extend a c c project with zig https zig news kristoff extend a c c project with zig 55di translation failures https ziglang org documentation master translation failures let s trace through our opaque type error zig export fn onmacmlmerequest status c loramacstatus t mlmereq c c mlmereq t nexttxin c timertime t void c displaymacmlmerequestupdate status mlmereq nexttxin our function onmacmlmerequest has a parameter of type mlmereq t auto imported by zig compiler as zig pub const mlmereq t struct smlmereq pub const struct smlmereq extern struct type mlme t req union umlmeparam reqreturn requestreturnparam t which contains another auto imported type union umlmeparam zig pub const union umlmeparam extern union join mlmereqjoin t txcw mlmereqtxcw t pingslotinfo mlmereqpingslotinfo t derivemckekey mlmereqderivemckekey t derivemcsessionkeypair mlmereqderivemcsessionkeypair t which contains an mlmereqpingslotinfo t zig pub const mlmereqpingslotinfo t struct smlmereqpingslotinfo pub const struct smlmereqpingslotinfo extern struct pingslot pingslotinfo t which contains a pingslotinfo t zig pub const pingslotinfo t union upingslotinfo pub const union upingslotinfo extern union value u8 fields struct sinfofields which contains a struct sinfofields zig pub const struct sinfofields opaque but the fields of struct sinfofields are not known by the zig compiler if we refer to the original c code c typedef union upingslotinfo parameter for byte access uint8 t value structure containing the parameters for the pingslotinforeq struct sinfofields periodicity 0 ping slot every second periodicity 7 ping slot every 128 seconds uint8 t periodicity 3 rfu uint8 t rfu 5 fields pingslotinfo t source https github com lupyuen loramac node nuttx blob master src mac loramac h l312 l333 we see that sinfofields contains bit fields that the zig compiler is unable to translate fix opaque type earlier we saw that this fails to compile in our lorawan zig app lorawan test zig lorawan test zig zig lmhandlercallbacks that s because lmhandlercallbacks references the auto imported type mlmereq t which contains bit fields and can t be translated by the zig compiler let s convert mlmereq t to an opaque type since we won t be accessing the fields anyway zig we use an opaque type to represent mlme request because it contains bit fields that can t be converted by zig const mlmereq t opaque source https github com lupyuen zig bl602 nuttx blob main lorawan test zig l695 l696 we convert lmhandlercallbacks to use our opaque type mlmereq t zig handler callbacks adapted from https github com lupyuen zig bl602 nuttx blob main translated lorawan test main zig l2818 l2833 pub const lmhandlercallbacks t extern struct getbatterylevel fn callconv c u8 gettemperature fn callconv c f32 getrandomseed fn callconv c u32 onmacprocess fn callconv c void onnvmdatachange fn c lmhandlernvmcontextstates t u16 callconv c void onnetworkparameterschange fn c c commissioningparams t callconv c void onmacmcpsrequest fn c loramacstatus t c c mcpsreq t c timertime t callconv c void changed c c mlmereq t to mlmereq t onmacmlmerequest fn c loramacstatus t mlmereq t c timertime t callconv c void onjoinrequest fn c c lmhandlerjoinparams t callconv c void ontxdata fn c c lmhandlertxparams t callconv c void onrxdata fn c c lmhandlerappdata t c c lmhandlerrxparams t callconv c void onclasschange fn c deviceclass t callconv c void onbeaconstatuschange fn c c loramachandlerbeaconparams t callconv c void onsystimeupdate fn bool i32 callconv c void source https github com lupyuen zig bl602 nuttx blob main lorawan test zig l675 l693 we change all auto imported mlmereq t references from zig c c mlmereq t to our opaque type zig mlmereq t we also change all auto imported lmhandlercallbacks t references from zig c c lmhandlercallbacks t to our converted lmhandlercallbacks t zig lmhandlercallbacks t which means we need to import the affected lorawan functions ourselves zig changed c c mlmereq t to mlmereq t adapted from https github com lupyuen zig bl602 nuttx blob main translated lorawan test main zig l2905 extern fn displaymacmlmerequestupdate status c loramacstatus t mlmereq mlmereq t nexttxin c timertime t void changed c c lmhandlercallbacks t to lmhandlercallbacks t adapted from https github com lupyuen zig bl602 nuttx blob main translated lorawan test main zig l2835 extern fn lmhandlerinit callbacks lmhandlercallbacks t handlerparams c c lmhandlerparams t c lmhandlererrorstatus t source https github com lupyuen zig bl602 nuttx blob main lorawan test zig l707 l720 after fixing the opaque type zig compiler successfully compiles our lorawan test app lorawan test zig lorawan test zig yay macro error while compiling our lorawan test app lorawan test zig lorawan test zig we see this macro error text zig cache o 23409ceec9a6e6769c416fde1695882f cimport zig 2904 32 error unable to translate macro undefined identifier ll pub const int64 c suffix compileerror unable to translate macro undefined identifier ll no file 178 9 according to the zig docs this means that the zig compiler failed to translate a c macro c macros https ziglang org documentation master c macros so we define ll ourselves zig import the lorawan library from c const c cimport workaround for unable to translate macro undefined identifier ll cdefine ll ll is the long long suffix for c constants which is probably not needed when we import c types and functions into zig then zig compiler emits this error text zig cache o 83fc6cf7a78f5781f258f156f891554b cimport zig 2940 26 error unable to translate c expr unexpected token pub const int c join compileerror unable to translate c expr unexpected token home user zig linux x86 64 0 10 0 dev 2351 b64a1d5ab lib include stdint h 282 9 which refers to this line in stdint h c define int c join a b a b the int c join macro fails because the ll suffix is now blank and the concatenation operator fails we redefine the int c join macro without the concatenation operator zig import the lorawan library from c const c cimport workaround for unable to translate macro undefined identifier ll cdefine ll cdefine int c join a b a bypass zig lib include stdint h now zig compiler successfully compiles our lorawan test app lorawan test zig lorawan test zig struct initialisation error zig compiler crashes when it tries to initialise the timer struct at startup zig timer to handle the application data transmission duty cycle var txtimer c timerevent t std mem zeroes c timerevent t zig compiler crashes with todo buf write value bytes maybe typethread 11512 panic unable to dump stack trace debug info stripped source https github com lupyuen zig bl602 nuttx blob main lorawan test zig l679 l684 so we initialise the timer struct in the main function instead zig timer to handle the application data transmission duty cycle init the timer in main function var txtimer c timerevent t undefined main function pub export fn lorawan test main argc c int argv const const u8 c int init the timer struct at startup txtimer std mem zeroes c timerevent t source https github com lupyuen zig bl602 nuttx blob main lorawan test zig l90 l101 lorawan zig app runs ok after fixing the above issues we test the lorawan zig app on nuttx lorawan test zig lorawan test zig text nsh lorawan test application name zig lorawan test mlme confirm status ok joined otaa devaddr 00d803ab data rate dr 2 preparetxframe transmit to lorawan 9 bytes hi nuttx mcps confirm status ok uplink frame 1 class a tx port 1 tx data unconfirmed 48 69 20 4e 75 74 74 58 00 data rate dr 3 u l freq 923200000 tx power 0 channel mask 0003 see the complete log https gist github com lupyuen 0871ac515b18d9d68d3aacf831fd0f5b lorawan zig app lorawan test zig lorawan test zig successfully joins the lorawan network chirpstack on rakwireless wisgate and sends a data packet to the lorawan gateway yay safety checks the zig compiler reveals interesting insights when auto translating our c code to zig this c code copies an array byte by byte c static int8 t fragdecoderwrite uint32 t addr uint8 t data uint32 t size for uint32 t i 0 i size i unfragmenteddata addr i data i return 0 success source https github com lupyuen lorawan test blob main lorawan test main c l539 l550 here s the auto translated zig code zig pub fn fragdecoderwrite arg addr u32 arg data c u8 arg size u32 callconv c i8 var size arg size var i u32 0 while i size i 1 unfragmenteddata addr i data i return 0 source https github com lupyuen zig bl602 nuttx blob main translated lorawan test main zig l4335 l4349 note that the array indexing in c c array indexing in c unfragmenteddata addr i gets translated to this in zig zig array indexing in zig unfragmenteddata addr i in c becomes in zig what s in zig that s the zig operator for wraparound addition https ziglang org documentation master wrapping operations which means that the result wraps back to 0 and beyond if the addition overflows the integer but this isn t what we intended since we don t expect the addition to overflow that s why in our final converted zig code we revert back to zig export fn fragdecoderwrite addr u32 data c u8 size u32 i8 var i u32 0 while i size i 1 unfragmenteddata addr i data i return 0 success source https github com lupyuen zig bl602 nuttx blob main lorawan test zig l407 l416 what happens if the addition overflows we ll see a runtime error text panic integer overflow source https ziglang org documentation master integer overflow which is probably a good thing to ensure that our values are sensible what if our array index goes out of bounds we ll get this runtime error text panic index out of bounds source https ziglang org documentation master index out of bounds here s the list of safety checks done by zig at runtime undefined behavior https ziglang org documentation master undefined behavior if we prefer to live recklessly this is how we disable the safety checks setruntimesafety https ziglang org documentation master setruntimesafety panic handler some debug features don t seem to be working like unreachable std debug assert and std debug panic that s because for embedded platforms we need to implement our own panic handler using zig to provide stack traces on kernel panic for a bare bones operating system https andrewkelley me post zig stack traces kernel panic bare bones os html default panic handler std debug default panic https github com ziglang zig blob master lib std builtin zig l763 l847 with our own panic handler this assertion failure zig create a short alias named assert const assert std debug assert assertion failure assert txperiodicity 0 will show this stack trace text zig panic reached unreachable code stack trace 0x23016394 0x23016ce0 according to our risc v disassembly the first address 23016394 doesn t look interesting because it s inside the assert function text home user zig linux x86 64 0 10 0 dev 2351 b64a1d5ab lib std debug zig 259 pub fn assert ok bool void 2301637c 00b51c63 bne a0 a1 23016394 std debug assert 0x2c 23016380 a009 j 23016382 std debug assert 0x1a 23016382 2307e537 lui a0 0x2307e 23016386 f9850513 addi a0 a0 104 2307df98 unnamed 4 2301638a 4581 li a1 0 2301638c 00000097 auipc ra 0x0 23016390 f3c080e7 jalr 196 ra 230162c8 panic if ok unreachable assertion failure 23016394 a009 j 23016396 std debug assert 0x2e but the second address 23016ce0 reveals the assertion that failed text home user nuttx zig bl602 nuttx lorawan test zig 95 assert txperiodicity 0 23016ccc 42013537 lui a0 0x42013 23016cd0 fbc52503 lw a0 68 a0 42012fbc txperiodicity 23016cd4 00a03533 snez a0 a0 23016cd8 fffff097 auipc ra 0xfffff 23016cdc 690080e7 jalr 1680 ra 23016368 std debug assert home user nuttx zig bl602 nuttx lorawan test zig 100 txtimer std mem zeroes c timerevent t 23016ce0 42016537 lui a0 0x42016 this is our implementation of the zig panic handler zig called by zig when it hits a panic we print the panic message stack trace and halt see https andrewkelley me post zig stack traces kernel panic bare bones os html https github com ziglang zig blob master lib std builtin zig l763 l847 pub fn panic message const u8 stack trace std builtin stacktrace noreturn print the panic message stack trace puts n zig panic puts ptrcast c const u8 message print the stack trace puts stack trace var it std debug stackiterator init returnaddress null while it next return address printf p n return address halt while true source https github com lupyuen zig bl602 nuttx blob main lorawan test zig l501 l522 logging we have implemented debug logging std log debug that s described here a simple overview of zig s std log https gist github com leecannon d6f5d7e5af5881c466161270347ce84d here s how we call std log debug to print a log message zig create a short alias named debug const debug std log debug message with 8 bytes const msg const u8 hi nuttx print the message debug transmit to lorawan bytes s msg len msg prints transmit to lorawan 8 bytes hi nuttx creates an anonymous struct https ziglearn org chapter 1 anonymous structs with a variable number of arguments that will be passed to std log debug for printing below is our implementation of std log debug zig called by zig for std log debug std log info std log err https gist github com leecannon d6f5d7e5af5881c466161270347ce84d pub fn log comptime message level std log level comptime scope type enumliteral comptime format const u8 args anytype void message level scope format the message var buf 100 u8 undefined limit to 100 chars var slice std fmt bufprint buf format args catch puts log error buf too small return terminate the formatted message with a null var buf2 buf len 1 0 u8 undefined std mem copy u8 buf2 0 slice len slice 0 slice len buf2 slice len 0 print the formatted message puts buf2 source https github com lupyuen zig bl602 nuttx blob main lorawan test zig l519 l546 this implementation calls puts which is supported by apache nuttx rtos since it s posix compliant https nuttx apache org docs latest introduction inviolables html strict posix compliance compare c and zig the original c code and the converted zig code for our lorawan app look highly similar here s the main function from our original c code c main function that will be called by nuttx we call the lorawan library to join a lorawan network and send a data packet int main int argc far char argv if we are using entropy pool and the bl602 adc is available add the internal temperature sensor data to the entropy pool init entropy pool compute the interval between transmissions based on duty cycle txperiodicity app tx dutycycle randr app tx dutycycle rnd app tx dutycycle rnd const version t appversion value firmware version const version t githubversion value github version displayappinfo lorawan test appversion githubversion init lorawan if lmhandlerinit lmhandlercallbacks lmhandlerparams loramac handler success printf loramac wasn t properly initialized n fatal error endless loop while 1 set system maximum tolerated rx error in milliseconds lmhandlersetsystemmaxrxerror 20 the lora alliance compliance protocol package should always be initialized and activated lmhandlerpackageregister package id compliance lmhpcomplianceparams lmhandlerpackageregister package id clock sync null lmhandlerpackageregister package id remote mcast setup null lmhandlerpackageregister package id fragmentation fragmentationparams isclocksynched false isfiletransferdone false join the lorawan network lmhandlerjoin set the transmit timer starttxprocess loramac handler tx on timer handle lorawan events handle event queue null never returns return 0 source https github com lupyuen lorawan test blob main lorawan test main c l271 l323 and the main function from our converted zig code after some scrubbing zig main function that will be called by nuttx we call the lorawan library to join a lorawan network and send a data packet pub export fn lorawan test main argc c int argv const const u8 c int argc argv init the timer struct at startup txtimer std mem zeroes c timerevent t if we are using entropy pool and the bl602 adc is available add the internal temperature sensor data to the entropy pool todo init entropy pool compute the interval between transmissions based on duty cycle txperiodicity bitcast u32 cast to u32 because randr can be negative app tx dutycycle c randr app tx dutycycle rnd app tx dutycycle rnd show the firmware and github versions const appversion c version t value c firmware version const githubversion c version t value c github version c displayappinfo zig lorawan test appversion githubversion init lorawan if lmhandlerinit lmhandlercallbacks lmhandlerparams c loramac handler success std log err loramac wasn t properly initialized fatal error endless loop while true set system maximum tolerated rx error in milliseconds c lmhandlersetsystemmaxrxerror 20 the lora alliance compliance protocol package should always be initialized and activated c lmhandlerpackageregister c package id compliance lmhpcomplianceparams c lmhandlerpackageregister c package id clock sync null c lmhandlerpackageregister c package id remote mcast setup null c lmhandlerpackageregister c package id fragmentation fragmentationparams init the clock sync and file transfer status isclocksynched false isfiletransferdone false join the lorawan network c lmhandlerjoin set the transmit timer starttxprocess lmhandlertxevents t loramac handler tx on timer handle lorawan events handle event queue never returns return 0 source https github com lupyuen zig bl602 nuttx blob main lorawan test zig l90 l158 todo clean up names of types functions and variables todo read the internal temperature sensor todo encode the temperature sensor data with tinycbor and transmit to the things network https lupyuen github io articles cbor2 todo monitor sensor data with prometheus and grafana https lupyuen github io articles prometheus todo add new code with import https zig news mattnite import and packages 23mb todo do we need to align buffers to 32 bits when exporting to c zig user application data aligned to 32 bit because it s exported to c var appdatabuffer lorawan app data buffer max size u8 align 4 std mem zeroes lorawan app data buffer max size u8 zig type reflection zig type reflection can we use it to generate a structured call graph for c libraries like for the lorawan library this zig program imports the lorawan library from c and dumps out the lorawan types and functions zig do type reflection on the imported c functions fn reflect void we run this at compile time instead of runtime comptime allow zig compiler to loop up to 100 000 times default is 1 000 setevalbranchquota 100 000 get the type info of the c namespace const t typeinfo c show the type info of the c namespace struct compilelog typeinfo c t shows typeinfo c std builtin type struct struct std builtin type struct constant show the number of fields in the c namespace 0 compilelog t struct fields len t struct fields len shows t struct fields len 0 show the number of declarations in the c namespace 4743 compilelog t struct decls len t struct decls len shows t struct decls len 4743 show the first declaration in the c namespace builtin bswap16 compilelog t struct decls 0 name t struct decls 0 name shows t struct decls 0 name builtin bswap16 for every c declaration for t struct decls decl i if the c declaration starts with lm loramac if std mem startswith u8 decl name lm dump the c declaration var t2 typeinfo c compilelog decl name t2 struct decls i name strangely we can t do this compilelog decl name decl name because it shows decl name const u8 76 109 110 83 116 97 116 117 115 95 116 end of compile time code source https github com lupyuen zig bl602 nuttx blob d30cc1e8714f053ad5e417087f5685a62f9df10e reflect zig l825 l867 typeinfo is explained here https ziglang org documentation master typeinfo when zig compiler compiles the code above we see this at compile time text zig build obj verbose cimport target riscv32 freestanding none mcpu baseline rv32 d isystem users luppy pinecone nuttx nuttx include i users luppy pinecone nuttx apps examples lorawan test reflect zig info compilation c import output zig cache o e979b806463a36dcecc2ef773bd2d2ad cimport zig typeinfo c std builtin type struct struct std builtin type struct constant t struct fields len 0 t struct decls len 4744 t struct decls 0 name builtin bswap16 decl name lmnstatus t decl name lmhandleradrstates t decl name lmhandlerflagstatus t decl name lmhandlerinit decl name lmhandlerisbusy decl name lmhandlerprocess decl name lmhandlergetdutycyclewaittime decl name lmhandlersend decl name lmhandlerjoin reflect zig 836 9 error found compile log statement compilelog typeinfo c t reflect zig 840 9 error found compile log statement compilelog t struct fields len t struct fields len reflect zig 844 9 error found compile log statement compilelog t struct decls len t struct decls len reflect zig 848 9 error found compile log statement compilelog t struct decls 0 name t struct decls 0 name reflect zig 857 17 error found compile log statement compilelog decl name t2 struct decls i name source https gist github com lupyuen ff225b4208f03ac012f48b130fd3ddd1 which is a list of c types and functions from the lorawan library let s use this to visualise the call graph by module for the lorawan library we ll render the call graph with mermaid js https mermaid js github io mermaid flowchart id flowcharts and we ll group lorawan functions in call graph by lorawan module subgraph so we can see the calls across lorawan modules heisenbug in the code above why did we use t2 struct decls i name instead of decl name zig for every c declaration for t struct decls decl i if the c declaration starts with lm loramac if std mem startswith u8 decl name lm dump the c declaration var t2 typeinfo c can t use decl name here compilelog decl name t2 struct decls i name we expect this code to print the name of the declaration zig compilelog decl name decl name like so text decl name lmnstatus t but strangely it prints the bytes text decl name const u8 76 109 110 83 116 97 116 117 115 95 116 zig compiler seems to interpret the name differently after we have referenced the name earlier zig if the c declaration starts with lm loramac if std mem startswith u8 decl name lm so we use this workaround instead zig get a fresh reference to the type info var t2 typeinfo c this works ok compilelog decl name t2 struct decls i name which produces the result we need text decl name lmnstatus t group by c header files can we automatically identify the lorawan module for every lorawan function by analysing the header name h c header macros let s try this to dump out all c declarations and macros imported from c zig get the type info of the c namespace const t typeinfo c remember the c header var header const u8 for every c declaration for t struct decls decl i var t2 typeinfo c if the c declaration ends with h if std mem endswith u8 decl name h or std mem endswith u8 decl name h or std mem endswith u8 decl name h dump the c header and remember it var name t2 struct decls i name compilelog name header name else dump the c declaration var name t2 struct decls i name compilelog decl name name end of c declaration source https github com lupyuen zig bl602 nuttx blob 293ccb37ec6fdd6b4ac40da5410bdf4c97f12eea reflect zig l825 l885 we get this list of lorawan functions and lorawan macros text decl name lmhandlerinit decl name lmhandlerisbusy decl name lmhandlerprocess decl name lmhandlergetdutycyclewaittime decl name lmhandlersend decl name lmhandlerjoin loramac handler h loramac handler types h decl name lmh sys time update new api decl name lmhp compliance source https gist github com lupyuen 7f0058c982b958a245123714fccd2289 which isn t useful lmhandlerinit is actually declared inside the c header file for loramac handler h but somehow the zig type reflection moves lmhandlerinit up to the top before loramac handler h appears so it seems we need to manually group the lorawan functions into lorawan modules the lorawan functions appear to be sequenced according to the c header file so we only need to manually tag the first lorawan function for each lorawan module like this text lmhandlerinit loramac handler h loramacinitialization loramac h regioncommonvalueinrange regioncommon h sx126xinit sx126x h sx126xioinit sx126x board h self type reflection our zig app can do type reflection on itself to discover its types constants variables and functions zig show the type info for our zig namespace const thistype typeinfo this compilelog thistype thistype compilelog thistype struct decls len thistype struct decls len compilelog thistype struct decls 0 name thistype struct decls 0 name compilelog thistype struct decls 1 name thistype struct decls 1 name compilelog thistype struct decls 2 name thistype struct decls 2 name shows thistype std builtin type struct struct std builtin type struct constant thistype struct decls len 66 thistype struct decls 0 name std thistype struct decls 1 name c thistype struct decls 2 name active region source https github com lupyuen zig bl602 nuttx blob 293ccb37ec6fdd6b4ac40da5410bdf4c97f12eea reflect zig l886 l898 we ll use this to plot the function calls from our zig functions to the c functions in the lorawan library import call log earlier we have captured this call log a log of calls to the c functions in the lorawan library text init event queue timerinit 0x4201c76c sx126xioinit compiled with gcc init gpio radiosetchannel freq 923200000 radiosettxconfig modem 1 power 13 fdev 0 bandwidth 0 datarate 10 coderate 1 preamblelen 8 fixlen 0 crcon 1 freqhopon 0 hopperiod 0 iqinverted 0 timeout 4000 radiosettxconfig spreadingfactor 10 bandwidth 4 codingrate 1 lowdatarateoptimize 0 preamblelength 8 headertype 0 payloadlength 255 crcmode 1 invertiq 0 radiostandby radiosetmodem sx126xsettxparams power 13 ramptime 7 sx126xsetpaconfig padutycycle 4 hpmax 7 devicesel 0 palut 1 source https gist github com lupyuen 0871ac515b18d9d68d3aacf831fd0f5b each line of the call log contains the lorawan function name we ll match this with the info from zig type reflection to plot the call graph we import the call log into our zig app like so zig call log captured for this app from https gist github com lupyuen 0871ac515b18d9d68d3aacf831fd0f5b const call log init event queue timerinit 0x4201c76c sx126xioinit compiled with gcc init gpio radiosetchannel freq 923200000 radiosettxconfig modem 1 power 13 fdev 0 bandwidth 0 datarate 10 coderate 1 preamblelen 8 fixlen 0 crcon 1 freqhopon 0 hopperiod 0 iqinverted 0 timeout 4000 radiosettxconfig spreadingfactor 10 bandwidth 4 codingrate 1 lowdatarateoptimize 0 preamblelength 8 headertype 0 payloadlength 255 crcmode 1 invertiq 0 radiostandby radiosetmodem sx126xsettxparams power 13 ramptime 7 sx126xsetpaconfig padutycycle 4 hpmax 7 devicesel 0 palut 1 secureelementrandomnumber 0xbc9f21c2 radiosend size 23 00 00 00 00 00 00 00 00 00 5b b1 7b 37 e7 5e c1 4b c2 21 9c 04 48 1b radiosend preamblelength 8 headertype 0 payloadlength 23 crcmode 1 invertiq 0 timerstop 0x4201b86c timerstart2 0x4201b86c 4000 ms callout reset evq 0x420131a8 ev 0x4201b86c mlme request mlme join status ok starttxprocess handle event queue dio1 add event handle event queue ev 0x4201b894 radioondioirq radioirqprocess irq tx done timerstop 0x4201b86c todo rtcgetcalendartime todo rtcbkupread radioondioirq radioirqprocess processradiotxdone rxwindow1delay 4988 radiosleep source https github com lupyuen zig bl602 nuttx blob 293ccb37ec6fdd6b4ac40da5410bdf4c97f12eea reflect zig l916 l2409 zig compiler can process the call log line by line like so zig show the first line of the call log var call log split std mem split u8 call log n const line call log split next compilelog line line shows line const u8 103 112 108 104 95 101 110 97 98 108 101 58 32 87 65 82 78 73 78 71 58 32 112 105 110 57 58 32 65 108 114 101 97 100 121 32 100 101 116 97 99 104 101 100 source https github com lupyuen zig bl602 nuttx blob 293ccb37ec6fdd6b4ac40da5410bdf4c97f12eea reflect zig l900 l904 to iterate through all lines of the call log we do this zig for every line in the call log var call log split std mem split u8 call log n while call log split next line todo process the line compilelog line line end of call log source https github com lupyuen zig bl602 nuttx blob 0c480450bcffca353948fc24f41258316c95b8e1 reflect zig l906 l928 match call log let s match the call log with the function names from our lorawan library zig for every line in the call log var call log split std mem split u8 call log n while call log split next line for every c declaration for t struct decls decl i if std mem eql u8 decl name radio continue skip radio var t2 typeinfo c if the c declaration matches the call log if std mem startswith u8 line decl name dump the c declaration var name t2 struct decls i name compilelog found call log name break end of c declaration end of call log source https github com lupyuen zig bl602 nuttx blob 0c480450bcffca353948fc24f41258316c95b8e1 reflect zig l906 l928 the code above produces this result text found call log loramacinitialization found call log timerinit found call log sx126xioinit found call log sx126xsettx found call log sx126xsetpaconfig found call log timerinit found call log timerinit found call log radiosetmodem found call log radiosetmodem found call log radiosetpublicnetwork found call log radiosleep found call log radiosetmodem found call log radiosetpublicnetwork source https gist github com lupyuen e423de95105708223cf5f1b6455e07d7 which is a list of lorawan functions and the sequence they were called one step closer to rendering our structured call graph draw the graph let s extend the code above and render a naive call graph for every lorawan function that we identify in the call log we plot a line between the lorawan function and the next lorawan function in the call log so we re just plotting the connected sequence of function calls yep it s super naive we do it like this zig draw the graph for all functions in the call log var call log split std mem split u8 call log n var prev name const u8 start compilelog flowchart td top down flowchart for every line in the call log while call log split next line for every c declaration for t struct decls decl i if std mem eql u8 decl name radio continue skip radio var t2 typeinfo c if the c declaration matches the call log if std mem startswith u8 line decl name draw the graph previous function current function var name t2 struct decls i name compilelog prev name name prev name name break end of c declaration end of call log compilelog prev name end source https github com lupyuen zig bl602 nuttx blob 5c7989894566cdc0d1852789bc68621c531e459e reflect zig l906 l932 zig compiler produces this result at compile time text flowchart td start loramacinitialization loramacinitialization timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit sx126xioinit sx126xioinit sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig timerinit timerinit timerinit timerinit radiosetmodem source https gist github com lupyuen 056340b299495682c0c2fbc61b30f203 we manually remove the delimiters from the zig compiler log above like this text flowchart td start loramacinitialization loramacinitialization timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit sx126xioinit sx126xioinit sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig timerinit timerinit timerinit timerinit radiosetmodem to get this mermaid js flowchart https mermaid js github io mermaid flowchart id flowcharts mermaid flowchart td start loramacinitialization loramacinitialization timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit sx126xioinit sx126xioinit sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig timerinit timerinit timerinit timerinit radiosetmodem radiosetmodem radiosetmodem radiosetmodem radiosetpublicnetwork radiosetpublicnetwork radiosleep radiosleep radiosetmodem radiosetmodem radiosetpublicnetwork radiosetpublicnetwork timerinit timerinit timerinit timerinit timerinit timerinit radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend radiosend radiosend timerstop timerstop timerstart timerstart timerinit timerinit timersetvalue timersetvalue timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess irq tx done irq tx done timerstop timerstop radioondioirq radioondioirq radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess radioondioirq radioondioirq radioirqprocess radioirqprocess radioondioirq radioondioirq radioirqprocess radioirqprocess radioondioirq radioondioirq radioirqprocess radioirqprocess irq header valid irq header valid radioondioirq radioondioirq radioirqprocess radioirqprocess radioondioirq radioondioirq radioirqprocess radioirqprocess irq rx done irq rx done timerstop timerstop radioondioirq radioondioirq radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend radiosend radiosend timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess irq tx done irq tx done timerstop timerstop radioondioirq radioondioirq radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess radioondioirq radioondioirq radioirqprocess radioirqprocess irq rx tx timeout irq rx tx timeout timerstop timerstop radioondioirq radioondioirq radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timerstop timerstop timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend radiosend radiosend timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess irq tx done irq tx done timerstop timerstop radioondioirq radioondioirq radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess radioondioirq radioondioirq radioirqprocess radioirqprocess irq rx tx timeout irq rx tx timeout timerstop timerstop radioondioirq radioondioirq radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timerstop timerstop timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend radiosend radiosend timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess irq tx done irq tx done timerstop timerstop radioondioirq radioondioirq radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess radioondioirq radioondioirq radioirqprocess radioirqprocess irq rx tx timeout irq rx tx timeout timerstop timerstop radioondioirq radioondioirq radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timerstop timerstop timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend radiosend radiosend timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess irq tx done irq tx done timerstop timerstop radioondioirq radioondioirq radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess radioondioirq radioondioirq radioirqprocess radioirqprocess irq rx tx timeout irq rx tx timeout timerstop timerstop radioondioirq radioondioirq radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timerstop timerstop timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend radiosend radiosend timerstop timerstop timerstart timerstart radioondioirq radioondioirq radioirqprocess radioirqprocess irq tx done irq tx done timerstop timerstop radioondioirq radioondioirq radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart super naive call graph what s wrong with the super naive call graph that we have produced text flowchart td start loramacinitialization loramacinitialization timerinit timerinit timerinit timerinit sx126xioinit sx126xioinit sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig timerinit timerinit radiosetmodem source https gist github com lupyuen 056340b299495682c0c2fbc61b30f203 our call graph lacks structure remember we re only plotting the sequence of function calls timerinit timerinit doesn t make sense because we don t have recursive functions timerinit radiosetmodem is totally wrong because timerinit is a low level function nimble multithreading library whereas radiosetmodem is an high level function sx1262 library can we add some structure to improve the call graph to produce a structured call graph we ll group the functions into modules from high level to low level 1 zig app highest level 1 lorawan library 1 sx1262 library 1 nimble multithreading library lowest level and we ll ensure that we never draw a line from a low level function to a high level function this is a snippet of what we want to achieve mermaid flowchart td subgraph lorawan start loramacinitialization end subgraph sx1262 sx126xioinit sx126xsettx sx126xsetpaconfig end subgraph nimble timerinit timerinit end start loramacinitialization loramacinitialization timerinit sx126xioinit sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig timerinit group functions by modules let s add some structure to our call graph by grouping the c functions into modules this is how we define the modules from high level to low level zig define the modules and the first last functions in each module we order the modules from high level to low level var all modules module loramac handler is the top level module that drives the lorawan stack module name lmhandler first function lmhandlerinit last function displayappinfo first index undefined last index undefined loramac module is the implementation of the lorawan driver module name loramac first function loramacinitialization last function loramacdeinitialization first index undefined last index undefined radio module is the abstract interface for lora radio transceivers module name radio first function radioinit last function radioaddregistertoretentionlist first index undefined last index undefined sx1262 module is the lora driver for semtech sx1262 radio transceiver module name sx1262 first function sx126xinit last function sx126xsetoperatingmode first index undefined last index undefined nimble is the bottom level module that contains multithreading functions like timers and event queues module name nimble first function timerinit last function timergetelapsedtime first index undefined last index undefined source https github com lupyuen zig bl602 nuttx blob 69565443d4b9afb5a2153473b831d7188ff266ef reflect zig l838 l876 note that we specify only the first and last functions for each module that s because functions from the same module are clustered together in the zig type reflection then we render each module as a mermaid js subgraph zig render all modules and their functions as subgraphs fn render modules all modules module void comptime render every module for all modules module m compilelog subgraph module name for every line in the call log var call log split std mem split u8 call log n while call log split next line var t typeinfo c if the call log matches a c declaration if get decl by name filtered all modules line decl index get the module index for the c declaration if get module by decl all modules decl index m2 if the c declaration matches our module index if m m2 print the function name var name t struct decls decl index name compilelog name else missing declaration var name t struct decls decl index name compilelog missing decl name end of call log compilelog end end of module source https github com lupyuen zig bl602 nuttx blob 69565443d4b9afb5a2153473b831d7188ff266ef reflect zig l914 l952 each subgraph contains a list of functions that belong to the module text flowchart td subgraph lmhandler lmhandlersend end subgraph loramac loramacinitialization end subgraph radio radiosetmodem radiosetpublicnetwork radiosleep radiosetchannel radiosettxconfig radiostandby radiosend radioirqprocess end subgraph sx1262 sx126xioinit sx126xsettx sx126xsetpaconfig end subgraph nimble timerinit timerstop timerstart timersetvalue end start loramacinitialization loramacinitialization timerinit timerinit sx126xioinit source https gist github com lupyuen a7fa7b9973ade3c4565f21e20ef7f88b when we render the output with mermaid js we get a structured call graph that looks more meaningful mermaid flowchart td subgraph lmhandler lmhandlersend lmhandlersend lmhandlersend lmhandlersend lmhandlersend lmhandlersend lmhandlersend lmhandlersend lmhandlersend lmhandlersend lmhandlersend lmhandlersend end subgraph loramac loramacinitialization end subgraph radio radiosetmodem radiosetmodem radiosetpublicnetwork radiosleep radiosetmodem radiosetpublicnetwork radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiosetmodem radiosend radiosend radioirqprocess radioirqprocess radiosleep radiostandby radiosetchannel radiosetrxconfig radiostandby radiosetmodem radiosetrxconfig radiorx radioirqprocess radioirqprocess radioirqprocess radioirqprocess radioirqprocess radioirqprocess radioirqprocess radiosleep radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiosetmodem radiosend radiosend radioirqprocess radioirqprocess radiosleep radiostandby radiosetchannel radiosetrxconfig radiostandby radiosetmodem radiosetrxconfig radiorx radioirqprocess radioirqprocess radioirqprocess radiosleep radioirqprocess radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiosetmodem radiosend radiosend radioirqprocess radiosleep radiostandby radiosetchannel radiosetrxconfig radiostandby radiosetmodem radiosetrxconfig radiorx radioirqprocess radioirqprocess radioirqprocess radiosleep radioirqprocess radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiosetmodem radiosend radiosend radioirqprocess radioirqprocess radiosleep radiostandby radiosetchannel radiosetrxconfig radiostandby radiosetmodem radiosetrxconfig radiorx radioirqprocess radioirqprocess radioirqprocess radiosleep radioirqprocess radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiosetmodem radiosend radiosend radioirqprocess radioirqprocess radiosleep radiostandby radiosetchannel radiosetrxconfig radiostandby radiosetmodem radiosetrxconfig radiorx radioirqprocess radioirqprocess radioirqprocess radiosleep radioirqprocess radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiosetmodem radiosend radiosend radioirqprocess radioirqprocess radiosleep radiostandby radiosetchannel radiosetrxconfig radiostandby radiosetmodem radiosetrxconfig radiorx radioirqprocess radioirqprocess radioirqprocess radiosleep radioirqprocess radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiosetmodem radiosend radiosend radioirqprocess radioirqprocess radiosleep radiostandby radiosetchannel radiosetrxconfig radiostandby radiosetmodem radiosetrxconfig radiorx radioirqprocess radioirqprocess radioirqprocess radiosleep radioirqprocess radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiosetmodem radiosend radiosend radioirqprocess radioirqprocess radiosleep radiostandby radiosetchannel radiosetrxconfig radiostandby radiosetmodem radiosetrxconfig radiorx radioirqprocess radioirqprocess radioirqprocess radiosleep radioirqprocess radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiosetmodem radiosend radiosend radioirqprocess radioirqprocess radiosleep radiostandby radiosetchannel radiosetrxconfig radiostandby radiosetmodem radiosetrxconfig radiorx radioirqprocess radioirqprocess radioirqprocess radiosleep radioirqprocess radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiosetmodem radiosend radiosend radioirqprocess radioirqprocess radiosleep radiostandby radiosetchannel radiosetrxconfig radiostandby radiosetmodem radiosetrxconfig radiorx radioirqprocess radioirqprocess radioirqprocess radiosleep radioirqprocess radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiosetmodem radiosend radiosend radioirqprocess radioirqprocess radiosleep radiostandby radiosetchannel radiosetrxconfig radiostandby radiosetmodem radiosetrxconfig radiorx radioirqprocess radioirqprocess radioirqprocess radiosleep radioirqprocess radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiosetmodem radiosend radiosend radioirqprocess radioirqprocess radiosleep radiostandby radiosetchannel radiosetrxconfig radiostandby radiosetmodem radiosetrxconfig radiorx radioirqprocess radioirqprocess radioirqprocess radiosleep radioirqprocess radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiosetmodem radiosend radiosend radioirqprocess radioirqprocess radiosleep radiostandby radiosetchannel radiosetrxconfig radiostandby radiosetmodem radiosetrxconfig radiorx radioirqprocess radioirqprocess radioirqprocess radiosleep end subgraph sx1262 sx126xioinit sx126xsettx sx126xsetpaconfig sx126xsettx sx126xsetpaconfig sx126xsettx sx126xsetpaconfig sx126xsettx sx126xsetpaconfig sx126xsettx sx126xsetpaconfig sx126xsettx sx126xsetpaconfig sx126xsettx sx126xsetpaconfig sx126xsettx sx126xsetpaconfig sx126xsettx sx126xsetpaconfig sx126xsettx sx126xsetpaconfig sx126xsettx sx126xsetpaconfig sx126xsettx sx126xsetpaconfig sx126xsettx sx126xsetpaconfig sx126xsettx sx126xsetpaconfig end subgraph nimble timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerinit timerstop timerstart timerinit timersetvalue timerstop timersetvalue timerstart timerstop timerstart timerstop timersetvalue timerstart timerstop timerstart timersetvalue timerstart timerstop timerstart timerstop timerstop timerstart timerstop timerstop timerstop timerstart timerstop timersetvalue timerstart timerstop timerstart timersetvalue timerstart timerstop timerstart timerstop timerstop timerstart timerstop timerstop timerstop timerstop timersetvalue timerstart timerstop timerstart timerstop timerstart timerstop timersetvalue timerstart timerstop timerstart timersetvalue timerstart timerstop timerstart timerstop timerstop timerstart timerstop timerstop timerstop timerstop timersetvalue timerstart timerstop timerstart timerstop timerstart timerstop timersetvalue timerstart timerstop timerstart timersetvalue timerstart timerstop timerstart timerstop timerstop timerstart timerstop timerstop timerstop timerstop timersetvalue timerstart timerstop timerstart timerstop timerstart timerstop timersetvalue timerstart timerstop timerstart timersetvalue timerstart timerstop timerstart timerstop timerstop timerstart timerstop timerstop timerstop timerstop timersetvalue timerstart timerstop timerstart timerstop timerstart timerstop timersetvalue timerstart timerstop timerstart timersetvalue timerstart timerstop timerstart timerstop timerstop timerstart timerstop timerstop timerstop timerstop timersetvalue timerstart timerstop timerstart timerstop timerstart timerstop timersetvalue timerstart timerstop timerstart timersetvalue timerstart timerstop timerstart timerstop timerstop timerstart timerstop timerstop timerstop timerstop timersetvalue timerstart timerstop timerstart timerstop timerstart timerstop timersetvalue timerstart timerstop timerstart timersetvalue timerstart timerstop timerstart timerstop timerstop timerstart timerstop timerstop timerstop timerstop timersetvalue timerstart timerstop timerstart timerstop timerstart timerstop timersetvalue timerstart timerstop timerstart timersetvalue timerstart timerstop timerstart timerstop timerstop timerstart timerstop timerstop timerstop timerstop timersetvalue timerstart timerstop timerstart timerstop timerstart timerstop timersetvalue timerstart timerstop timerstart timersetvalue timerstart timerstop timerstart timerstop timerstop timerstart timerstop timerstop timerstop timerstop timersetvalue timerstart timerstop timerstart timerstop timerstart timerstop timersetvalue timerstart timerstop timerstart timersetvalue timerstart timerstop timerstart timerstop timerstop timerstart timerstop timerstop timerstop timerstop timersetvalue timerstart timerstop timerstart timerstop timerstart timerstop timersetvalue timerstart timerstop timerstart timersetvalue timerstart timerstop timerstart timerstop timerstop timerstart timerstop timerstop timerstop timerstop timersetvalue timerstart timerstop timerstart timerstop timerstart timerstop timersetvalue timerstart timerstop timerstart timersetvalue timerstart timerstop timerstart timerstop timerstop timerstart timerstop timerstop timerstop end start loramacinitialization loramacinitialization timerinit timerinit sx126xioinit sx126xioinit sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig timerinit timerinit radiosetmodem radiosetmodem radiosetpublicnetwork radiosetpublicnetwork radiosleep radiosleep radiosetmodem radiosetmodem radiosetpublicnetwork radiosetpublicnetwork timerinit timerinit radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend timerstop timerstop timerstart timerstart timerinit timerinit timersetvalue timersetvalue timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess lmhandlersend lmhandlersend radiosetchannel radiosetchannel radiosettxconfig radiosettxconfig radiostandby radiostandby radiosetmodem radiosetmodem sx126xsettx sx126xsettx sx126xsetpaconfig sx126xsetpaconfig radiosend radiosend timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timersetvalue timersetvalue timerstart timerstart timerstop timerstop timerstart timerstart timerstop timerstop radiostandby radiostandby radiosetchannel radiosetchannel radiosetrxconfig radiosetrxconfig radiostandby radiostandby radiosetmodem radiosetmodem radiosetrxconfig radiosetrxconfig radiorx radiorx timerstop timerstop timerstart timerstart radioirqprocess radioirqprocess timerstop timerstop radioirqprocess radioirqprocess radiosleep radiosleep timerstop timerstop end constrain the call graph todo out of memory zig compiler crashes when we run this code to group the c functions by module https github com lupyuen zig bl602 nuttx blob f5a5c824e07e5fc984136069a1769edda4967c77 reflect zig l825 l1086 here is the output log https gist github com lupyuen 5738abefa9d4c138e9d731e22d01500f on macos zig compiler consumes over 34 gb of memory and crashes too much memory https lupyuen github io images screenshot 202022 06 21 20at 208 03 46 20am png on wsl zig compiler hangs the wsl process when it consumes over 4 gb of memory this happens because our code loops repeatedly over 4 700 c declarations while processing 1 500 lines of raw call logs let s optimise our code fix out of memory our code searches for a c declaration by looping repeatedly over 4 700 c declarations like so zig return the c declaration index for the function name we match the c declaration name against the start of the function name this is the slower unfiltered version that searches all c declarations fn get decl by name name const u8 usize comptime const t typeinfo c for every c declaration for t struct decls decl i if std mem eql u8 decl name radio continue skip radio if the c declaration starts with the function name if std mem startswith u8 name decl name return the c declaration index return i end of c declaration return null not found source https github com lupyuen zig bl602 nuttx blob 6d428422bf83b45ffe33e4ea9ce2919f812ad3bb reflect zig l1024 l1044 which causes zig compiler to crash with out of memory but we don t actually need to loop through all the c declarations according to our list of modules we call only 173 functions let s fix the above function so that we loop over the 173 functions instead zig return the c declaration index for the function name we match the c declaration name against the start of the function name this is the faster filtered version that searches c declarations by modules fn get decl by name filtered all modules module name const u8 usize comptime const t typeinfo c search all modules for the function name for all modules module for every c declaration in the module var decl index module first index while decl index module last index get the c declaration var decl t struct decls decl index if std mem eql u8 decl name radio continue skip radio if the c declaration starts with the function name if std mem startswith u8 name decl name return the c declaration index return decl index decl index 1 end of c declaration end of module return null not found source https github com lupyuen zig bl602 nuttx blob 6d428422bf83b45ffe33e4ea9ce2919f812ad3bb reflect zig l1046 l1075 and our code runs ok with zig compiler macos not wsl though wishlist for zig compiler building a call graph at compile time with zig compiler looks pretty challenging i hope that future versions of the zig compiler will support the following type reflection for c declarations will provide the full path of source files makes it easier to identify the module for each declaration compilelog will emit any kind of strings so that compilelog can generate proper mermaid js strings like start loramacinitialization | bl602 bl604 nuttx pinecone pinedio riscv32 zig iot lora lorawan | os |
Code-It | inventory management build setup bash or cmd clone the project https github com philemonchiro code it git enter the project directory cd vue admin template install dependency npm install develop npm run dev this will automatically open http localhost 9528 | os |
|
Scalable-Software-Architecture | scalable software architecture collection of tech talks papers and web links on distributed systems scalability and system design tech talks general advice on system design and scalability lecture scalability harvard web development david malan https www youtube com watch v w9f d3oy4 building software systems at google and lessons learned https www youtube com watch v modxc5iwtji scalable internet architectures theo schlossnagle https www youtube com watch v 2wut2rdlk5a seattle conference on scalability jeff dean https www youtube com watch v yfgfvccfk0g best practices for scaling web apps https www youtube com watch v tq2v9qsv48m building a scalable architecture for web apps https www youtube com watch v yeyuggzo2qc web application architecture the whole stack allen holub https www youtube com watch v sgefnrf67cw scalable distributed design https www youtube com watch v e9gfa ykzfy building software at google scale tech talk https www youtube com watch v 2qv3fcxw1mg seattle conference on scalability scaling google for every user https www youtube com watch v lt1ufzsbcxe seattle conference on scalability lessons in building scalable systems https www youtube com watch v ms48x9oear0 workers queues and cache https www infoq com presentations workers queues cache velocity 2012 jay parikh building for a billion users https www youtube com watch v oods71ytkgu building large systems at google https www youtube com watch v clta0w ehq 3000 images per second henna kerman scale 2016 https www youtube com watch v cez6oo1u1u8 scaling to over 1 000 000 requests per second https www youtube com watch v v kfhcgw3ma jeff dean achieving rapid response times in large online services keynote velocity 2014 https www youtube com watch v 1 3ahy7fxsc getting things done at scale https www infoq com presentations cultural change management scale oriented architecture with apis https www infoq com presentations queues proxy microservices automation you won t believe how the biggest sites build scalable and resilient systems https www infoq com presentations scalable resilient systems scalable distributed design https www youtube com watch v e9gfa ykzfy distributed patterns you should know by eric redmond https www youtube com watch v otwvr8vbrx0 goto 2012 runaway complexity in big data systems and a plan to stop it nathan marz https www youtube com watch v uchjyb6jv08 seattle conference on scalability abstractions for handling large datasets https www youtube com watch v orwfpqkgrps high performance web sites and yslow https www youtube com watch v bthvs3v8dba company product specific tech talks seattle conference on scalability youtube scalability https www youtube com watch v w5wvu624fy8 how to answer design question how do you design a twitter https www youtube com watch v gx8s7b8uyl8 operations at twitter scaling beyond 100 million users https www youtube com watch v z8lu0cj6bou how we ve scaled dropbox https www youtube com watch v pe4gwstwhmc keynote twitter s search architecture https www youtube com watch v aguwva8p di marco cecconi the architecture of stackoverflow https www youtube com watch v t6km2em6so4 scalability at youtube https www youtube com watch v g lgcc4kkok lessons of scale at facebook https www youtube com watch v qchinew73au scale at facebook https www infoq com presentations scale at facebook flight lightning scaling twitter core infrastructure https www youtube com watch v 6ovrfklsoz0 scaling instagram with mike krieger https www youtube com watch v ona2c1vc8fq goto 2014 scaling pinterest marty weiner https www youtube com watch v jqncud hxdq infoq link https www infoq com presentations pinterest real time delivery architecture at twitter https www youtube com watch v j5aucy4ajk8 oscon 2014 how instagram com works pete hunt https www youtube com watch v vktcl6nqm6y scaling the data infrastructure at instagram https www youtube com watch v 1spgogjlkwm o reilly mysql ce 2011 jeremy cole big and small data at twitter https www youtube com watch v 5cktp36hvgi o reilly webcast how pinterest architected and built their sharded mysql datastore https www youtube com watch v afjm1ylrr5q timelines at scale twitter https www infoq com presentations twitter timeline scalability architecture at scale at espn https www infoq com presentations architecture scale espn building highly resilient systems at pinterest https www infoq com presentations pinterest resilient systems scaling uber https www infoq com presentations uber scalability arch how zoom works http highscalability com blog 2020 5 14 a short on how zoom works html scaling engineering culture at twitter https www youtube com watch v h9wtut6yqlc keynote systems at facebook scale https www youtube com watch v dlixgkelp9u scaling youtube s backend the vitess trade offs https www youtube com watch v 5ydo tmioxy hacker way rethinking web app development at facebook https www youtube com watch v nykdraprdcw data platform architecture evolution and philosophy at netflix https www youtube com watch v yt ztw5qnuq data platform architecture evolution and philosophy at netflix https www youtube com watch v uh8t7jmzlom structure personalization scale a deep dive into linkedin search https www infoq com presentations linkedin search scaling foursquare from check ins to recommendations https www infoq com presentations scale foursquare how netflix leverages multiple regions to increase availability an active active case study https www infoq com presentations netflix availability regions that s billion with a b scaling to the next level at whatsapp https www infoq com presentations whatsapp scalability how facebook scales big data systems https www infoq com presentations scale facebook big data scaling uber s real time market platform https www infoq com presentations uber market platform software development architecture linkedin https www infoq com presentations linkedin architecture practices etsy search how we index and query 26 million one of a kind items https www infoq com presentations etsy search ecosystem scalability lessons from ebay google and real time games https www infoq com presentations scalability ebay google kixeye how soundcloud uses cassandra https www infoq com presentations soundcloud cassandra service architectures at scale lessons from google and ebay https www infoq com presentations service arch scale google ebay solidifying the cloud how google backs up the internet https www infoq com presentations google cloud backup failure real time systems at twitter https www infoq com presentations real time twitter serving user intent facebook style notifications using hbase and event streams https www youtube com watch v hixxah0crvq netflix s distributed computing strategies optimistic design for the eventual consistency model https www youtube com watch v 6r1whwkh6pg distributed computing intro to hadoop and mapreduce udacity https www youtube com playlist list plawxtw4syapkxj6lav96gh8yxifgan3h introduction to hadoop https www youtube com watch v pq3oyqo l3e mapreduce flow chart https www youtube com watch v 6oemzejdmp8 distributed computing cs 61a uc berkeley https www youtube com watch v zgtz wwa9o8 list pl6bset 8jgywkcysvpsboj mck6xc0i4n mapreduce cs 61a uc berkeley https www youtube com watch v 6mablxxtilg list pl6bset 8jgyvivq1as4uspr2tyr830ohj cluster computing and mapreduce lecture 1 https www youtube com watch v yjpbkvyh ss cluster computing and mapreduce lecture 2 https www youtube com watch v vd6pudf3js introducing apache hadoop the modern data operating system https www youtube com watch v d2xenpfzsyi distributed database large scale storage spanner google s globally distributed database https www usenix org conference osdi12 technical sessions presentation corbett youtube link https www youtube com watch v nthk17nbpys spanner multi version globally distributed and synchronously replicated database https www youtube com watch v q7pcmn0 tac bigtable a distributed structured storage system https www youtube com watch v 2cxbnqcleha slides http static googleusercontent com media research google com en people jeff bigtable uw 2005 pdf large scale low latency storage for the social network data scale https www youtube com watch v 5rffhmwraic structured data at box how we re building for scale https www youtube com watch v khrw0xo8tyo f4 photo storage at facebook https www youtube com watch v 34e g ji 30 the storage technologies behind facebook messages https www youtube com watch v csnggakjqwk cold storage at facebook https www youtube com watch v fgzqtoluwu0 taking storage for a ride with uber https www youtube com watch v dg76cnaeb4s zen pinterest s graph storage service scale 2014 data https www youtube com watch v yi0vhfgk6oi with slides https www infoq com presentations zen pinterest graph storage service storage systems at a rapidly scaling startup with a small team data scale https www youtube com watch v blyv8zka5du f4 facebook s warm blob storage system https www youtube com watch v imlp3lxwggq distributed graph processing giraph https www youtube com watch v xyvs7nqdfzk apache giraph large scale graph processing on hadoop https www youtube com watch v uxw2tkhsqvm processing over a billion edges on apache giraph https www youtube com watch v b5qmz4zpj m graph search the power of connected data https www infoq com presentations graph search connected data using graph partitioning in distributed systems design https www youtube com watch v qhkhyy9atke let me graph that for you building a graph database application https www infoq com presentations graph db tools graphchi large scale graph computation on just a pc https www usenix org conference osdi12 technical sessions presentation kyrola powergraph distributed graph parallel computation on natural graphs https www usenix org conference osdi12 technical sessions presentation gonzalez stream processing heron real time stream data processing at twitter https www youtube com watch v puafouggmco samza in linkedin how linkedin processes billions of events everyday in real time https www infoq com presentations samza linkedin 2014 mantis netflix s event stream processing system https www infoq com presentations mantis high throughput stream processing with acid guarantees https www infoq com presentations acid stream processing martin kleppmann event sourcing and stream processing at scale https www youtube com watch v avi tzi9t2i ete 2012 nathan marz on storm https www youtube com watch v bdps8te0gyo cassandra nyc 2011 nathan marz the storm and cassandra realtime computation stack https www youtube com watch v cf8a fzwuli api design how to design a good api and why it matters https www youtube com watch v aab7hsctvgw how to design great apis parse developer day 2013 https www youtube com watch v qcdptji8nxo google i o 2010 how google builds apis https www youtube com watch v nyu5zxgufgs designing a beautiful rest json api https www youtube com watch v 5wxyw4j4qou web services and soa introduction to service design and engineering university of trento italy https www youtube com playlist list plbdajhwwi0jcn87quft3e58meku0 6wut rest json api design best practices for developers https www youtube com watch v hdsrt4yjs1g what is a service oriented architecture https www youtube com watch v nrayjzmj2oy webinar practical soa for the solution architect https www youtube com watch v 1kxkppaogty caching scaling redis at twitter https www youtube com watch v rp9ekvwt0zo facebook and memcached tech talk https www youtube com watch v uh7wkvcf0ys scaling memcache at facebook https www youtube com watch v 6pha3iacej8 how netflix and reddit scale to handle massive demand https www youtube com watch v zvqa7ogutiw an analysis of facebook photo caching https www youtube com watch v enaqscyvozy nosql introduction to nosql martin fowler https www youtube com watch v qi g07c q5i nosql distilled to an hour by martin fowler https www youtube com watch v asiu89gl0f0 nosql distilled pramod sadalage https www youtube com watch v l68zxgzs wc tech talk cassandra data modeling https www youtube com watch v tg6eiht 00m nosql explained https www youtube com watch v q6gn2kuotv0 big data architecture patterns https www youtube com watch v n9i yxoqbe graph databases exposed https www youtube com watch v a44cq4p7oww messaging queue it what job queues can do for you https www infoq com presentations job queue gearman beanstalkd joydeep sen sarma messaging architecture at facebook https www youtube com watch v 5humdomorpo messaging at scale at instagram https www youtube com watch v e708csv4xgy building a distributed data ingestion system with rabbitmq https www infoq com presentations data replication rabbitmq scaling web applications with message queues lenz gschwendtner https www youtube com watch v aorgq9yb6og object oriented analysis and design software architecture design udacity https www youtube com playlist list plawxtw4syapkmtetlg7xkwai5zazfx8fl oose software dev using uml and java https www youtube com playlist list plj9pm rc9hesnkwklal busiha jtzmpo eric evans tackling complexity in the heart of software https www youtube com watch v dnufeg68esm domain driven design https www youtube com watch v bpazwfnxgrg domain driven design https www youtube com watch v rnun2r7tptm how you can architect and develop enterprise mission critical applications with domain driven design https www youtube com watch v aieoawxnjl0 ddd putting the model to work https www infoq com presentations model to work evans eric evans on ddd strategic design https www infoq com presentations strategic design evans architecting and implementing domain driven design patterns with microsoft net https www youtube com watch v daqcgy gipe solid design patterns in c https www youtube com playlist list pl8m4nuhtqu48oigcsgcp1fijecg xjzyq object oriented design https www youtube com playlist list plglfvvz lvvs5p7khyr4xdp7t9lck9pge design patterns video tutorial https www youtube com playlist list plf206e906175c7e07 object oriented design interview question design a car parking lot https www youtube com watch v 2vtt6tbnoam google s clean code talks https www youtube com playlist list pl693efd059797c21e nyc tech talk series how google backs up the internet https www youtube com watch v enliom9ntcm robert c martin uncle bob clean architecture and design 2012 https www youtube com watch v aslutijjqde robert c martin clean architecture and design https www youtube com watch v nsjsiz2a9mg robert c martin the single responsibility principle https www youtube com watch v gt0m ohkhqe robert c martin clean architecture https www youtube com watch v nltqi7odztm the s o l i d principles of oo and agile design by uncle bob martin https www youtube com watch v t86v3n4oshq solid principles by uncle bob martin https www youtube com watch v oar t2kovwe the principles of clean architecture by uncle bob martin https www youtube com watch v o th y78tt4 unleash your domain greg young https vimeo com 19428577 misc differential synchronization https www youtube com watch v s2hp 1jqpy8 infrastructure at scale apache kafka twitter storm elastic search arc303 aws re invent 2013 https www youtube com watch v lpnbjxfpyz0 deepak agarwal recommender systems the art and science of matching items to users https www youtube com watch v brzobglcrbc lecture 12 analyzing big data with twitter recommender systems by alpa jain https www youtube com watch v nsscbt7jwxy transactions across datacenters https www youtube com watch v srogpxecblk slides http snarfed org transactions across datacenters io html finding the needle in the haystack or troubleshooting distributed systems https www infoq com presentations mondemand troubleshoot distributed system finding the needle in a big data haystack https www infoq com presentations search hadoop data hub large scale image processing on the fly in 25ms with google s first network engineer https www youtube com watch v h 9ch1tiigs bringing push notifications to the mobile web https www youtube com watch v hbmcnjwfgby papers general papers we love https github com papers we love papers we love google research http research google com pubs papers html facebook research https research facebook com publications mit pdos https pdos csail mit edu papers distributed systems reading list https dancres github io pages hints for computer system design http research microsoft com en us um people blampson 33 hints acrobat pdf a href http people mpi inf mpg de jblanche api design pdf target blank the little manual of api design a on designing and deploying internet scale services https www usenix org event lisa07 tech full papers hamilton hamilton pdf time clocks and the ordering of events in a distributed system http research microsoft com en us um people lamport pubs time clocks pdf above the clouds a berkeley view of cloud computing http www eecs berkeley edu pubs techrpts 2009 eecs 2009 28 pdf the byzantine generals problem http www andrew cmu edu course 15 749 readings required resilience lamport82 pdf how to design a good api and why it matters google research http static googleusercontent com media research google com en pubs archive 32713 pdf a href http www umiacs umd edu jimmylin publications leibert etal socc2011 pdf target blank twitter automatic management of partitioned replicated search services a high availability at massive scale building google s data infrastructure for ads https static googleusercontent com media research google com en pubs archive 44686 pdf making reliable distributed systems in the presence of software errors http www erlang org download armstrong thesis 2003 pdf fallacies of distributed computing explained http www rgoarchitects com files fallacies pdf search the anatomy of a large scale hypertextual web search engine google paper http static googleusercontent com media research google com en pubs archive 334 pdf a href http infolab stanford edu backrub google html target blank weblink a the pagerank citation ranking bringing order to the web http ilpubs stanford edu 8090 422 1 1999 66 pdf web search for a planet the google cluster architecture http research google com archive googlecluster ieee pdf unicorn a system for searching the social graph http db disi unitn eu pages vldbprogram pdf industry p871 curtiss pdf fb link https research facebook com publications unicorn a system for searching the social graph p2p chord a scalable peer to peer lookup service for internet applications https pdos csail mit edu papers chord sigcomm01 chord sigcomm pdf building peer to peer systems with chord a distributed lookup service https pdos csail mit edu papers chord hotos01 hotos8 pdf consistent hashing and random trees distributed caching protocols for relieving hot spots on the world wide web https www akamai com us en multimedia documents technical publication consistent hashing and random trees distributed caching protocols for relieving hot spots on the world wide web technical publication pdf cs 168 consistent hashing http web stanford edu class cs168 l l1 pdf algorithmic nuggets in content delivery http www sigcomm org sites default files ccr papers 2015 july 0000000 0000009 pdf a href http www cs columbia edu asherman papers cachepaper pdf target blank web caching with consistent hashing a web link http www8 org w8 papers 2a webserver caching paper2 html pastry scalable decentralized object location and routing for large scale peer to peer systems https github com papers we love papers we love blob master distributed systems pastry scalable decentralized object location and routing for large scale peer to peer systems pdf simple efficient load balancing algorithms for peer to peer systems http static googleusercontent com media research google com en pubs archive 33339 pdf distributed computing mapreduce simplified data processing on large clusters http research google com archive mapreduce osdi04 pdf resident distributed datasets a fault tolerant abstraction for in memory cluster computing zahari et al https www usenix org system files conference nsdi12 nsdi12 final138 pdf kafka a distributed messaging system for log processing http research microsoft com en us um people srikanth netdb11 netdb11papers netdb11 final12 pdf distributed database large scale storage dynamo amazon s highly available key value datastore http www allthingsdistributed com files amazon dynamo sosp2007 pdf the google file system http research google com archive gfs sosp2003 pdf bigtable a distributed storage system for structured data http research google com archive bigtable osdi06 pdf spanner google s globally distributed database google research http static googleusercontent com media research google com en archive spanner osdi2012 pdf a href https cs uwaterloo ca brecht courses 854 emerging 2014 readings data store tao facebook distributed datastore atc 2013 pdf target blank tao facebook s distributed data store for the social graph a f1 a distributed sql database that scales http static googleusercontent com media research google com en us pubs archive 41344 pdf scuba diving into data at facebook http db disi unitn eu pages vldbprogram pdf industry p767 wiener pdf a href http www bcf usc edu wyattllo papers f4 osdi14 pdf target blank f4 facebook s warm blob storage system a finding a needle in haystack facebook s photo storage https www usenix org legacy event osdi10 tech full papers beaver pdf cassandra a decentralized structured storage system https www cs cornell edu projects ladis2009 papers lakshman ladis2009 pdf consistency consistency tradeoffs in modern distributed database system design http cs www cs yale edu homes dna papers abadi pacelc pdf paxos made live an engineering perspective http www cs utexas edu users lorenzo corsi cs380d papers paper2 1 pdf paxos made simple https github com papers we love papers we love blob master distributed systems paxos made simple pdf existential consistency measuring and understanding consistency at facebook https fbcdn dragon a akamaihd net hphotos ak xpt1 t39 2365 6 12057015 1010569855670644 348748003 n existential consistency measuring and understanding consistency at facebook pdf in search of an understandable consensus algorithm https ramcloud stanford edu wiki download attachments 11370504 raft pdf distributed graph processing sqlgraph an efficient relational based property graph store http static googleusercontent com media research google com en pubs archive 43287 pdf one trillion edges graph processing at facebookscale http www vldb org pvldb vol8 p1804 ching pdf pregel a system for large scale graph processing http kowshik github io jpregel pregel paper pdf dremel interactive analysis of web scale datasets http static googleusercontent com external content untrusted dlcp research google com en us pubs archive 36632 pdf company product specific scaling memcache at facebook https www usenix org system files conference nsdi13 nsdi13 final170 update pdf realtime data processing at facebook https fbcdn dragon a akamaihd net hphotos ak xat1 t39 2365 6 13331599 975087972607457 1796386216 n realtime data processing at facebook pdf holistic configuration management at facebook https fbcdn dragon a akamaihd net hphotos ak xta1 t39 2365 6 12057212 1623087361291843 1316956191 n holistic configuration management at facebook pdf the unified logging infrastructure for data analytics at twitter http vldb org pvldb vol5 p1771 georgelee vldb2012 pdf scaling big data mining infrastructure the twitter experience http www kdd org sites default files issues 14 2 2012 12 v14 02 02 lin pdf large scale cluster management at google with borg http static googleusercontent com media research google com en pubs archive 43438 pdf misc differential synchronization http research google com pubs archive 35605 pdf a href https www cis upenn edu bcpierce courses dd papers lbfs pdf target blank a low bandwidth network file system a maglev a fast and reliable software network load balancer http research google com pubs archive 44824 pdf the chubby lock service for loosely coupled distributed systems http research google com archive chubby osdi06 pdf everything you always wanted to know about synchronization but were afraid to ask http sigops org sosp sosp13 papers p33 david pdf transactional storage for geo replicated systems https github com papers we love papers we love blob master datastores transactional storage for geo replicated systems pdf highly available transactions virtues and limitations http www bailis org papers hat vldb2014 pdf the log structured merge tree http www cs umb edu poneil lsmtree pdf web links general https www hiredintech com https github com checkcheckzz system design interview https github com shashank88 system design http highscalability com all time favorites http highscalability com all time favorites http blog gainlo co index php category system design interview questions http www allthingsdistributed com archives html back to basics series scalability for dummies part 1 http www lecloud net post 7295452622 scalability for dummies part 1 clones part 2 http www lecloud net post 7994751381 scalability for dummies part 2 database part 3 http www lecloud net post 9246290032 scalability for dummies part 3 cache part 4 http www lecloud net post 9699762917 scalability for dummies part 4 asynchronism scalable web architecture and distributed systems http aosabook org en distsys html introduction to architecting systems for scale http lethain com introduction to architecting systems for scale software architect roadmap https roadmap sh software architect examples highscalability com has wide collection of articles on scalable architecture individual web links will be added below if they are not already highlighted in popular sites like highscalability trending at instagram http instagram engineering tumblr com post 122961624217 trending at instagram search architecture instagram http instagram engineering tumblr com post 124162066737 search architecture the uber engineering tech stack part i https eng uber com tech stack part one part ii https eng uber com tech stack part two processing payments at scale https engineering groupon com 2016 misc processing payments at scale personalized group recommendations on flickr http code flickr net 2016 09 30 personalized group recommendations on flickr building the linkedin knowledge graph https engineering linkedin com blog 2016 10 building the linkedin knowledge graph personal recommendations for the foursquare homescreen http engineering foursquare com 2015 08 06 personal recommendations for the foursquare homescreen books microsoft application architecture guide 2nd edition online https msdn microsoft com en us library ff650706 aspx the architecture of open source applications http aosabook org en index html design patterns elements of reusable object oriented software head first design patterns patterns of enterprise application architecture domain driven design by eric evans agile software development principles patterns and practices by robert martin | os |
|
x-cube-azrtos-wb | x cube azrtos wb azure rtos software expansion for stm32cube latest tag https img shields io github v tag stmicroelectronics x cube azrtos wb svg color brightgreen with azure rtos complementing the extensive stm32cube ecosystem providing free development tools software bricks and software expansion packages stm32 users can also leverage the rich services of azure rtos which meet the needs of tiny smart connected devices x cube azrtos wb azure rtos software expansion for stm32cube provides a full integration of microsoft azure rtos in the stm32cube environment for the stm32wb series of microcontrollers ready to run applicative examples are also provided for the p nucleo wb55 nucleo and stm32wb5mm dk evaluation boards thus reducing the learning curve and ensuring a smooth application development experience with azure rtos and stm32wb mcus the scope of this package covers the following azure rtos middleware rtos threadx usb device and host usbx file system including nor nand memories support filex and levelx and networking netxduo htmresc overviewazurertos in stm32cube png azure rtos is a professional grade highly reliable and market proven middleware suite integrated and full featured rtos learn more threadx https aka ms threadx industrial grade networking stack optimized for performance coming with many iot protocols learn more netx duo https aka ms netxduo advanced fs ftl fully featured to support nand nor flash memories learn more filex https aka ms filex and levelx https docs microsoft com en us azure rtos levelx usb host and device stacks coming with multiple classes learn more usbx https aka ms usbx safety pre certifications from microsoft iec 61508 sil4 iec 62304 class c and iso 26262 asil d security pre certifications from microsoft eal4 for tls dtls fips 140 2 for sw crypto lib stm32 granted production license here https github com azure rtos threadx blob master licensed hardware txt prerequisites netxduo building require threadx as they are based on rtos model usbx host msc requires filex middleware usage usbx device ecm rndis classes require netxduo usage one of the following toolchains iar embedded workbench for arm ewarm toolchain 9 20 1 st linkv3 stm32cubeide v1 12 0 https www st com en development tools stm32cubeide html st linkv3 realview microcontroller development kit mdk arm toolchain v5 37 st linkv3 supported devices and boards by applications p nucleo wb55 nucleo https www st com en evaluation tools p nucleo wb55 html mb1355 c01 stm32wb5mm dk https www st com en evaluation tools stm32wb5mm dk html mb1292 b01 repository structure the stmicroelectronics github x cube azrtos repository consists of the following repositories drivers contains stm32wb cmsis hal and bsp drivers middlewares contains threadx netx duo filex levelx and usbx stacks including porting on stm32 hardware projects provides ready to run applicative examples for azure rtos on the supported boards projects are structured as follows htmresc azurertos projects structure png documentation more comprehensive documentation is available on stm32 mcu wiki https wiki st com stm32mcu wiki stm32coremw overview license azure rtos is distributed by microsoft under github https github com azure rtos and under microsoft license stmicroelectronics include azure rtos in selected stm32cube software packages whether delivered by microsoft under github or by stmicroelectronics through stm32 cubefw packages on www st com or github proprietary license terms are the same between microsoft and user source code is available user is granted modification user is granted redistribution of source modified or not and or binary provided he develops on an mcu mpu that is listed officially by microsoft user is granted production provided he develops on an mcu that is listed officially by microsoft licensed hardware https github com azure rtos threadx blob master licensed hardware txt user is forbidden to reuse provided software to create a competing offer whenever a new stm32 series includes support for azure rtos it is added by microsoft in the official list by using stm32wb series you inherit the distribution and production use rights in section 2 of the microsoft software license terms for azure rtos for more details about license information relative to each component in this package please refer to license license md release note details about the content of this release are available in the release note here https htmlpreview github io https github com stmicroelectronics x cube azrtos wb blob main release notes html applications middleware applications short description threadx tx thread creation it demonstrates how to create and destroy multiple threads using azure rtos threadx apis in addition it shows how to use preemption threshold between threads and change priorities on fly readme projects p nucleo wb55 nucleo applications threadx tx thread creation readme md threadx tx thread sync it demonstrates how to synchronize between threads using binary semaphores or mutexes readme projects p nucleo wb55 nucleo applications threadx tx thread sync readme md threadx tx thread msgqueue it demonstrates how to exchange message between threads using message queue api and how to handle message from different queues using event queue chaining feature readme projects p nucleo wb55 nucleo applications threadx tx thread msgqueue readme md threadx tx lowpower it demonstrates how to configure the lowpower feature of azure rtos threadx stack in addition it shows how to use threadx macro related to the lowpower feature readme projects p nucleo wb55 nucleo applications threadx tx lowpower readme md threadx tx mpu it demonstrates how to load start and unload modules in addition it shows how threadx memory protection on modules using the memory protection unit mpu readme projects stm32wb5mm dk applications threadx tx mpu readme md usbx ux device cdc acm it demonstrates how to develop usb device communication class cdc acm based application the application is designed to emulate an usb to uart bridge following the virtual com port vcp implementation the code provides all required device descriptors framework and associated class descriptor report to build a compliant usb cdc acm device readme projects stm32wb5mm dk applications usbx ux device cdc acm readme md usbx ux device hid it demonstrates how to develop usb device human interface hid mouse based application the application is designed to emulate an usb hid mouse device the code provides all required device descriptors framework and associated class descriptor report to build a compliant usb hid mouse device readme projects p nucleo wb55 nucleo applications usbx ux device hid readme md filex fx nor write read file it demonstrates how to create a fat file system on the nor flash using filex alongside levelx the application is designed to execute file operations on the mx25lm51245g nor flash device the code provides all required software code for properly managing it readme projects stm32wb5mm dk applications filex fx nor write read file readme md filex fx sram file edit standalone it demonstrates how to create a fat file system on the internal sram memory using filex running in standalone mode without threadx readme projects p nucleo wb55 nucleo applications filex fx sram file edit standalone readme md troubleshooting caution the issues are strictly limited to submit problems or suggestions related to the software delivered in this repository for any other question related to the product the hardware performance or characteristics the tools the environment you can submit it to the st community on the stm32 mcus related page https community st com s topic 0to0x000000bsqswaw stm32 mcus | threadx stm32wb filex levelx azure-rtos x-cube netxduo usbx | os |
valerie | valerie ci https github com emmanuelantony2000 valerie workflows ci badge svg https github com emmanuelantony2000 valerie actions license https img shields io badge license mit 20or 20apache 2 0 blue svg cargo https img shields io crates v valerie svg https crates io crates valerie documentation https docs rs valerie badge svg https docs rs valerie discord https img shields io discord 731850006713204777 https discord gg xx2sarf rust front end framework for building web apps valerie is still in a very early phase a lot of features are not available at the moment a lot of work is left and you are welcome to try it out no virtual dom ui can be made in a simple manner by following an mvvm architecture rather an mvc architecture use state variables to update the ui where required written without any unsafe code architecture every ui element has to implement the component trait a page is a function which returns a node two type of state variables stateatomic for types implementing copy statemutex for types implementing clone setting up run cargo new lib some name add valerie to the dependencies create a static directory and create an index html inside it html doctype html html lang en head meta charset utf 8 title title title script type module import init from wasm js init script head body body html also in the cargo toml enable lto toml profile release lto true opt level 3 compile it using wasm pack https github com rustwasm wasm pack by running wasm pack build target web out name wasm out dir static use some server like miniserve https github com svenstaro miniserve to host the static folder and try it out take a look at wasm pack docs https rustwasm github io docs wasm pack for more options examples hello world rust use valerie prelude components use valerie prelude fn ui node h1 hello world into valerie start pub fn run app render single ui add and subtract one using a button rust use valerie prelude components use valerie prelude fn ui node let value stateatomic new 0isize div h1 value value clone button add 1 on event click value clone move x x 1 button subtract 1 on event click value clone move x x 1 into valerie start pub fn run app render single ui time counter rust use valerie prelude components use valerie prelude use wasm timer delay fn ui web sys node let timer stateatomic new 0 execute time 1 timer clone p seconds passed timer into async fn time n u64 mut timer stateatomic usize while delay new core time duration from secs n await is ok timer 1 valerie start pub fn run app render single ui there are more examples in the examples directory missing features library support for css using states for css routing and multi page support global variables for multiple pages issues and contributing pick out some issues and start contributing our contribution guidelines are available here https github com emmanuelantony2000 valerie blob master github contributing md | front_end |
|
Project-terraform-ansible | project terraform ansible | cloud |
|
lite-proxyserver | lite proxyserver lightweight development only node server that serves a web app mock rest endpoints and allows proxy requests to real backends dependency status https david dm org msg systems lite proxyserver svg https david dm org msg systems lite proxyserver npm version https badge fury io js lite proxyserver svg http badge fury io js lite proxyserver build status https travis ci org msg systems lite proxyserver svg branch master https travis ci org msg systems lite proxyserver why during spa development you want to code and test your spa as fast as possible long term deployment round trips are not desired by your developers the need for a fast and independent development deployment encourages a lite server the node based server is running locally and serves the spa contents html css js changes to our development files can be watch https github com gruntjs grunt contrib watch ed additionally in order to live update your coding changes to the server during further development your team will encounter the need for rest endpoints in a first step you want to mock those as easy as possible this lite server enables you to use a rest middleware pointing to a specific rest service implementation based on connect rest https github com imrefazekas connect rest after covering spa development and rest mock implementation you finally want to run your whole app in a real environment when you start deploying and testing your app in the runtime environment you still will encounter the need for local bugfixing against a running environment the local running lite server now comes in and provides you a way to configure your node server to proxy requests against any real backend environment so the spa content is provided from local node server and the spa rest endpoint will target the same local node server but this one will proxy those requests to your target environment this way you wont get any cors https en wikipedia org wiki cross origin resource sharing problems and you can dynamically switch the backend between a local mock implementation a colleagues implementation or a stable environment architecture the lite proxyserver https github com msg systems lite proxyserver depends on several modules most important dependency is connect https github com gruntjs grunt contrib connect while you could build it also on other server implementations just like express https expressjs com or hapi https hapijs com we had to choose a specific server implementation early some years ago and came up with connect https github com gruntjs grunt contrib connect we just rely on the ability to use server middlewares as easy as possible so based on the first dependency all further middlewares are connect https github com gruntjs grunt contrib connect based we use connect rest https github com imrefazekas connect rest for the local rest service implementation and connect proxy https github com drewzboto grunt connect proxy a simple redirect middleware is handwritten a proxypassreverse functionality is provided for response headers handwritten and for html body content rewriting we are using tamper https github com fgnass tamper the following image should visualize the local lite proxyserver https github com msg systems lite proxyserver including all middlewares used architecture execution view https github com msg systems lite proxyserver raw master doc execution 20view png as you should have noticed by now this module strongly depends on grunt https github com gruntjs grunt the server integrates well in a grunt build process installation the recommended installation method is a local npm install for your project bash npm install lite proxyserver save dev basically you simple add it as a devdependency into your projects package json inside your projects gruntfile js you can integrate the lite proxyserver by this snippet js module exports function grunt grunt loadnpmtasks lite proxyserver configuration the configuration of the lite proxyserver and all its features is done within the package json of your project alternatively a different configuration can be provided by setting the package json command line option grunt lite proxyserver package json packagetest json the entries in the package json will be validated with duckyjs https github com rse ducky using the following specification mock enabled boolean ctx string fallback string file string enabled boolean ctx string fallback string file string proxy enabled boolean targethosts host string port number target string host string port number https boolean base string redirectroottoapp string cors boolean proxypassreverse boolean proxies object since most of them have defaults or some are not self explaining see the following explainations configuration entry command line option default explanation mock can be either one configuration object or be an array of those objects mock enabled mock enabled true mock implementation is generally activated by defining a mock file this switch exists to disable the mocking without deleting the rest of the configuration mock ctx mock ctx mock the context for local rest services mocked services must use a unique context beside the proxied services because this way the middlewares can seperate mock requests from proxy requests mock fallback mock fallback in case that a combination of mock and proxy are used it is often important to not proxy all request often you want to proxy some of the services and use mocks for the rest the fallback redirects not proxied requests by redirecting them to the specific mock definition mock file mock file the mock file is a string pointing to the mock implementation that implementation should require the connect rest https github com imrefazekas connect rest middleware and export it as rest an example can be found in uica skeleton https github com msg systems uica skeleton proxy enabled proxy enabled true proxy functionality is generally activated this switch exists to disable the proxy without deleting the rest of the configuration proxy targethosts proxy targethosts name host proxy targethosts name port in order to switch proxy targets fast you can define all your possible targets in this place the enables you to give each target a specific name that can be used as a reference at proxy target proxy target proxy target this chooses the concrete proxy target from the proxy targethosts list proxy host proxy host localhost this is the local node servers hostname your browser should be able to fetch your spa from the defined proxy host proxy port proxy port proxy port 2345 this is the local node servers port your browser should be able to fetch your spa from the defined proxy host proxy port proxy https proxy https false simple switch that determines the local node servers protocol by default it uses http but it can be switched to https proxy base proxy base htdocs this is the document root directory for the static content your node server should deliver proxy redirectroottoapp proxy redirectroottoapp this switch enables a simple middleware that handles incoming requests to by redirecting to a specific context this is useful if your app is deployed under a long context and you want to shortcut the browser url proxy cors proxy cors false activates the cors middleware that adds access control allow origin response headers to all responses proxy proxypassreverse proxy proxypassreverse true this enables the proxy pass reverse functionality it handles the rewriting of target proxy urls in responses headers and body back to origin local urls proxy proxies this defines a list of proxy urls that should result in a proxy request basically this is a list of connect proxy https github com drewzboto grunt connect proxy configuration objects with one addition the attribute hostrewrite will result in a dynamic replacement of the proxy request header attribute host set to the local node servers host and port command line options overwrite any options from the package json configuration example for providing command line options grunt lite proxyserver proxy port 4711 proxy https true an integration and configuration example of the lite proxyserver https github com msg systems lite proxyserver can be found in the uica skeleton https github com msg systems uica skeleton license code released under the mit license license | server |
|
FreeRTOSLinux | there is an official linux port since freertos 10 4 0 https www freertos org 2020 09 freertos kernel v10 4 0 is now available html this project is deprecated and won t be continued freertos linux port freertos port implementation for linux using posix threads made to test freertos projects on linux systems getting started include the files inside the port folder into your freertos project build the example project git clone https github com innerand freertoslinux git make get freertos make requirements freertos 10 2 1 other versions may work but are not tested tasks must be created with dynamic memory allocation using vtaskcreate tasks with statically allocated memory are not supported freertos should be compiled with a c compiler c doesn t work well with pthread cancel which is used to end freertos tasks this also applies to c functions called within a freertos task pthread cancel throws an exception which is problematic e g within destructors or while another exception is handled if the program aborts with terminate called without an active exception it was probably because pthread cancel was executed at a wrong moment however this port is used for ci cd testing with gtest gmock c and turned out to be quite stable when all the c has been put into critical sections usage freertos tasks may be interrupted at anytime therefore all functions that are not async signal safe e g printf must be put into critical sections if the program crashes or deadlocks within syscalls it s probably because a function hasn t been put into a critical section add an applicationidletask to the project and put a nanosleep without a critical section into it otherwise the port will eat all your cpu time versioning semver http semver org is used for versioning for the versions available see the tags on this repository https github com innerand freertoslinux tags license this project is licensed under the mit license see the license md license md file for details | os |
|
dbt-cloud | documentation for this project https cloud getdbt com accounts 106701 develop 1712600 docs index html overview models ny green taxi source is for source tables models ny green taxi fact is for fact tables the lineage for this project image https user images githubusercontent com 107629397 193253646 1b537967 8289 4bd9 a7cb 94b8052ec080 png | cloud |
|
awesome-blockchain-articles | awesome blockchain articles a collection of awesome blockchain articles good learning resources about blockchain q 680127749 blog https juejin im user 5bae185ae51d450e452ac85e posts https mp weixin qq com s ag9d9gdkd8dvfa6mvzscya http www ruanyifeng com blog 2017 12 blockchain tutorial html http www ruanyifeng com blog 2018 01 bitcoin tutorial html http mp weixin qq com s ngyxya3fmq4tja8u5bws a http mp weixin qq com s wtsvphxlhjbbqfdhbtd92w 1 http mp weixin qq com s cwciybg7 1e r4qltiuipw https mp weixin qq com s biz mzu1nda4nju2ma mid 2247486406 idx 1 sn 8dd0dbbe53f21461acb2d3088ced683e chksm fbe9b209cc9e3b1ff688bbb745ff83335ab033605493d5add44d2defe608b378d887088b7222 scene 27 wechat redirect https mp weixin qq com s biz mziwmzg1odcwmw mid 2247486412 idx 1 sn 09c76bf6b2c8b6c4c24ae6b4a69a42e6 chksm 96c9bdaca1be34ba3feba2b5aaf16e1128fdd50046860c7f9d95483eae294601c8b06f33a8f9 scene 27 wechat redirect http view inews qq com a tec201801160243663m 12 http view inews qq com a tec2018021200321202 http view inews qq com a 20180131a014sv00 https ethfans org wikis e6 99 ba e8 83 bd e5 90 88 e7 ba a6 https ethfans org aaaaaashu articles 602 https m aliyun com yunqi articles 361909 utm content m 40142 https mp weixin qq com s ftfrntzlhlnykvsdvdqb7g http mp weixin qq com s 5d0plhrz3nduznfgllm2iq https www bianews com detail id 10193 type 1 https www bianews com detail id 10238 type 1 http bianews com detail id 10315 type 1 http mp weixin qq com s oo5l88cig0oc29bddliida http mp weixin qq com s vsrwmi8y7zepxcznxfvffa http mp weixin qq com s u0byswb3vbl3dwpxjume a http mp weixin qq com s 1pylbyddxqgxdkcg5kc0yq ii http mp weixin qq com s vdloeuuhlscfqp9zy9irsg http mp weixin qq com s m7dwexhr2bvttcv2mrfhxg http mp weixin qq com s 7znymieiwieusml4khpjdg http mp weixin qq com s biz mziwmzg1odcwmw mid 2247486444 amp idx 1 amp sn 4d90f461b5ca0d0576a16b15ce10c189 source 41 wechat redirect http mp weixin qq com s biz mziwmzg1odcwmw mid 2247486443 amp idx 1 amp sn 30359caeeec5fb522c68c1bd9aaee54b source 41 wechat redirect http mp weixin qq com s biz mziwmzg1odcwmw mid 2247486442 amp idx 1 amp sn 010e9433a342d592b12aba491980992b source 41 wechat redirect https mp weixin qq com s biz mziwmzg1odcwmw mid 2247486431 idx 1 sn b44ac20769bf06e2eae03b7988777c26 chksm 96c9bdbfa1be34a9bb993724ddc27f500e3f5f3fe63d4e4747498b1d730b759e6095cabaed2f scene 27 wechat redirect https mp weixin qq com s fmtw5wgopfnsdvtuzq8ima https mp weixin qq com s 13unwoe0w7byus8q7pieua https mp weixin qq com s 5av0f8cm hu2sw m1ighkg 5 http mp weixin qq com s gf7ux 4su1lmn 28drdjxw http mp weixin qq com s zvlw1oxtqu6dh8iqff hma tc https mp weixin qq com s sf24to wmnsyvj8hzmljhq tc https mp weixin qq com s cl5bkfptsaw1c6agvj51fg tc https mp weixin qq com s h6gm6fkzdlokrgajsx7baa tc https mp weixin qq com s pmwbph8tteibju7hdk44oq tc https mp weixin qq com s dylhvahnm mfg8py9lxeua tc https mp weixin qq com s 6roycedsxyomrtjhbotkna https mp weixin qq com s myx1 4z8z1xftj4q6ydltg 4 5 https mp weixin qq com s tah6uedctyti5uwcr qc0g https mp weixin qq com s ujgfkc ins2svfpvduvhw http mp weixin qq com s tbu9pg0vqka7jdksgnypaq https mp weixin qq com s biz mzu1nda4nju2ma mid 2247487888 idx 1 sn 931b65213c5f893047ad4edfb60b1a2e chksm fbe9a85fcc9e2149db6f60a7f8bbe5fe2326a33a3177c10f98693fc301418ee907544b18f2cc scene 27 wechat redirect https mp weixin qq com s biz mziwmzg1odcwmw mid 2247486248 idx 1 sn 9d546966dce0d4934e2b1c55f5b5fd89 chksm 96c9bd48a1be345ed441cc61795d474fa0771db4c3a273bec02f6dec28004e805bb808778d5e scene 27 wechat redirect http www infoq com cn articles blockchain middleware https mp weixin qq com s biz mzu1nda4nju2ma mid 2247487002 idx 1 sn 324c8dc2a2ca5b33ec85230bbda80969 chksm fbe9b7d5cc9e3ec33b7a4e47c97617fa24222972ffe5ba1436b90e0641c47608931f5d62be18 scene 27 wechat redirect https mp weixin qq com s biz mzu1nda4nju2ma mid 2247486111 idx 2 sn 61d1f672ea9b8a167868ae30107730b5 chksm fbe9b350cc9e3a46a8e8f28fb0c13d374b122f54af8091058e5bab7d17bbe9e9cacbecb7d7e0 scene 27 wechat redirect ai ai dao http www infoq com cn news 2017 01 ai dao rule world faq https ethfans org posts proof of stake faq new 2018 3 15 cto http www infoq com cn articles huobi cto interview https mp weixin qq com s xusiqtluqhicr6uq4qjutg https mp weixin qq com s mkjeb6tfyznwexvt9axcxa https mp weixin qq com s uzzsuhyxscgax8k2a9atca fabric http mp weixin qq com s u23pw3fgbnj 3v3oq2ickg spv http mp weixin qq com s qceysl8lyhh ft9tvuazjq learn blockchains by building one https hackernoon com learn blockchains by building one 117428612f46 https mp weixin qq com s vvkvjltujjbshm2792teqa 200 http mp weixin qq com s 9g c3 yr4mj3jwzrqn b6a https ethfans org posts blockchain developer crash course https mp weixin qq com s 3hvo0uwprq vutep8wwrtg 15 web https mp weixin qq com s z8rhth65w4es7z5u7l1e9g cryptokitties http mp weixin qq com s adryhqa m3eh74t1tgwfmg python https mp weixin qq com s 3ftkvhu1k2t9kc 2009hta http mp weixin qq com s ss2nqyrf8oqvdmja o8nyg dapp http mp weixin qq com s 7hef8x txqho5292mg77ya http mp weixin qq com s gbakppxqjzoowzhp0bprfg https bitcoin org bitcoin pdf http www 8btc com wiki bitcoin a peer to peer electronic cash system https github com ethereum wiki wiki white paper https ethfans org posts ethereum whitepaper http gavwood com paper pdf https ethfans org posts 219 http ethfans org posts 510 https github com ethereum wiki wiki wiki https zh cn bitcoin it wiki e9 a6 96 e9 a1 b5 http zhibimo com books wang miao mastering bitcoin https www gitbook com book yeasy blockchain guide details https yuedu baidu com ebook dba5c99c8662caaedd3383c4bb4cf7ec4afeb619 https github com bitcoin bitcoin https github com ethereum go ethereum book pdf img blockchain qrcode png https t me blockchainsleepless | blockchain bitcoin awesome-blockchain ethereum blockchain-articles | blockchain |
JeChain | div align center br img src assets extended logo png br div b an experimental smart contract blockchain network b div br a href https github com nguyenphuminh jechain blob master license md img src https img shields io badge license gplv3 blue svg a a href https github com nguyenphuminh jechain releases img src https img shields io github package json v nguyenphuminh jechain label stable a a href https snyk io test github nguyenphuminh jechain img src https snyk io test github nguyenphuminh jechain badge svg a a href https github com nguyenphuminh jechain stargazers img src https img shields io github stars nguyenphuminh jechain color gold a a href https github com nguyenphuminh jechain blob main github pull request template md img src https img shields io badge prs welcome brightgreen svg a div what is jechain jechain is a blockchain network platform that supports smart contracts and can act as a payment system cryptocurrency it is originally and still is made for experimental and educational purposes you can have a brief look at its core ideas through its outdated and unfinished whitepaper https nguyenphuminh github io jechain whitepaper pdf setup a node dependencies nodejs v16 or higher latest release of npm requirements a system that is running windows linux or macos with a dual core cpu and 8gb of ram with a mediocre ssd hdd should be enough installation first download the latest release from https github com nguyenphuminh jechain releases extract the zip file in the jechain folder open up your terminal and install the required packages through npm npm install generate your keys if you haven t had a jechain key pair before hop over to utils on the command line type node keygen js and it will generate an address a public key and a private key for you configure your node in config json change the props for your needs js port port that your node will run on default is 3000 rpc port port that the rpc server will run on default is 5000 peers an array containing peers address that the node will connect with default is an empty array my address a string containing the node s address default is localhost 3000 private key a string containing a private key enable mining leave true if you want to mine default is false enable logging leave true if you want to log out contract logs default is false enable rpc leave true if you want to run a rpc server default is false enable chain request leave true if you want to sync chain from others default is false to see an example config json already has some data set for you to have a look at running the node after everything is all set simply type node to run the node interacting with the node through json rpc apis this process will require you to run an rpc server basically leave true in enable rpc in config json to enable it to properly interact with the node you should use the json rpc apis especially if you are creating dapps to get started check out docs for json rpc apis here json rpc md note this feature is still in its early stages things might change when a stable release is ready run jechain node publicly just do some port forwarding drop your public ip the port you forwarded in and you are all set if you don t know how to forward port just search it up online each router model should have its own way to do port forwarding the jechain network note that a blockchain network is formed when a lot of computers run nodes and communicate with each other an official jechain network has not existed yet the only thing we currently have is the node software but hey if you want to run an experimental test network with your friends do it hit me up if you do so i can run a node to join in your network smart contracts smart contract is still a fairly new feature in jechain it is only a proof of concept currently and is likely going to change in the future but for now you can read this document contract md on creating smart contracts using a small language i have created called jelscript remember to only use it for experimental purposes i can not guarantee that this feature will be changed or not in the future the language is also really limited and far from ready how ready is jechain jechain is currently at the stage of having all the basic things work there are a lot of optimizations and things to implement to make it even near production ready to see what i am doing check out jechain s todo list https github com nguyenphuminh jechain projects 3 what do we currently have specifically a simple p2p client for messaging in the network with basic blocks transactions propagation block sync peer discovery etc basic data structures and serialization for transactions and blocks with all the necessary constructs included like transaction signing transaction block verification etc pow based consensus with proper difficulty adjustment and built in mining software a runtime environment that can be used as a payment system cryptocurrency or application platform with its smart contract support through a simple interpreted language transaction trie and storage trie that can be used for pruning light client safe data request in the future an rpc server for applications e g wallets to interact with the blockchain data network support the project i have been maintaining the project in my free time on my own a blockchain client is really a lot of work for just one person so if you like jechain and want to support you can just leave a star feel free to open issues and pull requests and watch the projects for upcoming updates using the project s source code jechain is 100 open source but if you are integrating its source code into your own project it would be lovely if you credit the original jechain i would really appreciate it copyrights and license copyrights 2021 nguyen phu minh this project is licensed under the gpl 3 0 license | blockchain blockchain-technology proof-of-work cryptography jechain cryptocurrency p2p p2p-network smart-contracts network | blockchain |
blockapi | blockapi blockchain analytics api blockapi is a general purpose blockchain analytics scala api maintained by livio pompianu http tcs unica it members livio pompianu and stefano lande http tcs unica it members stefano lande of the blockchain unica lab http blockchain unica it at the university of cagliari under the supervision of massimo bartoletti https tcs unica it members bart the standard workflow of blockapi consists of two steps 1 construct a view of the blockchain possibly including external data and save it in a database 2 analyse the view by using the query language of the database blockapi currently supports bitcoin and ethereum and the dbms mongodb mysql postgresql and fuseki documentation the architecture of blockapi and the experimental evaluation of its performance are dicussed in the paper a general framework for blockchain analytics https www researchgate net publication 321415812 a general framework for blockchain analytics presented at serial 2017 https serial17 ibr cs tu bs de some common use cases are documented in the project web page http blockchain unica it projects blockchain analytics analytics html the usage of the apis is documented in the scaladoc https github com bitbart blockchain analytics api tree master docs the installation instructions are detailed below in this document prerequisites general prerequisites blockapi requires java jdk 1 8 https www oracle com java technologies javase jdk8 downloads html and it supports the following blockchain clients and dbmss 1 blockchain clients bitcoin core https bitcoin org en bitcoin core tested with version v0 19 0 1 extracts data from bitcoin parity https www parity io ethereum tested with version v2 6 8 extracts data from ethereum 2 dbms mongodb https www mongodb com what is mongodb tested with version v4 2 constructs a nosql view of the data mysql https www mysql com tested with version v5 7 constructs a sql view of the data postgresql https www postgresql org tested with version v11 constructs a sql view of the data apache jena fuseki https jena apache org documentation fuseki2 index html tested with version v3 14 0 constructs a rdf view of the data blockapi may be used either as an ide for executing a scala sbt projects e g intellij idea https www jetbrains com idea or via command line in this case you need to install sbt http www scala sbt org 0 13 docs installing sbt on linux html further prerequisites may depend on the specific analyses one wants to implement required libraries this step is required to sucessfully compile the project before building the project execute the following commands bitcoinj bash git clone https github com stefanolande bitcoinj git cd bitcoinj mvn install dskiptests cd core mvn install dskiptests installation 1 execute the blockchain client in order to obtain a local copy of the target blockchain this process may take several hours 2 enable the client rpc calls in the bitcoin core case bash bitcoind datadir path to blockchain server rpcuser user rpcpassword password rpcserialversion 0 3 run a localhost instance of the dbms on the default port 4 clone this repository 5 from your intellij welcome screen select import project and open the build sbt https github com bitbart bitcoin analytics api blob master build sbt file from your repository directory execution you can test blockapi through one of the use cases https github com blockchain unica blockapi tree master src main scala it unica blockchain analyses in the repository to do this either open the file from your ide and select run or via command line from the root directory of the project execute bash sbt runmain it unica blockchain analyses classname once blockapi has built the database you can query it using one of the available queries https github com bitbart blockchain analytics api tree master queries acknowledgments the project has been supported by several developers acknowledgments md at the department of mathematics and computer science of the university of cagliari italy | bitcoin mongodb scala sql ethereum analytics blockchain bitcoin-analytics blockchain-analytics | blockchain |
hawkbit | img src hawkbit logo png width 533 height 246 eclipse hawkbit update server eclipse hawkbit http www eclipse org hawkbit index html is an domain independent back end solution for rolling out software updates to constrained edge devices as well as more powerful controllers and gateways connected to ip based networking infrastructure build circle ci https circleci com gh eclipse hawkbit svg style shield https circleci com gh eclipse hawkbit quality gate status https sonarcloud io api project badges measure project org eclipse hawkbit 3ahawkbit parent metric alert status https sonarcloud io summary new code id org eclipse hawkbit 3ahawkbit parent maven central https img shields io maven central v org eclipse hawkbit hawkbit parent color blue https maven badges herokuapp com maven central org eclipse hawkbit hawkbit parent lines of code https img shields io badge dynamic xml svg label lines 20of 20code url https 3a 2f 2fwww openhub net 2fprojects 2fhawkbit xml 3fapi key 3d30bc3f3fad087c2c5a6a67a8071665ba0fbe3b6236ffbf71b7d20849f4a5e35a query 2fresponse 2fresult 2fproject 2fanalysis 2ftotal code lines colorb lightgrey https www openhub net p hawkbit docker docker https img shields io docker v hawkbit hawkbit update server latest color blue https hub docker com r hawkbit hawkbit update server docker mysql https img shields io docker v hawkbit hawkbit update server latest mysql color blue https hub docker com r hawkbit hawkbit update server documentation see hawkbit documentation https www eclipse dev hawkbit contact us having questions about hawkbit check stack overflow https stackoverflow com questions tagged eclipse hawkbit want to chat with the team behind hawkbit join the chat at https gitter im eclipse hawkbit https badges gitter im eclipse hawkbit svg https gitter im eclipse hawkbit utm source badge utm medium badge utm campaign pr badge utm content badge having issues with hawkbit open a github issue https github com eclipse hawkbit issues you can also check out our project homepage https www eclipse dev hawkbit for further contact options examples and extensions next to the hawkbit core hosted here the project maintains as well examples https github com eclipse hawkbit examples and extension https github com eclipse hawkbit extensions repositories hawkbit sandbox we offer a sandbox installation that is free for everyone to try out hawkbit however keep in mind that the sandbox database will be reset from time to time it is also not possible to upload any artifacts into the sandbox but you can use it to try out the management ui management api and ddi api keep in mind as well that you are not permitted to store any kind of personal data in the sandbox https hawkbit eclipseprojects io ui login https hawkbit eclipseprojects io ui login in addition the following vendors offer free trial accounts for their hawkbit compatible products bosch iot rollouts https developer bosch iot suite com service rollouts kynetics update factory https www kynetics com iot platform update factory device integration client libraries hawkbit exposes http json based direct device integration api api https www eclipse org hawkbit apis ddi api that allow any update client to integrate quite easily the eclipse hara subproject https projects eclipse org projects iot hawkbit hara aims to provide a reference agent software implementation of the eclipse hawkbit device api the hara ddiclient repository https github com eclipse hara ddiclient provides a kotlin library that facilitates and speeds up the development of ddi api clients running on the jvm a virtual device application which provides a reference example on how to use the library a configurable virtual device that can be used for different testing scenarios the hara ddiclient library has reached version 2 x https github com eclipse hara ddiclient releases and has been successfully used in production for years additionally the hawkbit project has the long term goal to provide eclipse hono https github com eclipse hono integration which will provide connectivity through various iot protocols and as a result will allow a wide range of clients to connect to hawkbit other open source hawkbit clients there are clients outside of the eclipse iot eco system as well e g swupdate https github com sbabic swupdate which is a linux update agent with focus on a efficient and safe way to update embedded systems rauc hawkbit updater https github com rauc rauc hawkbit updater which is a hawkbit client for the rauc https github com rauc rauc update framework written in c glib rauc hawkbit https github com rauc rauc hawkbit which is a python based hawkbit client demo application and library for the rauc https github com rauc rauc update framework hawkbit rs https github com collabora hawkbit rs provides a couple of rust https www rust lang org crates to help implement https crates io crates hawkbit and test https crates io crates hawkbit mock hawkbit clients zephyr rtos https docs zephyrproject org apidoc latest group hawkbit html details the zephyr os is a small footprint kernel designed for use on resource constrained and embedded systems from simple embedded environmental sensors and led wearables to sophisticated embedded controllers smart watches and iot wireless applications chirpstack https www chirpstack io docs chirpstack gateway os use software update html chirpstack gateway os uses swupdate https github com sbabic swupdate for handling updates which can be integrated with eclipse hawkbit chirpstack is an open source lorawan network server which can be used to to setup private or public lorawan networks runtime dependencies and support java runtime environment 17 sql database database h2 mysql mariadb ms sql server postgresql ibm db2 ddls maintained by project white check mark white check mark white check mark white check mark white check mark test dependencies defined white check mark white check mark white check mark white check mark versions tested 2 1 mysql 8 0 23 aws aurora ms sql server 2017 2019 postgresql 12 13 db2 server v11 1 docker image with driver provided white check mark white check mark tag mysql white check mark white check mark jdbc driver h2 2 1 214 https github com h2database h2database mariadb connector j 2 7 8 https github com mariadb mariadb connector j mssql jdbc 10 2 3 jre8 https github com microsoft mssql jdbc postgresql jdbc driver 42 3 8 https github com pgjdbc pgjdbc status test dev production grade production grade test dev test dev optional rabbitmq 3 6 3 7 3 8 getting started we are providing a spring boot https projects spring io spring boot based reference update server hawkbit runtime hawkbit update server including embedded h2 db for test and evaluation purposes run with docker bash docker run d p 8080 8080 hawkbit hawkbit update server open the update server in your browser localhost 8080 http localhost 8080 see below for how to build and run the update server on your own in addition we have a guide https www eclipse org hawkbit guides runhawkbit for setting up a complete landscape note this docker image supports both ddi and dmf apis however in order to have dmf api working you shall have started additionally rabbitmq on localhost 5672 with user guest guest then the dmf will use vhost see more at guide https www eclipse org hawkbit guides runhawkbit configure rabbitmq connection settings hawkbit spring boot starters next to the update server hawkbit runtime hawkbit update server we are also providing a set of spring boot starters hawkbit starters to quick start your own spring boot https projects spring io spring boot based application clone build and run hawkbit build and start hawkbit update server hawkbit runtime hawkbit update server bash git clone https github com eclipse hawkbit git cd hawkbit mvn clean install java jar hawkbit runtime hawkbit update server target hawkbit update server version jar start hawkbit device simulator https github com eclipse hawkbit examples tree master hawkbit device simulator optional bash git clone https github com eclipse hawkbit examples git cd hawkbit examples mvn clean install bash java jar hawkbit device simulator target hawkbit device simulator version jar generate getting started data with the management api example https github com eclipse hawkbit examples tree master hawkbit example mgmt simulator optional bash java jar hawkbit example mgmt simulator target hawkbit example mgmt simulator version exec jar status and api stability hawkbit is currently in 0 x semantic version that is due to the need that there is still content in hawkbit that is in need for refactoring that includes the maven module structure spring boot properties spring boot auto configuration as well as internal java apis e g the repository api https github com eclipse hawkbit issues 197 however the device facing ddi api https github com eclipse hawkbit tree master hawkbit rest hawkbit ddi api is on major version v1 and will be kept stable server facing and dmf api https github com eclipse hawkbit tree master hawkbit dmf hawkbit dmf api are management api https github com eclipse hawkbit tree master hawkbit rest hawkbit mgmt api are on v1 as well however we cannot fully guarantee the same stability during hawkbit s 0 x development but we will try as best we can | eclipseiot iot software-provisioning internet-of-things | server |
x-cube-azrtos-f7 | x cube azrtos f7 azure rtos software expansion for stm32cube latest tag https img shields io github v tag stmicroelectronics x cube azrtos f7 svg color brightgreen with azure rtos complementing the extensive stm32cube ecosystem providing free development tools software bricks and software expansion packages stm32 users can also leverage the rich services of azure rtos which meet the needs of tiny smart connected devices x cube azrtos f7 azure rtos software expansion for stm32cube provides a full integration of microsoft azure rtos in the stm32cube environment for the stm32f7 series of microcontrollers ready to run applicative examples are also provided for the stm32f767zi nucleo stm32f735g dk stm32f747i dk and stm32f743i eval evaluation boards thus reducing the learning curve and ensuring a smooth application development experience with azure rtos and stm32f7 mcus the scope of this package covers the following azure rtos middleware rtos threadx usb device and host usbx file system including nor nand memories support filex and levelx and networking including ethernet and wifi media netxduo htmresc overviewazurertos in stm32cube png azure rtos is a professional grade highly reliable and market proven middleware suite integrated and full featured rtos learn more threadx https aka ms threadx industrial grade networking stack optimized for performance coming with many iot protocols learn more netx duo https aka ms netxduo advanced fs ftl fully featured to support nand nor flash memories learn more filex https aka ms filex and levelx https docs microsoft com en us azure rtos levelx usb host and device stacks coming with multiple classes learn more usbx https aka ms usbx safety pre certifications from microsoft iec 61508 sil4 iec 62304 class c and iso 26262 asil d security pre certifications from microsoft eal4 for tls dtls fips 140 2 for sw crypto lib stm32 granted production license here https github com azure rtos threadx blob master licensed hardware txt prerequisites usbx filex and netxduo building require threadx as they are based on rtos model usbx host msc requires filex middleware usage usbx device ecm rndis classes require netxduo usage one of the following toolchains iar embedded workbench for arm ewarm toolchain 8 50 9 st linkv2 stm32cubeide v1 9 0 https www st com en development tools stm32cubeide html st linkv2 realview microcontroller development kit mdk arm toolchain v5 32 st linkv2 supported devices and boards by applications stm32f767zi nucleo https www st com en evaluation tools nucleo f767zi html mb1137 b01 stm32f769i discovery https www st com en evaluation tools 32f769idiscovery html mb1225 b02 repository structure the stmicroelectronics github x cube azrtos repository consists of the following repositories drivers contains stm32f7 cmsis hal and bsp drivers middlewares contains threadx netx duo filex levelx and usbx stacks including porting on stm32 hardware projects provides ready to run applicative examples for azure rtos on the supported boards projects are structured as follows htmresc azurertos projects structure png documentation more comprehensive documentation is available on stm32 mcu wiki https wiki st com stm32mcu wiki stm32coremw overview license azure rtos is distributed by microsoft under github https github com azure rtos and under microsoft license stmicroelectronics include azure rtos in selected stm32cube software packages whether delivered by microsoft under github or by stmicroelectronics through stm32 cubefw packages on www st com or github proprietary license terms are the same between microsoft and user source code is available user is granted modification user is granted redistribution of source modified or not and or binary provided he develops on an mcu mpu that is listed officially by microsoft user is granted production provided he develops on an mcu that is listed officially by microsoft licensed hardware https github com azure rtos threadx blob master licensed hardware txt user is forbidden to reuse provided software to create a competing offer whenever a new stm32 series includes support for azure rtos it is added by microsoft in the official list by using stm32f7 series you inherit the distribution and production use rights in section 2 of the microsoft software license terms for azure rtos for more details about license information relative to each component in this package please refer to license license md release note details about the content of this release are available in the release note here https htmlpreview github io https github com stmicroelectronics x cube azrtos f7 blob main release notes html applications middleware applications short description threadx tx thread creation it demonstrates how to create and destroy multiple threads using azure rtos threadx apis in addition it shows how to use preemption threshold between threads and change priorities on fly readme projects stm32f767zi nucleo applications threadx tx thread creation readme md threadx tx lowpower it demonstrates how to configure the lowpower feature of azure rtos threadx stack in addition it shows how to use threadx macro related to the lowpower feature readme projects stm32f767zi nucleo applications threadx tx lowpower readme md threadx tx mpu it demonstrates how to load start and unload modules in addition it shows how threadx memory protection on modules using the memory protection unit mpu readme projects stm32f769i discovery applications threadx tx mpu readme md usbx ux host msc it demonstrates how to develop usb host mass storage msc able to enumerate and communicates with a removable usb flash disk the application is designed to behave as an usb msc host able to operate with an usb flash disk using the bulk only transfer bot and small computer system interface scsi transparent commands combined with a file system azurertos filex readme projects stm32f769i discovery applications usbx ux host msc readme md usbx ux host hid it demonstrates how to develop usb host human interface hid able to enumerate and communicate with a mouse or a keyboard the application is designed to behave as an usb hid host the code provides required requests to properly enumerate hid devices hid class apis to decode hid reports received from a mouse or a keyboard and display data on uart hyperterminal readme projects stm32f767zi nucleo applications usbx ux host hid readme md usbx ux device cdc acm it demonstrates how to develop usb device communication class cdc acm based application the application is designed to emulate an usb to uart bridge following the virtual com port vcp implementation the code provides all required device descriptors framework and associated class descriptor report to build a compliant usb cdc acm device readme projects stm32f769i discovery applications usbx ux device cdc acm readme md usbx ux device hid it demonstrates how to develop usb device human interface hid mouse based application the application is designed to emulate an usb hid mouse device the code provides all required device descriptors framework and associated class descriptor report to build a compliant usb hid mouse device readme projects stm32f767zi nucleo applications usbx ux device hid readme md filex fx usd file edit it demonstrates how to develop a basic sd card file operations application the application is designed to handle sd card insertion removal events and depending on that state it starts and stops file operations from and into the sd card readme projects stm32f769i discovery applications filex fx usd file edit readme md filex fx nor write read file it demonstrates how to create a fat file system on the nor flash using filex alongside levelx the application is designed to execute file operations on the mx25lm51245g nor flash device the code provides all required software code for properly managing it readme projects stm32f769i discovery applications filex fx nor write read file readme md filex fx sram file edit standalone it demonstrates how to create a fat file system on the internal sram memory using filex running in standalone mode without threadx readme projects stm32f767zi nucleo applications filex fx sram file edit standalone readme md netxduo nx tcp echo client it demonstrates how to develop a netx tcp client to communicate with a remote sever using the netx tcp socket api readme projects stm32f767zi nucleo applications netxduo nx tcp echo client readme md netxduo nx udp echo server it demonstrates how to develop a netx udp server to communicate with a remote client using the netx udp socket api readme projects stm32f767zi nucleo applications netxduo nx udp echo server readme md netxduo nx webserver it demonstrates how to develop web http server based application it is designed to load files and static web pages stored in sd card using a web http server the code provides all required features to build a compliant web http server readme projects stm32f769i discovery applications netxduo nx webserver readme md netxduo nx iperf it shows performance when using different modes tcp server udp server tcp client and udp client readme projects stm32f767zi nucleo applications netxduo nx iperf readme md troubleshooting caution the issues are strictly limited to submit problems or suggestions related to the software delivered in this repository for any other question related to the product the hardware performance or characteristics the tools the environment you can submit it to the st community on the stm32 mcus related page https community st com s topic 0to0x000000bsqswaw stm32 mcus | threadx stm32f7 stm32cube-mcu-component filex levelx azure-rtos x-cube netxduo usbx | os |
gabi | gabi g o a uditable d b i nterface improving tenant quality of life for database access while following site reliability engineering best practices note gabi is under active development and is not suitable for production use description gabi is a service that provides an interface for tenants and sres to run sql queries on protected databases without exposing credentials complete with audit capabilities to comply with certifications i e soc 2 organizations that adopt sre best practices are often found walking a tight line between developer happiness and full regulatory compliance one common area of conflict is database access developers are familiar with read and write access during their project work but find production restrictions on databases frustrating and time consuming gabi attempts to bridge the gap between sre and developer needs by providing an auditable secure and available interface to query databases best practice vs best effort best practice applications are applications that are fully onboarded according to sre best practices with the end result of sres taking responsibility for service health i e carrying the pager best effort applications are run in sre defined runtime environments but by choice or design do not follow all requirements mandated by the sre team these applications enjoy the benefits of sre led infrastructure but the sre team is not tasked with carrying the pager for these services this stratified support model is supported in gabi with rbac restrictions instances of gabi can be set to read only mode to support best practice services through read replica databases optionally read write mode can be enabled for primary databases supporting best effort services gitops to the joy of many sres gabi is created with gitops in mind in addition to allowing http requests to the service from a developer s machine a reconciliation server can manage to interact with the api and can execute queries as part of pr or mr hooks this allows for a complete gitops workflow and includes the added benefits of tracking each query through version controlled files secret management the service consumes database access credentials through environment variables there are a multitude of secret management techniques that can supply environment variables to kubernetes pods such as vault kubernetes secrets configmaps and more this approach implies that one instance of gabi is needed for each database as each instance of gabi will only execute queries on the database defined at pod creation time supported databases currently gabi supports mysql and postgresql the database interface is written with sql db so other database types will be easy to implement and we welcome contributions from the community runtime environment the service is written in the go programming language intended to run as a kubernetes or openshift workload in addition to a kubernetes workload the application can run in a standalone docker container or as a cli app not recommended quick start todo create a config json file with the following content and set its path using config file path note the expiration date has to be set in the future expiration yyyy mm dd users user1 user2 you can override the expiration date set in the configuration file using the expiration date environment variable using the same format as the expiration attribute the configuration file uses whereas the list of authorized users can be overridden using the authorized users environment variable which takes a comma separated list of usernames the configuration file or the environment variables must provide the expiration date and the authorized users however suppose you provide both of the environment variables in that case you do not need to provide the configuration file still if you provide these values provided via the environment variables will take precedence and override values set in the configuration file next start the gabi server instance source env dev go run cmd gabi main go 2023 02 09t11 28 48 981 0900 info cmd cmd go 32 starting gabi version 0 1 0 2023 02 09t11 28 48 981 0900 info cmd cmd go 47 production false expired false expiration date 2038 01 19 2023 02 09t11 28 48 981 0900 debug cmd cmd go 48 authorized users kwilczynski test 2023 02 09t11 28 48 981 0900 info cmd cmd go 55 using database driver pgx write access false 2023 02 09t11 28 48 981 0900 debug cmd cmd go 62 connected to database host localhost port 5432 2023 02 09t11 28 48 981 0900 info cmd cmd go 71 sending audit to splunk endpoint https example com 2023 02 09t11 28 48 981 0900 info cmd cmd go 105 http server starting on port 8080 127 0 0 1 09 feb 2023 11 28 54 0900 get healthcheck http 1 1 200 16 2023 02 09t11 36 47 296 0900 info audit logger go 18 audit query select table name from information schema tables where table schema public user test timestamp 2943010800 127 0 0 1 09 feb 2023 11 36 47 0900 post query http 1 1 200 39 an example query against a postgresql to check for the existence of a specific table in the database single quotes need to be replaced with in queries run with curl curl s http localhost 8080 query x post h x forwarded user test d query select table name from information schema tables where table schema public jq result table name persons error using a base64 encoded query when making a request can help alleviate some of the challenges of complex queries sql statements that include a combination of quotes or other characters that the json standard considers reserved and can often be problematic as ensuring that parts of the sql query have been correctly escaped can be quite involved and error prone when passing a base64 encoded query string ensure that the base64 query true query parameter is set when making a request for example echo n select table name from information schema tables where table schema public base64 tr d n c2vszwn0ihrhymxlx25hbwugznjvbsbpbmzvcm1hdglvbl9zy2hlbweudgfibgvzihdozxjlihrhymxlx3njagvtyt0nchvibgljjw curl s http localhost 8080 query base64 query true x post h x forwarded user test d query c2vszwn0ihrhymxlx25hbwugznjvbsbpbmzvcm1hdglvbl9zy2hlbweudgfibgvzihdozxjlihrhymxlx3njagvtyt0nchvibgljjw jq result table name persons error a base64 encoding can also be applied to the results this enables rich data such as embedded json documents to be passed without a need to escape quotes and any other special characters to be included in the response to apply base64 encoding to the results pass a base64 results true query parameter when making a request for example curl s http localhost 8080 query x post h x forwarded user test d query select from books result data title deep work rules for focused success in a distracted world author cal newport genres productivity reference error curl s http localhost 8080 query base64 results true x post h x forwarded user test d query select from books result data eyj0axrszsi6icjezwvwifdvcms6ifj1bgvzigzvcibgb2n1c2vkifn1y2nlc3mgaw4gysbeaxn0cmfjdgvkifdvcmxkiiwgimf1dghvcii6icjdywwgtmv3cg9ydcisicjnzw5yzxmioibbilbyb2r1y3rpdml0esisicjszwzlcmvuy2uixx0 error cat base64 d eyj0axrszsi6icjezwvwifdvcms6ifj1bgvzigzvcibgb2n1c2vkifn1y2nlc3mgaw4gysbeaxn0cmfjdgvkifdvcmxkiiwgimf1dghvcii6icjdywwgtmv3cg9ydcisicjnzw5yzxmioibbilbyb2r1y3rpdml0esisicjszwzlcmvuy2uixx0 title deep work rules for focused success in a distracted world author cal newport genres productivity reference note almost every modern and well behaved json parser would attempt to unescape quotes and handle reserved characters correctly detailed operation todo limitations using json to convey different data types that modern databases support can be challenging simply put json is ill equipped to represent rich data and complex types correctly it does not convey any type information and its supported types range is limited thus to reduce ambiguity and potential type conversions issues due to differences that various programming languages and json parses can employ when converting values sent over the wire to the internal representation for specific native types a decision has been made to encode most of the values returned upon executing an sql query as strings this means that numerics integer and floating point values dates and other myriads of complex types and values are string encoded another set of limitations stems from using http as the transport protocol of choice such as content encoding or the request and response data size environment variables db driver options mysql pgx default db driver pgx db host 127 0 0 1 db port 5432 db user root db pass secret123 db name main db write false | server |
|
Mobile-projects | mobile devices projects in this repository there are some projects created by juan pomares bernabeu for the university master s degree in development of software for mobile devices of the alicante university | front_end |
Subsets and Splits