Posts

c++ - Cross-platform mySQL inconsistencies with character sets -

i have script creates database, couple of tables in , populates data. script made sqlite database on windows. 1 of tables in script named "abcß" ("abc+alt225"). next tried load script mysql thru mysql workbench. both server , workbench running on linux. after fixing syntax inconsistencies database created. tried query database , tables. tables queried successfully, 1 above. trying query "information_table.tables.table_name", name "abc\0d-61\0d63" gives different result original name. because of program crashing when run because sent table name codecvt_utf-8 encoder. the database , tables created default encoding. does know why i'm not seeing proper results? but importantly - presume program crashing because of characters outside of wchar_t/utf-8 encoding. i'm curious - should use convert sequence std::wstring? tia! edit: the code follows: class mysqldatabase { public: int loaddatabasedata(); protected: s...

javascript - Trying to edit a message that is displayed by innerHTML -

i trying edit welcome message have site using css. have message displays if first time user vists site , if repeat user using cookies. trying edit message div using css. here javascript code picks message display using cookies: window.onload = function welcomemessage(){ var visitdata = decodeuricomponent(document.cookie); if (visitdata.length == 0) document.getelementbyid('welcome').innerhtml = "<h4>welcome our website!</h4>"; else document.getelementbyid('welcome').innerhtml = "<h4>welcome our website. please browse site learn our services.</h4>"; var expiresdate = new date(); expiresdate.setfullyear(expiresdate.getfullyear() - 1); document.cookie = encodeuricomponent("expires=" + expiresdate.toutcstring()); } i have message displayed on html: <div id="welcome"></div> i use css align text , possibly more add border. reason when try use css fil...

software - Was there a 'git' in the 1990s? - Retrocomputing Stack Exchange

i seem remember using source code control system in early- mid-1990s called git. nuts? i used work @ ibm way then. didn't use big project, distinctly remember using it. possible? however, wikipedia says linus torvalds wrote in 2005, citing a short history of git : git created linus torvalds in 2005 development of linux kernel, other kernel developers contributing initial development. was there earlier version of source-control software same name, or may have functioned similarly? you nuts, unfortunately. thing that's called git didn't exist @ until linus invented after experience bitkeeper , , thinking distributed version control. linux didn't start using bitkeeper official mainline source tree until 2002, developers must have been using before that. bitkeeper didn't exist until late 90s (e.g. early-access beta in may 1999). one of major motivations creation bitkeeper's pricing change , making inconvenient developers work on linux ...

html - Chrome z index when animating slide in menu -

Image
i trying create slide in menu similar sidenav of https://material.angular.io/components/sidenav/overview except have fixed window can opened anywhere. the linked plnkr works correctly when run in plnkr window. running same code locally not work correctly. https://plnkr.co/edit/f5zolcf9hxlhzeu0bqil the slide in menu correctly positioned on top of rest of page background on other content. when running locally in chrome, menu , background overlay come front once animation complete. it looks elements being relatively positioned causes issue. when using simple flex layout , not using bootstrap, elements appear correctly in chrome. div around slider template seems correct issue in chrome not sure why. <div> <div class="slider__content" [class.slider--show-backdrop]="open"> <div>header</div> </div> <div class="slider-backdrop" [class.slider--show-...

c# - How to get the active SDK in VRTK? -

how set sdk active in vrtk? or, more helpful, how active camera , controller objects? possible? i think can use this: vrtk_sdkmanager.instance.loadedsetup.gameobject vrtk_sdkmanager.instance.loadedsetup.actualheadset vrtk_sdkmanager.instance.loadedsetup.actualleftcontroller etc. check this: https://vrtoolkit.readme.io/docs/vrtk_sdkmanager

linux - How to pass http headers using ffmpeg to play streaming? -

i need take screenshot streaming with: ffmpeg -y -ss 00:00:05 -i "http://xxxxx/live/767.ts" -vframes 1 -q:v 2 "/var/www/iptv/screenshots/file.jpg" most cases received message saying: " server returned 401 unauthorized (authorization failed) ". but, when running using vlc or kodi, url playing ok! this restriction on streaming webserver blocking access request without header. i have checked ffmpeg documentation , found no information streaming headers.

javascript - Alternative logical operator for more than two inputs with check value -

i have script in js: <script> $(document).ready(function () { $('#new_logo_box').click(function (event) { if (this.checked) { $('#basic_info').slidedown(400); } else { $('#basic_info').slideup(400);} }); }); </script> now want check more 1 input alternative logical operator. how should that? trying with: <script> $(document).ready(function () { $('#new_logo_box').click(function (event) || $('#renew_logo_box').click(function (event) { if (this.checked) { $('#basic_info').slidedown(400); } else { $('#basic_info').slideup(400);} }); }); </script> but not working... you can select each element separately , use add add event listener both of them: var newlogobox = $('#new_logo_box'); var renewlogobox ...