« first day (1225 days earlier)      last day (3948 days later) » 
00:00 - 19:0019:00 - 00:00

00:00
kinky
We also had our own place for a while. Our own little git server.
so cute!
Seriously? hahah
What retard wrote that 0o
america where ignorance is equal to knowledge
00:08
yet another parody
so i made a cup of tea
then I found an ant floating in it
tried to get the ant out
it kept sinking into the tea
took the teabag out, balanced it over the cup with one spoon, while my daughter stirred with another spoon to try to get the ant back to the top
Hello, All!
spent a good 5 minutes like this
then decided to strain the tea through a strainer and into another cup,
Just make a new cup of tea!
yah, thats what i ended up doing
now Im scared to drink it
in case another ant snuck in
00:10
your tea is already ant flavored
after stirring it so much
user457812
looks up
like hell, no one has ever felt electricity
user457812
I'm pretty sure even creationists aren't that stupid.
gotta run
see you all Monday
o/ carl, enjoy canlis
00:13
also, that's what happens when you drink tea... Exhibit A) I just made an espresso and it was ant free.
the espressos at my house come with ants as well
Ants love you
user457812
The only problem I have is bats living in my armpits.
user457812
Could be worse. Could be huge clutches of spider eggs.
challenge accepted!
although Im not sure it needs to be a tango app
00:18
the hell is tango?
tango is lame
I did a 3d mapping project in school, it was a lot of fun
anyone know if it is going to be an android API?
00:37
yup, they'll use it in android, but laaaater
00:53
Always nice when I can deduce something and people agree.
1
Q: Why is the Fragment element in Android layout written with a lower case 'f'?

Lucas TulioAll other elements start with an upper case letter, like RelativeLayout, TextView, etc. Is there a particular reason why the Fragment element is always used as <fragment ... /> instead of <Fragment ... />?

 
1 hour later…
01:59
Fucking mp4
I have to encode 1000 videos to webm because it won't play in firefox (because of licensing issues)
Scripty time!
I'm calling ffmpeg from a python subprocess to convert it
If my calculations are right it should take 13 days lol
so yeah, have to make it multithreaded
That naive and simple approach with "one video done?"-> hit the other one up, won't work
o/
Fixed a problem in Pearson's answer. That's my Saturday done.
02:11
which one?
@Avanz Welcome. Please read the room rules.
The one a few lines up.
haha :P
I was up at around 11 last night (which is quite late for me, of late - been going to bed around 830-9pm), and there were so many unanswered Android questions!
A quick scan down the page indicated they were pretty much all duplicates. So I sighed and went to bed.
lol
Yeah a lot of people don't know how to google
I swear that NetworkOnMainThread question pops up every 6 hours
That's it?
02:16
"NetworkOnMainThread"? What does it mean? Is it like NullPointerException?
Thou Shalt Not access internet on UI thread.
...and it begins.
That's one of the biggest sins that an Android developer can commit.
(I recently was doing that by mistake...)
Sorry, I was being sarcastic.
I know full well about running network operations off the UI thread :P
What, you're saying there's another way to do network operations other than on the main thread?!
2
Life: shaken.
02:17
LOL, I thought so, but...
So this showed up the other day: trademe.co.nz/mobile-phones/mobile-phones/lg/… Contemplating buying it.
The black ones are $600 retail here anyway.
Doing the converting
what i do is create a runnable with an asynctask inside it, then on the postexecute, do the network call inside a runOnUithread, with anotherrunnable in there.
works every time.
Sounds like a good price
Lol neb!
the banner ads on an n7 look really freakin big.
02:23
What other things are common mistakes that Android developers do?
Not understanding re-use of convertView in an adapter.
^ this
dinnertime...
enjoy the weekend you guys
Never heard of that, that's interesting. Hmmm...
(i was kidding about the asynctask thing, fyi)
Hahah, figured.
02:29
Wait, you guys also wrap all your layouts in 5 other LinearLayouts right? I like that pretty red the overlay tool gives me.
I know Bitmaps and Typed Arrays need to be .recycle()d. Anything else?
user457812
MotionEvents.
user457812
They'll usually be auto-recycled unless you allocated them yourself, though.
user457812
Which is why you never keep a reference to a MotionEvent you receive as part of an event function.
Hmmmm....
This is turning in to a fun mini project:-)
If I could just remember the type of listener that you can't create on the fly, because otherwise it'll be garbage collected...
user457812
02:37
@iMS Rejected for this:
in iOS tutorials, 12 hours ago, by iMS
@SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry @SaadChaudhry
user457812
A complete list of classes with zero-argument recycle methods.
Interesting...
user457812
AND THIS IS WHY PEOPLE DEVELOP ON A MAC.
Parcels maybe too? It looks like the key ones are BitMaps and TypedArrays...
02:38
Where are you looking that up nil?
user457812
In Dash.
user457812
kapeli.com/dash ⇐ Dash.
user457812
I am the resident shill for Dash because I think it's the most useful thing I've ever bought.
onSharedPreferenceChanged is the one I was thinking of!
That looks nice
$18 though :/
user457812
02:41
Because that's totally a ton of money for the most awesome documentation browser ever
But a fair price
user457812
I paid $30 for it and I thought that was fine.
Did they scrape all the documentation sites off or how do you think they gathered all that?
Heh I am studying for my HAM licence.
02:48
Cool, how's it going?
What do you mean with
> Thou shalt Not define an interface programmatically, but instead shall use XML code!
Will change to View.
Ohh, but still. It does make sense sometimes to do it programmatically. Nothing wrong with that ;)
> Thou shalt Not programmatically define a View, but instead shall define it via XML code!
Still, 90% of the time that I've done that, I've later regretted it.
Ahmad caught it, you're too slow;-)
Haha, should've read before I hit CtrlV
02:50
I mastered the Technican questions in couple hours, I am usually passing General now, but haven't passed Extra yet.
I think that's got all of the big ones.
Extra almost requires a degree in Electrical Engineering (Which I have...)
Today I'm going to see if I can get a PopupWindow to display on top of a Daydream.
General will get you 90% of the access that you'd need, so I'd suggest you just take the test, and see how you do. You might as well take the Extra too, but...
Line length: 171. Fuck PEP8, right? Some code you find online... :|
It's one of the things I always wanted to have but never actually did.
user457812
03:10
@Ahmad I'd assume the docsets are generated from the offline docs included in the SDK.
Ah okay
I'd assume some of the docs are hard to index, because they are structured a bit weird
user457812
He's got utilities for converting javadoc stuff, so might be partially based on that.
Could be
user457812
Fried soft tacos with beans and cheese make for a good dinner.
03:29
Ahhh, Android Studio. Using all my gigahertz.
o0
Does that at startup
I've got two instances running and I'm not even noticing them
Ah
user457812
I've only had IntelliJ use all my CPU when I flushed the caches and it rebuilt them all right then and there.
user457812
Well, all of my CPU for at least one core.
03:48
Alright, got a PopupWindow showing an image loaded from Picasso. Nao, let's try show this on top of my Daydream...
Hmm found a solution to my encoding problem
I may have not convert 1000 videos to another format
04:06
0
Q: Android-flavored Java initiation

