Posts

Unresolved external symbol (singleton class C++) -

this question has answer here: what undefined reference/unresolved external symbol error , how fix it? 27 answers i looked answers in stackoverflow type of problem, none of helping me out. this question describes how resolve error, , should provide definition , not declaration. i've done that, i'm still getting following error: error 13 error lnk2019: unresolved external symbol "private: __thiscall networkmanager::networkmanager(void)" (??0networkmanager@@aae@xz) referenced in function "public: static class networkmanager * __cdecl networkmanager::instance(void)" (?instance@networkmanager@@sapav1@xz) c:\users\hidden\documents\agk projects\c++ libraries\apps\template_windows_vs2013\networkmanager.obj template here's code: networkmanager.h #ifndef _h_networkmanager_ #define _h_networkmanager_ #include<iostream>...

java - Representing LinkedLists in UML diagrams? -

wondering format represent state of class inside uml diagram private linkedlist<string> list; thanks time it's property multiplicity of 0..* , type string. don't design linked list in uml, use 1 implement association.

css - Adding custom fonts in Rails -

i trying add custom font downloaded in rails app. did: downloaded font (georgia.tff) , put in app/assets/fonts/georgia.tff . main css file looks this: foundation-and-override.scss @font-face { font-family: "georgia"; src: url(/assets/fonts/georgia.ttf) format("truetype"); } .header { font-family: "georgia"; } and want apply font: _header.html.erb <header class="top-bar" data-topbar role="navigation"> <ul class="title-area"> <li class="header"> <h1><a href="/">smart investors's club</a></h1> </ul> </header> it's not working. i'm using rails 4.2.1. referenced adding custom font in app , official way of adding custom fonts rails 4? . no luck.😋 foundation-and-override.scss @font-face{ font-family:"georgia"; src:asset-url("georgia.ttf") format("truetype");...

javascript - Exclude elements from click event handler (jquery) -

i have defined event handler elements on page. var selector = "div, select, input, button"; $(selector).on('click', function (e) { //deactivate function of elements , prevent propagation e.preventdefault(); e.stoppropagation(); //... //dialog loaded , created here //e.g. $(body).append('<see-dialog-html-from-below>'); //... alert('selector click'); } i add (and remove) dialog dom @ runtime (one dialog @ time). simplified dialog this: <div id="dialog" class="ui vertical menu"> <div class="item"> <label for="constraints">constraints:</label> <select id="constraints" name="constraints"> <option value="0">option 0</option> <option value="1">option 1</option> <option value="2">option 2</option> ...

jquery - Detect righ click on CKEDITOR focus handler -

when attaching focus handlers multiple ckeditor's in loop: for(i=0; i<editors.length; i++){ .... ckeditor.instances[editors[i]].on('focus', handlefocus); }; var handlefocus = function(){ console.log("this= ",this); }; how can actual "event" in handlefocus function, can skip right click (context menu) clicks, using existing function skipping right clicks inside editor: var isrightclick = function(event){ switch (event.which) { case 1: return false; // left mouse button case 2: return false; // middle mouse button case 3: return true; // right mouse button default: return false; // strange mouse! } }; use provided event data: var handlefocus = function(ev){ console.log("event= ", ev); }; that way can info editor on event fired, cancel event, original event data, ... this applies event listener attach in ckeditor event model.

c# - Opening Command Prompt and Performing Commands -

first , foremost, first program , new programming overall outside of html , js. being said, building application gathers , collects system files used troubleshooting purposes. have basic understanding of have done far, having issues dxdiag arguments here: var process = new process(); var startinfo = new processstartinfo(); // startinfo.windowstyle = system.diagnostics.processwindowstyle.hidden; startinfo.filename = "cmd.exe"; startinfo.arguments = @"/c dxdiag /whql:on /t %userprofile%\desktop\my system files\dxdiag.txt"; process.startinfo = startinfo; process.start(); process.waitforexit(); *to clarify, commented out hidden line can see cmd windows doing while build application. now have looked , have found multiple other threads relating usage of similar code cannot figure out why variant not work using arguments have included. block bring cmd , execute dxdiag command. have tested command in cmd multiple times ensure wo...

JSON - Make popup navigate to Google -

i'm trying write chrome extension where, when clicked, drop down google. now, loads local .html file. here code have: { "manifest_version": 2, "name": "thename", "description": "thedesc", "version": "1.0", "browser_action": { "default_icon": "icon.png", "default_popup": "http://www.google.com", "default_title": "tooltip" }, "permissions": [ "activetab", "https://ajax.googleapis.com/" ] } i have 4 files in folder: icon.png, manifest.json, popup.html, & popup.js. using "getting started" tutorial https://developer.chrome.com/extensions/getstarted template, extremely new of (vb6 programmer years). edit: got open webpage in little popup. now, need grab title of current tab's url, remove spaces it, trim down 30 characters max, assign string, navigate www.website.com/string. i'm th...