« first day (1430 days earlier)      last day (3514 days later) » 
00:00 - 15:0015:00 - 00:00

12:04 AM
Dead chat....
 
chat means "cat" in french
 
My cat is named Neko, which is Japenese for cat.
She runs like a horse. So, her middle name is Ba, Chinese for horse...
 
omoshiroi
 
Neko Ba Marie....
Dead chat
 
12:23 AM
Sorry for being boring
It's late and I'm still working
This java prototype is tormenting
My consciousness is fading
Don't worry I'm trying
Sending back ajax requests flying
 
prototype?
 
@Karl I'm trying to create a GUI with javafx. It has to do some socket communication but it just doesn't work. So I'm trying to begin with a basic console thing with basic threading
 
Coolness!
 
12:40 AM
How long have you been working on it?
 
@Karl A few days. I guess about a week.
 
Impressive!
 
well I didn't work on it full time. Got a lot of other things to do. Besides, I'm really a noob in java or anything else other than php and regex
 
A week! It took me 7 years to get my game running!
 
lol I'm talking about a simple GUI with some buttons and a simple socket communication layer
 
12:53 AM
My game has up to 260 buttons. ALL done with loops!
 
Nice
 
There is only 1 button NOT part of a 2 dimentional array.
Made everything simple to deal with.
 
It's 3am and I need to get up early for school. Cyaa @Karl
 
Laters
Hello?
 
 
4 hours later…
5:05 AM
gud morning every one
 
5:19 AM
Morning @Aman!
 
5:29 AM
hi
h r u ?
 
5:57 AM
heya Java !
 
6:08 AM
hi
 
heya
 
 
3 hours later…
9:20 AM
Morning
 
@HamZa Morning
hope you had a nice sleep :P
 
@ItachiUchiha I want to dive into my bed right now!
 
@HamZa go on ! There's nothing better than going into the bed again early in the morning <3 <3
 
@ItachiUchiha At school right now. I wonder if I can workout later on...
 
@HamZa What's taught today?
 
9:31 AM
@Unihedron Nothing special. It's project day!
 
Project Day ?
 
I'm working on a project. We got a robot and we need to program it in C. We also need to make an Android app to control it
 
Sounds cool :P
 
 
Are you also in high school ?
 
9:32 AM
Here it is!
@ItachiUchiha well the website says it's "amsterdam university of applied sciences"
 
Its not school, its a University :P
 
@ItachiUchiha well I consider an university also a school
 
ASR
9:49 AM
hi all
i have configured Virtual host in in apache with the followed tags.

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot "/usr/doc"
ServerName www.example.com
ErrorLog "/usr/doc/example_error_log"
CustomLog "/usr/doc/example-access_log" common
</VirtualHost>
It's working fine when i try to access www.example.com with the respective index page. But localhost is not giving the test page , instead it's giving the same www.example.com's index page. How to get the default localhost's index page.
 
@ASR This is the java chatroom.
 
I was thinking that as well. Is that JSP or something with htc apache? (Hin: I have no experience with the second.)
Your robot looks really great @HamZa, stared at the picture for a bit but still can't figure out how it seems to work. It reminds me of when we got to make solar ambitious cars. It was fun. :p
 
@Unihedron Remind me later on to explain a bit. I'm a bit busy atm...
 
Nah, I've heard of enough robots, they all die out when you splash a cup of water anyway. :)
 
hehehe
 
10:01 AM
hey guys, i'm receiving data from a server and I'm writing it to a file, how can I make it so when the time hits xx:xx:xx, the program stops writing to the old file and creates a new file and writes to it
i'm not sure how to go about this I can't find anything online
 
It depends on how you're handling the data you recieve, you can probably add a check there.
 
i'm using an onMessage to receive the data
 
... Keyword: "handling"
 
ok
so like, if time is XX then create new file and write to this ?
 
@Eggy You can create an attribute "time". Everytime you receive something, you check the current time with the attribute time. Then handle appropriately
 
10:08 AM
ok thanks
 
11:05 AM
Jakarta commons, is that still useful in Java, or is it obsoleted by other stuff today?
 
How to create live wallpaper using GLSerfaceView openGL 2 in android ?
 
lmgtfy.com
 
Please consider this post for review. Make sure to read the post fully, support the OP whenever you can and always remember the golden rule: "if you don't have anything nice to say, don't say it at all". I recommend you to look at this question carefully and always follow your own judgement. I downvoted, but a disclaimer: I am not legally liable for any damages caused by clicking on this link: Remove cv-pls tag from chat rooms
 
11:59 AM
What is cv-please tags?
 
Thanks for the link
 
