Archive for February, 2019

Javascript Event Loop

Question:

How do you trace the Javascript event loop?

https://codeburst.io/what-you-need-to-know-about-the-javascript-event-loop-ee3fc32e59c1

https://blog.carbonfive.com/2013/10/27/the-javascript-event-loop-explained/

How do you know if the Javascript event has triggered?

https://stackoverflow.com/questions/48041566/javascript-message-event-not-being-fired

Where is the Javascript Event loop located in Chrome, and Firefox?

https://stackoverflow.com/questions/49729247/javascript-event-loop-queue-vs-message-queue-vs-event-queue

https://stackoverflow.com/questions/25341111/understanding-javascript-event-loop-and-code-execution

https://stackoverflow.com/questions/41125303/the-javascript-event-loop-and-web-workers

 

How to configure project to use cmake?

How do you use cmake in a project?    Suppose the project is named as “myllvm” and has only one file:  log.c and you have decided to use “gcc” to compile the C file.

This is the simplest CMakeLists.txt to get started:

The directory only have two files: log.c and CMakeLists.txt

To build the binary: either clang or gcc can be used, how to configure that?

First “mkdir build” and “cd build” and then issue the following command to use gcc to compile:

Otherwise, you can use clang (ie, replace the “gcc” with “clang”).

But it is also possible to modifiy CMakeLists.txt to have “gcc” specified inside.

How to add new directories with new C files?   (the subdirectory is call “core”):

add_subdirectory(core)

How to add header directory into the compilation?

include_directories(include)
How to add multiple C or CPP files in “src” subdirectory?
#set(SOURCES src/mainapp.cpp src/Student.cpp)
#or just a widcard:
file(GLOB SOURCES “src/*.cpp”)
For more complete list of commands (for CMakeLists.txt) we can dig into cmake source codes and looking into “Help/command” directory.   Or the commands are listed here:
And when you do a “cmake -G <generator> these are the generate currently available (under Help/generator directory):
Selection_022
How to make use of the available cmake recipes written for each different platform:
For example here some Linux related cmake recipes:
Selection_028
And here are the Windows related cmake templates:
Selection_029
How to use the cmake recipes for different common tasks (eg, finding nvidia cuda compiler, find header files, etc) which are called Modules.
For example of a subtasks, these are all the “finding compiler” related modules (left hand side number is the number of lines for the file – a good representation of the complexity of the tasks it is handling):
Selection_023
Here are a complete list of all the tasks:
For more complete tutorial examples:

https://gitlab.kitware.com/cmake/community/wikis/Home

https://cmake.org/cmake/help/latest/index.html

https://stackoverflow.com/questions/44722714/including-c-file-linking-with-cmake-isnt-working-with-c-cannot-include-funct

Vickblöm

Research scattered with thoughts, ideas, and dreams

Penetration Testing Lab

Offensive Techniques & Methodologies

Astr0baby's not so random thoughts _____ rand() % 100;

@astr0baby on Twitter for fresh randomness

The Data Explorer

playing around with open data to learn some cool stuff about data analysis and the world

Conorsblog

Data | ML | NLP | Python | R

quyv

Just a thought

IFT6266 - H2017 Deep Learning

A Graduate Course Offered at Université de Montréal

Deep Learning IFT6266-H2017 UdeM

Philippe Paradis - My solutions to the image inpainting problem

IFT6266 – H2017 DEEP LEARNING

Pulkit's thoughts on the course project

Thomas Dinsmore's Blog

No man but a blockhead ever wrote except for money -- Samuel Johnson

the morning paper

a random walk through Computer Science research, by Adrian Colyer

The Spectator

Shakir's Machine Learning Blog