« first day (1385 days earlier)      last day (3545 days later) » 
00:00 - 18:0018:00 - 00:00

12:53 AM
got my first OpenShift app working!
with Gradle even
 
oh snap, so advanced
 
well, it's a start
 
yep
Its very fast
 
1:36 AM
you switched to openshift now?
didn't like GAE?
I don't like GAE's closed-source nature
you're basically locked into the eco system
with an awful db that nobody else is using
 
"The tide goes and the tide goes out, and you can't explain that"
uhh, last time I checked...
 
2:12 AM
I like how he also says that 1% of the U.S. population is atheist, and the other 80% is not.... yea....
 
makes sense.
just as this
 
haha nice
 
user457812
I am in the 1000-is-correct camp because it's easy to think about
 
user457812
Octopress? My sworn enemy. ಠ_ಠ
 
I do not mind octopress
 
> " I cannot recommend spending time on StackOverflow browsing through questions and answering questions when you feel ready"
@Emmanuel cannot recommend enough ? also nice post =)
 
3:02 AM
Ups
 
@fvasquezjatar Although you SO activity is low, I'm letting you in. So, welcome, please read the room rules.
 
Fixed
thanks Foamy
 
np
now if only I could proof read my own stuff =x
 
user457812
I have no actual opinion of Octopress except that I couldn't figure out how to set it up so I wrote my own Octopress-like tool
 
user457812
I need to rewrite that tool though, since it's old and clunky
 
user457812
3:10 AM
When people say bespoke, they usually say it to sound cool, like "we have a bespoke database," but what it usually means is it's a fairly rigid piece of crap that someone built over the course of 48 hours and then never touched again. That's my blog tool, a bespoke piece of crap.
 
I definitely wouldn't think someone was cool if they called something bespoke...
 
user457812
Hacker News really liked that term for a while.
 
Silly bespoke hipsters
 
user457812
hn.algolia.com/?q=bespoke#!/all/forever/0/bespoke ⇐ E.g., various cases of the use of "bespoke"
 
user457812
Though only 33 pages, so it suggests either it's filtering comments (sounds unlikely — search is useless if it discards stuff) or it's uncommon outside of blog posts
 
3:15 AM
Hey guys, what's up? I'm too cool to say the word "custom"...
 
user457812
Custom, hand-rolled, in-house, hand-made, hand-built, custom-built, etc.
 
I'm going to start a business called "Bespoke Custom Cloud As A Service"
 
user457812
But bespoke has that exotic sound to it because it's a word most people don't use now and so it also acts as a sort of tag with which to identify people who either use a thesaurus too liberally or saw someone else use the word and thought it was fashionable
 
Bespoke words for the eclectic hipster
as a service
 
user457812
The Cathedral and the Bespoke: The Startup's Guide to Attracting People Who Wear Fedoras Unironically
 
3:20 AM
haha
Ok, I think I need to close all my tabs... things are getting out of control.
 
user457812
throws that last one on Twitter because Twitter
 
user457812
Going to be Twitter famous.
 
I'm going to remove myself from this screen for a while.
 
Wio
I wonder what is the best way to organize packages in Android.
 
user457812
Logic's a good start.
 
Wio
3:29 AM
Right now I have all activities in their own package, all adapters in their own packages, etc.
It makes things easy to find at least, but I don't know if it is how packages were intended to be used.
 
user457812
6
Q: How to organise classes, packages

blue-skyHow do you decide what a package name should be and what class should go into what package ? I'm working on a project where I am constantly adding/removing classes and not really sure if I need a new package, or should add it to an existing one that im not currently aware of. Do you follow a se...

 
Wio
Yeah, so you instead of putting all activities together in a package, you might everything related to the concept of users in a package. Those are the two options.
 
user457812
3:48 AM
I try to organize by concept/principal/whatever
 
Wio
When doing android programming, are there serious pitfalls to storing data that you want to persist until the app is closed in static members of classes?
 
4:08 AM
@Ahmad thanks so much, i already read the rules !
 
cool cool.
 
