« first day (2109 days earlier)      last day (2853 days later) » 

2:12 PM
whoever invented checksums can go to hell.
 
1
Q: BroadcastReceiver for Ethernet(RJ45) and USB in Android TV

Arth TilvaHow can i detect the plug and unplug of Ethernet cable and USB devices(Any device like pendrive) in Android TV. Is there any receiver for that as like internet connectivity? I need to check for by TVBox app.

 
Nicolapps, I've no experience with cordova but would expect one of those solutions to be applicable: stackoverflow.com/questions/23255026/open-chrome-app-with-url stackoverflow.com/questions/12013416/…
 
@cygery I tried opening googlechrome://www.myurl.com, it opens Google Chrome but not myurl.com
And the second one is written in Java, so I would need help to adapt it to Cordova
 
ArthTilva, there's a CONNECTIVITY_CHANGE broadcast
ArthTilva, check this for details on how to determine the network type: developer.android.com/training/monitoring-device-state/…
 
will it work for USB and ethernet also?
ok checking
 
2:16 PM
a TYPE_ETHERNET exists
 
ok...thanks
 
so assuming that plugging in the cable results in an active connection this should work for the first part of your question
 
yes ethernet exists
 
I leave the usb question as an exercise for your google skills
 
now need to find for USB
 
2:18 PM
 
hahhaa..ok
 
in other words: show some (more) effort
 
I think I should put a bounty on my question, but do you think it will help ?
 
I suggest that you check how you can start an activity with an arbitrary intent from cordova
and then try to implement one of the solutions I linked
 
@cygery I found this plugin : github.com/Initsogar/cordova-webintent
@cygery And I tried to use it (see the code in my SO question)
But it didn't work, I get a error :/
 
2:21 PM
and stop the pinging
 
boss just dropped in with 40€ worth of cheap , recyclable nespresso capsules
 
regarding the bounty: might help, but I wouldn't expect a high chance
 
i'm swimming in coffee
 
:D
cheers
 
is there any weird hackaton project that detects song lyrics in any language and translates it to english?
 
2:25 PM
anyone use version control inside android studio?
 
it would be awesome to be able to show you what frankly weird things i listen to.
i tried once and almost deleted my repo.
 
RED_, sure
 
@cygery So SO bounties don't really help ? :s
 
haha i'm trying it because it looks pretty cool
how do you fix merge conflicts? i fixed the files manually, but when i go to commit (cmd + k) it tells me that are not resolved
 
never fixed one there
dunno if I ever had a merge conflict for an Android project :D
isn't there a dialog where you can mark them as resolved?
 
2:29 PM
not that i can see, there is a "refresh changes" button but i was hoping it was do that automatically
hm even that didn't work
 
hm, did you test clicking on the button mentioned in the last section here: jetbrains.com/help/idea/2016.1/resolving-conflicts.html ?
 
yeah doing it now, was just watching this: youtube.com/watch?v=ZdOufSFNHnM
bit annoying to go through menus but i want to see how long i can use the AS version control system
 
@netpork That's gold!
user image
2
For when a jpg isn't enough to demonstrate your distress.
 
2:46 PM
Awesome :)
 
xD
 
ok merge conflicts ui in AS are terrible, damn it
 
I find the merge UI for conflicts pretty good
 
@W0MP3R Califa - La trinca
 
I like that you get full editor support inside the merge tool
 
2:50 PM
@W0MP3R I el pobre poble que? - La trinca
 
I was gonna agree with Warren, I find it pretty helpful.
 
full editor support is amazing, that's the reason i am trying this
but i want to just do it manually, not go into the merge revisions ui, and do it from there
 
Haven't heard those :O
 
o/
 
\o
 
2:53 PM
The Pope is crying like a cupcake
and the Vatican is flooded with so much crying.
You know what is the cause of this disappointment?
Someone has told the Pope that people are not happy.
Oh ... poor pope! poor pope?! And the poor people, what?
we few, we weird few.
those who expected this to be a punk song before the video, raise a hand.
 
I love looking at SourceTree graphs
 
yay
i prefer gitkraken's
 
ewww merge commit
who is doing that and why?!
 
3:22 PM
you're one of those rebase guys arent you
 
I am
 
i don't see the benefit
 
rebase if possible, merge conflict only if rebase is not (easily) possible
one line history
I just have one line and all currently active branches
 
