« first day (1375 days earlier)      last day (3559 days later) » 

user457812
12:00 AM
I grew up in small towns.
 
user457812
Small towns with neighbors who are not nearby.
 
I see
you could wear goth clothing
they'll probably stop saying hi
or just paint your face red
 
user457812
Alrighty, Swift now has access control.
 
?
 
user457812
Swift. The language.
 
user457812
12:02 AM
It has access control.
 
I got the first part
access control to what?
 
user457812
Things.
 
oh ok I see now
 
user457812
i.e., public classes, members, constructors
 
Things.
it didn't have those things before?
 
user457812
12:03 AM
Nope.
 
user457812
Lots of languages don't have it.
 
so everything was in one file?
 
user457812
.. what
 
I'm confused
 
user457812
What's public/private got to do with files? O_o
 
12:03 AM
if you don't have access to things what do you do with your language?
 
user457812
I never said it didn't have access before.
 
hmm, public and private don't, just protected I guess
 
user457812
None of them have anything to do with files.
 
package protection
anyway
 
user457812
That also has nothing to do with files.
 
12:04 AM
move on
to the point
 
user457812
Also, on the topic of packages, I wonder how many people think Java actually requires you to put source files in directories like net/package/name/etc/File.java
 
user457812
Anyway, the point is Swift now has access control.
 
user457812
So you can mark things as public/private/internal.
 
what did it have before?
 
user457812
It didn't have qualifiers for access.
 
12:05 AM
just functions?
oh ok
 
user457812
Everything was public, because that's an obvious default state for things.
 
I see
that's pretty dumb
 
posted on July 22, 2014 by Tor Norbye

We've just released Android Studio 0.8.3 to the canary channel, with the following improvements:Bug fixes (0.8.2 contained only critical fixes; this release contains a larger set of fixes)Integrated recent IntelliJ 13.1 EAP builds. These are basically bug fix builds.http://confluence.jetbrains.com/display/IDEADEV/IntelliJ+IDEA+13.1+135.1228+Release+Noteshttp://confluence.jetbrains.com/display/I

 
not just for security reasons, but for architectural reasons
 
user457812
There are no security reasons for access qualifiers.
 
12:07 AM
eh
 
user457812
As for architectural reasons: not really, either.
 
well
 
user457812
After all, again, plenty of things you're using were built in languages that do not have access control.
 
if I define an interface, I don't want people to have to sift through all the methods that are defined for internal use
 
user457812
So when you write docs, don't mention them.
 
user457812
12:08 AM
It's kind of like how Android has a lot of technically public APIs that are marked in the documentation as private.
 
a lot of people use method lookups
in their IDE
 
user457812
That's a tooling issue, not really relevant
 
tools are relevant to me
 
user457812
You shouldn't design a language around an IDE
 
I think you could
 
user457812
12:10 AM
You could, but I'd have to kill you
 
You could do tons of things you wouldn't be able to if you looked at it as a holistic system
 
