« first day (1432 days earlier)      last day (3508 days later) » 
00:00 - 19:0019:00 - 00:00

7:02 PM
whelp good thing I wasn't ALREADY HUNGRY (you bastard)
 
I just had a ham & cheese sandwich some minutes ago, but I'm still hungry
 
mmmmmm
 
this is my own picture:
 
:0
this really looks like a stock photo
 
7:10 PM
well, I sell stock photos, so that shouldn't be too surprising
 
torta de jamón
 
you do? as in on shutter stock etc.?
 
have you taken all those pics?
 
cool
where'd you get the guns though? / how did you take those?
 
7:14 PM
that involves a loooot of time photoshopping, right?
 
my father-in-law owns them
a fair amount of photoshopping, yes
 
wow, what camera do you've got?
 
Nikon D70. about 10 years old
well,
actually most of those were taken with a Canon point and shoot
 
you'd better treat your wife really good, huh?
 
ha, yes :D
 
7:16 PM
how much do you get per download?
 
I can't remember
to be honest I haven't done much of anything since '04
I've made about $1k since I opened the account
 
wow
 
nice :D
 
any guess on how many downloads, total?
 
I have a few stock photo accounts as well.
 
7:17 PM
We just recently bought a nikon d3100
 
I'd guess around 2K.
 
Hence the name, PearsonArtPhoto, eh?
 
I've made about $250 off of them so far, but I've hardly done any work in a while.
Yeah, I originally came to SE for, of all things, SmugMug.SE.
I shortly found Photo.SE, and then SO.SE.
And then they started piling up...
 
lol
 
Downloads: >1200
 
7:19 PM
Before I knew it I was a mod at 3 sites, and signed up for ~ 20 sites.
 
There are rarely people that discover SO after discovering other SE sites
 
and now I'm off as well, my daughter is throwing up at her school and needs to go home
 
Well, I wasn't active on SO for a long time...
 
true, I knew of SO for a while but didn't even know SE existed until I started using SO
 
uh :/ cya carl
 
7:19 PM
It took me almost an entire year before I reached 3K...
 
later carl, hope she feels better.
 
I guess I kind of knew that SO existed, but not much about it.
I think I had used it to answer a few questions, courtesy of Google.
Even know, I just hit 15K today here, and I think I've had an SO account for something like 4 years...
 
once you hit 10k it just starts rolling
I get up votes for answers every day that I can't remember writing
 
Same.
I have done very little asking/ answering for most of the last year...
 
I'm still stuck on 1.7k
 
7:24 PM
To finally break 3K, I had to sit and force myself to answer a whole bunch of questions for a month straight.
 
I can't answer lots of questions because:
- I don't have time to browse them
- many are already answered, so I flag as dupe
 
I actually ended up at about 8K after that stretch was over...
Honestly, you get the most upvotes from the simplest answers...
These days, most of my free time is going in to Coursera...
 
the answer I have most upvotes (30) is how to get FB profile pic on iOS
 
My point exactly.
 
34! yay!
 
7:29 PM
Of my top 5 answers, only one required any real work to solve.
53
A: How can you get the Manifest Version number from the App's (Layout) XML variables?

PearsonArtPhotoThere is not a way to directly get the version out, but there are two work-arounds that could be done. The version could be stored in a resource string, and placed into the manifest by: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.somepackage" and...

And that's only because I asked the question, and I got tired of there not being a decent answer a year later and did some more research in to it...
 
how do I check if my DB table has at least one value stored?
 
Do a query LIMIT 1?
SELECT * from TABLE LIMIT 1. If there's a result, then there must be data in the table.
 
can I check using the cursor?
my code does: open the DB, create a cursor; move cursor to first;
then I wanted to check if there's data to be used or not
 
5
A: How can I create a list Array with the cursor data in android

PearsonArtPhotoEven better than @imbrizi's answer is this: ArrayList<String> mArrayList = new ArrayList<String>(); while(mCursor.moveToNext()) { mArrayList.add(mCursor.getString(mCursor.getColumnIndex(dbAdapter.KEY_NAME))); //add the item } moveToNext() will return false if there isn't anything left, so...

What's between the while will need to be changed, but that's the structure you want to aim for.
 
idk... there will be only 1 object in the table
 
7:38 PM
Why have a table with only 1 object in it?
 