But what about the beautiful colors and flows? :(
 
you have that for current branches
but as soon as a branch is part of your main develop branch, it disappears. so you don't have that messy lines in your history anymore
increases readability of your project status in my opinion
anyway, time to go home, cya!
 
3:26 PM
later
 
bye
 
4:03 PM
o/
 
@Eenvincible did you downloaded the app?
 
I did
I think it is pretty solid
except those colors that seem to be too bright?
 
update to 0.6 alpha i fixed lots of bugs and added many features
material colors are bright
all are material colors picked from google website
 
4:21 PM
\o
 
@Jaythaking you have far too many questions and not enough answers to get access here. room-15.github.io
@Ahmad and @RaghavSood do you have anywhere in particular you want to get lunch, since we're both downtown? If not I can propose suggestions
 
4:42 PM
the default searchview looks so ugly
 
@CarlAnderson I'm open to anything that doesn't contain seafood or egg, being allergic to them both
I'm cool if we're at a seafood place that serves non-seafood stuff too, though
Don't really know Seattle, so can't say if I have a preference :P
 
I don't like much seafood myself, so I don't think that would be a problem
 
:O you're all in the same area
that's exciting
 
I just wanted to give you the chance, if you're really itching to go to a specific spot, to go there
 
4:56 PM
I'm good for anything, Ahmad might have some preferences since he's already there? Might've seen something that got him hooked
In other news, my entire team is in other locations today
And I brilliantly failed at using our super fancy meeting rooms to dial in for a call
Ended up using Jabber on my laptop
The damned cisco thing just wouldn't connect
wat
 
lol
 
time to go home~~~ :D
cya people!!! :3
 
bye WOMPER
 
cya
 
5:13 PM
@Eenvincible yes that guy has implemented job scheduler way before google did it on api 21, and that lib actually is compatible upto api 11 if im not mistaken
 
good afternoon
great news
lobbyism has been banned in my parliament ^^
 
spain?
thats good
 
just catalonia
 
oh its governed separately?
 
fines from 12.000€ onwards for parliamentarists found recieving gifts, campaign donations , or making deals with private coporations in exchange of legislative change proposals.
somewhat, kind of. think of an almost - federal government.
pseudo autonomy.
 
5:24 PM
interesting I did not know that lol
 
what about lobbyism w/o such incentives?
 
" or making deals with private coporations in exchange of legislative change proposals".
corporate lobbyism is the target
 
I have a question
 
question.
 
i have an answer
 
5:27 PM
in regex, I see this \\-\\. which I'm interpreting as a - or a . but is that right?
 
i think you're right
 
lol it's a serious one. i don't have a answer then
flies away
but i think you're right
 
or, it's looking for a -.
 
looks to me like - followed by a .
 
not one or the other, but both
 
5:28 PM
I think it's looking for a -.
 
hmm
yeah
 
@McAdam331 You want \\-|\\.
 
double backslash is kinda throwing me off
 
well so it's an email validation
 
Or possibly \-|\.
 
5:28 PM
lol!
 
\\-|\\. would be the other one right?
 
"^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$"
 
Depending on where you're using it
 
ah, yeah the square brackets, - or .
 
use Patterns.EMAIL_ADDRESS yes?
 
5:29 PM
I've been doing too much regex recently :/
 
lol
 
the last part, 2,5 doesnt work anymorae
anymore
 
2 days ago, by Raghav Sood
egrep -o "origin\/release\/[1-9][6-9]\.[0-9]{0,10}|origin\/master" <<<$(git branch -r) | uniq | while read line ; do git show --no-patch --format="%at %H" $(git merge-base -a $(git log -1 --pretty="%H" $line) $(git log -1 --pretty="%H" $(git branch | grep -e "^*" | cut -d' ' -f 2))); done | sort -r | head -1 | cut -d ' ' -f2
 
there are tld's like .education
 
^
 
5:29 PM
yeah
 
Try:
 
or .barcelona
 
I'm so confused
 
and there a tlds
 
or .anythingwithmorethan5characters
 
5:30 PM
TL;DR somehow we learned that our thing allows the address "test@..com" which it shouldn't
 
hehe
 
make sure it allows a@com etc.
 
^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,})$
 
anyway, do you need the grouping parentheses?
 
5:31 PM
What's the difference between yours and ours, Raghav? All you did was take out the 5 AFAIK
 
Probably not, but they're useful if you need to extract domains etc.
{2,} means match 2 or more
So it'll work with the fancy new TLDs
 
It won't solve the x@..com though
I think I've misplaced my coffee, brb
 
so I've got another roundabout solution just ignore me
 