user457812
At any rate, there are really only three access qualifiers that matter if you decide to let things be non-public: public, private, and package/internal (internal is Swift's package private equivalent).
 
user457812
Anyone who mentions protected is wrong.
 
yeah protected is kind of weird
 
> Inspect theme attributes for quick documentation.
 
12:11 AM
basically public since you can just subclass it anyway
 
user457812
Protected is the one you can circumvent.
 
user457812
So it's kind of pointless, since package private makes more sense in that case
 
so what do you use access control for nil?
 
user457812
You don't want things outside the package to be able to circumvent an access qualifier, but if something is protected, anything can go "well I'll just add a public method that wraps the private method"
 
user457812
I use it for hiding stuff that doesn't necessarily need to exist outside a package.
 
12:13 AM
didn't you say early just not to write the docs for it?
 
user457812
I said if you don't have access controls you can do that.
 
oh
 
user457812
i.e., in that situation, that is an option for how you deal with it.
 
I thought you meant it as an argument that access control shouldn't be used that way
 
user457812
No, you should use anything the language gives you that makes sense to use.
 
user457812
12:14 AM
Except multiple inheritance in C++.
 
user457812
I'm pretty comfortable saying you should strongly reconsider using multiple inheritance in C++.
 
Hmm
 
user457812
Also, it'd be pretty nice if Swift had Scala-like traits
 
Sometimes I really want multiple inheritance in Java
 
user457812
i.e., protocols with potential default implementations of things
 
12:15 AM
Good day android programmers
 
so...do you like swift or not?
 
user457812
I think composition's a better option in most cases, but it's harder to pull off in Java because you can't keep everything in the same chunk of memory.
 
user457812
I like Swift. It's like Scala except I don't need a JVM or JVM-like to use it.
 
I like JVMs
portability and whatnot
 
user457812
I like the idea. I don't like that they're useless for everything I want to do.
 
12:18 AM
I was thinking about starting swift development
 
user457812
> The String type now implements a grapheme cluster segmentation algorithm to produce Characters. This means that iteration over complex strings that include combining marks, variation sequences, and regional indicators work properly. For example, this code now returns the value 15: countElements("a\u{1F30D}cafe\u{0301}umbrella\u{FE0E} \u{1F1E9}\u{1F1EA}”)
 
user457812
Oooo neat
 
but I would need to buy a mac right?
 
user457812
For now: yes.
 
I really don't want to buy a mac just because they are going to bully me into it to develop for their mobile platform
 
user457812
12:19 AM
Chances are the compiler will eventually be made open source and at that point it should actually work anywhere since it doesn't require Obj-C or anything on OS X or iOS.
 
No IDE though
 
user457812
Don't care, I don't use IDEs most of the time anyway.
 
I do
I find it's a lot more efficient
and especially helpful for really large projects
 
user457812
I usually just find it slows me down.
 
user457812
The one nice thing about Xcode and IntelliJ, at least, is being able to Cmd+Click an identifier and jump to its definition
 
12:21 AM
A couple hundred classes and I start to need a good lookup engine
So what do you use? a plain text editor?
Emacs is kind of an IDE
 
user457812
Sublime Text
 
user457812
Sorry, got distracted while trying to produce a complete list of classes in Ascension 2
 
user457812
 
12:37 AM
that's more than I would have thought, but I guess there are a bunch of different ways to configure ascension
the swift license is still undecided says wikipedia
 
user457812
12:49 AM
They're waiting 'til they've got it to 1.0
 
user457812
Also, a lot of stuff in Ascension is just UI code and backend stuff.
 
that's true for a lot of apps
 
user457812
The color generators themselves are actually pretty simple and I keep trying to think of ways to let people write their own, but it'd be a pain no matter how I did it.
 
you could do it by talking to "plug-in" apps
 
user457812
I can only imagine the overhead of doing that would be absolutely horrifying
 
1:00 AM
yeah I guess that's true for a wallpaper
well
maybe through aidl it wouldn't be that bad
 
user457812
gist.github.com/nilium/b9f0088d525da4848d5c ⇐ Like, this is literally all that goes into a color generator.
 
user457812
Aside from there being multiple implementations of ColorGenerator.
 
it would be nice to be able to download compile and run android code without the user needing to do anything in an app
 
You theoretically can
It's against the Store TOS though.
It's possible for uh
Betas and internal builds and stuff
 
no I mean downloading extra code inside an app
like a plugin app but the user doesn't need to take action to install it
 
2:14 AM
Feels awesome when you just fixed a bug with just one line.
 
2:27 AM
what is the optimum range of threads I can have in an android app?
 
LOL @LawGimenez
 
3:12 AM
Hey I'm trying to write a script Using the principle of a SMS Or incoming call To open A specific app, Such as teamviewer quick support then another message that would accept the okay message to allow control.
Chrome to phone Launches a display message to openLink. But the user still has to hit Okay. Is there a way to even start off with Chrome to phone that automatically launches chrome with the link that you sent. To your phone for the first phone without the okay message.
 
user457812
3:37 AM
I think you need to take your question to Stack Overflow.
 
4:33 AM
morning
 
Hey people !
 
4:58 AM
Hey
ItachiUchiha
 
@FredMcgiff ssup ?
 
not much just on a quest to find a great way to achieve
a way to help my father recover
 
What's funny? @Laux
 
using android i been using teamviewer
quick-support on Samsung s3
to log in remotely even on cell tower to help accomplish some task..
but the problem where it becomes to much of headache most of the time is having him launch app and then accept the remote control command after i connect using his ID.
Which I usually assist editing calender, view appointments and other apps.
 
5:17 AM
@FredMcgiff how are you helping your father recover ?
 
So trying to find a way to bypass the need to launch the app and accept the ok request
recover from the move to Smartphone from a Flip Phone
 
@FredMcgiff Ahh i see, so you are trying to override the authorization of TV !
 
na jk. Surgery
Chrome to phone Launches a display message to open Link. But the user still has to hit Okay.
so looking to have a hook in or script that could act similar but instead maybe using sms or configure on his phone that if a this number calls do the following .. So when i call from this message
 
Hi people
morning
 
How else could or where do you think starting point would be.. Android Device Manager script how changing passcode and ringing the device from web browser would be a template for something
because your would have to wake device, enter the 4 digit pin, then open teamviewer i then see his phone come online in teamviewer app then another command or separate command push to automatically accept the ok to take control of Phone.
 
5:33 AM
Updated my moto g to Android 4.4.4
 
user457812
6:21 AM
Hm, haven't heard anything back since last interview.
 
user457812
I wonder how long I should wait after the last one before I email them and ask for a status update
 
6:37 AM
@LawGimenez the feeling bro. that finding the bug in one line of code
 
DC-
hello people
 
6:58 AM
 
DC-
lol, cos he found the phone ?
 
Morning
 
morning blackbelt
 
DC-
@Glitch nice
 
 
2 hours later…
8:59 AM
o/
 
hi Ahmad, how are you?
 
@androidsuckzzz Rejected. Not with that attitude.
hey hey
fine and you?
 
Fine also, thanks
 
9:16 AM
 
Morning
 
9:39 AM
morning
 
10:03 AM
GestureListener and ScrollView not playing nice, hate when things like this conflict
 
uh, that already sounds like they wouldn't work together
or it will be at least difficult to get them to
 
@Ahmad any idea about the cutoff % to TMU ?
 
10:32 AM
hm?
what do you mean?
 
I don't like when the users call me bro
 
ugh yeah
get that as well sometimes
 
it is worse than sir
 
11:25 AM
lol
 
11:56 AM
finally the internet is back!
 
did you survive? I think you're low on cat pics! THIS MAN NEEDS CAT PICS.
heh, this is quite nice: responsivelogos.co.uk
 
12:34 PM
internet is made for boobs
 
12:49 PM
Good morning, folks!
 
GM cM
 
What's up, bro
:D
I hate that too
 
ya bro, you are oto cool
 
I was called uncle by someone several times
I finally had to ask in a comment why he kept calling me uncle
I think he was from somewhere in Asia and said that's a term they user for their elders or something
"I'm only 34...I'm not an elder yet"
 
you are older than me
uncle
 
12:56 PM
Haha
Not by much
 
ya ya bro, ya
that's true
 
I'm only the old man of the room for a few more hours until Carl gets here :D
 
lol bor
I also like to misspell it
 
haha
 
it makes me feel younger
 
12:59 PM
Where I'm from, some people say "bro" or "brother" but that sounds more like "brotha".
Drives me fricking nuts
 
lol brotah
 
Mostly hillbillies and white trash that say that
 
white trash?
 
That sounds racist but I'm white so it's ok :D
Yeah, not sure how to explain. Let's see
 
I see
no no I got it
 
1:03 PM
Ok, was going to post a link
 
I stopped you in time
:D
 
Being poor really doesn't have anything to do with it. It's just how they act, talk, live
Thanks!
 
there is the same problem everywhere more or less
 
Ah, ok. I haven't been many places at all so never sure about what others see
@HimanshuAgarwal welcome! Please read the room rules
 
my hometown is full of white trash
 
1:09 PM
See I guess I never expected to see that in other places, especially Italy. Isn't that where you are from?
Mine is too and all of the surrounding areas
 
it is... deep south
 
1:26 PM
I'm freshman regarding to Android dev and I don't really understand everything about this language.
 
Yeah, that guy is going to have a rough time
 
@blackbelt I think he is talking about Android development. Not OS.
 
Oh my, link?
 
I guess... go to the green grocer and try to buy a lemon tree
 
n/m got it
 
1:28 PM
@blackbelt I think he is talking about Android development. Not OS. — user3752753 1 min ago
sorry I posted the wrong link
 
That's ok. I found the post by stalking your profile
 
lol
 
hi people
 
hi Den
 
@KanakSony Welcome. Please read the room rules and please don't be a help vampire or else blackbelt will unleash his powah on you
 
1:37 PM
there's an exercise for mind: I need a list of official holidays in Germany. Looks like easy, but they have different holidays for different provinces there... Can someone give an idea how to obtain those days-off?
 
@codeMagic thanks :). I will take care.
 
for which region den?
 
@anber Q:A is a little high but you seem to give explanations in answers instead of code/link only answers...I like that
 
fer all )
for *
 