12:15 PM
hello
 
hiya
 
@JazibBashir hey man !
 
Hi ANy one from IBM WEB SPARE BUSINESS PROCESS MANAGEMENT ? I need help
 
@SyedUmarAhmed what the heck
Do we get these type of questions that often here?
 
12:30 PM
@HamZa I cant find any one for IBM BPM :) thats is why i am here
 
What is your question?
 
As if you need someone from IBM to solve a problem?
 
@hamza, be nice :-)
 
@gurun I'm being nice. Just stating some facts.
 
lol no :p U both stop now.. The problem is I just installed BPM :) and create a human service and now i want to call Simple HTTP POST Methods :|
 
12:33 PM
@hamza LOL. The best one today :-)
Ok, you have to try to explain the problem a bit better. Right now the best solution to your expressed problem would be to uninstall BMP. But what do you mean that you want to do?
 
Well the point is, chances that someone from IBM BPM being in this chatroom are quite low and that one should try to do some research first.
 
Do you want to kick the process by doing http request to it, is that what you mean?
 
Well i did all the reasearch @HamZa and @gurun do you know BPM ? than only u can understand
any how thanks for the help , i will find some way
 
@hamza, yes understand your point on that. But it might also be that it has nothing to do with IBM specifically, but BPM in general. And la lot of us know that stuff.
 
BPM belongs to IBM :| its a product
 
12:38 PM
I see. Well I should get back to work since I've no idea what it is
 
Yes, but the concept is nothing unique to IBM.
 
well as i said thank you guys :) have a nice day
 
JBoss has it too. And webLogic has something similar.
 
its about lombardi ibm
 
Sorry, BPM
 
12:39 PM
@SyedUmarAhmed Read the user Manual :)
 
Every enterprise platform has BMP.
 
@ItachiUchiha: means why java doesn't allow to define member functions of class outside the class like C++?
 
@meet What ? where did that come from ?
@SyedUmarAhmed Use JBPM provided by Jboss DROOLS ;)
 
@ItachiUchiha: what are u saying?
 
I thought that question was a C# asked question
 
12:45 PM
@meet I am not able to get you
 
@ItachiUchiha: why?
 
@meeThat's more an oddity of C++ than typical of languages. The class declarations need to be in headers if they are supposed to be visible to outside code, so it's necessary to be able to do implementations in external files
java does not need headers, so it does not need external definitions either
 
@meet was a question and moreover was that independent of the comment is made to Syed ?
 
@meet Hint: Think about C
 
@HamZa: what?
 
12:49 PM
@meet You can write pure C in C++. That's the hint
 
yup
How can i ensure that my object is safely deallocated in java?
@kiheru: How can i ensure that my class' object is safely deallocated in java?
 
wouldn't java's garbage collection take care of that?
Note that C++ != java
 
@HamZa: yes, u r right. C++ & java are completely different languages.
 
Typically, you don't need to care much about that, because of the garbage collector (caveat: GC localizes the memory management problem. It does not solve it totally). If you have objects that hold external resources, such as file descriptors, you can use try-with-resources.
For some special cases there are weak and soft references.
 
@HamZa: consider this class
class Test{
public static void main(String args[])
{
Test t=new Test();
}
}
 
12:54 PM
@HamZa yep
What about it? @meet
 
we know that garbage collector runs periodically & automatically & when there are no more references to object it reclaims memory for object. Question is when the object created in above example will be deallocated by GC?
 
when it exits the main method
since the scope of t ends inside the main()
 
@meet Most likely it won't be at all. The program terminates and the collection is left to the system (deallocation would be waste of time)
 
@kiheru what ??
 
@kiheru: i can't understand this: collection is left to the system (deallocation would be waste of time)" Please explain clearly.
 
12:58 PM
hi
 
@ItachiUchiha Technically, it would be eligible to be collected, since it's out of scope. But the GC won't run if there's no need to. Remember finalizers are not guaranteed to be run at all.
 
good eve
i need one help...
this is my image data which is recieved[0x010x020x030x040x050x060x010x020x030x040x050x060x010x020x030x040x050x0‌​60x010x020x030x040x050x060x010x020x030x040x050x060x010x020x030x040x050x060x010x02‌​0x030x040x050x060x010x020x030x040x050x06]
 
is java really simplified version of C++?
 
@kiheru yeah, but if it was some other method, other than Main() then it wud have been
@meet yeah, you can say that
 
@meet In any modern OS, when a program exits, the system reclaims the used memory.
 
12:59 PM
but you loose control
 
i need to convert the hex code to an image
 
what are there differences between templates & generics?
 
any body
 