Replace .. with .?
 
5:33 PM
please make sure it doesn't have any false negatives
 
Or be like Air China, and tell people not to use GMail
Or email in general, in your case
Just send them everything via post
That'd be so annoying
 
msdn.microsoft.com/en-us/library/01escwtf(v=vs.110).aspx there's a regex there that microsoft looks like they like.
 
> Best deals for 7/25! 99% off Tesla Model S
> *received on 7/31*
 
oh yeah, utf domains exist, too
 
5:51 PM
user image
2
 
Thanks for all the help guys
 
So you're using snail mail now?
It's not like Postal Address validation is hard, right?
 
TL;DR our backend also checks this and turns out some of the other fragments do basic front end validation and in this specific case it happens to just fall through to the backend failure and displays that
but this fragment was written by our team lead who did it a different way and wasn't handling the proper backend error thing. It gets complicated but I fixed it. But thanks to everyone who jumped on that and I'm definitely keeping the enhanced regex in the back of my head
 
\o
 
but our team lead is also all about just getting it working (as long as we're not too hacky) because release is in like three weeks
 
5:54 PM
Adam, make sure it's not too restrictive
not being able to signup because of an email address being not accepted is annoying
 
right. It should accept any valid email address, but in the "@..com" case that's invalid
I tried "@something.somethingelse.domain" and it went in.
 
how about i@ai ?
 
TL;DR -> Our backend gurus are better than our front end app side validation.
is that valid?
 
yes
dunno if that specific account exists
 
hmm don't you need a .domain
 
5:56 PM
but at least one person got an @ai address
well, a tld is still a domain
 
right but aren't email addresses @domainname.tld
 
not that it's likely to encounter this, but I think it's a good example of how common misperceptions lead to wrong results
 
Email addresses are a@host
 
^
 
Hmm.
 
5:58 PM
Whether you will ever encounter a host without a tld is questionable
And usually a "No"
 
^
Will bring it up during our standup tomorrow AM.
 
But it is technically, as far as RFC specs go, valid
 
Thanks guys. <3 this room.
 
another thing which is gonna be more important in the future are IDN domains I think
 
I'm learning so much so quickly since I've been here. Not that I was uneducated, but of course you don't encounter everything in your own studies.
 
5:59 PM
Not looking forward to regexing those
 
And I've had the senior devs here point out error checks I would have never even considered, but I haven't been in the business long enough to see all that voodoo enough
 
Technically, as far as the RFC goes, email addresses are case-sensitive too
We actually ran into a problem with that at work a few days ago
 
laters
 
is it just me or is the rev24 of buildtools etc pretty buggy?
I mean the sdk manager tells me 24.0.1 is installed but AS complains that it is not installed :/
 
nope
they are not buggy
 
6:07 PM
oh come one... after AS restart it works... wtf?!
so AS is buggy...
 
AS is buggy all the way
will always be buggy
And dont forget lags
is a feature of AS
like samsung phone has
 
have no issues with lags
you wanted to tell me about you memory consumption on AS, right?
or do I mistake you for another one?!
 
yes
no i am the one
 
feel free to share all information you have :D
 
currently at 3.06gb :/
let me work for an hour or 2
it will reach around 20gb then
 
6:10 PM
can you show me where you see this number?
 
in activity monitor
i am using el capitan if that helps
 
go to settings, search for "memory" and enable memory indicator
 
AS is currently 963MB in Activity Monitor.
 
already enabled
 
what does it states there?
 
6:11 PM
its 856mb out of 1246
mb
 
@WilliamWilli you need at least 80 rep and a better A:Q ratio for access here room-15.github.io
 
beat me :D
 
While I'm building a query on the other screen..score!
:P
 
the 3gb are not in the "virtual memory" column, right?!
 
Back to work
 
6:12 PM
in the memory column
 
I want a screenshot as proof :D
 
omg
I just got done bragging to a coworker about how Cash Caretaker has never had a crash
and I log on to prove it
and someone had a crash last night at 9:45 fml
 
baaad bad timing Adam!
 
6:22 PM
so in my defense
well I don't really have a defense it was my fault but something I didn't think would happen
in fact I still don't know how it happened
 
Samsung
3
 
but it was due to an upgrade with the content provider. I thought I handled all updates okay but I guess I didn't. They also said they were updating from version 0 to 3 but I should have never had a database version 0
It wasn't! It was an HTC Velocity 4g
 
don't ruin the joke with facts, Mac.
5
 
:(
 
6:54 PM
sometimes users tinker with apps causing crashes which don't occur during normal use
 
lol
 
@FaisalShaikh Welcome! Please read our room rules before participating.
 
7:20 PM
try...catch around everything, that'll keep you from having crash logs :)
 
well that hides developer bugs
so not recommended
 
lol
 
I wonder if Nathaniel got hit by the Cyanogen layoffs. :-/
 
i dont know nathaniel, but did he work on the ROM ?
 
probably busy playing poke (something) Go
 
Dave is here?
 
@DaveS is generally too busy pretending to be China team to talk much in here anymore.
 
Morning sunshines
 
=\
 
o/
\=
 
7:29 PM
Anyone here currently in Europe, and willing to help me test something?
 
=\o
sorry Pablo, I'm in the states
 
Not sure if that is a =\ face, or you raising your arm and showing pit hairs
 
lol
~\O/~
^ stinky pits
 
At least they are shaved
 
7:32 PM
:p
 
I know there's some of us in Spain
 
<- in Germany most of my life
 
And some in Germany
Not 100% sure where Graeme is, but he's somewhere there
I could definitely be in Europe if you fly me out
 
:D
btw, don't forget the Trump AMA on reddit
@PabloBaxter hurry while I'm still in .eu
 
7:53 PM
Anyone in the UK, is no longer in Europe
 
Brexit dave
 
how are you doing Dave?
 
There is no Dave
There is just China Team
They absorbed him like an amoeba
 
hah, I'm doing alright. Working on server shit
 
7:57 PM
You can't trust China team with that server stuff ?
 
China team can't access servers outside China
Dave is their analog interface to the world
 
lol, China team is basically deprecated
they just make the grills now
 
They have a Dave terracotta doll
Which they use to control him
> @Deprecated
Dave's China Team
 
Being controlled by Chinese voodoo was not what Dave had in mind when he applied for a position that asked for "Remote work"
 
8:31 PM
Sorry about the no responses. Was out driving around and testing some stuff. Apparently, I was killed by zombies.
LOL!
But physically, the UK is still attached to EU, right?
@cygery Would you be ok with testing a geofence apk for me out where you are?
 
is it on Google Play? Does it need internet access?
 
Needs location, so probably
 
anyway, gonna go to bed in a minute, feel free to contact me tomorrow again
 
Few Android devices can give accurate locations without internet
 
GPS to the rescue
 
8:37 PM
No and no
 
The vast majority is A-GPS
So if you haven't had a location update in a while, you'll need the internet to get updated satellite positions
Then again, who goes nowadays without a location update every few hours?
 
That is true.
 
afaik not
 
So yes, you would have needed an internet connection recently, but it does not require a constant connection.
 
Depending on your service provider, you might even be able to get the GPS info over the regular cell network
I know Sprint does that in US
 
8:39 PM
The APK is an internal one for diagnostics testing
 
Not sure about others
They basically mount GPS kits on their towers, and then pass that information on to you
 
Rag, afaik A-GPS still works like normal GPS without the assisted data
meaning it could take some hours to get a fix
 
Yeah, it will get a fix eventually
 
Depends on how long the GPS has been off. So if it's been a few days.. yea.
 
But usually not within an acceptable time period if there's no assistance
 
8:40 PM
wiki says up to 12.5 min
 
But I haven't seen a lock take longer then 3 minutes on some of our stand alone GPS modules.
 
12.5 minutes is too long in a lot of cases, though :P
Like driving navigation, for instance
 
I'm on fire, let me send you my location... 12 minutes later
 
Global Pyre System
 
But our geofence doesn't use GPS, except certain corner-cases
Like you are in the middle of nowhere, and devoid of all radio signals.
 
8:44 PM
lemme find the location of my bed, good night :D
 
@PabloBaxter I'll take the sponsored trip to the New Zealand mountains, thank you :D
 
There is an uncertainty of about 5 meters, so good luck!
 
For, uh, testing of course
 
LMAO!
I've told my work I would back pack to the middle of nowhere for testing... they said no.
 
Tell them they can send me instead. That way, they don't risk losing their Android dev in a freak accident
 
8:46 PM
I'm supposed to be the tester... how I got involved into Android, I don't know. But it's fun!
 
Lol
 
Anyone in a different part of the world, other than North America?
 
I can get you people in India
And I'll likely be in Singapore in a few months
 
I'll keep that in mind when we start working our way to getting testing done in those regions.
 

« first day (2109 days earlier)      last day (2853 days later) »