Taylor EvansonI asked this question, someone answered it really well, and now I am here -- concerned about subjectivity, respectful of you all (enough to do my homework), and diving into something I know nothing about. However, when spreading thinner you can save frustration and time with direction. Especiall...

> However, when spreading thinner you can save frustration and time with direction. Especially when there is so much out there and your friends work for either a call center or a weed-ful local named Madison.
wut
Errr.
Yup, SSL on iOS is completely compromised. Possibly on OS X, too. But don't worry, Apple is pushing out updates...via SSL.
Oh dear.
rlove?
I'll fix that, sec.
A "privileged network position", wonder what that means.
lol
So my PopupWindow idea was waaaay over engineering the problem. I just put an invisible ImageView on top of my ListView, and loaded the image into that.
It's like 4 lines of code rather than a million.
04:14
hahah
Yeah I know the feeling
sometimes you get so winded up with your initial thought that you blend out the really obvious approaches
Now to add some scale in/out animation.
Haha yeah, definitely. Good to have someone else around, they point out the obvious solutions you don't see!
any idea how to play sound in c++?
04:54
nope sorry
Since when are you awake on 4am @ed? :p
user457812
05:09
That was a weird encounter.
user457812
Never had someone react poorly to jokes about replacing one's armpits with spider eggs.
Thank you for all the votes, people :)
user457812
Reminds me, need to do the voting thing.
user457812
Ok, done.
05:36
o/
\o
So this fade in/fade out animation thing is really easy to do.
05:49
Yes, fade in/out is easy, especially for the result
I feel like the default animation time is too long.
So I changed it to the default "short" animation time
And I feel like that's too short.
And their values look like this:
<public type="integer" name="config_shortAnimTime" id="0x010e0000" />
<public type="integer" name="config_mediumAnimTime" id="0x010e0001" />
I've never seen this notation before.
I mean, it's clearly scientific notation.
longAnimTime is 10e2
So, as far as I can tell, that's 10/100/1000 milliseconds.
Ok, let's try 30.
user457812
06:04
Uh, that's hex, not scientific notation
user457812
Not to mention that's an ID, not a time
user457812
Well, penguins are officially doomed
06:20
HAXM?
@nil Ugh. Of course it is. I guess I just saw what I was expecting to see, and I expected to see value="1000" or similar. And 10e0000 is... a large number.
17694720, to be exact.
Mostly referring to all the other tools, particularly the XDK
user457812
It's a number, but it's not a duration.
Yeah, I didn't see the 'id'.
Wow. Neighbours are having a huge go at each other.
Sounds like some are moving out, and are cleaning - I can hear a vacuum running. It's 730pm, no big deal.
One of the other neighbours walked into their flat, grabbed the key and is telling them to "close the door cos they're making noise and it's unacceptable."
Um. I didn't even notice it, but I noticed his yelling. Shit mate.
And he won't give them their key back.
Wonder if I should call the cops./
Record it > YouTube > ??? > Profit!
06:32
Ugh, they stopped.
What's wrong with a "Hey, could you close the door, it's a bit noisy"
It's not the Alpha Male way
Clearly.
lol
Sony... Y U NO RELEASE SEINFELD ON BLU-RAY?!
That'd sell like hotcakes
Especially since the HDTV broadcasts are better quality than the DVDs -_-
user457812
06:55
Probably so they can push it as downloadable content you can only have for 24 hours on PSN?
07:06
eh, doubt it
hey, good morning everyone !
07:24
o/
07:41
I wrote a bot to keep hitting my colleague's blog with an IE6 User Agent so he has to keep supporting it. I feel terrible * * not that bad
 
