To change where screen clippings settings, go to
File→Options→Send to OneNote→Other Content.
Choose "To Clipboard only" if I don't want it to send to OneNote.
Monday, April 11, 2016
Monday, February 1, 2016
Mathematica: Clear all variables except one
To clear all variables except x, for example, then input the following
AppendTo[$ContextPath, "special`"];
special`x;
Friday, January 29, 2016
Using FLTK with Code::Blocks for Windows
The following versions were used: fltk v1.3.3, Code::Blocks 16.01, and Windows 7
1. Download fltk-1.3.3-source.tar.gz from http://www.fltk.org/software.php and extract it to C:\
2. Download the installer mingw-get-setup.exe from http://sourceforge.net/projects/mingw/files/. In the MinGW Installation Manager, make sure to install mingw-developer-toolkit, mingw32-base, mingw32-gcc-g++ and msys-base
3. Start msys by launching msys.bat found in C:\MinGW\msys\1.0\
4. Type the following in msys:
cd /c/ (This changes the directory to the C drive)
cd fltk-1.3.3 (This changes the directory to C:\fltk-1.3.3. To check your current working directory, you can type pwd)
./configure
make
make install
5. To successfully create a FLTK project in Code::Blocks, use Solution #1 in http://www.complete-concrete-concise.com/programming/fltk/using-fltk-with-codeblocks
Sources:
https://groups.google.com/forum/#!topic/ppp-public/CuTWEfUcPiw
https://sites.google.com/site/bauyt008/code--blocks-tips--tricks-and-tutorials/c-fltk
http://www.complete-concrete-concise.com/programming/fltk/using-fltk-with-codeblocks
https://users.cs.jmu.edu/bernstdh/Web/common/labs/skills_windows-command-shell/msys/index.php
1. Download fltk-1.3.3-source.tar.gz from http://www.fltk.org/software.php and extract it to C:\
2. Download the installer mingw-get-setup.exe from http://sourceforge.net/projects/mingw/files/. In the MinGW Installation Manager, make sure to install mingw-developer-toolkit, mingw32-base, mingw32-gcc-g++ and msys-base
3. Start msys by launching msys.bat found in C:\MinGW\msys\1.0\
4. Type the following in msys:
cd /c/ (This changes the directory to the C drive)
cd fltk-1.3.3 (This changes the directory to C:\fltk-1.3.3. To check your current working directory, you can type pwd)
./configure
make
make install
5. To successfully create a FLTK project in Code::Blocks, use Solution #1 in http://www.complete-concrete-concise.com/programming/fltk/using-fltk-with-codeblocks
Sources:
https://groups.google.com/forum/#!topic/ppp-public/CuTWEfUcPiw
https://sites.google.com/site/bauyt008/code--blocks-tips--tricks-and-tutorials/c-fltk
http://www.complete-concrete-concise.com/programming/fltk/using-fltk-with-codeblocks
https://users.cs.jmu.edu/bernstdh/Web/common/labs/skills_windows-command-shell/msys/index.php
Sunday, January 24, 2016
Add shortcut for quit kernel in Mathematica
1. Navigate to Program Files/Wolfram Research/.../.../SystemFiles/FrontEnd/TextResources/Windows/
2. Edit the KeyEventTranslations.tr file
3. Example: If you want to add a shortcut for quit kernel, then insert the following into the file:
Item[KeyEvent["q", Modifiers -> {Control}],
FrontEndExecute[
FrontEndToken[
SelectedNotebook[],
"EvaluatorQuit",
Automatic
]
]
],
This will assign Ctrl+q as a shortcut for quit kernel
Friday, January 8, 2016
Getting Code::Blocks to work with regex in Windows
The current stable release of Code::Blocks 13.12 comes with GCC v4.7.1, which does not implement regex. Regex was implemented and released in GCC 4.9.0
1. Download tdm-gcc from http://tdm-gcc.tdragon.net/
2. After installing, open Code::Blocks. Go to Settings -> Compiler -> Toolchain executables
3. Change the Compiler's installation directory to where tdm-gcc was installed. (Default is C:\TDM-GCC-64)
4. Direct the C compiler to gcc.exe, C++ compiler to g++.exe, and linker for dynamic libs to g++.exe. These are all found in the 'bin' folder, i.e. C:\TDM-GCC-64\bin
5. Make sure in the compiler settings, 'Have g++ follow the C++11 ISO C++ language standard' is checked
Sources:
http://stackoverflow.com/questions/8060025/is-this-c11-regex-error-me-or-the-compiler
http://stackoverflow.com/questions/12808650/how-can-i-change-the-compiler-in-codeblocks
1. Download tdm-gcc from http://tdm-gcc.tdragon.net/
2. After installing, open Code::Blocks. Go to Settings -> Compiler -> Toolchain executables
3. Change the Compiler's installation directory to where tdm-gcc was installed. (Default is C:\TDM-GCC-64)
4. Direct the C compiler to gcc.exe, C++ compiler to g++.exe, and linker for dynamic libs to g++.exe. These are all found in the 'bin' folder, i.e. C:\TDM-GCC-64\bin
5. Make sure in the compiler settings, 'Have g++ follow the C++11 ISO C++ language standard' is checked
Sources:
http://stackoverflow.com/questions/8060025/is-this-c11-regex-error-me-or-the-compiler
http://stackoverflow.com/questions/12808650/how-can-i-change-the-compiler-in-codeblocks
Friday, December 18, 2015
Getting Code::Blocks to work with std_lib_facilities.h
In Stroustrup's book, 'Programming: Principles and Practice Using C++', one must include the header file. This won't work in Code::Blocks without some modification.
First, go to settings→compiler→ and make sure 'Have g++ follow the C++11 ISO C++ language standard' is checked.
Then comment out or delete the following in the std_lib_facilities.h as shown below:
Source: http://www.cplusplus.com/forum/general/136389/
First, go to settings→compiler→ and make sure 'Have g++ follow the C++11 ISO C++ language standard' is checked.
Then comment out or delete the following in the std_lib_facilities.h as shown below:
#ifdef _MSC_VER
// microsoft doesn't yet support C++11 inheriting constructors
Vector() { }
explicit Vector(size_type n) :std::vector<T>(n) {}
Vector(size_type n, const T& v) :std::vector<T>(n,v) {}
template <class I>
Vector(I first, I last) : std::vector<T>(first, last) {}
Vector(initializer_list<T> list) : std::vector<T>(list) {}
#else
using std::vector<T>::vector; // inheriting constructor
#endif
Source: http://www.cplusplus.com/forum/general/136389/
Friday, December 11, 2015
Stop Excel from changing cell contents
Highlight the column. Right-click → format cells → custom → then choose a single 0.
Source: http://stackoverflow.com/questions/2420931/stop-excel-from-changing-cell-contents-ever
Source: http://stackoverflow.com/questions/2420931/stop-excel-from-changing-cell-contents-ever
Wednesday, November 11, 2015
Rainmeter Network
A modified version of the default Rainmeter network skin found in the illustro package. Theme is the same as illustro. In addition to the features found in the default network skin, this also tracks the total data uploaded and downloaded each month. At the start of each month it will write the data to a text file and reset the data usage.
https://mega.nz/#!LRR2iYxI!bQ3uDHBSvBnNVkZO6hed4ybQ4TGOv4XmDHRTkGJfKYM
https://mega.nz/#!LRR2iYxI!bQ3uDHBSvBnNVkZO6hed4ybQ4TGOv4XmDHRTkGJfKYM
Subscribe to:
Posts (Atom)