« first day (1407 days earlier)      last day (3531 days later) » 

1:18 AM
Juggles kittens and chainsaws
 
 
3 hours later…
4:32 AM
Come on people! My arms are getting tired!
 
 
3 hours later…
Adi
7:07 AM
Hii @Unihedron
 
'Allo @Adi
 
Adi
08-30 12:24:17.185: I/System.out(18516): [CDS]rx timeout:0
08-30 12:24:17.186: W/System.err(18516): rto value is too small:0
do u know this error
 
???
What console is that?
 
Adi
this is android development console
log cat
 
Oh I see!
 
Adi
7:11 AM
I made one java servlet
 
I'm not sure what that error is, have you tried googling?
 
Adi
i googled a lot
I deployed the servlet on server
then accessing the servlet in my app
my first interface communicates with servlet and runs fine
but as soon as i let my second activity communicate with the same java servlet it is giving me this error
 
hmm
 
Adi
and i think this is timeout error@Unihedron
any idea
though the app was running perfect when tried with localhost
 
if you are on slow network
then try to increase the connection time out
when you are calling your web api
like
 
7:15 AM
I was thinking the connection might be throttled
 
> HttpConnectionParams.setConnectionTimeout(httpClient.getParams(), 50000);
 
Adi
and i should include this in android part or servlet part?@TGMCians
 
android
@Unihedron yes may be. server is not responding correctly
 
Adi
ok
let me try and come back @TGMCians
 
ok.
 
Adi
8:10 AM
hii @TGMCians u here
I tried this but I am getting same error
 
try to hit your service using rest client
make ensure you are able to ping to your server, no firewall etc
 
Adi
yes
see I have two classes in my android app
first class is doing everything right and getting response perfectly from servlet
but I have this problem with the next activity after 1st is passed
 
ok please ask question on so and share the code of both classes and complete log
 
Adi
i did dat but no perfect response
 
9:10 AM
hi everybody.
 
morning
 
Morning!
 
Adi
hii @Unihedron morning
 
Morning morning
Did TGM's steps help?
 
