Skip to content

Instantly share code, notes, and snippets.

View Darker's full-sized avatar

Jakub Mareda Darker

  • Czech Republic
View GitHub Profile
@Darker
Darker / stdout
Created April 19, 2018 18:46
Error when compiling visual sfm
jakub@pidizvik:~/vsfm$ make
mkdir -p build
mkdir -p bin
cd build; ar -x ../lib/VisualSFM.a; cd ..;
g++ -w -o bin/VisualSFM build/*.* -pthread -lGL -lGLU -lX11 -ldl -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lfontconfig -lfreetype -lgthread-2.0 -pthread -lglib-2.0 lib/lapack.a lib/blas.a lib/libf2c.a lib/libjpeg.a
/usr/bin/ld: lib/lapack.a(dgeev.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/lapack.a(dgehrd.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/lapack.a(dgerqf.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/lapack.a(dgesv.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: li
function changeText(originalText) {
return "💩";
}
// Najde všechny texty v dokumentu
var walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT, null, null);
// Sem budeme dávat nalezený texty
var node = null;
// dokud walker.nextNode() vrací text a ne null
while(node = walker.nextNode()) {
// "text node" má "data", to je text co je pak vidět v browseru
#define E .0000001f
bool fEqual(float x, float y)
{
return (x+E > y && x-E < y);
}
float4 rgba2hsla(float4 rgba) {
float M = max(rgba.x, rgba.y);
M = max(M, rgba.z);
const RICKROLL = "https://www.youtube.com/watch?v=oHg5SJYRHA0";
const RICKROLL_DAY = 1;
const RICKROLL_MONTH = 4;
if(Storage && window.localStorage && window.localStorage instanceof Storage) {
// Check if it's 1st of April
var date = new Date();
// Note that months are zero indexed
if(date.getDate() == RICKROLL_DAY && date.getMonth() == RICKROLL_MONTH-1) {
// If local storage does not work, rickroll will simply never occur
// this is a safety measure to prevent people being rickrolled forever