« first day (1536 days earlier)      last day (1939 days later) » 
04:00 - 18:0018:00 - 22:00

4:52 AM
Good Morning All Heros
 
Good morning all cats
@Sanjeev good morning :)
@ChewbaccoCat good morning :)
 
Gm ALL :3
 
VGM @AshuKumar @ChewbaccoCat
GM @geisterfurz007 @Hans1984 @TheLittleNaruto@ColdFire
@AshuKumar can you tell me the difference between android:id="@+android:id/background" & android:id="@+id/assistant_rating"
 
@Sanjeev yes, @+android:id/background -> is default android id
and @+id/assistant_rating is user defined
 
5:08 AM
In which case we have to use these
@AshuKumar
and did you use ? & in which case?
 
simple if u want to use android default id then u go with android default id for ease of development
sometime i m using listview and textView android default id
 
ok fine Thanks
 
Hello Guys...i am new to android and having an issue with my code....can anybody help me out in this??
 
if i know i can help you
@yash
can you tell me your question
 
btnPlay = (ToggleButton) findViewById(R.id.btnPlay);
final Intent int2 = new Intent(MainActivity.this , StreamService.class);
btnPlay.setOnCheckedChangeListener(new OnCheckedChangeListener() {

public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if (isChecked) {
if (myApplication.isInternetAvailable()) {
try {
btnPlay.setChecked(true);
viewPager.setCurrentItem(1);
showProgresDialog();
startService(int2);
} catch (Exception e) {
e.printStackTrace();
}
} else {
showAlertDialog(MainActivity.this);
here is my code of mainactivity
 
5:13 AM
@yash fire ur question here and if someone have water he will give on it
@yash please use paste.ofcode.org or other website to paste code
and what is problem ?
 
@yash can you use paste.ofcode.org for code related question
 
when i click on btnPlay third time (which calls startservice() again) than application crashing and giving nullpointer exception to me
 
@yash which line ?
 
in StreamService.class onDestroy() Method
serviceAvailable = 0;
if (stream != null) {
stream.stop();
stream.release();
}
stream = null;
// kill the status notification
// mNotificationManager.cancel(HELLO_ID);
if (wl.isHeld()) {
// kill the wake lock
wl.release();
wl = null;
}
even if i remove this code and run my app than app giving same error when set DataSource in stream
 
brb
 
5:18 AM
okk
 
yeah, back
checking @yash
can u please explain what u r trying to do ?
 
@AshuKumar morning
 
i have a url which gives me media stream
whenever i pause it and replay it than it gives me error on replay
when startService() is called again than it goed to onDestroy() method and gives nullpointer exception
Am i using startService() and stopService() in right way or is there any problem in it? @AshuKumar
 
5:41 AM
OKay
@TetrixUser a very good morning man
i do not know much about service, but let me check @yash
can u paste all code on paste.ofcode.org for better reading
 
6:09 AM
ok sure
 
@AshuKumar I guess today all having a week day.. day off
 
@AshuKumar Here is My Code:- paste.ofcode.org/33jHuxQbTbk6NufeR7WRi6P
 
@TetrixUser Hi I am in office
 
@Sanjeev well well
 
:)
 
6:19 AM
@TetrixUser nope, working day for me
 
@AshuKumar same here , proud
 
@TetrixUser yeah :D
and where is @jafarbtech cat ??
 
guys did anbody use teamviewer
 
@SmartManoj yeah
@yash here u go...
 
https://downloadus2.teamviewer.com/download/TeamViewer_Setup_en-ahmt.exe
https://downloadus2.teamviewer.com/download/TeamViewer_Setup_en.exe
what is the difference between these 2 urls
i am getting the 1st link in chrome
2nd in edge
 
6:27 AM
@SmartManoj do not know
i m using second url
 
@AshuKumar i am getting first link with random words appended at last only in chrome
Where do i talk about this
but the url also exists
 
@AshuKumar ??
 
@SmartManoj check with teamviewer support
 
why this link gives too many liks
 
6:32 AM
different version are made by them and so they gave download link for each
 
both are same files
exactly 12.32Mb
but different names
how do i see what they use with the naviagator.useragent property
 
7:59 AM
!!sayyo
 
Heyo All
 
-1
Q: Compare 2 Class List in C#

Arijit MukherjeeCode: List<GetRationCardByID_Result> rc1 = new List<GetRationCardByID_Result>(); List<GetRationCardByID_Result> rc2 = new List<GetRationCardByID_Result>(); List<GetRationCardByID_Result> rcdiff = new List<GetRationCardByID_Result>(); for (int i = 0; i < alldupUID...

 
@ArijitMukherjee Wrong room.
 
@TheLittleNaruto good after noon fox
 
o sorry
 
8:07 AM
@AshuKumar after noon!
Need to start working now.
 
are u not on holiday ?
 
of course It's weekend for me.
But I can work on my app, Can't I ?
 
@TheLittleNaruto of course, u can. and let me know my meggy is ready
u promised me. remembered ?
 
@AshuKumar lol Today I didn't cook. But tomorrow I'll sure.
Of course, Of course
Just let me know whenever you visit Bangalore
 
sure,
and hopefully, yesterday conversation, u will not mind :)
 
8:14 AM
lol Don't worry about it.
I just can't listen against the person who really doing good for betterment of our country.
 
@TheLittleNaruto then u will kick those person who are / will against me :D , as im also trying to make world good place
 
Of course I would respect you if you have such mindset.
And everyone of us should have that anyway.
 
8:34 AM
:(
 
@ColdFire what happened ?
people do have such mind. often do not use it :)
Good after noon
 
ga
 
9:21 AM
Can anyone help me android referral program in branch.io
my referral program do not working
 
9:37 AM
@ArijitMukherjee :P What happened bro?
 
dont ask bro
 
!!hang s
 
@ParthaChakraborty You people suck. The word is yond
 
!!urban yond
 
@ParthaChakraborty No definition found for yond
 
9:46 AM
!!CapricaSix, fuck yourself
 
@ParthaChakraborty That didn't make much sense. Use the !!/help command to learn more.
 
10:10 AM
@ColdFire Do you have good internet speed ?
 
nope
my internet is just crappy
 
ANY ONE Create a Arebic Language APP?
 
but why?
 
Anyone here familiar with session cookies on android?
 
@TheLittleNaruto @cf
 
10:12 AM
@ColdFire I want to see Facebook app's manifest file.
 
@TheLittleNaruto download it and decompile it
 
@JamesDorrian Read about SharedPreferences
@ColdFire I am not able to
Internet is slow
 
@thelitt
 
@ChewbaccoCat No But what is issue ?
 
m created many apps in multi language
but this time Arabic in this list when select a Arabic from phone setting then in my app spinner value not set in spinner from API... get response from API but not set
:(
 
10:14 AM
@thelittlenaruto I have already saved and retreived the session cookies in the app. But the cookie is being returned in the format "PHPSESSID='randomstringofcharsandnumbers'", I'm trying to figure out how to convert this back to user email address
 
i knw in multi language we need to use LOCALE
 
@JamesDorrian it is returned by website api response as cookies in header
@JamesDorrian PHPSESSID is session id maintain for user to access website
 
@AshuKumar :3
m asked question LOL
 
@ashukumar, this is how i usually convert the PHPSESSID to email address:
<?php
session_start();


if (!array_key_exists("authUser", $_SESSION)) {
echo json_encode(["result"=>"failure"]);
exit();
}

echo json_encode(["result"=>"success", "data"=>$_SESSION]); //returns email
?>
 
@ChewbaccoCat Set this to application tag in manifest: android:supportsRtl="true"
 
10:18 AM
thats a GET request, I assume I can create a POST request somehow and send the PHPSESSID for decomposition?
 
ok just a min @TheLittleNaruto
it's already given @TheLittleNaruto :/
 
Debug code then
 
user6110959
Could Someone explain ExceptionHandling to me ?
 
I don't see any reasons
 
user6110959
(in Java)
 
10:19 AM
ok dude
@TheLittleNaruto
 
@AshuKumar any ideas?
 
@Abcd There are some errors you can't handle at compile time and comes at run time exceptionally. For handling such errors we need ExceptionHandling
 
user6110959
@TheLittleNaruto Why do they come? And whats the significance of throws, throw , try catch?
 
user6110959
I am always clueless about this
 
@abcd try this piece of code and in the case of error catch it and report it to me
 
10:22 AM
@JamesDorrian sorry, i m not good in php. but this code will return PHPSESSID only
 
It actually returns the email address
 
user6110959
@JamesDorrian why are we getting an error ?
 
@Abcd Sometimes you think your life is going smoothly as you expected. But suddenly something weird happens, like you dont even have a single penny to survive. This is called exception.
How would you have handled it ?
 
how possible $_SESSION => always return sessionId
ref. http://php.net/manual/en/reserved.variables.session.php
 
Saving money in your bank account, right ?
 
10:25 AM
@TheLittleNaruto by taking others money :D
@ChewbaccoCat what is u questionn
 
Yeah that is possible too
 
ha ha@AshuKumar
 
@ashukumar {"result":"success","data":{"authUser":"jamestest@live.com"}}
 
m created many apps in multi language
but this time Arabic in this list when select a Arabic from phone setting then in my app spinner value not set in spinner from API... get response from API but not set
:( @AshuKumar
 
user6110959
@TheLittleNaruto okay. I understood your point but I am unable to relate it to java programming. However, what's the use fo throws in dealing with these weird situations
 
10:26 AM
@ashukumar actual response from security.php on my site
 
@TheLittleNaruto no error in code :(
spinner also filled with values but not displayed :( when setting language = Arabic hell
 
@Abcd So lets take an example of Java. Suppose you have an array of 3 elements. Now if I want to access 2nd element, How would you access it ?
 
user6110959
int i = array[2]
 
@ChewbaccoCat Is it a custom adapter ?
 
user6110959
sorry int i = array[1]
 
10:28 AM
@Abcd wrong
@Abcd right
 
user6110959
WHy?
 
NOPE @TheLittleNaruto
 
user6110959
Yeah just wrote the above one in a hurry that's why made a mistake there
 
user6110959
Next?
 
But at run time, suppose some program within your app expecting to retrieve a data which is at position 4
 
10:29 AM
:3
 
But your array has only 3 elements
 
user6110959
Yes so we will get ArrayIndexOutOfBounds Exception
 
the app got confused and will be in dilemma
and hence it'll throw ArrayIndexOutOfBounds Exception
Correct
 
user6110959
Yeah I understood that.
 
user6110959
Now whats the use of throws
 
user6110959
10:30 AM
According t me it's unnecessary
 
:3
foxy fox
 
@abcd when you are programming, instead of having your program throw a fatal error and not report it, you can surround with try catch, it will try the code inside the try {} and should an exception arise it will be output for you to see, catch (IOException|SQLException e) {
logger.log(e);
throw e;
}
 
But if you dont handle such cases your app will have a lot of crashes and your user will stop using your app
@Abcd
 
user6110959
But wouldn't the app end when this condition arises
 
@Abcd Depends on the design
 
user6110959
10:31 AM
WHy?
 
@Abcd of course that's the whole point
 
user6110959
I would always end execution
 
user6110959
it*
 
For example, You are using facebook app
and you were typing some messages
And BOOM!
 
user6110959
AH ! I get it. It will immediately end
 
10:32 AM
App got crashed (Some exception came)
that was not handled
What will be your reaction ?
 
user6110959
"That was not handled" ??
 
FUCK! DUDE I couldn't send message to my gf
FUCK this app!!
 
@JamesDorrian then may be then u have done some setting in SessionId. so that it returns email
 
Do you want your users say same thing to you about your app ?
 
user6110959
But @TheLittleNaruto It will end then and there
 
user6110959
10:33 AM
WHats the purpose of handling
 
user6110959
Even if you handle it would end
 
So we dont want to end it
 
@ChewbaccoCat values are not showing ? or values are showing on left side ?
 
The process should keep going
 
user6110959
How will it not end ?
 
10:34 AM
NOT SHOWING
 
So for that you'll put try/catch
so that user wont even able to notice that and keep using the app
 
@Abcd by capturing error and handle error in such a way so that it will prevent program to shut down :)
 
m already putted try/catch no error
 
m trying custom spinner
:3
 
user6110959
10:35 AM
Okay, Thanks @AshuKumar.
 
@ChewbaccoCat getView() and getDropDownView() override both of them.
 
user6110959
Now what about throws and throw
 
@ChewbaccoCat debugging showing mapped values ?
@Abcd why do not u read out doc ?
 
user6110959
Actually I had trouble understanding this because the program ended in both situation whether I used try catch or not . But now I have understood.
 
user6110959
@AshuKumar which doc?
 
10:37 AM
@Abcd Exception Handling
 
user6110959
Can someone explain throw and throws?
 
user6110959
They are useless according to me
 
user6110959
I have already seen that
 
not they are highly important if u r developing project for high level
@ChewbaccoCat did ur problem solve ?
@Abcd then what u want to know ?
 
user6110959
10:40 AM
I wanna understand throws in a proper manner !
 
user6110959
Lets take this for instance : public static void main () throws InputMismatchException
 
user6110959
Why to put that throws """ there ?
 
user6110959
@TheLittleNaruto Do you have any valuable explanation for this ?
 
@Abcd you can customize exception in ur way
 
user6110959
I am sorry but I can't understand what you are trying to say? "Customize exception"?
 
10:45 AM
let me give u example
 
No @AshuKumar cat
 
Hai please give me solution for this
0
Q: Draw paths for indicating parts name

Umashankar BI want to draw paths for indicating parts of an image. I tried this code two draw a line,But I want to proceed farther like below image.Please provide any help to draw paths like below image public class MyView extends View{ Paint paint; Path path; public MyView(Context context) { ...

 
@ChewbaccoCat can u please be specific ?
import java.io.*;
class M{
void method()throws IOException{
throw new IOException("device error");
}
}
public class Testthrows2{
public static void main(String args[]){
try{
M m=new M();
m.method();
}catch(Exception e){System.out.println("exception handled");}

System.out.println("normal flow...");
}
}
@Abcd please check above
in above example when method() throw exception then it will inform to main()
 
user6110959
I do not want codes. I want to understand the usage of throws or throw. Why would someone purposely throw a exception. And isn't it useless to specify throws "X"exception after method signature?
 
user6110959
Why would someone destroy their code by throwing exception?
 
user6110959
10:53 AM
WHat's the need to specify throws exception after method signature.
 
user6110959
Isn't it pointless as compared to try - catch?
 
12:03 PM
issue Solved @AshuKumar @TheLittleNaruto
spinner background drawable problem...its gonna changed in Arabic
 
@ChewbaccoCat how ?
 
m created a dacorated drawable for spinner background man
and when select arabic language changed layout
so it's gonna hide man :(
silly issue
 
@ChewbaccoCat :O u r good man
now give me party
or i should catch u ?
 
ha ha ha
still not set just got issue's small solution
:P
 
@ChewbaccoCat np, still u can give me party
 
12:29 PM
ha ha now done
@AshuKumar
come here man
come fast
 
i m here, do not u see me
 
@ChewbaccoCat Hey... Apparently, we are alone here
 
12:56 PM
@ChewbaccoCat Hi meow
 
Greetings everyone
 
1:21 PM
ha ha ha
@TetrixUser
hello
hahahah
sry busy whole day
 
1:34 PM
@TetrixUser
today i have a off but before some days we went to a picnic so...it's too much offs in this months so...working today :P
@Hans1984
 
1:49 PM
bye @TetrixUser
:3
!!lightsout
 
 
3 hours later…
4:38 PM
!!hang e
 
  +---+
  |   |
  |   O
  |
  |
__+__
e
-------------------
 
!!hang i
 
  +---+
  |   |
  |   O
  |
  |
__+__
e, i
i--i-i----i--i-----
 
!!hang n
 
  +---+
  |   |
  |   O
  |
  |
__+__
e, i, n
in-i-i----i--i-----
 
4:39 PM
!!hang s
 
  +---+
  |   |
  |   O
  |
  |
__+__
e, i, n, s
in-i-i----is-i-----
 
!!hang t
 
  +---+
  |   |
  |   O
  |
  |
__+__
e, i, n, s, t
in-i-i----isti-----
 
!!hang o
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
e, i, n, o, s, t
in-i-i----isti-----
 
4:40 PM
!!hang r
 
  +---+
  |   |
  |   O/
  |   |
  |
__+__
e, i, n, o, r, s, t
in-i-i----isti-----
 
!!hang a
 
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, e, i, n, o, r, s, t
in-i-i--a-isti-a---
 
!!hang l
 
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, e, i, l, n, o, r, s, t
in-i-i--alisti-all-
 
4:40 PM
!!hang y
 
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, e, i, l, n, o, r, s, t, y
in-i-i--alisti-ally
 
!!hang b
 
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
a, b, e, i, l, n, o, r, s, t, y
in-i-i--alisti-ally
 
!!hang h
 
  +---+
  |   |
  |  \O/
  |   |
  |  /
__+__
a, b, e, h, i, l, n, o, r, s, t, y
in-i-i--alisti-ally
 
4:48 PM
!!hang g
 
@Joe'sMorgue You people suck. The word is individualistically
 
What ?
@Joe 'sup ?
 
Not much
 
Glad to know that
 
5:07 PM
o/
 
user6110959
why is println() impure even though it does not change the state of an object
 
user6110959
It doesn't cause any change in the instance variables of the object yet people say println() is impure
 
user6110959
5:27 PM
People rarely answer here !
 
@Abcd lol It's not like that.
You just come at wrong time when very less number of people are online
@Abcd It does not change the state of the object, but println() does change the output.
For example, you can add some extra string with the input.
 
user6110959
How?
 
user6110959
BuI know how to add string
 
user6110959
but
 
user6110959
It is not changing the state of object
 
5:34 PM
Consider this example:
 
user6110959
ANd impure function changes the state
 
user6110959
(necessarily)
 
No it's not like that
 
user6110959
And , since yesterday I have asked various questions but haven't receivedd the answers yet
 
user6110959
@TheLittleNaruto then how is it?
 
5:35 PM
An impure function may or may not change the state of the object
 
user6110959
So how to identify it?
 
Also it may or may not change the output of course
So if either of these two happens, you call that function Impure
 
user6110959
Give me an example please
 
println
 
user6110959
It changes output right?
 
5:37 PM
Yep it can
 
user6110959
okay ... is there any impure function that returns a value
 
user6110959
I have read that .
 
user6110959
Is there any impure function that returns a value?
 
user6110959
Sorry.
 
user6110959
5:40 PM
Math.random() does return a value, right?
 
user6110959
Is there any pure function that does not return a value ? @TheLittleNaruto?
 
@Abcd Mmm... not sure
@Abcd right
 
user6110959
Also, what about throws? Can you explain it now?
 
Umm
Do you know anything about it ?
 
user6110959
its applied after method signature
 
5:46 PM
Ok cool
 
user6110959
hmm
 
So suppose there is a method you're expecting that it can throw ArrayIndexNotInBoundException
 
user6110959
Yes
 
public Abcd_wrote_a_dummy_method() throws ArrayIndexNotInBoundException{

}
something like that
 
user6110959
So you basically inform the compiler : "Hey Compiler my method throws this exception"
 
user6110959
5:48 PM
I have read this somewhere .
 
Yep
But the point is you dont want to handle it here
 
user6110959
Why?
 
whichever place you're calling this method, you want that place only should handle it
 
user6110959
I didn't get you.
 
user6110959
How is it useful at all?
 
user6110959
5:50 PM
It seems to be useless as compared to try-catch
 
handling inside the method itself with try-catch in some cases you wont be flexible.
with respect to what you want to do in case of exception occurs
 
user6110959
Sorry. Did not understand. :(
 
user6110959
Okay so how does throws provide any 'flexibility'
 
Dont worry about that. let me explain
Suppose you call that method in class A, and you want to show a message "error occurs in class A" and if you call that method in class B, you want to show a message "error occurs in Class B"
 
user6110959
Yes.
 
5:54 PM
if you handle that exception in the method itself
the calling class i.e. A and B will never be able to know if exception occurs
and hence you wont be able to show respective error messages
 
user6110959
Why will they not be able to know?
 
user6110959
we have catch for that purpose
 
Ain't you told me you dont want to put throws on that method ?
wait brb
 
cat cat
 
04:00 - 18:0018:00 - 22:00

« first day (1536 days earlier)      last day (1939 days later) »