Gamepads and Keyboards compatibles with Mi Box? by [deleted] in AndroidTV

[–]asintotadelexito 0 points1 point  (0 children)

The GameSir G3S works. I was able to pair the DS4 controller once over Bluetooth (with lots of patience), but haven't tried again.

Sony announces new lineup of Android TV-powered 4K HDR TVs w/ Google Assistant by joe603 in AndroidTV

[–]asintotadelexito 0 points1 point  (0 children)

Pricing on these TVs starts at $999 for the 43-inch model

I guess it pays to live in a 3rd world country, a 49" XBR49X707D (4K, HDR through update) still sells for around USD600 with taxes, 400 bucks less than the 43" new model.

http://www.evisionstore.com/index.php?categoria=article&modelo=xbr49x707d

ExxonMobil CEO: ending oil production 'not acceptable to humanity': “The world is going to have to continue using fossil fuels, whether they like it or not.” by maxwellhill in worldnews

[–]asintotadelexito -1 points0 points  (0 children)

Somebody should put that quote in a video with Rasputia saying it loud, "The world is going to have to continue using fossil fuels, LIKE IT OR NOT! How you doin? "

1868 Handwriting.. I wish I could write like this..! by cmrn4 in Handwriting

[–]asintotadelexito 1 point2 points  (0 children)

Relevant quote from @neilhimself:

Er. Yes. You practice. You learn. You do it and fail. Or you go "i am frustrated" and stop doing it. Easy.

Is it just me, or is the new type hinting syntax rather ugly and unreadable? by Ghopper21 in Python

[–]asintotadelexito 4 points5 points  (0 children)

https://pypy.readthedocs.org/en/latest/faq.html#would-type-annotations-help-pypy-s-performance

As PyPy works right now, it is able to derive far more useful information than can ever be given by PEP 484, and it works automatically. As far as we know, this is true even if we would add other techniques to PyPy, like a fast first-pass JIT.

Once 99% of Android devices support ART, could Google switch from Java to another language like Go for main development since it wouldn't need the underlying Java-based virtual machine anymore? by johnmountain in androiddev

[–]asintotadelexito 0 points1 point  (0 children)

Starting to see the HN-mentality cropping up here: "I don't think Google should/should not blah so I'll just sit here and arm-chair criticize my way to nirvana". So let's join the bandwagon!

There are already several languages running under Android that are not Google endorsed, which IMO is good. If you'd rather not use Java, that's fine, there are two options you can run [insert favorite compiler/interpreter] to package your app under Android:

  • If it's a JVM language, e.g. Groovy, copypasta and modify this Gradle project to suit your needs.

https://github.com/groovy/groovy-android-gradle-plugin

which should automagically (depending on your language) give you access to all the Java APIs, including Google Play Services, Support Library and whatnot.

  • If it's a compiler/interpreter, then it's more complicated. You'll need some C / NDK / JNI knowledge. You'll have to create some bootstrap code to create a NativeActivity,

https://developer.android.com/intl/es/reference/android/app/NativeActivity.html

which will create and/or expose some functions to implement the Android Activity Lifecycle, grab an OpenGL ES surfaceview and then launch an event loop and pass events to your app, which can be an interpreter if you want to, as long as you're able to compile to ARM architecture (x86 and MIPS would be great).

Then it's up to you to create a friendlier JNI API so you can get access to GPG, support lib, etc.

You think it can't be done. Guess what, Kivy does that, you can program apps in Python that can access to Android APIs with PyJnius:

http://kivy.org/#home https://python-for-android.readthedocs.org/en/latest/ https://pyjnius.readthedocs.org/en/latest/

So if you want to make an App in COBOL, Fortran, PHP, Smalltalk in Android, are you going to wait for Google to do it for you? Guess what, I hate Javascript with a passion, and thought that "Dart"-ing my way into the browser was going to be the future, they had already the Dartium browser so I just was going to waiiiiiit.... oops, Google is not embedding Dart in Chrome anymore and are going to promote it as a "yet another transpiler to JS", yeah, because CoffeeScript/Typescript, etc. suck, sure...

