Travel by drone – watch videos from all around the world, recorded by drones.
Category: Technology
I work in technology sector. And I do round a clock, not only from 9 to 5. It is my bread and butter, it is my hobby, it is the fascination of my life. And with the current rate of change particular in information technology (IT), there is always something new to learn, to try, to talk about. I often post news, thoughts, and reviews. And when I do, this is the category I use.
q – tool for making and composing asynchronous promises in JavaScript
q – tool for making and composing asynchronous promises in JavaScript
If a function cannot return a value or throw an exception without blocking, it can return a promise instead. A promise is an object that represents the return value or the thrown exception that the function may eventually provide. A promise can also be used as a proxy for a remote object to overcome latency.
p5.js – a JavaScript drawing library
p5.js – a JavaScript drawing library.
p5.js is a JavaScript library that starts with the original goal of Processing, to make coding accessible for artists, designers, educators, and beginners, and reinterprets this for today’s web.
Using the original metaphor of a software sketchbook, p5.js has a full set of drawing functionality. However, you’re not limited to your drawing canvas, you can think of your whole browser page as your sketch! For this, p5.js has addon libraries that make it easy to interact with other HTML5 objects, including text, input, video, webcam, and sound.
What is the shortest and most effective code ever written?
Quora runs the question, that by now has plenty of awesome answers. Ā But this one is my favorite so far:
The ‘true’ program in Unix from the 1970s was an empty file. The shell interpreted that as a shell script which ran and resulted in no error status, so the result was zero. Zero is the shell exit code value that represents ‘success’ or ‘true’ within if and while clauses.
So, no program can be shorter than that. And it was entirely effective at meeting its specification.
False was much longer, being
exit 1
Once lawers got in, both programs were sullied with plenty of copyrights. BSD also eventually established a format for identifying shell scripts explicitly, and those codes got added to the file too. Eventually, ‘true’ stretched to hundreds of bytes of copyrights on top of the shell script format intro code. Now, annoyingly, Linux and Mac OS have made it a compiled binary program. In Ubuntu, it is a 22K binary with an 18K code size. Ugh.
At least writing a correct C program for true can be very short. It is one of the few C programs that should require no #include files, and can be simply:
int main(void){return 0;}
Of course make sure to add lots of copyright notices.
Send with us – Open Source Email Templates
Send with us – Open Source Email Templates. Ā Responsive, free, and community driven.