Linux

Building phone addiction-breaking app, seeking a robust method for determining when a user last unlocked their phone. At wit's end

Developing Android Apps - Mon, 01/15/2018 - 23:58

It probably isn't possible on android (or iOS for that matter) as I feel like I've tried all approaches. I'm building an activity monitoring device (to help break phone addiction) -- and a requirement is the ability to notify a server if the phone has not been unlocked in the past 12 hours (or X amount of hours). That 12-hour clock should reset every time the user unlocks their phone.

On the server, I have it configured so that there is a canary approach (the server would be notified when a phone unlock occurs and if it does not hear from the phone after X hours -- then we know the user has been inactive on their phone).

At wit's end for a robust implementation on either Android or iOS... does anybody have any pointers? (I asked over at r/iOS dev too.)

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

Does any one know how to post the data to website

Tasker: Total Automation for Android - Mon, 01/15/2018 - 23:27

I guys I just want to know how to post data to website and retrieve information back. By using tasker. For the following website. http://www.mitsuku.com

Please reply me soon.

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

Just had the "Open Source is for playing with, not for business" conversation with my boss

What is this, 1997?

This comes about as I'm deploying Moodle for some online training we are doing. Yes, Postgres, Linux, and MySQL -- who really uses that stuff? And yes, Moodle may not match 100% of our requirements in the long run, but which will be cheaper -- hiring someone to write a Moodle extension, or hiring someone to write an entire LMS from scratch?

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

China's first space station to - ahem - de-orbit in late March

The Register - Mon, 01/15/2018 - 23:01
Tiangong-1 is out of control and can't keep it up any more

Predictions are firming up for when China's Tiangong-1 spacecraft will make its final re-entry-crash-and-burn.…

Server is stuck in a pxeboot loop. Finds kernel initrd and vmlinuz then reboots

Hiya!

We are trying to upgrade our CentOS 6.9 server (Dell PowerEdge C6145) with bigger SSDs and are trying to do a fresh install over pxeboot. This client looks to an other server that hosts dhcp/dns/Foreman/tftp and kickstart scripts. Everything seems to be fine with all our services running. The problem occurs when the client begins pxe booting. It'll get an IP address from dhcp, find the linux kernels over tftp, load them, then immediately reboot where it will start the process all over. There are no other messages. I've tried changing the OS of the kernel that is loaded to CentOS 6.5, or CentOS 7.3, they all suffer the same issue (I get these kernels from mirror.centos.org and put them on my tftp server).

Every single time, this is the last thing I see before the screen blacks out, the system reboots, and the process starts all over again: https://i.imgur.com/EFxlGHn.jpg

There's no other warning messages. Any ideas on what I should fix?

pxelinux.cfg for client:

default linux label linux kernel boot/CentOS-6.9-x86_64-vmlinuz append initrd=boot/CentOS-6.9-x86_64-initrd.img ks=http://foreman:80/unattended/provision?token=0f6a663d-cfbf-4996-9822-2aaa5cdda9ff ksdevice=bootif network kssendmac IPAPPEND 2

Edit: I just tried a USB boot with CentOS 6.9 and the same exact thing happened. Loads initrd, loads vmlinuz, Probing EDD, reboots.

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

Debugging / Stack Trace Android Studio - How to make it Useful?

Developing Android Apps - Mon, 01/15/2018 - 22:27

I'm using the latest Android Studio but for the life of me during development when my app crashes I just cant locate where the exception is occurring within my code. For example at the moment the RUN window is showing: java.lang.RuntimeException: Unable to start service ... java.lang.NullPointerException

Make no mistake. The service IS running but somewhere within the service contains a variable that is NULL. I'm trying to Debug and have gone as far as setting break exceptions but it always breaks and shows me the stack of some useless location within the android source as opposed to the exact cause of the exception within my code. The stack trace is useless since it NEVER traces back into my code.

I'm used to IDE's like Visual Studio which will not only break on the exact cause but will also provide a useful stack trace to step back into my code. How do i get this exact same behaviour out of Android Studio.

Thanks

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

An Update on AMD Processor Security

Linux - Mon, 01/15/2018 - 22:08
Categories: Linux

This might be a dumb question -- Linux Mint JUnit tests significantly slower than MacOSX JUnit tests

Developing Android Apps - Mon, 01/15/2018 - 21:55

Has anyone experienced this or know of a fix? I've tried increase memory and priority to android studio but for some reason my tests on Mint never seem to perform well.

Testing computers:

Computer 1: R7 1700 OC'd to 3.7ghz 16gb ram 3200

Computer 2: i7 4790k 16gb 1333 ram

Computer 3: Macbook Pro 2011 2.4ghz i7 8gb ram with no ssd

Basically computer 1 has linux mint and macosx installed and macos unit tests complete in half the time of the mint. Computer 2 just has mint also really slow. Computer 3 is the fastest by a large margin aside from the MacOSX installation on computer 1 in which they're similar.

I'm not sure if I'm just missing a setting that's on by default on MacOSX or if it's just not optimized as well for Linux but I thought I'd ask. I've been wracking my brain and trying random stuff I've found on the internet but nothing seems to make a notable difference.

Any help is greatly appreciated!

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

Need some help, should be very quick.

Linux - Mon, 01/15/2018 - 21:32

So I uninstalled Ubuntu on a separate HDD that I had on my computer, but had a grub alongside with it in order to manage booting into my windows installation as well as Ubuntu on my other HDD installed as well. After removing Ubuntu by unallocating the space in that drive through Windows Disk Managment, I now reboot expecting to go to Windows, but am met by the grub menu. Any way to fix/remove?

submitted by /u/lilquezzi
[link] [comments]
Categories: Linux

Canada charges chap alleged to run stolen data-mart Leakedsource

The Register - Mon, 01/15/2018 - 20:59
Unlike similar services, this one sold purloined passwords

The Royal Canadian Mounted Police has announced it’s cuffed and charged a man for selling stolen identities and passwords at LeakedSource.com.…

Phone camera comparison tool. Made using cardboard, rubber bands, and tooth picks.

Android - Mon, 01/15/2018 - 20:55

https://imgur.com/gallery/SXk72

It was just a simple idea I had but it turned out to work pretty well. I imagine it could be extended such that more holes are added vertically to line up other off centered phone cameras as well. Would be cool to have a laser printed version out of wood.

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

Pages