i think cursor.getCount() > 0 will work
mostly because I want to learn how to work with DBs
 
That would work.
 
also, there is another table where I will store a lot more data
 
Find an app idea that works well with tables.
Write a gas mileage logging app or something...
Another table makes sense I suppose...
Unless it's meta data about the table, I haven't found a good reason to have only a single row in a table, but I'm still fairly new to databases...
Despite having 3 Android apps that use sqlite, and several programs I've written for my day job that use it as well...
 
I'm persisting user login data
 
7:42 PM
Use SharedPreferences
 
I could use sharedPrefs, but since I'm already using a DB...
 
How do I get the appcompat Action Bar when extending BaseGameActivity?
 
SharedPreferences are a bit more secure, and thus a better place for login data.
 
it's not actually the login info (like email + pw), it's the data that the login service returns (like email, name, user details)
 
7:44 PM
It's up to you, so...
 
my next step is learn how to encrypt the DB
 
That's a bit trickier...
There are libraries that do it, at a cost.
2
Q: Support ActionBar and GameBaseActivity

QianqianI want to use the support action bar so I need to extend my activity from ActionBarActivity in the support library. However my activity is ready extending from BaseGameActivity... I tried to modify the BaseGameActivity to extend from ActionBarActivity instead of FragmentActivity, but lots of err...

 
money cost?
 
No answers yet.
Yes. I haven't seen a free one.
 
That question has no answer :/
 
7:46 PM
It's a pity, it's a good question...
 
Use the right tool for the job, single instance information should be in SharedPref
don't force something to be a DB esp given db access is slower
2
 
lol, I keep saying that, Pyro
 
advice?
 
Will db.delete(DataBaseOpenHelper.TABLE_USER, "*", null); remove all the elements in that table?
 
do you want to do that or just drop the table?
if you're gonna switch to SP
 
7:58 PM
no, I want to keep the table, but clear the data
 
14
Q: Remove all table rows from SQLite database table

tharindlakshI want to remove all rows that i entered from my SQLite database table. The table name is tbltask. I tried to drop the table and delete * from table, but those are giving me runtime errors. I want to trigger this event in Button OnClickListner event. Following code is what I tried: String delet...

 
thanks
 
@Guilherme just backing you up then
 
@user2977079 Rejected because of your default user name
@user2977079 aka MikhailTalless Welcome. Please read the room rules.
It should take a while for the display name to update
 
Is there any easy way to draw a text "downwards"?
 
8:11 PM
downwards?
 
L
I
K
E

T
H
I
S
?
 
3 questions, for a total of -3 downvotes and no answers. you must be in a good mood today ahmad
 
Yeah!!
Instead of "L\nI\nK\nE"
 
Hello people
I am looking for a game engine that works for android in C++ or Python, for Android and possibly iPhone/Windows/PSVita/Nintendo3DS
Android being the main point
And iPhone posibly
possibly*
 
johgru, is it ok to rotate your label, so the letters will be 90° off?
 
8:14 PM
@DaveS he's active in chess.SE and appears to be sane
and yeah, partly the good mood
 
Unity3D? Unreal Engine?
 
Nooo? I have a ToggleButton and I want a textview next to it
 
I think you'll need to add \n then
 
Old very old questions
Still didn't know the format
 
Okay :/
 
8:16 PM
Unreal Engine for Android?
For 2D games?
 
oh, you didn't say it was 2D
Cocos2D maybe?
 
I didn't?
Sorry
Yeah, I friend told me of that
Does it support Vita And 3DS?
And windows?
 
I don't know about PSV and 3DS, but it surely does on Windows, Mac and Linux
 
I don't think there's an universal solution
 
mostly anything that can run python
 
8:18 PM
that supports vita, android and iOS
and whatnot
 
How new is it?
 
Einstein spent all his life looking for a universal solution... and he couldn't find any
 
And does it work in 3.x?
So shall I
Wish me luck
 
Cocos2D is not new I think, but I don't know how old is the lastest release
but being old does not mean it's not good or not powerful enough for you
 
Back...kind of
 
8:20 PM
Ok then
Thank you people
The name still hasn't changed
How come?
 
Cocos2d-x works with: iOS, Android, Windows 8, Windows Phone 8, Windows, Linux, Mac OS X
 
It takes 20-30 minutes usually
Not sure when you changed
 
10 mins ago
 
