Posts

QT Creator build and rebuild -

i have 2 projects qt-creator c++. let's call project , project b. project works fine. project b strange. last week when tried debug it, stuck. re-saved .pro file (not changing anything) , works. every time build , debug (which build , run ), qt rebuild all. creates moc_blabla.o again every time build it. when debug project b, qt rebuild , run, not build , run. in project works fine. project a.pro , project b.pro have same architecture, no special configuration, default. there wrong did in project b? there way can normal build in project b again? qt creator gets things mixed up, instance, when have hand-edited project file. if project acts strangely close projects , editors in qt creator , delete intermediate files (*.obj, .o, ...) , outputs ( .exe, *.dll, *.lib, *.dylib, ...) produced project. also, delete .pro.user file(s). last step force qt creator configure project anew (and create new .pro.user file). all of above might achieved through make clean or qt cre...

javascript - Passing dynamic field names to jquery's each method -

i'm trying pass field name dynamically function in order form use autocomplete. call function in page keep getting error , think it's because it's trying column property literally opposed dynamically. in php {$fieldname}. there javascript equivalent? or getting horribly wrong? // call function index.php inputsuggetion('input.search', 'http://myapi.com/endpoint', 'title') // function function inputsuggestion(element, endpoint, fieldname) { $(element).on("keydown", function(event) { $.ajax({ type: 'get', datatype: "json", data: { q: $(element).val() }, url: endpoint, success: function(data) { var apicollection = []; $.each(data, function(key, value) { apicollection.push(value.fieldname); }); $(".autocomplete").autocomplete({...

html - Insert a custom font in CSS -

this question has answer here: how add non-standard font website? 20 answers i'm new css. want use helvetica neue font in little project. have downloaded .ttf file , tried insert through @font-face rule: @font-face{ font-family:"helvetica neue light"; src:url("contenuti/helveticaneue-light.ttf"); /*that's put it*/ } to apply used: .xyz{ font-family:"helvetica neue light"; /*...other things...*/ } the problem neither safari or chrome display it what do? try using dash between neue , light. this: font-family:"helvetica neue-light";

tsql - Select Parent..Child records from 2 tables in one query -

i have 2 tables called yl0pf (which master or parent record) , yl1pf (which detail or child record). they join yl0ab=yl1ab, yl0an=yl1an, yl0as=yl1as and restrict records column dteinp. there can 0 many detail records 1 master record. child records arrears records showing months payments have been missed month due so can of course this: select y0.* , y1.* alpsproduction..yl0pf y0 left outer join alpsproduction..yl1pf y1 on y0.l0ab = y1.l1ab , y0.l0an = y1.l1an , y0.l0as = y1.l1as y0.dteinp = '01 jun 2015' order y0.l0ab + y0.l0an + y0.l0as , y1.l1ab + y1.l1an + y1.l1as , cast(y1.dteinp date) desc and put child records next repeating parent records. but if possible extract data below: l0as1, l0an1, l0as1, * l1as1, l1an1, l1as1, * l1as1, l1an1, l1as1, * l0as2, l0an2, l0as2, * l...

c++ - Universal reference with templated class -

example: template <typename t> class bar { public: void foo(t&& arg) { std::forward<t>(arg); } }; bar<int> bar; bar.foo(10); // works int a{ 10 }; bar.foo(a); // error c2664: cannot convert argument 1 'int' 'int &&' it seems universal references works only templated functions , only type deduction, right? make no sense use class? , using of std::forward makes sense in case? note preferred terminology (i.e. 1 in future versions of spec) forwarding reference . as say, forwarding reference works type deduction in function template. in case, when t&& , t int . can't int& because has been explicitly stated in bar instantiation. such, reference-collapsing rules can't occur, can't perfect forwarding. if want perfect forwarding in member function that, need have member function template: template <typename u> void foo(u&& arg) { std::forward<u...

javascript - Add script to assetbundle in HTML -

i'm working on project uses unity webgl display different machines/parts/.. in 3d, these parts or machines selected user , loaded scene (for there single scene, might want load scenes dynamically also). because of large amount of choices want create different asset bundles, containing 1 or more parts each, can download these on-demand. i've done passing url loadfromcacheordownload , extracting gameobject www object. now include scripts assets create animations , user interaction. followed explanation given here: docs.unity3d link , , this works in webplayer . end requirement webgl, , same code built webgl gives following error: notsupportedexception: /users/builduser/buildslave/unity/build/tools/il2cpp/il2cpp/libil2cpp/icalls/mscorlib/system/appdomain.cpp(184) : unsupported internal call il2cpp:appdomain::loadassemblyraw - "this icall not supported il2cpp." system.appdomain.loadassemblyraw (system.byte[] rawassembly, system.byte[] rawsymbolstore...

php - Saving mysql data in binary -

is there way retrieve data mysql db table , save them in binary file? my table looks this id domain_name isauth 1 www.yah.com 1 2 www.go.com 0 3 www.goo.com 1 4 www.foo.com 1 since performance seems issue here, assuming $data result of call pdostatement::fetchall or mysqli_fetch_all , suggest serialize , unserialize : /* fetch $data */ file_put_contents('my_file.dat', serialize($data)); /* other stuff */ $data = unserialize(file_get_contents('my_file.dat')); /* use $data */