@ItachiUchiha In any other method too, the object is only unreachable and as such eligible to be GC'd. Typically, it will get GC'd soon, but it's not guaranteed. (If java implementations used reference counting as the GC strategy, it would be collected immediately after falling out of scope, but no java implementation does that afaik).
 
1:04 PM
ya am cehcking
@ItachiUchiha...
 
@Rameshababu How are you receiving the hex codes? If you have control over the data IO, I would send the image in RAW, this will reduce the size / increase the speed
 
@kiheru I see, I will spend some time in it :)
 
I usually don't even care about GC :)
 
@meet The differences of templates & generics? A wide subject but the at heart: generics are a way to restrict types. With templates, you can do pretty much anything (including writing valid code whose compilation will never complete).
 
@kiheru You know, I think that variable is useless, so it compiles down to new Test(); (variable declaration voided), which simply invokes the constructor, then GC realizes it's useless at runtime, so it cleans it up right after the constructor.
At the end, whatever in the constructor is called, and the object reference is cleaned up immediately.
 
1:18 PM
am recieving from device itself as hex like this [0x010x020x030x040x050x060x010x020x030x040x050x060x010x020x030x040x050x060x010x0‌​20x030x040x050x060x010x020x030x040x050x060x010x020x030x040x050x060x010x020x030x04‌​0x050x060x010x020x030x040x050x06]
@ItachiUchiha
now i want to get an image from this
 
@Unihedron The reference will get cleaned, but the memory pointed by the reference won't - it's in the young generation of the heap, and typically would get GC'd really soon. Java does not do stack allocation even for objects that do not escape the scope. These are of course implementation details of the GC works atm, and are not guaranteed by the language spec.
 
@kiheru Yeah, that last sentence was what I was looking for. :)
It may or may not be cleaned up, but if the reference is not kept within the finalized scope of the constructor, it will be pended for cleanup.
 
Yeah :-D The implementation is free to collect unreachable memory, but what it actually does with the memory is up to the implementation
 
@ramesh.. I think you should split the string with regexp and convert to bytes and then use one of the imaging APIs to convert to image. Do you know the format of the image, like BMP ?
Or you can split it on "x" and remove the trailing 0 before sending it to a number parse. And then into an image.
 
1:42 PM
ok @gurun
can u give me an simple parse.. am new to this part.
 
Did I hear regex? :P
 
|
using pipe
 
@ramesh.. Sorry, can't do that for you.
 
example : |0x02|0x00|0x06|0x00|*0x01|0x02|0x03|0x04|0x05|0x06*|0x1D|0x00|
is the packet which is am recieved
 
Uh
So now you changed the format from the original you showed us?
 
1:47 PM
.split("\\|")
 
that is actucally after splitting and concatenate
 
What are the * about?
 
from that start to end inbetween data
image data
 
So you're trying to make it italics?
 
1:48 PM
image dat
no
wait
 
So you want to extract 0x01|0x02|0x03|0x04|0x05|0x06 from |0x02|0x00|0x06|0x00|0x01|0x02|0x03|0x04|0x05|0x06|0x1D|0x00|?
 
Is it several images?
 
no only one img.. am recieving packet by packet
 
And is one packet one image?
 
and save it in a array then split the image data finally
 
1:49 PM
Or is an image several packages?
 
no several pack- one image
serveral pack= one image
 
So, you save it in an array, what type of array?
 
String []
 
Ok, so one string in the array is 0x00 things right.
As you get them from the sender.
 
I'm sorry, I can't understand the problem, I'm going back to answering questions.
 
1:51 PM
first of all i save all packets.. once packets recieved fully.. then start analysing and splitting the packet img data and recover the img
no
actually first array contains this--^1245668555|0x02|0x00|0x06|0x00|*0x01|0x02|0x03|0x04|0x05|0x06*|0x1D|0x00|"‌​;
in this above packet
 
So, when you receive it, it contains pipes | or?
 
^first unique no|is len0|len1|cout0|cout1|img data|chekcsum0|shcksum1|
yes pipe
 
Ok, got it
 
start with ^ and contains pipe
omit the start
that is for reference
omit the star
 
Ok, so then you need to do a whole lot more with this. You need to split it out to individual strings. Then strip the frame around it (ID, Len, checksums, etc). Get the image data only. Convert to byte (probably unsigned bytes) and then feed the result into an Image class of choice depending on what type if image it is.
Sorry,but you won't get anyone to do that for you I believe. It's like asking us to do the job for you.
 
1:56 PM
(yawns)
 
no am asking how to convert that to byte and get an image
thats all
 
i did almost all remaining things..
 
@unihedron closed already
 
