How to do non greedy regex match in command line I want to do a non greedy regex replace on a text file. But “sed” does not work.“perl” is suitable for this:out of place:perl -pe 's|textA.+?textB|textC|g' file in place:perl -pe 's|textA.+?textB|textC
How-to create a Windows 10 usb installation media in Linux create a Windows 10 usb installation media in Linux
Career Management Lession 2/6 - Forge Relationships Forge Relationships Career success is complex today—you’ll encounter many opportunities and navigate lots of change. Discover how to enlist smart people to help you on your journey.
Career Management Lession 1/6 - Chart Your Career Path Chart Your Career Path Don’t wait for someone else to decide the direction of your career. When it comes to managing your career, you are in charge.
Career management Career management is the combination of structured planning and the active management choice of one’s own professional career.
Generate C enum define from python dict First we need to prepare the dict, then sort and format it: text = """#ifndef bb2421a299d24d4abbe59c3721a794f9#define bb2421a299d24d4abbe59c3721a794f9enum {{{}}};#endif//bb2421a299d24d4abbe5
How to disable compiler optimization for a piece of code Preface:In a C++ project, a source file contains a very large array, which contains unions, template function pointers ..., on Windows & Mac, the compilation time is 20 minutes, but on Linux, it's 2
Xen in WiFi networks From: Xen in WiFi networksSuccessfully running Xen on a machine with a single WiFi card can be tricky. In my situation the network indom0 worked fine but in domU I could only see incoming pa
ipmi IP setup I have acquired a static IP for IPMI, then try to configure it in Linux.ipmitool lan set 1 access off ## must set, or the following command will have no effect.ipmitool lan set 1 ipsrc static
IPMI SOL setup in Ubuntu Linux Pre-request:Server has IPMI SOL feature.Client setup:sudo aptitude install ipmitoolServer setup:Enter BIOS setup, enable console redirect, SOL, and set serial connection parameters.In Ub
C++ template instanctiation process From: http://gcc.gnu.org/onlinedocs/gcc/Template-Instantiation.htmlNext: Bound member functions,Previous: C++ Interface,Up: C++ Extensions7.5 Where's the Template?C++ templates are the
Visual Studio 2013 has a powerful code analyis tool From MSDN: Analyzing Managed Code Quality by Using Code Analysis
example: call cuda toolkit curand API from common lisp continue example: call cuda toolkit API from python, curand
Native Client (NaCl) is an open-source technology for running native compiled code in the browser Technical Overview