I’ve been used to GSAM’s excellent battery monitor tool on android for a year or so, but recently after upgrading to Nougat I’ve noticed that it’s stopped reporting accuratly for most applciations.
There is an Android Root companion that is supposed to fix the issue, but Nougat is unable to run it (thanks to better security built in to the mobile OS).
GSAM kidly request that you star an Issue on the open source issue tracker BUT DO NOT COMMENT ON IT. This can help Android offer users the choice to allow apps to access the Battery APIs built in to the OS.
Until this request is brought into the OS (I don’t think it will be any time soon) there IS actually a way to enable the functionality. It’s hidden in comment number #27 on the page…
Excellent! But what does that even mean?
Well - let’s try it out. Before I begin a disclaimer.
First let’s see if we have adb…
For me I didn’t. Rather than installing the android development studio, I just want ADB, so I decided to install the minimum bits I needed.
This means getting the “Safe way to install things” using brew. Let’s see if brew is on the machine…
Since upgrading OSX I had to run an extra command to get Xcode tools working…
Now I was ready to install the android-sdk.
Now plug in your android and ensure it is connected using PKP connection (the picture communication connection from the menu on your device when you plug it into your mac).
Next let’s ensure we can see the device…
It should display your device in a list. Awesome!
Now let’s find the application name installed on the device..
Somewhere in the list you will see GSAM like com.gsamlabs.bbm or com.gsamlabs.bbm.pro
Take that text and run this next line to enable the hidden permission for this app to monitor battery information.
Then next time you restart your Android, GSAM Battery monitor will have what it needs to monitor all the apps running on your device.
We’ve been working on our Master CSS files. These are files that repsent a section of the site.
Historically we would dump a load of CSS files in a MasterSiteAreaCSS.aspx and it would look somethign like the following….
This has served it’s purpose for years, but it’s getting very tired. Firstly it relies on a nasty ASP Includes hack. It also doesn’t allow us to do anything clever with the CSS files.
Our frontend dev is desperate to get on to playing with SCSS, so we decided to start playing with it to see what little changes we could make to our code to get a similar implementation using SCSS.
Here’s our first attempt:
This worked for files in the same directory, but we seemed to get errors when trying to get files off the route.
Eventually I worked out the correct syntax is to use ./ notation../
Which now seemed to work from an IDE, but had issues when talking to a build server. What we needed to do was add metadata to describe the compilation process for a build command to pick up.
The other day I was trying to describe some branching and merging strategies over distributed repositories to a remote coworker. Sadly I’m fairly new to complex git branching behaviour, so I had a hard time describing what I was trying to say.
I realised the best thing to do was to try and share some diagrams. Now being clued up on javascript, and having a few minutes spare I researched to see if there is anything I could use to generate descriptive diagrams for me.
Luckily I stumbled across Git Graph JS. It’s a really simple library for showing git concepts. Without further ado - let’s see some code.
read more
(1 minute)
PCI Compliance is necessary on any site that takes credit card transactions. Trustkeeper is an example of a service you can use to scan your site and see if the site conforms to PCI (Payment Card Industry). To be PCI compliant you have to ensure with various security enhancements are present on your server.
On Feb. 13, the PCI Security Standards Council declared that TLSv1.0 is an unsafe protocol, and now Trustkeeper deems it as a failure if you have TLSv1.0 on your site.
read more
(2 minutes)