Welcome and also follow the instructions given to kanak above
 
1:40 PM
do you want the intersection or the union ?
 
You're welcome, Kanak
And hi, Den
 
Hey people
 
Hey, TGM!
 
What's up
 
blackbelt - didn't get your question.
I've found somth but I don't know if I can trust such source: http://kayaposoft.com/enrico/
btw /me having a birthday today ^_^
 
1:44 PM
@DenRimus Happy Birthday Den..!! :)
 
happy bday
 
thanksy ^_^
just half an hour to deal with these holidays and then will ride to celebrate with wife's parents
and more parties on weekend, wohoo!
 
@RaghavSood can we get the bot if you have time? We have a special message to send out
 
hello there
 
Well, in case we don't get the bot before you leave, Happy Birthday, Den!
Hey, little Ahmad
 
1:56 PM
haha
I am desperately looking for a way to implement a currency mask on an EditText
and it seems to be the hardest task I've ever done with Android
 
what is a currency mask?
 
I have a field where the user must enter a currency value
with wil start by default with R$ 0,00
the if the user types 1, it changes to R$ 0,01
then types 2, changes to R$ 0,12
3, R$ 1,23
and so on
 
I see
 
look at betterpickers
those pickers use this mechanism
 
thanks, I will
 
2:03 PM
lately I customized HMS for my needs, doesn't seem to be very hard
HMS picker *
 