Adi
how r u?
No :(
and I was just guessing but dont know weather it is really timeout or something else
 
Adi
9:32 AM
@Unihedron
 
@Adi
 
Adi
yes@Unihedron
 
You pinged me, I was wondering what's wrong
 
9:48 AM
@Adi send me your question you posted it in forum
just the link
 
Forum?
 
in SO
 
Adi
ok
@fahdijbeli what i posted earlier is somewhat similar. just editing it and give u the link ok
 
which server do you use for deploying the servlet ?
@Adi
 
Adi
MYSQL
@fahdijbeli
 
no this for SGBD I mean u use Tomcat, JBoss etc..
 
Adi
Tomcat
 
with localhost it works but if u use it in real device doesn't ?
 
Adi
10:30 AM
yes excatly@fahdijbeli
 
ok search how u can configure Tomcat to accept INADDRESS_ANY, I know that in JBoss but tomcat no
I have got the same error already
your problem is the network
 
halloo
anyone got experience with AI?
 
Adi
but do u have nay reason that y the first activity is responding perfectly fine but second not@fahdijbeli
of I am having networking issue then my first activity should also stop wrking
 
@Adi ah the first works
 
Adi
yes
 
10:36 AM
@Adi which version u use of Android ?
 
Adi
read my question
 
@Sabಠ_ಠ what do you need?
 
Adi
the code which i have given is for second activity
 
I want to learn it
I'm trying to make a game of checkers
and I wanna try to make an AI to play against
 
@Adi yes I knw version ?
 
10:36 AM
not sure where to start
also does swing allow me to make sleek/sexy UIs?
like rounded buttons, drop shadow, gradient?
 
Adi
22.6.3
@fahdijbeli
 
@Adi try avoid to use the multithreading and check if work or no just for test
 
Adi
its not multithreading
 
@Adi
private class MyAsyncTask extends AsyncTask<String, Integer, String>{


        @Override
        protected String doInBackground(String... params) {
            // TODO Auto-generated method stub
            Log.d("tag1","in do in ");
            String s=postData(params);
            Log.d("tag2","in do in SSS ");
            //Printing this 5 th
            Log.d("what is s",s);

            return s;
        }
this is multithreading
try to avoid using it
 
Adi
in android i cant do networking operation on the main thread i have to use it
no option man @fahdijbeli
 
Adi
10:57 AM
any help?
 
11:08 AM
try to ping 117.230.224.156 from your computer
@Adi
 
Adi
y is this IP for?
 
the IP for your device
 
Adi
this is not my Ip
u r talking about MAC IP?
@fahdijbeli
 
 I/System.out(15416): [socket][1] connection /203.199.134.131:8080;LocalPort=36598(10000000)
 I/System.out(15416): [CDS]connect[/203.199.134.131:8080] tm:10000 D/Posix(15416): [Posix_connect Debug]Process com.example.simplehttpgetservlet :8080
 I/System.out(15416): [socket][/117.230.224.156:36598] connected
 I/System.out(15416): [CDS]rx timeout:0
this for your servlet : 203.199.134.131
 
Adi
this is server IP
 
11:14 AM
and this for your device 117.230.224.156 ?
I noticed they aren't in the same network
 
Adi
so u want me to ping this IP from my system?
 
yes I know for your server my wondering about the second @Adi
yes
excatly
 
Adi
ok
but what do result are u assuming?
how to do it in ubuntu do u know ? @fahdijbeli
 
ping 117.230.224.156
 
Adi
PING 117.230.224.156 (117.230.224.156) 56(84) bytes of data.
this is result
 
11:19 AM
did use also the doPost in the servlet ?
 
Adi
yes
 
the packets had been sent ?
 
Adi
yes it is still executing
 
u can stop it
ctr+c
 
Adi
64 bytes from 117.230.224.156: icmp_req=138 ttl=53 time=346 ms
64 bytes from 117.230.224.156: icmp_req=139 ttl=53 time=693 ms
64 bytes from 117.230.224.156: icmp_req=140 ttl=53 time=935 ms
64 bytes from 117.230.224.1 and so on
198 packets transmitted, 146 received, 26% packet loss, time 197340ms
rtt min/avg/max/mdev = 134.778/1857.034/10073.336/2153.175 ms, pipe 11
a
 
11:23 AM
u disabled your firewall ?
 
Adi
firewall of what
server or device?@fahdijbeli
 
in your computer
 
Adi
no
 
Adi
11:52 AM
08-30 17:16:41.379: I/System.out(28054): [CDS]close[51402]
Now I m getting this after it gets connected
then my app crashes @fahdijbeli
 
in your android app in the second activity there is a something make it crashes maybe using the Intent
am not good in android
 
Adi
Thanks for ur suggetions but i think i have to find out on my own if i get the solution will let u know thanks much @fahdijbeli
 
@Adi no problem :)
 
Adi
:)
 
12:24 PM
@ItachiUchiha hey
 
@priya Heya
He is not available right now ^_^ must be enjoying his weekend.
 
okay
let him enjoy
i'll catch him on monday
 
lol He'll
 
byee all
 
Sure Cya
@MRS1367 Your avatar looks nice :)
 
12:35 PM
Heya @TheLittleNaruto
and @priya
 
12:49 PM
I'm back!
 
Welcome back!
 
Miss me?
 
 
2 hours later…
2:39 PM
Good morning, Java!
 
Morning, @Michael!
 
Hey @Unihedron.
 
3:02 PM
@TheLittleNaruto -> tnx :)
 