1 hour later…
08:51
Finally got around to watching 'Monty Python and the Holy Grail'
and I didn't find it that funny
 
2 hours later…
10:24
I'm thinking of cutting off old API users from the new version of Lux
93% of my users are on Jelly Bean, so I think the rest are going to have to deal with it
 
1 hour later…
11:26
Occasionally I enjoy trying to solve an error by looking at code without a stack trace, but I'd rather have the stack trace most of the time...
11:38
0
Q: java.lang.NoClassDefFoundError: java.awt.Dimension when insert image in android app using apache poi & MS Excel

funfordeveloppingI want to insert png image inside my sheet using apche poi to do that I use this code : //add picture data to this workbook. InputStream is = new FileInputStream("/sdcard/MYAPPFOLDER/logo_app.png"); byte[] bytes = IOUtils.toByteArray(is); ...

11:52
Hi Guys, could someone help me out with this question: stackoverflow.com/questions/21861946/… @jacobhyphenated gave me the answer but I'm still having trouble declaring a variable to pass an int value to the next page. Any help would be much appreciated.
You can pass those using bundles
@TGMCians even if I've assigned values to the radio-buttons using setTag() ?
Explain a bit what issue do you have
I have it explained thoroughly in the question: stackoverflow.com/questions/21861946/…
Ah I see
There is no need to call this openTest2(); in your next button onclick listener
12:00
Ok, but I need to open the next text page when the nextBtn is clicked also
Yep
that you have already written in your next clicklistener
Try and you should get the the value of EXTRA_RESULT in your Test2.java
Oh yes, I see now
Well
I am getting a red line under result: Illegal modifier for parameter result; only final is permitted
Can I declare it as final or does it need to be static to carry the value to the next page?
I don't know why are you making this static, even there is no need
You can make it final
12:05
Perfect, ok that has gotten rid of the red line under result at the start, in the intent code I am getting a red line under result there too: The local variable result may not have been initialized
I'm sorry for all of the questions, this is my first android application
It would be good if you read the Java before Android.
Anyway
You can either declare the result var as instance variable
and for your question , you have to initialize the local variable, If you are making it final then you have to initialize it at the same time with the result because final variable once you have initialized those then you can not change it later.
    final int result;
    result= (checkedButton.getTag());
Error: Type mismatch: cannot convert from Object to int
grumble grumble shitty Andoird shit grumble
when I change it to Object it doesn't work as putExtra accepts (String, Boolean)
It really shouldn't be such a PITA to change the type face for ActionBar tabs
12:15
Asley, don't ping here much
oh, sorry, I didn't realise that
because owner can take the action in a second to revoke your write access
getTag() returns an object
You'll have to cast it to int
Make sure that when you use setTag(), you actually put an int there
Otherwise you'll just end up with a new problem
What I have done with that is used android:set in the xml and defined them in <resources></resources> as integers with their value
How do I cast it to integer
12:27
   	final int result = (int) Object;
    result= (checkedButton.getTag());
