Profile

Cover photo
Kostya Vasilyev
392 followers|57,081 views
AboutPostsPhotosYouTube

Stream

Kostya Vasilyev

Shared publicly  - 
 
Poached salmon (with onions, cherry tomatoes, dill, olive oil, and freshly ground pepper). 
5
Kostya Vasilyev's profile photoRachel Ambler's profile photo
3 comments
 
That was seriously awesome stuff! Thanks for the idea... 
Add a comment...
 
A GoDaddy IMAP session.

1-

kman127 SELECT "Drafts"
* 5 EXISTS
kman127 OK [READ-WRITE] SELECT completed.

^^ Server says there are five messages total

2 - 

kman128 UID SEARCH UNSEEN UNDELETED
* SEARCH 1767
kman128 OK SEARCH done.

^^ My code asking the server for the list of unread messages. The server saying "there is one, and its Unique ID is 1767".

3 - 

kman129 FETCH 1:5 (UID FLAGS)
* 1 FETCH (UID 1662 FLAGS (\Seen \Draft \Recent))
* 2 FETCH (UID 1671 FLAGS (\Seen \Draft \Recent))
* 3 FETCH (UID 1676 FLAGS (\Seen \Draft \Recent))
* 4 FETCH (UID 1698 FLAGS (\Seen \Draft \Recent))
* 5 FETCH (UID 1760 FLAGS (\Seen \Recent))
kman129 OK FETCH completed.

^^ My code asking the server for the list of message IDs and flags, based on the number of messages that the server reported in this folder.

Two things wrong:

- There are no unread messages (they are all \Seen, which is "read")

- There is no message with UID = 1767

- And yet, above, the server claimed there was one unread message and its UID is 1767.

GoDaddy, are you ever going to fix your IMAP implementation?

Broken does not even begin to describe it.

#godaddy   #godaddyhosting   #broken   #incompetence   #bordering   #on   #fraud  
1
Kostya Vasilyev's profile photoRachel Ambler's profile photo
4 comments
 
+Rachel Ambler - Oops. I completely forgot about them, so "half hearted" sounds right, but maybe "forgettable" is even better :)

Even so, their server is more predictable than GoDaddy's, which can return, basically, arbitrary garbage that only looks like IMAP data.
Add a comment...

Kostya Vasilyev

Development  - 
 
Hello -- is there an API for third party apps to specify an unread count for their app icon? Like Nova and Apex have?
1
Bridger Burt's profile photoKostya Vasilyev's profile photoVincenzo Colucci's profile photo
3 comments
 
What would be alone is a Tasker integration to allow taker to set/reset badge counts, amongst other Tasker possibilities. But, I realize that we're probably a smaller portion of your target audience. Still would be cool however. 
Add a comment...

Kostya Vasilyev

Shared publicly  - 
 
Эклеры 
 ·  Translate
3
Kostya Vasilyev's profile photoДенис Дмитриев's profile photoRachel Ambler's profile photo
3 comments
 
Well, they're really easy to make :)
Add a comment...
Have him in circles
392 people
 
I've been running Fedora F20 with testing-updates repository since last November or so.

What a breath of fresh air after Ubuntu.

My desktop preference is XFCE, which just doesn't appear to get enough attention from Canonical and occasionally gets broken by changes made for Unity's sake.

I'm especially impressed -- no, make that IMPRESSED -- with the excellence of teamwork around fixing bugs (which are to be expected on a "testing" update channel).

The latest one is VMWare X11 drivers, broken by yesterday's large Mesa / GL update, and already fixed. Not that I need those, but just to illustrate the point.

#fedora   #fedora20   #excellence  
1
Yehudah Griffin's profile photo
 
I'm a fan. I put it on every laptop I fix and turn around. I've not had one laptop that couldn't run it. 
Add a comment...

Kostya Vasilyev

Gradle Build System  - 
 
Is it possible to make "gradle lint" check sub-projects?

I have a main app project, and a few library projects. I'd like to be able to easily check them all, both explicitly, and as part of "lintVital".

It's easy with the command line:

"lint --check xxx . ../libproj1 ../libproj2"

But running lint like this is not recommended.

It seems "gradle lint" only checks the project from whose directory it was invoked.

I can of course "cd ../libproj1 && gradle lint", etc., but then I'd need to duplicate "lintOptions { .... bunch of stuff ... }" stanzas in each library project's build.gradle.

Ideally I'd like to have something like this, in the app project's build.gradle:

