« first day (1678 days earlier)      last day (3496 days later) » 

13:07
lol
wow I just switched from Darcula to Intelij. Super awkward moment
¡hola amigos!
13:25
o/
from darcula to the white theme?
Good morning
yo cM
13:26
Morning neighbor
Anything exciting going on this morning?
Nope, I woke up late but still made it to work on time
yes Ahmad, almost imposible to program on white background
How's that for exciting :D
Try_me, you're brave. I don't think I would ever switch from darcula
Yeah I like the Darcula theme more as well
13:27
is it possible to define an aspect ratio to a view after setting one of its dimensions?
Just don't ever start on blackbackground coding.. I've had this same discussion with people who play MUD
but I want a new code color scheme
the orange keyword colouring is getting tiring
Darkscreens are much worse for your eyes.
Oh fight soon to begin
lol
13:28
let me first grab my popcorn
I'm still using Dracula
I tried light backgrounds
with sublime text
Darkula its better for many reasons
but I just couldn't do it
I still use Xcode's default theme (with white bg)
13:29
You "Constrain?" your eyes a lot more on dark screens
you don't, as long as the ambient is well lit
bottom line is: don't code in a dark room
30
Q: Dark or white color theme is better for the eyes?

Jack TwainThis is not a programming question, but it concerns the programmer itself. So I don't know if it really belongs on this site. But my question is: what is better for the eyes, a dark color theme or a white color theme?

Hey everyone
Hey Tristan
I use gold and white over blue and black
13:31
Hey cM!
I have never seen the light on in my boss' office. Sometimes he has a lamp dimly lit. Don't know how he does that
Yo, tristan
"traditional black on white"? Kids these days... — Michael Mrozek Jun 6 '10 at 17:45
How's it going everyone?
Fine thanks, you?
Good, pain meds doing their job thankfully
Anyone else know the Futurama episode where they get a 300 rebate for taxes?
13:34
another reason why samsung sucks:
I'm trying to open Instagram from within my app to share an image
I use try {startActivity() }, and if there's an exception, show a snackbar with an action to go to the playstore
however, this shitty samsung product does not throw an exception. Instead, it shows a popup saying it doesn't know what to do
try explicitly querying if there's an activity
22
A: How to check if an intent can be handled from some activity?

