Posts

java - Problems displaying barcode font -

java - Problems displaying barcode font - i creating labels bar codes ean13. not want utilize barcode4j lib reasons of processing speed. using ireport added font ff ean, , custom function barcode translation. because run study in java (in eclipse ide), exported font in jar file, , added java project. using pdf preview ireport barcode can seen properly, running in java barcodes not displayed. font exporting procedure runs well, because had integrated font times new roman, not available default. why font ff ean ignored? java fonts jasper-reports barcode

c++ - Undefined reference to Template Static Function -

c++ - Undefined reference to Template Static Function - what wrong code !!!! undefined reference `bool bioqt::qsequencevalidator::isvaliddnasequence(bioqt::qsequence)' class qsequencevalidator { public: template<class seq> static bool isvaliddnasequence(seq seq); } template<class seq> bool isvaliddnasequence(seq seq) { foreach (qchar c ,seq) { if(!compoundset::dnacompoundset().contains(c,qt::caseinsensitive)) homecoming false; } homecoming true; } int main(int argc, char *argv[]) { qcoreapplication a(argc, argv); qdebug()<<qsequencevalidator::isvaliddnasequence(pop); homecoming a.exec(); } add qsequencevalidator:: before isvaliddnasequence definition. defining free function, not static fellow member function. i.e. template<class seq> bool qsequencevalidator::isvaliddnasequence(seq seq) { ... } c++ qt qt4

actionscript 3 - Flash AS3 ComboBox Dropdown Hover Color -

actionscript 3 - Flash AS3 ComboBox Dropdown Hover Color - hi working on designing flash programme using adobe flash cs6 , as3. cannot life of me figure out how alter dropdown default lite bluish hover color in combobox component. have changed other colors need that. able alter font color when hovered on using code below. simply design constraint , isn't affecting programme in other way except uniformity. help appreciated! import fl.events.*; import fl.managers.*; import fl.controls.*; import fl.controls.listclasses.*; stop(); var standard = new textformat(); standard.color = 0x000000; stylemanager.setstyle("standard",standard); var hover_color = new textformat(); hover_color.rollovercolor = 0xff0000; stylemanager.setstyle("hover_color",hover_color); stylemanager.setcomponentstyle(combobox,"textformat",stylemanager.getstyle("standard")); stylemanager.setcomponentstyle(textinput,"textformat",stylemanager.getstyl...

c++ - Best place to call MiniDumpWriteDump() to catch a crash -

c++ - Best place to call MiniDumpWriteDump() to catch a crash - i have large-ish win32 programme i'm maintaining, , i'd instrument automatically , unconditionally generate minidump file whenever something bad happens. can't inquire customers install userdump.exe, , can't inquire them install visual studio. is there way of doing this? i'd able generate minidump whether abort() called our assert handler (which complicated), whether touches bad memory, or else bad happens. on posix, i'd install signal handler , done this. understanding equivalent approach on windows seh, our programme starts lot of threads in lot of different places painful wrap every thread entry point __try/__catch. ideas? c++ windows exception signals structured-exception

memory management - mmap vs malloc vs calloc performance microbenchmark: What to expect -

memory management - mmap vs malloc vs calloc performance microbenchmark: What to expect - i have created microbenchmark compare allocation performance , rss usage malloc vs mmap. i'm coming conclusion mmap fastest unless utilize memory. hence utilize sparsely populated info structures. my questions whether conclusion right , numbers came create sense (see below details). #include <string.h> #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include <sys/time.h> int main() { #define size 100 void* allocated[size]; size_t size[size]; timeval then, now; memset(allocated, 0, sizeof allocated ); gettimeofday(&then, null); size_t count = 0; size_t = 0; ( ;; ) { if ( allocated[ ] ) { munmap( allocated[ ], size[ ] ); //free( allocated[ ] ); } size[ ] = rand() % 40000000 + 4096; allocated[ ] = mmap( null, size[ ], prot_read | prot_write, map_private | m...

html - absolutely positioned picture covering text -

html - absolutely positioned picture covering text - i have image i've positioned absolutely utilize background. it's covering content of page. <!doctype html> <html> <head> <meta charset="utf-8"> <title>untitled document</title> <style> #pic1 { position:absolute; top: 0px; left: 0px; } </style> </head> <body> <h1> hi there </h1> <h1> hi there </h1> <h1> hi there </h1> <img id="pic1" src="1.jpg" width="100%" alt="picture"> </body> </html> you should alter z-index css property of image the z-index property specifies stack order of element. an element greater stack order in front end of element lower stack order how ever can utilize property on body element set background : background-image:url('image url'); html css

html - Align fixed navigation-div to the right outer div -

html - Align fixed navigation-div to the right outer div - the navigation bar sticks left of container-div. want stick right. tried several things none of them worked. here barebones code. how can navigation bar sticks right side, ending container-div ends? ps: has fixed because want navigation remain @ top of browser window, no matter how much user scrolls down. #container { margin: 0 auto; width: 820px; } #navigation { position: fixed; z-index: 10000; display:block; } ok, had guess @ html code , build you: http://jsfiddle.net/vdl6b/ from can imagine you're trying achieve, it's possible 1 of 2 solutions: removing position:fixed; , adding float: right; navigation css. adding right: 0; define position. i chose latter. here's example using first. html css