user457812
4:24 AM
@Wio Yes, because the app might get restarted before it's actually closed.
 
user457812
Depending on what part of, say, an activity or application's lifecycle means closed to you
 
user457812
Also, because I got bored, a quick text graph of packages→files→types in Ascension: gist.github.com/nilium/47fad370805ba6bc4210
 
Wio
I see.
Well, what I'm trying to design at the moment is a way for my android app to avoid polling the server too much, and caching the data.
So it is okay for data to be deleted
 
user457812
Then it probably doesn't matter though I'd say if you can avoid it, don't use statics
 
user457812
Statics variables are typically just an admission that a person was too lazy to pass the data around correctly
 
Wio
4:37 AM
I've been looking through the storage options page, but I'm still unsure what the best place to store the cache is.
@nil Maybe not lazy, but naive.
 
user457812
It varies depending on the purpose, and sometimes it's just unavoidable if two things in the same process have no communication route. Still, more often than not, there's a path through the code that would permit passing the data along without making it global, but a lot of people will ignore that.
 
Wio
For example, I've created a static variable which stores cookies for the app, and when it finds out that this variable is null (not yet loaded or deleted), then it will reload them from shared preferences. It periodically saves cookie changes to shared preferences.
By periodically, I should say it saves changes whenever a change is made.
Every request needs the cookies so I put it in static class to make it global.
 
user457812
I'd probably be worried about thread safety in that case.
 
Wio
Yes, concurrency was a concern as well.
Anything that would mutate the static variable would need to be atomic.
Which now raises another concern. If the UI thread is blocked for an instruction that will not take very long, will it still detect that it is blocked and complain?
 
Wio
5:19 AM
So I might have to create an AsyncTask just to keep things concurrent.
 
morning
 
user457812
@Ahmad Just so you know, this would toggle spellcheck without the need for a plugin: { "keys": ["f6"], "command": "toggle_setting", "args": {"setting": "spell_check"} } (this is also a default keybinding)
 
user457812
So, FichteFoll's probably going to reject the package
 
:|
oh.
Good to know that lol
Closed the pull request, ty nil
But I still learned how to create a ST plugin, so that's not bad.
 
 
2 hours later…
7:15 AM
Morning
 
 
1 hour later…
8:44 AM
Morning
 
9:04 AM
Morning!
 
helloo
 
How's it going
 
Morning
 
user457812
9:22 AM
'Lo.
 
Yello
 
Ola
 
10:02 AM
o/
 
 
1 hour later…
11:02 AM
I walked one hour less in July than June, thank you google now
 
11:53 AM
not creepy at all
lol
you have gps on all the time?
or do you have on of those fitbit-kinda tracking thingies?
 
yeah it's GPS. Easy to leave on with the way they have arranged it now, all under 'location' tab
 
12:35 PM
ahh yeah
 
12:50 PM
Good morning
 
do you guys use the emulator or just debug directly on a device?
 
good morning
 
hi cM
 
device
 
debugging on the emulator is insane
 
12:58 PM
tru dat
 
ok so now i understand why it has been driving me insane
 
I use a device as well
 
u r so young bor
 
I think I used an emulator for about a week
 
think i have wasted most of the day.
 
1:01 PM
@DaImTo check out Genymotion
way better than the emulator
 
I want to buy a mac
 
but it doesn't have any L preview or wear VMs yet
 
But still not as good as a real device for actual debugging
 
cool bb, you should. Macs are awesome.
 
I want you to buy me a mac also
 
1:02 PM
they are expensive too
I am having lot of issues with the cooling system of my poor dell
I can't develop for 20mins that it shuts down
 
oh :|
 
build your own PC
a lot cheaper and crazy specs
 
yeah sounds like it's time to get something new
or what RED said
 
i would like a laptop that didnt break my back to carry
 
macbook air! :)
 
1:05 PM
I don't have enough space @home for a pc :/
 
thin and light
 
i am having issues getting debuging to work on wear thought the emulator would work better.
 
i bought a chromebook for carrying around
 
@Ahmad i dont have the wallet for a mac anything
 