3:52 PM
Dang it! Eclipse just crashed on me. :(
Apparently, renaming a method is beyond its abilities. xD
 
Refactoring? xD
There was a time Eclipse started being slow on everything, I did a clean reinstall
 
Holy...it happened again. O.O
@Unihedron Well, renaming a method is considered refactoring.
Refactoring is when you modify how a program does something. Not what it does.
And I did do a clean install just a few days ago. :/
 
4:20 PM
I wiped my netbook and install Crunchbang.
Crunchbang is a minimalist Linux distribution. It performs very well on my netbook.
One thing I like about it is that there is it has no "dock" or "start menu".
To launch programs, you instead type "Super+Space" to get a menu.
 
hey
Anyone experienced with MigLayout manager?
 
MigLayout is a layout manager for Java's GUI library, Swing.
 
correct lol
And im having problems with it, well just in one place.
0
Q: MigLayout - completely removing component & refresh layout from extra space

Ben BeriI am trying to add a model which will display an error message, a styled message, looks like this: And the error message should be closable, so what I've done is adding a listener which extends MouseAdapter, to detect mouse click: private class ErrorCloseHover extends MouseAdapter { priv...

 
Calling setVisible(false) on a component does not remove it from its parent component.
It still takes up "space". You just can't see it.
Also, you need to call validate() after removing components from a panel.
Otherwise, the panel may not "update".
This has nothing to do with MigLayout. It's just how Swing works.
 
4:41 PM
Do I have to call validate() in Jframe or jpanel?
cause I did on the jpanel, nothing changes.
Nevermind
 
4:59 PM
@Michael I can't run my game on my laptop. I updated the JRE, and it still won't run
Why?
 
@Michael If I use remove & validate method, then I cant add another error message, because it will be behind all components (last in the components list), because I still add new components the error
 
@Karl What does the error message say?
@BenBeri In that case, I would create a sub-panel to wrap the error message component.
That way, you can add and remove error messages from that panel.
 
Hold…looking for it
Unsupported major.minor version 5
Unsupported major.minor version 52.0
 
Go to Control Panel and change the default Java installation location.
 
Sorry, didn't realize there was more
 
5:11 PM
It is probably still pointing to an old Java installation.
 
I'm looking at the info, it says platform 1.7, product 1.7.0_67
I THOUGHT I just upgraded it...
 
Try remove your old installations.
 
That's the only ver I see...
 
What do you see in C:\Program Files\Java?
 
ben
hi, I'm currently doing a tutorial from spring.io ; does anybody have an idea why it would make sense that this class (pastebin.com/NTsq943B) makes use of Collections.unmodifiableMap()? The methods which modify the map are synchronized anyway...
 
5:22 PM
If the map was mutable, then the findById() and findAll() methods would have to be synchronized as well.
That code smells funny though.
 
ben
well it is just a tutorial
I think I understand what your getting at
 
JDK1.7.0_51….Where do I get the new JDK?
 
I think you could make the map thread-safe with Collections.synchronizedMap(), and then remove the synchronized markers from all the methods.
That would be cleaner.
 
I got it
 
You wouldn't to re-create the map either, so you could make it final.
 
5:26 PM
8u20
 
@Michael Yeah i did that, and it worked fine when I add new errors. But when I add errors using action listeners such as mouse listener, the error message height will be so small, and other components will go down and hide below. Unsure why. I am not sure why would it do that only if I use a listener to add an error
 
@Michael Do you know if I can install 8 on Snow Leopard?
 
I don't see why not.
 
I'm 99.9% sure Snow uses it's own Java...
 
Yeah, Macs do.
Apple has its own Java VM. It's stuck at 6 though.
Oracle has one for Mac though.
Anyway, got to go.
 
5:31 PM
Thank you sir
Bows to @Michael
 
6:16 PM
Hey guys
anyone around?
 
6:41 PM
Nope
 
7:03 PM
Sorry….
 
no problem
 
 
2 hours later…
9:05 PM
In order to delete multiple rows using JdbcRowSetImpl do you first have to execute a select statement, then loop through each row and deleteRow()? Seems sort of inefficient
 
 
2 hours later…
10:43 PM
"Don't do it! Don't do it! No you idiot!" "Honey, what are you watching?" "Our wedding video!"
 

« first day (1407 days earlier)      last day (3531 days later) »