No, it's removed.
 
2:06 PM
"Effectively" closing it :-)
 
I dont get it
I have two Strings exactly equal, still Assert.asserEquals(string1, string2) returns me failure
 
@ItachiUchiha Add an extra line string1.equals(string2). Does it return true?
 
Are you sure they're really equal, and do not have spaces or other nearly invisible differences?
 
@kiheru spaces checked
might be invisible characters
junit.framework.AssertionFailedError: expected:<true> but was:<false>
debugger shows both are equal
Actually the second string I am getting from the console output
 
different line endings can sometimes confuse things, if that's not taken in account
 
2:13 PM
ByteArrayOutputStream outContent = new ByteArrayOutputStream();
System.setOut(new PrintStream(outContent));
outContent.toString();
 
Check length
 
Assert.assertEquals(true, "I have no idea what you are talking about".equals(outContent.toString()));
returns false
so there are invisible characters
ahh yes, length are different 42 v/s 41
 
And can even try starts with or ends with to see where the offender is hidden.
 
lolz
I forgot I was using System.out.println() :P
there was a \n appended at the end of the String :P
Sometimes things just doesn't strike you !
 
Strings are bitches. So easy to forget that they are basically documents. Worst when you read stuff with hidden #0 terminating the whole thing.
I think all my unit tests involving streams always start with expected length, actual length.
 
2:25 PM
Hi
Can someone have a look at my Q? stackoverflow.com/questions/25976055/…
0
Q: Code refuses to display text in JTextArea

Mayukh NairI created a JTextArea to show messages in multiple colours while the program is running. I use NetBeans 8.0, and I added a JTextArea to the jFrame called "log" before writing the code. First, I defined a class called apppane: private void apppane(JTextPane log, String msg, Color c) { /*This...

 
What? It's only been asked for 25 minutes, and you're already asking for attention for it in the chat room? Is it urgent?
 
@mayukh I would suggest you comply with the request in the comment. Show the code for creating and adding (at least the relevant parts)
Or at least try to swear this; without all the fluff fluff and coloring. Does it show any text at all?
 
Fluff isn't the professional term, you meant "noise". :)
 
Hehe "swear" would have been "answer" if I could choose to write what I actually wrote without iPad interfeering.
 
Yeah, it IS urgent.
Text? Nah.
 
2:35 PM
I'm just really scared this would turn out to be a "my monitor is black" question. That's all..
 
Meh.
 
Its a rather famous support call..different story..

But try this. Get rid of all the coloring code (noise) and first prove to yourself that you get the textbox to appear at all in the GUI. It might be that you are focusing on the wrong end of things.
 
DUDE.
I'm using NetBeans. It has this drag-and-drop plugin, so the text pane already appears in the GUI.
 
@MayukhNair You use netbeans? Wow. Best of luck!
 
I know it sucks, but I don't have the time to try Eclipse. I learnt NetBeans thanks to school classes.
 
2:45 PM
Yes, but you have no text in it, right? Set some text. Prove to yourself that it is the style code failing.
 
I know that the style code is indeed failing.
Otherwise this shitty question wouldn't have even existed.
 
morrning people (ugt)
 
@gurun You from Malmoe? Am a big Zlatan fan. Love that Volvo ad of his.

Morning @CSᵠ
 
Morning @CSᵠ! :o
 
Yes, I actually live next door to him (or at least his house).
 
2:49 PM
Whoa.
 
So, you are using replace selected. I don't see any selection... Or, I don't see any text.
And looks like the text pane is ready only, is it?
 
Yeah
 
So the point for you is to color the selected text ..red. Right?
 
Uh,that line in particular. Just that "Connecting to..." line. Not the entire JTextPane.
 
Maybe I'm missing something. But you are using replace selection. It implies that you select text and replace the selection with something else. Or?
 
2:53 PM
No, no, no!
The class apppane defines the Style for the TextPane
Then, I call the class to set the desired AWT Color to the line of text I want to display
That's it.
No extras.
 
But you use replaceSelection() ..why?
 
Oh that?
Here's the message code:
` appendToPane(log,time1.whatsthetime()+": Connecting to "+ServAddress+"\n",Color.RED);`
msg, picks up the String part (the time+Connecting to thing)
 
That's not the same code you have in your question.
 
wait whta?
oops
Soory, old pastebin code
Here's the correct code
 
I mean. Use setText() ...
 
2:59 PM
apppane(log,time1.whatsthetime()+": Connecting to "+ServAddress+"\n",Color.RED);
 
00:00 - 15:0015:00 - 00:00

« first day (1430 days earlier)      last day (3514 days later) »