I need to build/buy a new one for home. It's more than 5 years old
 
1:05 PM
but deving on that is not possible obviously
 
why it is not possible, red?
 
its a web based OS
so no IDE
 
I see
 
unless you install ubuntu
they are pretty low spec devices in general though
mine only has 2GB RAM and a 16GB SSD
 
Last time I was looking around, it didn't seem all that much cheaper to build one
But I guess it depends on what you want
@bbhelp you don't even have enough rep to chat...not even sure how you were able to request
Go be productive on SO and come back
Is that your sock puppet account, blackbelt?
 
1:11 PM
no it is not,
orb
 
:D
@Ahmad what happened with Nima. It seems you gave them access. Did you take it away?
 
there as a link at the bottom where you can request permission to chat
 
Yes there is...
But you are supposed to have 20 rep to be able to even request
 
didnt know that he only has 1.
 
Yep
 
1:13 PM
ahh it was so depressing when i had low rep
 
I posted on meta about a bug that < 20 rep users can sometimes request access but it didn't get any traction
I know, I thought it would be years before I got up to 2k
 
it goes fast
 
Ah, that was a year ago you gave Nima acceess
You have it back for now, @Nima. Don't know what happened
Everything here still applies
Aug 5 '13 at 11:54, by Ahmad
@Nima Welcome. Please read the room rules, use proper english and don't use this room as tech support.
It does go fast. It seems especially once you get up over 1k
 
I still have low rep
I'm a total noob
 
All in all we all are noob
:'D
 
1:30 PM
Thanks @codeMagic
 
You are very n00b bor
Sure thing, Nima
 
Do you all remove Log.d, Log.i etc from your code before releasing an app? Random thing I've been wondering
 
My browser was jacked up there for a minute and the whole convo was skewed
I think it's a good idea to. I leave some...just depends
But I do a lot of random shit so maybe don't listen to me on that
 
Sometimes I get too lazy to read the log so I just put Toast messages everywhere so yeah.. at least it's easy to remember removing those
 
1:46 PM
Nope, I wrap Log.d in my own function that gets disabled if the production flag is enabled.
Probably a better way is to do it via your build chain
 
6
Q: Removing Log call using proguard

user1667307I am trying to use proguard to strip all my logs: I have entered the following line in my proguard-project.txt: -assumenosideeffects class android.util.Log { *; } And my project.properties looks like this: proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt I...

 
whats better toast or log.d, if i understand them right log.d goes in the window in android studio while toast seams to pop up on the phone.
total beginner here want to be sure i am following best practice. It would be stupid to learn something i shouldnt be using in the first place
 
Log.d
Toast is for the user not the dev
 
Logs with productions flags, interesting
 
ahh ok that makes sense. its the equivalent of using message boxes to debug, which i need to stop doing.
time to lay off toast.
 
1:55 PM
For the most part I agree, Glitch...
But there are times when I would rather have toast to see what is happening
Of course, I can't think of an example but I occasionally use them
 
0
A: Android: creating alert dialog when back button is pressed

Rajesh Mnot just finish(). use MainActivity.this.finish();

 
:D
 
Hello, Android!
 
not just Hello! but MainActivity.this.Hello()
 
Lol
 
2:13 PM
ok next beginner question, Debug command line? or just hit run in android stuido?
 
you mean like ddd?
I doubt they support something like that
 
@Glitch I've started using Timber for this purpose. Seems to work well.
 
Nice, thanks!
 
> every time you log in production, a puppy dies.
 
I hate apps that put a dialog up when you press the back button
 
2:19 PM
Indeed
I think the only one I use that does is bike race
 
DID YOU REALLY MEAN TO NAVIGATE AWAY FROM OUR APP USING THE BUTTON THAT HAS THE SOLE PURPOSE OF NAVIGATING AWAY FROM OUR APP?
 
"Yes I'm sure I want to exit... I pressed the button that exits"
 
OKAY, CLICK IT AGAIN TO CONFIRM
 
or alternatively if I did not mean to hit the back button chances are good that your UI is trash and has some button that is too close to the back button
 