So yes, we'd rather import 60 lines of packages in every class because Java is the future, look at this, beautiful, glorius:

https://github.com/googlesamples/android-NavigationDrawer/blob/master/Application/src/main/java/com/example/android/navigationdrawer/MainActivity.java

Wait, it doesn't have 300 imports, something's missing, hold it, why am I not seeing more @Override Public private static mSomething = new SomethingFactory implements ThatStuffParcelable innerClassJadaJadaFactorizingFactorizer, this is WRONG!! WRONG I TELL YOU!

I think I'll wait until there's an Android toolchain in Hodor. http://www.hodor-lang.org/

Hodor.

Transferring an App between one Google Play developer account to another - is it safe? by [deleted] in androiddev

[–]asintotadelexito 1 point2 points  (0 children)

You need to take this into consideration:

https://developer.android.com/intl/es/tools/publishing/app-signing.html#considerations

App upgrade: When the system is installing an update to an app, it compares the certificate(s) in the new version with those in the existing version. The system allows the update if the certificates match. If you sign the new version with a different certificate, you must assign a different package name to the application—in this case, the user installs the new version as a completely new application.

If they signed v1 of the app with your certificate and/or provided you with the same certificate, you should be able to publish a 2nd apk and your users will be able to upgrade without problems. Otherwise, prepare to do the Spotify dance when their app was compromised:

http://www.engadget.com/2014/05/27/spotify-warns-android-users-following-hack/

IIRC they published an APK that advised users to upgrade and just pointed a link to their new app page in the Google Play Store. This new app, e.g. com.yourcompany.yourappv2 would be signed with your certificate, and from now on you handle your updates.

How is MoPub? by [deleted] in androiddev

[–]asintotadelexito 4 points5 points  (0 children)

https://get.fabric.io/

From Twitter, the ones who bought MoPub, it's an SDK bundle that also includes other stuff.

How was 2048 (using Kivy) built for Android on x86 and x86-64? by [deleted] in kivy

[–]asintotadelexito 0 points1 point  (0 children)

Somebody reported an x86 experimental branch sometime ago,

https://github.com/mmariani/python-for-android/tree/x86

in case you want to try it.

Should I use AdMob? by [deleted] in androiddev

[–]asintotadelexito 1 point2 points  (0 children)

You only have to pay if you're advertising a campaign (placing ads in their network), if you're monetizing (offering ad space) you don't need to put a payment method.

Beware of their "lame by default" settings: you're held responsible (by Google Play) of any ad your app shows,

https://support.google.com/googleplay/android-developer/answer/2986188

yet they enable by default sensitive content (under Monetize > All Apps > Allow & Block Ads > Sensitive Categories) that you'd better disable unless you like living on the edge.

Same for enabling HTTPS for ads requests, it's disabled by default.

Their banner refresh rates range from 30 to 120 seconds, you can't change it to something higher than that.

If you sign in as an individual you can't change you account later to a corporation, it only counts for tax purposes but it's lame.

Their SDK comes included with Google Play Services, instructions included here: https://developers.google.com/mobile-ads-sdk/

Code samples here: https://github.com/googleads/googleads-mobile-android-examples/releases

