Posts

Android Logcat: Why does logging come through in bursts? -

i find logcat real nuisance no matter device (or development tool) use. there seems delay between when programs , when logcat sees program did - 10-20 seconds or so. why this? there logcat buffering or flushing configuration can set either on device or logcat stop happpening? i see debug - not seconds later. have seen problem using eclipse, android studio , logcat rabbit. xcode shows debug ios devices immediately. surely android devices should capable of doing same? the problem caused error. have flood of "called unimplemented opengl es api" errors being logged continuously logcat , using filter app. these floods of errors causing delays in debug appearing. problem solved fixing flood of errors.

java - Getting "ClassNotFoundException: ResteasyBootstrap" and "ClassNotFoundException:SpringContextLoaderListenerexception" -

i getting following exception: java.lang.classnotfoundexception: org.jboss.resteasy.plugins.server.servlet.resteasybootstrap @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1711) @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1556) @ org.apache.catalina.core.defaultinstancemanager.loadclass(defaultinstancemanager.java:525) @ org.apache.catalina.core.defaultinstancemanager.loadclassmaybeprivileged(defaultinstancemanager.java:507) @ org.apache.catalina.core.defaultinstancemanager.newinstance(defaultinstancemanager.java:124) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4715) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5273) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1566) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1556...

javascript - Moment not formatting this date May 04, 2016 -

Image
the server giving me date format may 04, 2016 var month = moment('may 04, 2016', 'mm-dd-yyyy').format('m') month gives me 4 , may should 5 , it's giving me day seems, , not month. how format date server gives me determine month using moment.js? edit: not sure why downvoted tried answer below , still get when give moment 2 string arguments, the documentation says second meant format of first. mm-dd-yyyy not format of may 04, 2016 . format of may 04, 2016 mmm dd, yyyy : console.log(moment("may 04, 2016", "mmm dd, yyyy").format("m")); <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js"></script>

php - Issue integrating the Open Graph meta tag -

i trying integrate open graph , twitter card on site. works fine until add meta tag: <meta property="og:image" itemprop="image primaryimageofpage" name="twitter:image" content="my-site-name.com/resources/images/logo.png" /> at stage, headers sent error. however, if trim down length of image url, logo.png , error disappears. is there doing wrong? there maximum length value content attribute of meta tags? try changing content="my-site-name.com/resources/images/logo.png" to this: content="http://my-site-name.com/resources/images/logo.png"

office365api - Is there a way to programatically edit Office 365 Excel documents? -

Image
i have update spreadsheet looks this. it's not hard @ all. go last line , enter need in appropriate columns. i'd automate this. first thing tried selenium webdriver results slow , hit , miss. next thing checked api it looks like there nothing excel. i use selenium download file , use c# app modify excel file , reupload it. @ point though i'm wondering if google docs has easier solution. so there way programatically modify excel online spreadsheet? i'm aware of 4 options programmatically modify excel online via javascript or rest: office add-ins platform: https://dev.office.com/docs/add-ins/overview/office-add-ins excel services javascript api - ewa excel web access namespace (not updated in couple years): https://msdn.microsoft.com/en-us/library/hh315812(v=office.14).aspx excel services rest api (via sharepoint online): https://msdn.microsoft.com/en-us/library/ee556842(v=office.14).aspx microsoft graph rest api (excel objects in beta): https...

input - Why isn't my file opening, C++? XCode and Visual Studio -

this happening in both visual studio , xcode #include <fstream> #include <iostream> using namespace std; int main() { ifstream input; input.open ("matrices.txt"); if (!input.is_open()) { cout << "not open!"; } else { cout << "open!"; } input.close(); return 0; } my file not opening. text file matrices.txt in same directory. what "same directory" in context? for file open this, has in working directory of executable when run in debugger. for xcode; means adding files copy files build phase (accessible editing executable's target); , adding products directory , selected dropdown.

c++ - Reading a binary file incrementally -

i made question parsing binary file, , sort of got work here. https://stackoverflow.com/questions/37755225/need-help-reading-binary-file-to-a-structure?noredirect=1#comment62983158_37755225 but face new challenge , in need of help, please bare me. my binary file looks much longer... st.........¸.°Ý.ø...0.œ...........esz4 1975..........iyh.testdbdbdbdbst...........°Ý.ø...................dbdbdbdbst.........p.´Ý.ø...0.œ...........esz4 1975..........htc.testdbdbdbdbst.........‹‚´Ý.ø...................dbdbdbdbst.........ƒd.Þ.ø...0.œ...........esz4 1975..........arm.testdbdbdbdbst.........«e.Þ.ø...................dbdbdbdb basically, every message starts 'st' , ends 'dbdbdbdb'. goal parse each message , store message data structure. in addition, every message different depending on type, , different type of message have additional members. the problem having is, have no idea how iterate through binary file... if regular file, can while(getline(file,s)), bina...