2:23 PM
"Congratulations! This was only a test. You passed."
 
@fahdijbeli rejected for virtually no answers on SO, excessive pinging, and you seem to only want support. Go forth and contribute
 
The F1 app is the worst for the back button thing
they ported the iOS version and yeah.. the back button exits the app on every single page so they had to put a dialog in
idiots
 
@Code-Apprentice this is right up your alley
http://stackoverflow.com/questions/25082196/what-are-the-efficient-testing-techniques-for-testing-android-apps
 
lol RED
That's terrible
The only app I have that I can think of that does it is the NHL one, and that only does it at top level.
 
2:28 PM
yeah, such a terrible app, i even offered to help them haha
 
It doesn't give a dialog though, just a toast. "Press back again to exit" blah blah.
 
This is why I love meta...
TAKE THE MONEY! — codeMagic yesterday
 
Did you take the money?
Did anyone ever get paid by that guy who was trolling for help and offering what, like, 7/11 vouchers or something?
 
I wasn't offered it. But if you look at my comment on the answer I did buy a bridge
Haha...I seriously doubt it. I don't know what happened with that
 
Righto so back to work. Trying to figure out why I can't create this DB table. OrmLite is complaining that it doesn't know how to reference a custom class, but I'm creating a table that only has strings and ints :( :( :(
 
2:36 PM
@codeMagic Not that I know of
 
solid 20 minutes trying to figure out why my share intent wasn't firing... and it was because i forgot to add in startActivity.
 
lol
 
a classic :D
 
my day in a nutshell
 
2:40 PM
Ahmad, I realized after I said that it was a year ago so probably got removed during end of the year clean up. I think someone did that for users who hadn't been active
 
yup
probably
my day in a nutshell
 
Haha
 
@AndroidDev Rejected for a too generic name and your q:a ratio.
that's ridiculous
lol, from the comments on HN:
> Of course! Because the market for yo-styled communication software and devices is worth around 7 trillions USD.
If twitter is valued around 50 billions USD with 140 char messages then it is only fair and sensible to value Yo at ((140 - strlen("yo")) * twitter_valuation) USD.
 
haha
 
3:07 PM
I just found a really major bug in Lux >_<
It's mathematically possible given the right combo of data to make the algorithm spit out -infinity as a result
HOW TO MATH DERP
 
full brightness forever!
yaay
 
It's not a brightness output, it's an eye perception index
(yeah, Lux gets really complicated under the hood >_<)
 
Are you saying we could potentially see INTO THE PAST with Lux?!
 
more like it assumes the human eye has infinite contrast :P
 
So that's a yes, then.
 
3:13 PM
Sure why not
 
has science gone too far?
 
eye perception, how many things are you monitoring you lunatic!
why are the android design icons slightly transparent?
so annoying, i basically can't use them
 
3:29 PM
ugh right?
it took me too much time to figure that out
I always wondered why they look so weird
 
@Harish Welcome. Please read the room rules...especially #4
 
Thanks @codeMagic
Guys i want to run mapsv2 on android2.3.3 device but it is googleplayservices missing in the log.
 
3:45 PM
read again #1
 
rob? Lol!
 
ahhaha
 
cm somebody replied to you
 
haha right after being told to read rule number 4
i love it
 
3:52 PM
I saw that. Haha
 
Oookay so how can I be getting an NPE here? I don't get it.
setStartDate(project.getStartDate() == null ? null : project.getStartDate().getMillis());
Assume project is not null.
OKAY GOT IT.
Method takes a long, so passing null causes an NPE?
 
i did that i think
 
depends on the method
 
have to pass a valid long when I was converting unix time
but it threw a error in the code, it wouldn't let me run the project
 
Yeah, it let me run this, for some reason.
 
3:56 PM
if it does return a Long
 
Yeah it'd work if the DateTime object wasn't null.
No matter. It now defaults to 0.
Guess I have to assume that 0 --> null when building the object back out of my table.
 
I usually use -1 for something like that
 
-1 is every bit as valid as 0 for a DateTime though.
 
damn, now just realised my gettime thing is returning the wrong time
gotta add that to the list
 
