Linux

Decoded: GNU coreutils

Linux - Thu, 01/17/2019 - 13:30
Categories: Linux

Google-Home supports now chaining commands for 2-Devices in German-Language!

Tasker: Total Automation for Android - Thu, 01/17/2019 - 13:26

Google-Home supports now to chain 2-Commands in One-Sentence in German-Language (For example, - Turn on the kitchen-light and turn off the bathroom-light!), and it works! Can Anybody confirm this?

submitted by /u/roselanguste
[link] [comments]

Oracle boss prevented from Brexit Britain trip due to US shutdown

The Register - Thu, 01/17/2019 - 13:15
Mark Hurd confesses: I didn't take my passport – but usually that's not an issue

Forget cyber security or emergency hamburgers – the real impact of the US government shutdown is only just beginning.…

Is there an easy way to extract a string or Int constant in Android Studio using kotlin?

Developing Android Apps - Thu, 01/17/2019 - 13:10

A typical pattern I followed with java is to pull out a string or int constant just in time while code using the `refactor > extract` option.

Example:

`preferences.edit().putBoolean("my_really_long_string_prone_to_misspelling", true).apply()`

In Kotlin though, I can't find a way to do this and I have to manually go create the companion block, forget how to declare a constant, and fumble around for 20 seconds before getting it right. With java it took less than a second with the extract as contact keyboard shortcut. Am I missing something?

submitted by /u/leggo_tech
[link] [comments]
Categories: Android, Linux

Using Custom Settings/Blue Light Filter to Detect Sunrise/Sunset

Tasker: Total Automation for Android - Thu, 01/17/2019 - 12:17

I'm trying to set up a profile to increase brightness close to max when BT connected to my car, Waze is open and it's daylight. The BT connected and Waze open is fine. I couldn't find an easy native way for Tasker to tell sunrise/sunset so I decided to try custom settings to check the value of the blue light filter to tell if it's daytime or not. If the blue light filter is on, do nothing, if it's off increase brightness. It's fine during the day but at night sometimes it brightens the screen and sometimes it doesn't and occasionally it will go back and forth on it's own. Should this method work? If so what should I look for that's going wrong? Is there a better way? I can't get the task from my phone at the moment to share it.

submitted by /u/SpecialFX99
[link] [comments]

Top GP: Medical app Your.MD's data security wasn't my remit

The Register - Thu, 01/17/2019 - 12:15
Prof Maureen Baker told tribunal info security and clinical safety are two separate things

The founders of medical symptom-checker app Your.MD knew that a number of key medical information databases were "open to anyone who knows the URL", emails seen by a London tribunal have revealed.…

[Help] Can't get this to work!

Tasker: Total Automation for Android - Thu, 01/17/2019 - 12:05

js.zip

This is the script i'm trying to replicate but to no avail please help!

Description