lintOptions {
   checkSubProjects libproj1, libproj2, libproj3;
   vitalCheckSubProjects libproj3;
}
1
Tor Norbye's profile photoKostya Vasilyev's profile photoXavier Ducrohet's profile photo
10 comments
 
Glad to hear it! I've documented the new flags at the end of http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Lint-support
Add a comment...

Kostya Vasilyev

Gradle Build System  - 
 
Is anyone having issues with lint since 22.3 or 0.8 (guessing)?

I deliberately created some API level issues: by removing @TargetAPI(11) on some code and adding getFragmentManager inside an activity's onCreate; the minSdk is 5.

Gradle builds with this config is not finding any of those:

lintOptions {
  enable 'NewApi', 'StringFormatCount', 'StringFormatInvalid', 'ManifestOrder', 'WrongManifestParent'
  disable 'MissingTranslation', 'ExtraTranslation'
}

I even tried this, directly from the command line, nothing detected:

lint --disable LintError  --check NewApi .

The default (since 0.8) lint check for release builds did report a bunch of translation issues, but none of the type of issues I'm trying to get it to find.

Enabling Lint in Eclipse does find those issues.

And then (discovered while I was writing the post) --- command line lint started to work.

Further, disabling lint in Eclipse kept command line lint working, as long as I run it myself. The "automatic lint while building release" is still not finding anything.

What's the connection between lint in Eclipse and the command line? 

Why is gradle's "automatic lint while building release" not finding any issues?
1
Tor Norbye's profile photoKostya Vasilyev's profile photo
8 comments
 
Yes, I'm using Eclipse + Gradle, and my compiled class files are separate. I guess this is the reason for NewApi not triggering.

As a test, this does find a bunch of translations issues:

$ lint --disable LintError  --check ExtraTranslation .

This does find a bunch of issues too:

$ gradle lintRelease

So, to summarize:

1 - Running lint directly from command line won't find Java code issues because of separate .class output directories (gradle vs Eclipse). I now understand this is to be expected.

2 - The new vitalLint task will be made more configurable in 0.8.1. I'll be really looking forward to that.

Thanks for your help!
Add a comment...

Kostya Vasilyev

Gradle Build System  - 
 
Getting strange ProGuard failures, gradle Android tools 0.7.

Lots of "can't find superclass or interface" and "can't find referenced class".

The missing references are all defined in a library project, included via:

dependencies {
  compile project(':library project name here')
}

The Proguard config for the application (not library) is:

    buildTypes {
        release {
            runProguard true
            proguardFile getDefaultProguardFile('proguard-android.txt')
            signingConfig signingConfigs.release
        }
     }

Same exact gradle build files worked fine before with gradle tools 0.6, I just re-verified by temporarily switching back.

Any ideas on how to fix this with 0.7?
1
1
Vanesa Zarza's profile photoKostya Vasilyev's profile photoXavier Ducrohet's profile photoMathew Winters's profile photo
9 comments
Add a comment...

Kostya Vasilyev

Shared publicly  - 
 
Amazingly enough, the bug with the Back key getting "stuck" is still there in Android 4.4.2 (Nexus 5).
1
Kostya Vasilyev's profile photoABRAHAM SALAS's profile photopyler sm's profile photo
3 comments
 
me gustaría saber de qué país me escribe, y si hablas español. yo me encuentro en la república Dominicana, un pequeño país del caribe.
 ·  Translate
Add a comment...

Kostya Vasilyev

Shared publicly  - 
 
From my Galaxy Note 3's logcat:

W/System.err(12704): java.io.FileNotFoundException: /efs/carrier/HiddenMenu: open failed: ENOENT (No such file or directory)
W/System.err(12704): at libcore.io.IoBridge.open(IoBridge.java:409)
W/System.err(12704): at java.io.FileInputStream.<init>(FileInputStream.java:78)
W/System.err(12704): at java.io.FileInputStream.<init>(FileInputStream.java:105)
W/System.err(12704): at java.io.FileReader.<init>(FileReader.java:66)
W/System.err(12704): at com.sec.android.app.parser.KeystringCommon.checkHiddnemenu(KeystringCommon.java:1150)

Um, /efs/carrier/HiddenMenu? Not very hidden if you ask me :)
1
Add a comment...
People
Have him in circles
392 people
Basic Information
Gender
Male
Story
Tagline
Teach a man to fish and he'll ask for a hunting rifle
Links