Can't even kill the Eclipse process...this is fun
Ok, do what I'm doing with Eclipse and wait
 
Oh and one more thing
How fast is it in python?
 
8:24 PM
not very, it's a scripted language
something that compiles will be faster
 
it is written in python
 
Doesn''t it have native conversion, like Xamarin for c#?
 
ah I guess you can compile python into bytecode as .pyc files
 
That's great
I'll search for a toturial of cocos2d
Thank you people!
 
yay broke 700 rep
 
8:30 PM
cool! 199.300 to go!
 
i actually want 76 exactly then i'll never answer another question again, comments only, and stay at 777
 
well... people can still upvote your questions
 
and downvote :D
 
Let me have my dreams
ok so this is a weird one, I used this Holo colors website to apply a theme to my EditText to change it from the default Holo blue to white. It seems to work fine until I set the visiblity to GONE then show it later when a button is pressed, it loads with a thin black line instead of either the default blue or the white line I would expect as if the style hasn't been applied. When I tap and focus the EditText it goes to the white line.
 
weeeeird
are you using appcompat?
 
8:38 PM
yea
api 11
 
you don't need appcompat for 11+
only for 10-
 
appcompat_v7
i made a new project with the min of 11 and that's what it gave me.
 
nevermind
 
well i managed to fix it by just requesting the focus on the toggle
 
> The ActionBar APIs were first added in Android 3.0 (API level 11)
 
8:41 PM
yeah i believe it's for fragment and view pager
appcompat_v7 is for pre api 14
 
ah, ok
but the holo-colors files don't need different versions if you're on 11+
 
no they don't i just copy pasted
 
If it doesn't need to be gone you could try using invisible
I don't know if it would make a difference
 
It does, it takes the place of a textview in the layout
I'm ok with the requestFocus fix, it's the only focusable element on the page.
it's just weird.
 
8:57 PM
this is so awesome
would totally do that to a friend
omg, if it only weren't for ad blockers
I think most of my friends wouldn't even see the ads
 
9:09 PM
that's amazing ahmad
Would you guys mind if I shared a link to help our small start up get a 150k grant?
Well I can delete it if it bothers anyone missionmainstreetgrants.com/business/detail/4649
 
no not at all :)
how does that work?
you just vote and the one with the most votes gets the money?
 
you just vote, identity is verified with facebook, if we get at least 250 votes we'll be considered, 20 companies will get the grant
I think you just get 250 votes to be qualified then they pick the winners
but more votes would probably help in getting selected
 
9:25 PM
Interesting read Ahmad!
 
:D
just voted dave
 
awesome, thanks man
 
 
2 hours later…
11:04 PM
Ha ha, this time it only took 3 hours to fetch the Chromium source!
 
I think I found a bug in Android... Sigh.
A bug, maybe, but maybe not that bad of one. Hmmm...
 
?
 
Ewww. Call the exterminator. If bugs are in your phone then whats your house like?! ;)
 
0
Q: Using two different, but very similar, layouts causes android:ImeOptions="ActionNext" to not work

PearsonArtPhotoI have two layouts, one for portait and the other for landscape, that pass information on to the next field. The two use identical source code, and similar XML code. One of them shows the "next" button where I would expect, the other shows the "done" button. FrequencyEnterField is a FrameLayout. ...

It's bad, it's the emulator for my phone...
Actually, it's an emulator for a tablet I don't own, but...
 
11:22 PM
does it happen on a real device?
 
Haven't gotten that far yet...
I always test on emulators before I try real devices.
Unless I have to use a real device.
 
emulators are so slow, I never use it. always use my galaxy nexus
 
I use genymotion, it's pretty fast.
 
if it happens on a real device my only guess is that because you fill the screen with the layout it can't find a next
 
I use a galaxy nexus too, usually, as my first real device to test.
 
11:24 PM
and so when there isn't a next it switches to done
 
Well, I fixed it via a hack, so I'm content for now...
 
How do I force a GoogleMap redraw? Invalidate() doesn't seem to work?
 
Also, code wasn't working, I added a debug print line and now it works.
Computers are hard
 
@Dnlhoust sounds like a bug causing UB & you just got lucky after you added a debug print line
 
Good day!
 
11:53 PM
hey law
 
00:00 - 19:0019:00 - 00:00

« first day (1432 days earlier)      last day (3508 days later) »