Frescobaldi on Arch
Getting Frescobaldi and lilypond to work on arch is straightforward but badly documented. Unfortunately, the wiki is also locked for me, so I am creating this page. Hopefully, it will help you...
Getting Frescobaldi and lilypond to work on arch is straightforward but badly documented. Unfortunately, the wiki is also locked for me, so I am creating this page. Hopefully, it will help you...
I will keep this short and simple: Install MariaDB (client and server)
1 |
$ sudo pkg install mariadb106-client mariadb106-server |
Install seafile and seahub – you CANNOT do it via pkg because it depends on MySQL, which will conflict...
Hello Everyone, This is a mirror of the scalability series from http://www.lecloud.net/post/7295452622/scalability-for-dummies-part-1-clones onwards. There were 4 parts and they have been accessed from Internet Archive and presented below as is. Table of...
Multiple companies are selling RO (Reverse Osmosis) based water purifiers these days, and all of them will have some confusing diagram to accompany their product so that you are forced to call...
So you got yourself access to a Debian server (or virtual private server) and have logged into it by one way or the other. In this tutorial, we will learn how to...
A generic factory is a factory that can register any class type. It is very easy to write because we are allowed to use void pointers.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#include <functional> class Factory { public: Factory() {} ~Factory() {} void Register(const std::string _key, const std::function<void *()> _creator) { m_creators[_key] = _creator; } template<typename ClassType> ClassType* Get(const std::string _key) const { return static_cast<ClassType *>(m_creators.at(_key)()); } private: std::map<std::string, std::function<void *()> > m_creators; }; |
Usage:
1 2 3 4 5 6 7 8 9 |
int main() { Factory f; f.Register("Derived1", &BaseClass<Derived1>::CreateInterface); f.Register("Derived2", &BaseClass<Derived2>::CreateInterface); Derived1 *d1 = f.Get<Derived1>("Derived1"); Derived2 *d2 = f.Get<Derived2>("Derived2"); Derived1 *d2 = f.Get<Derived1>("Derived2"); // This also compiles!!! } |
As we are...
Problem statement: Find the largest sum that is possible in an array. I.e., find the maximum sub-array. Solution: From the very first this problem looks complicated because of how it is framed....
This PDF was submitted to BITS PILANI Work Integrated Learning Program 2019 Object Oriented Analysis and Design (S2_18_SSZG514) for the final assignment.
Since Manjaro is based on Arch, we can surely use pacman to install node.js and npm. But true freedom of npm can be easily enjoyed without needing root access all the time.
‘C++ Traits’ is an idiom that allows a great level of abstraction at compile time which is normally possible only by a combination of inheritance and composition. It allows an algorithm to...