6 private links
A collection of useful .htaccess snippets.
This post walks through a complete, compile time implementation of a Snake game using C++ template metaprogramming.
In our terrestrial view of things, the speed of light seems incredibly fast. But as soon as you view it against the vast distances of the universe, it's unfortunately very slow. This animation illustrates, in realtime, the journey of a photon of light emitted from the surface of the sun and traveling across a portion of the solar system, from a human perspective.
sudo apt-get install --reinstall xorg xserver-xorg xserver-xorg-core xserver-xorg-video-intel libegl1-mesa mesa-utils mesa-utils-extra libegl1-mesa-drivers mesa libgl1-mesa-dev libgl1-mesa-dri libgl1-mesa-glx xserver-xorg-video-all xserver-xorg-video-nvidia xserver-common
sudo dpkg -l|grep nvidia|cut -d" " -f3 |tr "\n" " ">/tmp/t
sudo apt-get remove --purge cat /tmp/t
sudo nvidia-uninstall
sudo apt-get remove --purge bumblebee
sudo apt-get purge xserver-xorg-video-nvidia
sudo apt-get install --reinstall xorg xserver-xorg xserver-xorg-core xserver-xorg-video-intel libegl1-mesa mesa-utils mesa-utils-extra libegl1-mesa-drivers mesa libgl1-mesa-dev libgl1-mesa-dri libgl1-mesa-glx xserver-xorg-video-all xserver-xorg-video-nvidia xserver-common
In languages such as python, there is an in operator that is used to check if element is in a range:
if 5 in [1, 2, 3, 4, 5]: print("There is a 5")
What’s nice about this, is the almost english type readability of it. Let’s look at how we can implement such an operator in C++14.
Named operator made easy:
https://github.com/klmr/named-operator
This is an advanced blog post more geared to library writers who want to improve error messages due to substitution failure. It discuss how substitution failures can be transported so the correct information can be presented to the user. Lets first look at the problem.
A dependent type is a type that has a dependency on a value. It essentially is way to encode values into the type, that is, every value has a unique type. Non-type template parameters in C++ allow this. Also, std::integral_constant is good example of dependent typing.
C++ programmers have developed a vast investment of existing code. Use of this code from
other languages is normally impractical. Walter shows how
this code can be accessible from the D programming language.
µBlock is not an ad blocker; it's a general-purpose blocker. µBlock blocks ads through its support of the Adblock Plus filter syntax. µBlock extends the syntax and is designed to work with custom rules and filters.
A curated list of awesome C/C++ frameworks, libraries, resources, and shiny things.
A high performance, middleware oriented C++14 http web framework.
Fast automated phishing attacks against WiFi networks