This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum repolist | |
yum repolist enabled | |
yum repolist disabled | |
yum repolist all | |
Syntax Description Example(s) | |
rpm -ivh {rpm-file} Install the package rpm -ivh mozilla-mail-1.7.5-17.i586.rpm | |
rpm -ivh --test mozilla-mail-1.7.5-17.i586.rpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On a clean system | |
yum groupinstall "Authoring and Publishing" "Administration Tools" | |
yum groupinstall "Books and Guides" "C Development Tools and Libraries" "Development Tools" "Fedora Eclipse" "System Tools" "Editors" | |
I use Intel Composer | |
https://software.intel.com/en-us/articles/using-intelr-compilers-for-linux-under-fedora | |
Follow the instructions for ia32 libraries or only install x64 bin. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cfloat> | |
#include <iostream> | |
#include <sstream> | |
#include <cmath> | |
using namespace std; | |
string FPClass(double x) | |
{ | |
int i = _fpclass(x); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class klGDIBitmapConversion | |
{ | |
public static System.Drawing.Bitmap MainConv(System.Drawing.Bitmap img) | |
{ | |
System.Drawing.Bitmap b = img;// new System.Drawing.Bitmap("test.jpg"); | |
SplashImage(b, 0, 0); | |
DateTime dtFaq = DateTime.Now; | |
System.Drawing.Bitmap b0 = CopyToBpp(b, 8); | |
TimeSpan tsFaq = DateTime.Now - dtFaq; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Drawing.Imaging; | |
using System.Linq; | |
using System.Text; | |
using klManagedImaging; | |
using System.Drawing; | |
//Quite Literally - scraps | |
//Scraps of Bitmap Interop GDI+ code I did not want to loose. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Try to set the path to the Matlab binaries. The below does not work. The runtime | |
//tries to load the dependencies before this can be executed. Investigate delay loadding of dll. | |
//The code is kept here for reference. | |
//I have previously experienced an issue where the environment variable can not be used. There is a maximun path | |
//length of 2048 for the system environment variable. Exceeding this will cause | |
//myriad problems with a Windows 7 system. If you find you icon image cache is corrupt - check the | |
//length of your path variable. | |
//char* envV= getenv("PATH"); | |
////Returns an errno if there is a problem. | |
////int setOK = _putenv( "PATH=C:\\Program Files\\MATLAB\\R2012b\\bin\\win64;%PATH%"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <iostream> | |
#include <map> | |
#include <vector> | |
#include <cctype> | |
int to_int(int c) { | |
if (! isxdigit(c)) return -1; // error: non-hexadecimal digit found | |
if (isdigit(c)) return c - '0'; | |
if (isupper(c)) c = tolower(c); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config http.postBuffer 524288000 |
NewerOlder