MoshErsan PackageManager manager = context.getPackageManager(); List<ResolveInfo> infos = manager.queryIntentActivities(intent, 0); if (infos.size() > 0) { //Then there is application can handle your intent }else{ //No Application can handle your intent ...

something like this I guess
hmm, nice
oh the delusion
why is it that quora so heavily indian dominated/biased?
13:38
Is the bot working today?
!/stats
@TristanWiley That dude sucks
Damnit :P
!/catgif
!
Thanks bot
@AndersMetnik That didn't make much sense. Use the !/help command to learn more.
13:38
!/cats 200 200 LOVEYOUALL
Hahahaha not much love in that cat ;)
Nobody in the UN deserves to be elected as a new veto power
I'm for abolishing this veto system
I thought you will say "thank you sir" or something like that… but okay.
!/urban Futurama
13:39
@TristanWiley futurama the best TV program ever created. Evily canceled by fox.
nice, sarge!
thanks
That is like, so true
:P
did it work?
!/urban Futurama 2
13:40
@TristanWiley futurama A great mature animated show, jerked around by FOX, pre-empted most weeks, then cancelled for "lack of ratings". FOX have now culled their cash cows down to The Simpsons which is a sad shadow of its former self, and World's Blankiest Blank...
Urbandictionary, you so smart
Last one
!/urban Futurama 3
@TristanWiley Futurama REALLY FUNNY animated series by Fox, featuring an intergalactic delivery crew in the year 3000. Look for it on Cartoon Network's Adult Swim, because Fox cancelled it... :(
!/urban android
!/urban Peeing on the same bush
@SargeBorsch android The famous Google made operating system for mobile phones. First debuted on the T-mobile G1, android is used on many different phones. Much can be done to the linux-based mobile operating system.
@TristanWiley Peeing on the same bush A replacement for "[On the same page]". Means that you are in agreement with someone else.
13:42
Can we please not use bots for such unnecessary things?
this is just spamming
Sorry Ahmad
just wanted to look some things up :P
the main reason we have the bot is for the access requests
Please forgive me
Please don't have me flogged Ahmad
dude chill
chill with carne
13:44
chili con carne
!/flog Tristan Wiley
@AndersMetnik That didn't make much sense. Use the !/help command to learn more.
13:45
!/spank Tristan Wiley
@SargeBorsch That didn't make much sense. Use the !/help command to learn more.
dude chili
Mmmm chili
oh the delusion #2
so many biased idiots on quora
13:46
Can someone please help me with a project i have migrated to Android Studio, from Eclipse please
whats up ?
which help do you need?
I'd like a new pair of eyes
if you don't use NDK stuff, then it must be easy
omg I'm dying
13:47
We all know this, Ahamd
I'm sure nothing's changed since the last time I was in Pakistan
Don't die Ahmad master
mumbles something about Ahmad complaining about spamming...
I have an idea — to actually implement spank feature for the bot. It should generate an animated gif or webm with the user's picture and… spanking.
Then Ahmad or other room owners could easily spank anyone.
when i goto build the APK using Gradle:assemble i get the error 'Fragment should provide a defailet constructor.' now i can see taht its asking for a constructor with no parameters, but in eclipse i did not get this error so my code is built around using a constructor with parameters. So, i add a default constructor with no parameters and then i get the message 'Avoid non-default contructor in fragments: use a default constructor plus fragment#setArguments(Bundle) instead [ValidFragment]'
13:49
How long ago, Ahmad?
get rid of all constructors in Fragments
simple as that
because they are only creating problems
then how do i use the fragment? when i need to pass in parameters
use "Arguments"
Use static constructors
setArguments/getArguments
13:50
yeah
like MyFragment.initiate(Bundle)
not done anything that way before
That's how AS generates Fragments btw.
Try_me34 static constructor doesn't make any sense
It makes, that way you dont have to call setArguments from the calling class.
13:51
@matty357 everything is done for the first time the first time
You call it inside the static method
is there any reason eclipse allows this with no errors and the app works perfectly
it does not work perfectly
it's just your lack of testing, I think
@codeMagic It's been quite a while. But we've got pakistani news channels running in our house, so I know the situation has been only getting better in some urban parts of big cities. Illiteracy in rural areas is still very high, so is extremism etc etc.
whenever Android needs to re-create your Fragment, the app will die
13:52
That's not my way btw. That's AS's way of handling Fragments.
…because it uses empty constructor. If it's not there, then crash. And if it's there, but you pass the parameters in another c-tor, you won't have the parameters.
No, when the fragment is recreated in the on create setRetainInstance(true); is used to retain data, i am dynamically creating the fragment multiple times and switching between them with no problems, now i have moved to AS it is complaining
this is similar to Activity — but you anyway don't create Activities via constructors, so this question doesn't arise
Ah, that's too bad. But at least some is getting better, I guess
AS does more strict error checking by default
some inspections may be disabled, but this is not the recommended way
you'd better obey the law
if the entire app is killed (because another app needs lots of memory) and restored, Android will try to restore everything from persistent memory — and this won't work in your case
13:56
Whats wrong with that?
see I am calling setArguments from my static constructor which is by far better
could you look at pastebin.com/eSGZcWBU please, i have included the initialization of the fragments at the top. How could i make this 'Safe'
creating many fragments at once is suspicious
why?
passing reference to an Activity to the Fragment is useless and harmful
i need multiple fragments, 1 for each job being proccessed and i need to switch between them
14:00
My Motto: If you don't spell out words such as "you" or other variations. I will NOT take you seriously. Especially if it is an apology.
why do you need them?
are you sure?
most probably you don't have to create them all at once and keep them all in RAM
i have multiple jobs, the jobs have multiple pallets, for each pallet a status needs to be chosen (delivered ok/undelivered) so if i group jobs, i need to do the pallets for each job, one job at a time, so i was using a fragment for each job
this does not sound clear
i need to be able to switch back and forth because they may have previously set a status wrong
do you have to display all of them at once?
14:04
Sounds like you don't have any MVC at all matty ?
so job 1 has 2xpallet, job 2 has 10xpallet. Each pallet needs a status to be selected. I cant just add them to 1 big list because they need to be done per job
so when the jobs are grouped, i was creating a status selection fragment for each job
Model View Controller?
1 min ago, by Sarge Borsch
do you have to display all of them at once?
sorry Sarge, no not all on the screen at once, but i need to be able to click Next and Previous to show the different lists for the different jobs.
then use ViewPager
and an adapter for it
or something similar — I mean, do not create all fragments, and you only ever need 1 or 2(if you want animation)
Yeah I was thinking it's a job for viewpager
14:07
it could be upto as many jobs that is grouped, so i could need 10 pages, one for each of the 10 jobs that are grouped
because if the pages have the same logic and view, you can reuse Fragments
looking at the animation, it does seem like viewpager would display the way i want.
you can manually use FragmentManager and FragmentTransaction
and specify animations
or I don't understand your problem
do you think i could use the fragment i have already created for this?
@user1548671 denied for default username among other things. Read this for the room's min requirements
14:11
in the good old 2009.. years it was not possible to consume memory so pointlessly…
yes, why not?
!/reject user1548671
i think the problem is that eclipse allowed me to use fragments in a bad way with no warning, and no i have gone to As, it is picking up on things i did not know is an issue. So i now have a chunck of the app that is giving errors that ecslipse did not, so i cant build the APK, it works with a debug apk though
@user1548671 Rejected
lint can be disabled in Gradle script
but I would not want to see such app in google play anyway
so you'd better fix all errors
before you release :)
@matty357 Exactly :-)
14:13
^ before applying android plugin
but remember, everybody will spank you for this is you do not have a valid reason to disable lint :P
It wont be in google play, i have written my own Activation routine and Update routine so i dont need google play store. But it will be used by big transport companies in the UK
so i want it to be correct
Just wondering, why does my spinner look like that?
ooohh… then you definitely should obey the law
14:15
Yes i agree
big transport companies is serious business
I recommend reading commonsware book
its just that i cant beleive i have spent months developing this, to be told its wrong and wont build ha
Anyone? :P
@TristanWiley Can't judge without some code. Also did you try HierarchyViewer?
@matty357 these sorts of things do happen…
I must admit though, i find the AS memory tracking and things easier
14:17
No, it's just a spinner with android:entries as an array. Width and height as wrap_content
just parent layout of spinner has short height
and what theme?
^ yes, parent does matter too
Just the default one
hmmmm
can you share the project in a git repo?
@TristanWiley Poor design?
:P
14:19
cM yeah, considering I just made it today yup
No excuses, please
developer.android shows this;
// In case this activity was started with special instructions from an
// Intent, pass the Intent's extras to the fragment as arguments
firstFragment.setArguments(getIntent().getExtras());
@Ahmad hangouts?
Tristan, when you turn on layout bounds, what do you see?
14:20
so do i use getIntent to get the data in the fragment?
@matty357 getArguments
thank you
like this? getArguments().getInt("index", 0);
14:24
I really should use Github instead of Bitbucket
override setArguments and parse the bundle parameter
Github doesn't have free private repositories
Definitely
So should I not? lol
Ahhh
I don't really care about Private but aright
for open code, it's better, yes
Aright
Ugh this always gives me an Error, screw you Bitbucket/Mercurial/AndroidStudio
!/stats ShanmugapriyanM
So...you only work if someone wants to spam the room? Got it
-_- I wasn't spamming
14:34
@ShanmugapriyanM you don't yet have the minimum rep for the room (100) room-15.github.io
Maybe not but I understand what he meant. It has gotten pretty spammy lately. Like the ping crisis we had
Ok, another question for you lovely people. I am attempting to modify my fragment, and usage of fragments to comply with the rules. In my fragment i need to use a Context, which i was sending as a parameter before. I have no option in Bundle.put.... for contexts, i have seen the use of getContext but do i need to import java.security.accesscontroller.getContext for this to work?
getActivity
gives you the context of your activity holding your fragment
like this; cxt = getActivity().getApplicationContext(); ???
getActivity gives you already the context of your Acitivity since Activity extends Context, but if you need ApplicationContext for any reason then sure
Thank you, testing modified fragment now
AAAAAAAAAARRRRRRRRRRRRRGGGGGGGGGHHHHHHHHHHH BLOODY THING
14:50
Matty:
Activity extends context
ok thank you
Didnt realise i had got inner classes that are fragments
shiiit 128 warnings from code analyzer :-/
or unclear, or too broad, or 'questions about why this code isn't working blah blah'?
Ok, going with the last one
15:03
\oo
Backy Smacky!
What is the difference between a List and an ArrayList ?
List = ArrayList - Array
2
or if you prefer
matty, read please some books about Android programming (and Java)
ArrayList = Array + List
15:15
get lost @VeaceslavGaidarji
That kind of talk really isn't needed here
sorry
You are asking some basic (broad) questions and Veac is only trying to help. I don't think he meant to be rude by it.
codeMagic, the protector of the chat.
by telling me to go read a book?
ok, ill leave it be and go read some material
15:18
Yes, because you are asking about something that you can read in the docs or other places which are already written. The proper thing to do is read about it then ask a more specific question about eactly what you don't understand about the differences
so is every question ever asked, all questions asked here can be answered by reading. Dont want to argue, ill figure it out.
Its just nice to get another persons explination
Sure but if you are going to ask something like that then you should be prepared to explain what you don't understand about the differences
given chance i might have done, or if asked what i dont understand i would have explained.
sorry
im done
Anyone know how to hide hangouts from the window switcher?
The Hangouts chrome app
15:23
No, sadly Google keeps fucking things up lately and making everything a pain
Well it's not all their fault. It's a program so it's shown in the window switcher
Oh, you're talking about alt+tab? I still don't know but I still stand by my previous statement :P
Haha yeah :P
I miss the Windows+Tab in Windows8
That was so much fun to hold down :P
I've never called it a window switcher so I guess I dismissed that part
Yeah I forgot the correct name
What is the correct name?
15:27
grrr...why won't that question close so I can vote to delete it
What question?
I don't know. I say "when I tab between windows". Lol
Oh lol
Oh :P
"window switcher" seems fitting though
@matty357 sorry, I didn't want to be rude with you. You've asked very simple stuff and books can help you with all the Android/Java basics. We all also reading books :)
15:33
Hmm, alright. I'm gonna look it up
shit i haven't been doing much today and now i'm hungry.
Alt+Tab ↹ is the common name for a keyboard shortcut that has been in Microsoft Windows since Windows 3.0. This shortcut switches between top-level windows without using the mouse; hence it was named Task Switcher (Flip in Windows Vista). Perhaps the most common use of Alt+Tab ↹ is to alternate between the two most recent tasks, but it can also be used to switch to any running program that has a top-level window. The window environment maintains a Z-order list of top-level windows (tasks) with the most recently used tasks at the front, so the most recently used tasks can be switched to the most...
"Task Switcher" I don't like that or "Flip"
Yours was much better
Window Switcher is nice
What about it?
I like what it does did
15:41
Yeah, I miss it in 8
I hope it comes back in 10
!/urban Merlin
I didn't use vista enough to even remember it being a feature
@TristanWiley Merlin n. In [Baltimoron], it's the "Old Line State," or the state on the south side of the [Mason-Dixon Line], and the state where [Batimore] rests at the mouth of the [[Patapsco River]](urbandictionary.com/define.php?t(snip)
It was in Windows 7 cM
huh whats with the alt+tab in w8? it works the same as before doesn't it?
OH, haha! I never used it in 7 then
15:42
It does miva, Windows Button + Tab isn't the same though
I like win+tab more actually
except for the name, I'm more used to saying alt+tab
o/ trevor
15:44
I just wintabbed (in windows7) and wtf is this crap
it does the same as alt+tab but is more ugly
do you mean ALT + TAB ?
works on windows 8
didnt see above sorry
Submitted an update to my UI last night, if anyone wants to view the screenshots and send some hate mail and/or constructive criticism.
15:47
It looks pretty :)
Looks fancy! I personally hate those round floating buttons though
kyle tempalski comment on your app is unfair, but it did make me laugh
Lol! I'm guessing Kyle is a friend of yours, Mac?
I figured that out :P
15:51
I suppose withdrawal - deposit and discretionary - non discretionary are two radiobutton groups? Maybe it is a good idea to make that clear in the UI that the groups are horizontally? With a line or something or dunno what would be best
Damn it, miva! I just took a screenshot to comment on that. :P
haha sorry :) well you have a screenshot so show it to him
Teamwork o/\o
I was thinking a horizontal line between them. Maybe even a dotted line...just cause
o/\o
Although, as far as they are apart, maybe switching the groups to be vertical?
Oh, need to go to french classes, au revoir!
See ya!
Sarge, you misspelled auto on one of them
not my fault
I just found the picture
STUPID ANDROID STUDIOOOOOOOOOOOOOOOOOOOOO
nope
you are just addicted to Eclipse
15:56
haha i think your right, or eclipse just lets you get away with more
@McAdam331 also, submit should look like a button
Sorry I'm behind. Yes, Kyle is a friend. I thought about removing his comment but I'll just let it go.
If I were you, I'd visit a drug clinic to get rid of that addiction. :D
All friends so far I think, can't wait to get some unknown feedback.
cM, I've been contemplating that for a while, but I don't like the plain gray box button but I don't know what else to use. Suggestions?
well, i had the APK on a website hosted by IIS7, the app checked the version and downloaded the latest APK, everything worked amazing, not ive built it with AS it says, 'Can't parse the package'
15:58
green bg/white or grey text?
it was using the download manager, and complete receivers to launch the update, now its broke
Adam you could create your own button, based on your style preferences

« first day (1678 days earlier)      last day (3496 days later) »