System clock on my Glass device is wrong? - google-glass

So I'm developing an app for Glass which involves setting alarms for certain times and dates. However, when looking at the logcats on Android Studio, I can see that the time is wrong--WAY wrong. Like 2 weeks, 9 hours and some change off. It is my impression that the time shown in the logs is the system time of the device.
Indeed, when I start the glass device, the clock shows an incorrect time. Interestingly, when I go to the calendar app, that gives the correct date.
I can't figure out how to set the date and time anywhere in the settings of the device. Has anyone dealt with this?

I'm not certain, but I think the time is only ever synced from a paired phone, not from the internet.
So are you pairing the device to a phone or connecting directly to wi-fi?
In not paired to a phone, try that.

Related

Using AWS Instance to run games off Steam

I have been learning about AWS recently and I had an idea. My personal laptop is small, I use it for coding and keep all my files on the cloud. My work laptop is huge, but I can't game on my work laptop.
I have a few games Im looking at on Steam that just wouldn't fit on my personal laptop. Do you think it would be cost effective to download them onto a server through AWS and play them like that?
To continue my comment. Cost-effectiveness is not really the issue but rendering and lag is the issue.
On your PC / Laptop you want to go for 60 frames per second (fps), meaning at max ~13ms of rendering per frame. Depending on the type of game you can get by with 30fps, but e.g. for first person shooters you might even try to go for 144+ fps.
The key thing to understand is that your action, e.g. moving around or clicking something has to be rendered as soon as possible, e.g. at most 13ms after you do it. You will immediately notice a high input lag meaning a "long" time between an input being issued and the input taking effect. If you now move the rendering to the server the frame does not only need to be rendered but it needs to also be transferred onto your machine. Depending on your bandwidth and the image size this can naively easily take a second. This is extremely far beyond anything that is actually playable. And that does not yet account for you sending your interaction to the server to make the server render it.
Long story short: it is not feasible for you to implement. As already mentioned Google Stadia tries to achieve that but you can be sure there are A LOT of optimizations in place to make it work.

How can I detect current windows update status at offline?

I'm going to detect my os update status using wuapi.
Using IUpdateSearcher::Search i can do it, but this function can only be used at online.
At offline I also used IUpdateServiceManager::AddScanPackageService function to get status but this functions need wsusscn2.cab file and this file is too large.
At offline is there any other wuapi to detect windows update status or is there any registry or system file to detect it?
Thank you for you help...
Even offline, you can use a Windows Update API search to see what updates are needed. You can set your IUpdateSearcher object's Online property to false before calling Search or BeginSearch. Doing that will perform an offline scan, in which WU just re-evaluates the updates it already knows about. This will work offline and will also return faster results. There are two downsides you should be aware of:
An offline scan obviously won't return information on any new or modified updates released since the last time the computer did an online scan.
If the hardware or software configuration has changed since the last time the computer did an online scan, your offline scan may not return information on updates that became applicable because of the configuration change, even if those updates had already been published at the time of the last online scan. To give a simple example, if you install Office, your offline scans won't return Office updates until the next time you do an online scan. This is because the WU/MU/WSUS/SCCM services try to save time and bandwidth by only telling the clients about updates that might be applicable, rather than downloading the whole update catalog to every client. Since your computer hasn't had Office before, the services haven't told your computer about Office updates.

Is there a way to monitor the cpu and power consumption of an individual app on a smartwatch (android wear)?

I was wondering if there is a way to monitor the cpu and power consumption of an individual app on a smartwatch (android wear) remotely such as through the Android studio or something little eye which is not accessible anymore ? The usual handheld apps such as power tutor and trepn doesn't fit the screen of the watch.
Any suggestions would be appreciated on somehow adapting these apps to work on watch or anything else ?
Regards
Try System Info app for Android wear. Download it from Google Play. Screenshot of their app shows a monitoring dashboard that fits the android watch's screen.
Yes! you can use the Battery Historian to get very detailed information about wake-locks, CPU usage, VM usage, CPU temperature.. the list goes on.
After putting your watch in Developer Mode, run :adb bugreport > battery_stats.txt and feed the battery_stats.txt file to the battery historian. It will output detailed information about all apps and the system in general, with the option of seeing stats for the app of your choice.
I finally used power tutor (battery consumption) and dumpsys cpuinfo for these measurements.
Power tutor does not provide correct power values when it comes to absolute values, however, it works for relative comparison of various apps (power consumption) which was the case with my situation.
http://ziyang.eecs.umich.edu/projects/powertutor/
https://developer.android.com/studio/command-line/dumpsys.html

XCode5 using iPhone for Development

I am trying to use my iPhone to test out my apps. When I select to use my iPhone for testing, it says "No matching code signing identity found" then a bunch of other crap in small letters.
I can then select Cancel or Fix Issue, so I do Fix Issue. I then get Join Program, Cancel, or Add... I already have my appleID added to the members area in "add" selection but it still errors out.
I have tried Join a Program then it says its $100 a month just to do this. Does it really cost money and that much or I am doing this the wrong way?
Thanks for your help guys.
You will have to join the Developer Program to be able to test your app on an actual device, but it is a yearly fee ($ 99), not monthly.
This is just the way it is.
You need to be a member of the iOS developer program to run your apps on your iOS device, and yes, the cost is $100 per year.

How to get the date and time from the internet using MFC

I am trying to build an application for tryout, and I need to download the date and time from the site time.windows.com, so the application will stop working after several days. I thought about getting the local date and time which the user set up in Windows, but I don't think that's very reliable. I thought about using the classes CSocket and CSocketFile and something like that, but I am not sure. Can you superheroes please tell me how to download this information from time.microsoft.com?