Lol Frontline is now free on YouTube
 
judging by the picture, it has it's own keypad. is it possible to make it look like a standard EditText with the standard keyboard?
 
that I don't know. Yes, keypad was custom
 
yeaaah... I guess I'll sacrifice my UI consistency for the sake of my sanity
 
2:23 PM
launchMode=singleTask is the greatest thing ever
 
i disagree
they should always be a single task
 
hmm... yeah it should be default really
 
you're never showing two activities at once, there's no need to be non-single
 
come to think of it, it should definitely be the default, Google you bunch of noobs
yeah
 
and if your activity is so heavy that creating it again is worse than having another task, you're doing it wrong
@DenRimus when you said that you customized the HMS picker you mean you subclassed it?
 
2:59 PM
Would I implement this, and if so how?
 
3:10 PM
morning
 
wow! I've just downloaded 4GB!
 
3:26 PM
 
This is just propaganda so nobody comes
 
@codeMagic The bot's stopped working
Someone updated SO and now I can't open sockets :/
 
Ah, I wondered why I hadn't seen him for awhile
 
3:44 PM
@Guilherme Good luck. Dealing with currency on Android was the worst thing I've ever done.
 
Hey, Carl!
How was vacation?
 
I'm back!
smoky
we dodged all the forest fires
but heading in to where we were staying we stopped at a gas station where it was raining ash
 
currency is a huge pain
luckily the server people handle most of that for me
 
@Adam, I don't even need more than 1 localization, and it's already been a pain in the butt
 
3:51 PM
 
I have two fragments hosted by one activity. Let's say I am showing the first fragment, I do some calculations and replace it with the second one. Now, at screen I have the second one. I rotate the screen, an the first fragment's onsavedinstancestaced is called.
 
How are you detaching the first one?
 
Raining ash...that makes it interesting
 
drop an angry email to Google asking time to sort out their shit
 
adam, should I detacht it manually?
 
3:58 PM
yes. We also saw billowing clouds of smoke on the ferry ride up the lake. Never saw any actual fire, but the main road to the place was closed because of it.
So we took I-90 instead, and fortunately got off the highway just before this happened:
http://www.king5.com/traffic/news/21-vehicle-wreck-closes-I-90-near-Vantage-Bridge--267549621.html
 
Wow!
 
yeah, so it was an adventurous trip
 
 
and now I get to wade through all the new Trover exceptions
> java.lang.IllegalArgumentException: requested provider gps doesn't exisit
Apparently phones in India suck?
 
Young 2
You should check for hasSystemFeature(something something GPS)
 
4:08 PM
Am from India. Can confirm. Most local phones suck
Though almost all of the sucky ones come from China
 
ugh.. I have the proper checks in place, but had a change in the code flow which can cause the GPS code to be called before the checks are run
and I don't have a phone in the office that doesn't have GPS so that's not really on my list of things to test
 
> No Activity found to handle Intent { act=android.media.action.IMAGE_CAPTURE (has extras) }
^ does this mean the phone has no camera?
 
@Reno Yep, that's Italian
 
Either that, or no camera app that can handle the intent
 
4:48 PM
bwahahaha
 
Morning Android
 
morning Guru :D
 

« first day (1375 days earlier)      last day (3559 days later) »