js (27) A1: HTML Popup [ Code:<body> Actual Money Value: <input type="text" id="displayedresources" value="1990"> <br> Encrypted Money Value1 (Search): <br> <h1><label id="encval1">0</label></h1> Encrypted Money Value2 (Recommended to search for this first and use substract 4 from it's Address to get the first Value): <br> <h1><label id="encval2">0</label></h1> <input type="button" id="calculate" value="Calculate" /> </body> Layout:HTML Popup Timeout (Seconds):600 Show Over Keyguard:On ] A2: JavaScriptlet [ Code:function caclulateEncVal() { var orig = $('#displayedresources').val(); var i, buffer1, buffer2, enc1, enc2; for (i = 0; i < 32; i++) { buffer1 = i % 2 == 0 ? orig >>> i & 1 : 0; buffer2 = i % 2 == 0 ? 0 : orig >>> i & 1 ^ 1; enc1 = enc1 | buffer1 << i; enc2 = enc2 | buffer2 << i; } $('#encval1').text(enc1); $('#encval2').text(4294967296 + enc2); } $('#calculate').click(caclulateEncVal); Libraries: Auto Exit:Off Timeout (Seconds):45 ] A3: Variable Query [ Title:Value Variable:%orig Input Type:Normal Text Default: Background Image: Layout:Variable Query Timeout (Seconds):40 Show Over Keyguard:On ] A4: Variable Set [ Name:%converted To:%enc1

%enc2 Recurse Variables:Off Do Maths:Off Append:Off ] A5: Set Clipboard [ Text:%converted Add:Off ]

XML

<TaskerData sr="" dvi="1" tv="4.9u3m"> <Task sr="task27"> <cdate>1547716570199</cdate> <edate>1547745531847</edate> <id>27</id> <nme>js</nme> <pri>100</pri> <Action sr="act0" ve="7"> <code>941</code> <Str sr="arg0" ve="3"><body> Actual Money Value: <input type="text" id="displayedresources" value="1990"> <br> Encrypted Money Value1 (Search): <br> <h1><label id="encval1">0</label></h1> Encrypted Money Value2 (Recommended to search for this first and use substract 4 from it's Address to get the first Value): <br> <h1><label id="encval2">0</label></h1> <input type="button" id="calculate" value="Calculate" /> </body></Str> <Str sr="arg1" ve="3">HTML Popup</Str> <Int sr="arg2" val="600"/> <Int sr="arg3" val="1"/> </Action> <Action sr="act1" ve="7"> <code>129</code> <Str sr="arg0" ve="3">function caclulateEncVal() { var orig = $('#displayedresources').val(); var i, buffer1, buffer2, enc1, enc2; for (i = 0; i < 32; i++) { buffer1 = i % 2 == 0 ? orig >>> i & 1 : 0; buffer2 = i % 2 == 0 ? 0 : orig >>> i & 1 ^ 1; enc1 = enc1 | buffer1 << i; enc2 = enc2 | buffer2 << i; } $('#encval1').text(enc1); $('#encval2').text(4294967296 + enc2); } $('#calculate').click(caclulateEncVal);</Str> <Str sr="arg1" ve="3"/> <Int sr="arg2" val="0"/> <Int sr="arg3" val="45"/> </Action> <Action sr="act2" ve="7"> <code>595</code> <Str sr="arg0" ve="3">Value</Str> <Str sr="arg1" ve="3">%orig</Str> <Int sr="arg2" val="0"/> <Str sr="arg3" ve="3"/> <Str sr="arg4" ve="3"/> <Str sr="arg5" ve="3">Variable Query</Str> <Int sr="arg6" val="40"/> <Int sr="arg7" val="1"/> </Action> <Action sr="act3" ve="7"> <code>547</code> <Str sr="arg0" ve="3">%converted</Str> <Str sr="arg1" ve="3">%enc1

%enc2</Str> <Int sr="arg2" val="0"/> <Int sr="arg3" val="0"/> <Int sr="arg4" val="0"/> </Action> <Action sr="act4" ve="7"> <code>105</code> <Str sr="arg0" ve="3">%converted</Str> <Int sr="arg1" val="0"/> </Action> </Task> </TaskerData>

submitted by /u/PulangPepe
[link] [comments]

Oracle exec: Open-source vendors locking down licences proves 'they were never really open'

The Register - Thu, 01/17/2019 - 11:42
'They used to be seen as the good guys, and Oracle was the bad guy'. So that means... everyone is the bad guy now?

Open-source vendors that haven't already switched to less permissive licences will do so this year as the move to the cloud threatens their business models, a senior Oracle exec has said.…

MVI/Redux/Flux library for Kotlin with coroutines?

Developing Android Apps - Thu, 01/17/2019 - 11:41

I'm looking at implementing a flux/MVI type of architecture for my View (Fragment + ViewModel) layer. I've done some research and found a bunch of libraries that help with that. But most of them use RxJava (mobius, MVICore, MvRx) , and currently I use Kotlin coroutines to handle all of my async workload.

So I was just wondering if any of you have heard or used any libraries with this in mind.

I'm currently using the repository pattern with coroutines and livedata. I also use the Navigation architecture component, dagger2, etc.

submitted by /u/whostolemyusrname
[link] [comments]
Categories: Android, Linux

Pixel 3 - Dim screen brightness and night mode

Tasker: Total Automation for Android - Thu, 01/17/2019 - 11:35

I have set up a tasker command to dim my screen to a lower brightness and turn on night mode at a specific time. I am having two issues with this:

When I set the screen brightness level to 1, the screen only dims to 50% of the maximum brightness. Going the other way, a value of 255 sets the screen to 100%. Is there a way to decrease the screen brightness beyond halfway?

Additionally, trying to toggle night mode on does not work at all.

I'm using a pixel 3 xl and am up to date on all app and software updates as far as I am aware. Any help would be appreciated. Thanks!

submitted by /u/blackeagle225
[link] [comments]

Deciding on which framework to use

Developing Android Apps - Thu, 01/17/2019 - 11:34

Hi,

What would be my best option should i want to develop an app that would have the following:

  • A news section with a backoffice administration
  • User login
  • A survey, only made available after a purchase
  • Some other content, like a link to an external page, after a purchase as well

I've been trying to get some trials done on appery and appypie, but both have a lack of support or documentation. I've also been looking at Phonegap, but although i'm experiencied in html and css, it still looks like a daunting task.

Thanks.

submitted by /u/phirestarter1
[link] [comments]
Categories: Android, Linux

Pages