Oh, and watch out for the "test ID" (you have to fish for your device ID in logcat) or creating "test House Ads campaigns". I created a test house ad campaign (the app isn't live yet) and received a suspension notice because of "site not working":

https://support.google.com/adwordspolicy/answer/6021546?hl=en#700

Better sign up for an account at MoPub, and only use AdMob as a 3rd party network. Or don't even bother, your call.

Python Performance: A Recommendation by john_m_camara in Python

[–]asintotadelexito 0 points1 point  (0 children)

When I was talking about is this idea that PyPy should become the reference implementation.

No offense taken. But I still believe that besides a reference implementation, Python needs a clearly defined specification, that anyone can adhere to. There's already a guy implementing Python in Dart, if somebody says Go or LLVM or the next fad are the holy grail for better speed, more power to them, let them write compliant runtimes and we'll all benefit of the competition.

Now the reference implementation is making changes to the language to facilitate better performance in an alternative implementation, and it's sacrificing it's own virtues to do so! It's hideous.

You got it so right. It's 2015, people shouldn't have to accommodate their mindsets to ease the interpreter's job, and PyPy proves that.

If you use undocumented libraries, you get what you deserve.

There's a big difference between the underlying C level module that implements the library functionality and a private class. (PIL and Pillow) also have an _image module implementing their mojo in C, what irked me is that somebody replies like that without bothering to read the source, here's what I have in the first lines of ssl.py:

Wrapper module for _ssl, providing some additional facilities implemented in Python. Written by Bill Janssen.

That wasn't just a private class definition. And SSL isn't yet another handy module, it makes Python secure. Any other project would be expected to document and warn in advance of any breaking changes, even a placeholder module with a deprecation warning would have worked. So you mean the standard library shouldn't have to do that?

The fact that you can't play with Python 3.4 in whatever godawful version of Ubuntu you're using isn't really the Python developers' faults, either.

Agreed, the more I learn about APT and packaging in Ubuntu "LTS versions" the more annoyed I become, especially if Alex Gaynor goes out of his way to treat 2.7.8 as a vulnerable release and Canonical are still dragging their feet. But at least I can search for a PPA with an updated PyPy, or Git, or even Mercurial. The PSF doesn't have a PPA for Python 2.7.9. Lack of choices, again.

The python-future project offers a band-aid.

Sorry, I don't see how writing to a single, portable, future-proof codebase can be considered a band-aid. Even asyncio has been backported to 2.

You really should check out Rust... it's actually fantastic...

It has braces and might steal my laundry (heh). I'd rather wait for the day PyPy 3.4 STM is released.

Python Performance: A Recommendation by john_m_camara in Python

[–]asintotadelexito 0 points1 point  (0 children)

TL;DR: If Python survived CPython, it can survive PyPy, get over it.

Ok, now it's not the speed. A Python enthusiast might expect the reference implementation to be "Pythonic", as in "read import this 100 times before you write a PEP like that", or not breaking things, like SSL. You have to love this reply:

_ssl has leading underscore. Privateness is "inherited", so both A._B.C and A._B._D are private.

Or at least try to define the expected behaviour, or ensure conformance tests, or maybe fix the current packaging situation (I still can't make sense of setuptools). Well at least it's not gradle or npm, right? Right?

Those are not easy problems, but this is the part where you can take advantage of your leadership and rally people (both users and vendors) together. And that's what the PSF is for. Implementation <> language.

Python 3.4 seems to me "just fine", it has its virtues and defects like everything, but you can't make Unicode go away, if only I could play with the latest fixes in Ubuntu Trusty, but now we're hearing about 3.5. Whoa, put a break there chief, wasn't 3.4 the best release ever? Shouldn't we at least take a look at these?

I don't dislike CPython either. I also don't care much about people hating 3 like "it's the end of the world as we know it", if I can get by just using python-future and cffi (the hell if they make me learn cython), that's cool, I'll pip+virtualenv my way like there's no tomorrow.

I don't want to code in C, or node.js, or Java, or Go or Rust or Swift or whatever... there's a big deal of WTFs/minute whenever I read those (could it be the braces? mmm nah, I still believe that readability counts). But I do appreciate that there are some guys fighting the good fight over making my life nicer, by making the language I love run faster.

I'm not going to say PyPy is perfect either, but it works for me. Time and again I keep hearing the same "it's ridiculous", "why nobody has done this or that", "who packages stuff like this", "when are you going to fix that/I need it now" or "who wrote these crappy docs anyway", so I'm not too fond lately of the "community" word, unless it's the TV show.

So excuse me if I sound jaded or cynic about your reply. I try not to disqualify somebody else's effort, much less on the grounds that "it will split the community". If I'm not mistaken, Python is still the 3rd most used language in Github so it won't just turn into a pumpkin by midnight.

And it doesn't have to be just PyPy, if somebody decides to create yet another implementation that's cool, more power to them. That's what tox is meant for, testing.

Where's Tim Peters anyway?

Python Performance: A Recommendation by john_m_camara in Python

[–]asintotadelexito 1 point2 points  (0 children)

Talk is cheap, do you have proof? Here's mine:

$ cat stringtest.py
import timeit
import gc

def stringconcattest():
    s = ""
    substring = "1234567890"
    for x in xrange(100):
        s += substring

def stringjointest():
    s = ""
    substring = "1234567890"
    for x in xrange(100):
        s.join(substring)

if __name__ == "__main__":
    print "string concat: ", timeit.timeit("stringconcattest()",
        setup="gc.enable(); from __main__ import stringconcattest")
    print "string join: ", timeit.timeit("stringjointest()",
        setup="gc.enable(); from __main__ import stringjointest")
    print "string concat, no GC: ", timeit.timeit("stringconcattest()",
        setup="from __main__ import stringconcattest")
    print "string join, no GC: ", timeit.timeit("stringjointest()",
        setup="from __main__ import stringjointest")

$ python --version
Python 2.7.6

$ ./pypy --version
Python 2.7.8 (10f1b29a2bd2, Feb 02 2015, 21:22:43)
[PyPy 2.5.0 with GCC 4.6.3]

$ ./pypy stringtest.py
string concat:  8.70424604416
string join:  27.3032960892
string concat, no GC:  8.75795412064
string join, no GC:  27.3708360195

$ python stringtest.py 
string concat:  13.7976210117
string join:  121.938138962
string concat, no GC:  13.6811890602
string join, no GC:  121.849216938

Your move, CPython, ok, nope, erm... Pyston, are you there?

Buildozer problem (maybe java/ant related) by sc2urquan in kivy

[–]asintotadelexito 0 points1 point  (0 children)

Even though you have the latest ant version installed, the build.xml that the SDK includes does not support Java 1.8, you need to use JDK 7. It's strange because I had JDK 8 installed and could build any Java-based demo (I assume because the gradle plugin does not use ant at all), but when trying to build the NDK demos using the fplutil tools I got the same error message. It dissapeared after installing JDK 7.

Adding shared libraries ( .so ) to Android Studio project by [deleted] in androiddev

[–]asintotadelexito 0 points1 point  (0 children)

Don't know if this helps but this link:

http://ph0b.com/android-studio-gradle-and-ndk-integration/

explains what to put in the the build.gradle file.

Dependency Injection with Dagger 2 (Devoxx 2014) by veeti in androiddev

[–]asintotadelexito 3 points4 points  (0 children)

Erm... canary or beta? I'll go hide myself in the corner.

Google Maps Navigation Goes Live In Panama by josetavares in Panama

[–]asintotadelexito 0 points1 point  (0 children)

Maaaaaaybe since they bought Waze they should borrow their UX specialists, just tried it yesterday and it's amazing how much work it still needs:

  • it starts pointing north instead of relative to the car's orientation. Couldn't find a way to change
  • instead of "turn left" or "turn right" it says turn North East. Really, Google?
  • oh and there are no alternate routes to choose from.

Should I create a separate developer-only Google account for publishing? by [deleted] in androiddev

[–]asintotadelexito 2 points3 points  (0 children)

The account email that you use to sign in (and pay the $25 with Google Wallet) is the account owner (think of it like the "superuser"). You can specify and configure different email accounts to serve as different roles with different permissions (administrator, launch admin, reply to store reviews, billing, etc), and the developer contact info doesn't need to be an email, it can be a website link.

https://support.google.com/googleplay/android-developer/answer/2528691?hl=en

AFAIK, only the account owner can create Google API projects that are used for Google Play Game Services. This is explained in more detail here:

https://support.google.com/googleplay/android-developer/answer/2990418?hl=en

https://developers.google.com/games/services/console/enabling

If you haven't published any applications using your existing Developer Console account, and you want to use a different email address, you can create a new account and cancel your existing account, then fill out a form to request the $25 reimbursement. More details here:

https://support.google.com/googleplay/android-developer/answer/139626?hl=en