but having a negative value makes it more clear (in my mind at least) that it is a stand-in for 'null'
 
4:05 PM
Hmmmm I wonder if I can just swap in Long for long, as I think SQLite can handle having both data types (a number and a null) in the same column.
Alternatively, I could enforce that created/updated/start/end times always exist... Hmmm. That might actually be superior.
 
4:26 PM
0
Q: Android Fetch returnd ArrayList from function

TuxWorldIn this simple of function I created ArrayList of type Items class. My problem is to fetch this object in MainActivity. Please help me. Items class: package com.example.Hadis; public class Items { public int id; public String content; } getFavorite function in DatabaseHelpers class: ...

are those the same question?
 
Looks that way
 
5:00 PM
That guy's Google must be broke. He's asked a lot of questions in a very short amount of time
 
google broke him
 
Today I installed AS
fuck
 
and codeMagic flagged him
 
you are such a badboy rob
 
Sorry, Reno
I know. It's also part of my charm
 
5:04 PM
So I just discovered what aussie geek ladies are doing
 
oh i think i will animals
 
When can we flag to delete a question? I thought it just needed to be closed and a downvote or something like that
 
5:23 PM
You can cast a delete vote yourself if you have enough rep
Which question?
 
That's what I thought but I didn't see an option on this one. It's deleted now but...
http://stackoverflow.com/questions/25083464/android-fetch-returnd-arraylist-from-function
The one bb linked to up there
But delete wasn't there so I flagged for mods since it was an exact dupe 30 minutes apart
 
OP deleted it
The delete link appears on close and -1 overall score, iirc
 
Right, but before that there wasn't a delete button
That's what I thought also, so I downvoted it but still didn't show
 
weird what is your reputation score , is it less than 10 K ?
:D
 
Maybe that's the problem :P
 
5:26 PM
lol
 
@codeMagic yes you should check your reputation score :p
 
\o
 
\o
 
hate talking about reputation specially when its around 10k >.<
I dont like to answer anymore.
 
5:28 PM
I don't answer anymore
 
me same
 
Still average about 200-300 a week from my old answers
 
When people with tons of rep talk about how they dont have enough rep
user image
2
 
Average 10-20 I get every week :D
 
Ah, they still marked my flag as helpful so that was kind
 
5:32 PM
I get OAuth 2 now, Ive seen the light!
 
No they are not kind @codeMagic
 
Lol!
You don't like mods?
 
don't you know when you flag any question then either if OP deleted the question then it automatically convert your flag as helpful
it does not matter whether it was wrong or right
 
I did not know that
 
then moderator did not mark your flag as helpful afaik
 
5:34 PM
Oh, thanks for nothing mods :D
 
yeah you should know :p
hahaha
 
I really should. Kind of new here. Please forgive me
 
hmm no problem just kidding :D
 
Haha...I know
 
5:35 PM
that's good :)
 
afternoon o/
 
\o
 
\o
 
@codeMagic I like when they mark my flag as helpful not when they decline without any strong reason
 
5:37 PM
I agree. Sometimes they get it wrong but a lot of times users don't see the real reason behind the decline.
It would be nice to have some dialog when they decline but they are busy with enough other things
 
hmm but as my experience there they always give you a reason when they decline your flag, didn't they do in your case ?
 
Remember, mine was 'helpful'
 
haha
 
Yes, they give a reason. I was just commenting on, "not when they decline without any strong reason"
Sometimes it doesn't seem like a strong reason but we might not always understand the details behind it. That might explain why you feel it isn't a strong reason
 
yes got you
 
5:51 PM
So I was trying to use the Google API library for Ruby and was having a lot of problems just autheticating. I though, wow if the library is this complecated then what is the raw http request like? Turns out you redirect the user to a webpage from google that asks for permission, then it redirects back to you... and in the redirect is the oathtoken you have to include in api requests. so like 2 get requests.... took me 5 minutes to code. wtf google
 
00:00 - 18:0018:00 - 00:00

« first day (1385 days earlier)      last day (3545 days later) »