That isn't working for me
result = ((int)checkedButton.getTag());
Try this
You can't have a final , and then reassign it in another line
The keyword final means that value can only be set once, in its declaration
After that it is finalised and can no longer be changed
^ agreed, I explained this very well
Thank you. int result;
result = ((int)checkedButton.getTag());
Error: Cannot cast from Object to int
Oh
((Integer)checkedButton.getTag());
12:35
Yes, thank you thank you thank you :)
No problem, but follow the rules here
 
2 hours later…
14:54
Is it really true that you have to use a custom View for tabs to change the typeface? This is pretty bullshit.
ActionBar Tabs?
You don't have to
Maybe it's because it's 2am, but that's the only solution I've found
It's really frustrating because the typeface I want to use is inbuilt into Android too -_-
Tempted to just write my own Tab class
15:10
Wait
Let me just search something
I ended up subclassing TextView when I did it. Though I was doing ViewPagerIndicator, not tabs.
these are ActionBar tabs
which means extra fun
I'm quickly throwing something together
that should work
I have hated pretty much everything I've ever tried to do using the ActionBar
I often just get annoyed, change my activity to NO_ACTION_BAR and represent it myself with a RelativeLayout
Hmm of course now my adb won't work
15:20
That was my original plan, but I mistakenly thought "let's make life easier with the ActionBar!"
To be honest this idea will probably just be one big journey of 10ft hurdles
Why won't my adb work 0o
cannot bind 'tcp:5037'
but I killed everything on that port
The curse of the ActionBar has been released... no solution shall ever be found!
Yeah that's it
Isn't using a custom view pretty straight forward anyway?
ah now it's working
15:28
@RED_ It's hacky and horrible
I like it, although I hate when things don't line up. I use it to show the users name in the centre and a refresh button which was easy enough thankfully.
@Glitch Try this
Haven't tested it yet
but it should work
is this repurposed existing code? :P
Yeah
I used it to something else
Wait, I had the other method name still in there lol
Now it should work
what am I passing into that method?
15:42
Pass in that
ViewParent root = findViewById(android.R.id.content).getParent();
setCustomFontToActionBarTab(root);
That's the view on top of the DecorView if I'm not mistaken
Haha, it does work!
yay
You sir are a gentleman and a scholar, a wizard even!
^agreed
15:44
lol
Now I just need to work out how to grab inbuilt typefaces :P
ahmad, you have a jar version of volley around?
No, why?
was looking to test it out but wanted a jar version to use
I think you can always get it from maven central
this should be it
15:59
oh it seems so :^_^
now to start tinkering
Now I remember why I kept putting off v2.0 of Lux...
Android is 99% wasting time, 1% productivity
lol
still waiting on Lux v2.0 >_>
16:14
I'm working on it now
But for some reason it crashes if I try to use Roboto Light -_-
Haha that's really good
the ending is epic
RAWRRRR
How is it that Roboto-Light.ttf breaks createFromAsset(). You'd think of all fonts this one would work.
16:32
is there a way to to make e.printStackTrace(); use my TAG instead of System.err ?
0
A: how to give method to getDrawable()

Florescent TickerThe getDrawable() method requires id of the resource and in this case you are passing Button. Try passing R.id.button1 Here is the documentation

Guys, I don't think we can pass the button id in the getDrawable()
If we pass then might sure it will throw the exception
@Domecraft Welcome back
Ahmad, can you confirm for above messages
Hm? why can't you pass in the id?
Aah ok
16:41
button id in the getDrawable() ?
Yeah you can't pass in an id like that
it has to be the resource id
That answer is wrong
hmm Thanks
We should downvote the answer
yup
 
1 hour later…
17:57
bloody custom view action bar is not centring text, turns out is a bit hacky and annoying haha. (Re: earlier conversation on here)
yeah, I'm probably going to write my own
my problem is that I need the overflow button next to the tabs, so I have to make a crappy pseudo actionbar
@hamidp Welcome. Please read the room rules.
18:40
reflection on 14+.. how bad it is ?
is it*
It doesn't work! And I'm more than pulling my hair out.
reflection doesn't work?
I only used it a few times
was pretty simple
Maybe you need a... mirror API!
HAW HAW HAW HAWWWW
there is a joke in there about vampires having no reflection but im not going to say it as its other connotation isn't fair
dunno anything about reflection...I'm working on my baseball card app...and I'm quite frustrated
18:48
You use reflection all the time. Guess how activity classes are instanciated when there is just a textual name in the manifest
zapl^
Ahmad^
so it seems there are device's where the expanded search view is wider than the screen width
I know there is no perfect answer to this, but what have you guys found to be a good background image size in Pixels for a phone like the S3 and similar sized screens?
the size of the screen?
18:59
Don't mock me zapl ಠ_ಠ
or a nine patch?
00:00 - 19:0019:00 - 00:00

« first day (1225 days earlier)      last day (3948 days later) »