« first day (1241 days earlier)      last day (3711 days later) » 

10:18 PM
I haven't posted a horrible question in a while, so here it goes
 
that one is a winnar
 
@codeMagic can you be of use and vote to delete that question or at least vote to close?
 
seriously codeMagic, why aren't you being useful?
 
why aren't you being? period
 
Hello all!
 
10:28 PM
@Emmanuel what do you want me to delete?
Carl, I thought I would see what it was like to be Carl Anderson for a day
:D
 
10 mins ago, by Emmanuel
https://stackoverflow.com/questions/22312470/void-is-an-invalid-type-for-the-var‌​iable-ondraw
 
Oh, that one
I already upvoted that question
 
wouldn't surprise me
 
I'm having the same problem
I put all of my methodz in onCreate() like m spose to but the codez no worky
> Your delete vote has been recorded
Everyone happy?
 
yes
 
10:34 PM
Does that mean I can return to being useless?
 
can you bring me a cup of coffee?
Carl, do you want one?
 
Sorry, I would but one useful thing a day is my limit.
 
how did that thing get sorted out with your boss?
did you end up talking with your company's president?
 
lol
go afk for 15 minutes and codeMagic thinks he's running the joint
 
he refuses to bring us coffee...
 
10:40 PM
Silence, Carl!
No, emmanuel. The president is one of the people giving me shit
 
did you refuse to bring him coffee too?
 
My work has been "sloppy" yet a huge local grocery store just told him that they all love my app, the lady in charge of food safety for all Target stores told him today how great I've done and how everyone there likes my app, and we are about to sell it to another huge grocery chain out east
I offered to bring him an old fashioned ass-whoopin'
 
Righto so my Calendar picker is working, except it's laggy in a dialog :(
 
he declined...
 
10:42 PM
cM you should probably be polishing your resume.
 
I am, Adam
I've gotten plenty of emails about possibilities but haven't looked into any...until now
 
user457812
Set the world on fire.
 
user457812
Particularly the potted plants
 
that site links to great offers elance.com/j/android-application/53774156
 
"I am an expert in photoshop and image editing and have over 1.5 year experience I am a very work loving person and just want a platform to show my..."
wat
 
10:53 PM
you beat me to it
LOL
 
animated gif wallpapers in photoshop = live wallpaper
 
Also note:
> Budget: Less than $500
 
elance seems to be the place people rejected on SO go
 
11:09 PM
i got it to work, horray
they key in inputType, i had to set it to this: android:inputType="textCapSentences|textMultiLine|textImeMultiLine"
the last one isnt mandatory but i wanted the IME to be a new line button so i did it
 
Nice.
 
i have a kind of abstract question
just a best practices sort of thing
so i have objects stored in tables in the sqlite db which have lots of fields
i find that creating different objects which are created from those same tables but only have a handful of fields are much better for performance
best practice though, should i just use the same big object and leave all unnecessary fields null, or is having a different objects for smaller pieces a better idea?
 
more ways of doing it = more ways of doing it wrong
 
the use case here would be while populating a list, you dont need the entire object loaded into each list item, just the data which the list item's layout depends on
so i would have say, an Event object and an EventListItem object
where the list item only has like 4 fields and the main one has 20+
 
there is no doubt a performance penalty for including more fields but it should not be that noticable unless you have a lot of rows / additional columns are built using slow join operations
 
11:21 PM
yea there are joins involved
gah idk though it seems stupid to create a new java object just for a list item
 
We noticed a significant increase in performance (and a much lower memory footprint) moving from 20+ fields to 4-5 fields, though we're deserialising from JSON rather than from SQLite. Depending on if you're using an ORM using reflection though (such as ORMLite) you may experience similar.
 
ill stick with it i guess, for better or worse
 
That was a combination of decreasing the size of the JSON object and the size of the target object.
 
Cursor has a sliding window of ~2MB on the database, if you have a lot of rows / columns you get a huge performance decrease if that window fills up because cursor.move causes a requery in the ui thread
 
i mean i dont think ill be hitting 2mb in this particular scenario
but there are scenarios where i guess 2mb could occur
i just want to keep my methods consistent, if im gonna just use the full object, use that, else use smaller item objects
 
11:34 PM
If you a noticable performance issue, then having different objects doesn't sound bad. E.g. one implements BasicColumns and the other one implements BasicColumns, AdvancedColumns or so. I'd just avoid using always the full object with several parts set to null
And that window thing is only relevant if you're using a CursorAdapter, since that will move the cursor depending on the list position from within the ui thread
 
thanks zapl
 
Btw, are you using a Loader or doing the cursor loading (and maybe even the conversion to objects) async?
 
it depends on the list
i use cursor loader where i can but its not always applicable
 
because gist.github.com/anonymous/71766a82b76477ebf5c2 :) [Loader that transforms cursor to List<T>]
 
11:48 PM
ill have a look, thanks
 
slightly modified from what I'm using so it could have bugs but I really like that thing
 
That's pretty handy for small result sets
 
Indeed, no ui thread object mapping, and only a few lines of code required to extend
 

« first day (1241 days earlier)      last day (3711 days later) »