« first day (1600 days earlier)      last day (3565 days later) » 

04:11
good morning , have a nice day..
Thanks, I'm at school but I do wish to have a nice day. Same to you as well :p
:)
anyone here?
what is the name for int float string etc?
04:22
?
I don't understand
data type?
primative
those are primitive types
I'm writing to explain my code and want to say "I changed m_length from int to float to allow fine tuning of..."
numerical data?
@TheJavaNot-So-Pro String is not primitive.
"Data type" should be what you need, but this is clearly an XY Problem.
04:23
he was referring to primitives tho
1 min ago, by mike eustace
what is the name for int float string etc?
So, I could say, "Using the primitive type int didn't give me the necessary flexibility so I changed this to float"?
@mikeeustace Integral type.
@Unihedro is more correct here, @mikeeustace
I can't see @Unihedro - how to you unblock someone :)
unblocked... See @Unihedro - you don't HAVE to be rude to people. It's nice to help them!

Thank you.
04:26
@mikeeustace You're clearly the person who were rude last time, hence why you were kicked out of my room by me on the first place!
That's the pot calling the kettle black.
Not my loss anyway. :P
I'm receiving a bunch of byte[]s. I want to join them into one. I'm thinking of collecting into an ArrayList and then joining.
You told me to "learn to code", to a valid and politely asked question.
Any better ideas?
Stop fighting, you two. Be constructive
@TheJavaNot-So-Pro What's the raw form? String? You can use new String(bytes)
Or simply a ByteBuffer
ByteBuffer should do it better
thanks
04:27
Tree tree = new Tree (0.6, 100, 0, (25.7/180.0)*PI, HALF_PI, "F", 1, "F[+F]F[-F]F", "", "", 6);
Tree tree1 = new Tree (1.4, 300, 512, (25.7/180.0)*PI, -HALF_PI, "F", 1, "F[+FF]F[-FF]F", "", "", 5);
Tree tree2 = new Tree (4.0, 500, 512, (25.7/90)*PI, -HALF_PI, "F", 1, "FF[+FF]F[-FF]F", "", "", 3);
Tree tree3 = new Tree(2.4, 650, 512, (0.5)*PI, -HALF_PI, "F", 1, "F[+FFF]F[-FFF]F", "", "", 3);
Tree tree4 = new Tree(2.0, 800, 512, (0.5)*PI, -HALF_PI, "F", 1, "F[f+F]H[-F]F", "HF", "HHF", 6);

void setup() {
=javadoc ByteBuffer
@Unihedro java.nio.ByteBuffer: A byte buffer. (1/30)
Does the code in that link ^^ look 'elegantly written'?

I've done what we were told to do for our assignment. The output's correct but there are marks for 'elegance'
Well, first indent everything
04:32
Keep the comments consistent.
those tree instansiations at the top
you could break the arguments onto separate lines
looks hard to read presently
I want to ImageIO.createImageOutputStream(Object)
it wants a file or stream otherwise
Thank you all
is there any handy way to
write to a virtual file
not temp
I don't want to use temp files on the user's drive
04:34
Use a stream.
=javadoc ByteBufferInputStream
@Unihedro Sorry, I never heard of that class. :(
Ill find it
I don't have it
17
Q: Wrapping a ByteBuffer with an InputStream

ErikI have a method that takes an InputStream and reads data from it. I would like to use this method with a ByteBuffer also. Is there a way to wrap a ByteBuffer so it can be accessed as a stream?

apache commons or somthing?
o
ty
Gotta go seeya when I'm home :p
05:03
HI,Good morning, Jay shree krishna frns.
@Unihedro being honored
I have created one java webapp and there is one folder named "attachments" in side the web-inf now issues is that when ever I am deploying new ROOT.war file with some changes it's override the attachments folder and remove data of that folder now what I have to do?
05:21
Hello World!
fge
fge
05:55
Moo
Pika-Pika
@fge your suppose to be a bear why Moo?
fge
fge
That's not a bear
@UdayA.Navapara Well, whenever you deploy a war, it will delete the exploded directory and re-deploy the contents of the war
@SecondRikudo You are right, I installed F.lux on mac and it works different.
06:26
Good morning, Java!
Morning
@fge
fge
fge
Hello @Mr.777
@ItachiUchiha yes and always I lost my data. one way is I am copy this folder on other place before deploy and then replace it but it's not possible at every time cause of the large amount of data
@ItachiUchiha is there any way to solve this problem
06:41
@UdayA.Navapara You can copy the exploded war and not the war
@deadlydragon00 heya \o
hellow @ItachiUchiha :)
@UdayA.Navapara what is exploded war and how I can create it using eclipse
@I
@ItachiUchiha
07:02
@deadlydragon00 howdy?
@UdayA.Navapara no you cant.. exploded war is nothing but your war -> unzipped
@ShaU your nationality?
user4202350
what for
07:19
in Tcl, Mar 4 at 5:49, by Sword
u should visit Java chatroom as well . the ppl there are quite friendly except for unihedro ..
@Sword :|
haha :D
user4202350
me and uni are from same planet-->Earth, Alpha Centauri
@Unihedro you are quite strict. Not friendly doesn't mean bad :)
Welp, whatever, heading home now, seeya in a bit :P
I'm doing great for today @ItachiUchiha :)
07:21
hiya @deadlydragon00, welcome back!
fge
fge
Do you happen to know of a Unicode-oriented derivation of ABNF?
Hi @Unihedro :) , Thanks
fge
fge
07:33
1 message moved to Trash
@fge delete that permanently..
fge
fge
@Sword I don't know how (yet)
@Unihedro could help you out with that...
07:51
Hi, I'm looking for a method to calculate an end date, with a start date and a duration ?
@fge got your new mic?
is there a predefined Java class to do that ?
fge
fge
3 messages moved to Trash
@NewCoder starting with Java 8, yes, plenty
With Java 7- you'd have to use Calendar, which is, uh, painful to use
user4202350
@NewCoder i will help you..
ok, I don't care about the java version, actually my use case is that I have a start day (month, day and year) and a duration in days and I want to calculate the en date
@ShaU Ok, thanks, you have the name of the class I can use ?
@fge So, if there is a class for this in java 8, it's fine
user4202350
07:57
@NewCoder you need total days between start date and end date?
@ShaU no, actually i just want to calculate the end date
user4202350
with what?
fge
fge
@NewCoder if you have a DateTime or LocalDateTime then it's theDateTime.plus(5L, ChronoUnit.DAYS)
for example my input is (9/1/2014 and 10 for the duration) and I want to get (9/1/2014) in the output
(9/11/2014 in the output)
fge
fge
There are other ways to do it... The API is pretty complex
08:01
ok, and I have the month, day and year stored in integers
the difficulty is obviously to handle the differences between months durations if it's done manually
@ShaU are you working on it ?
user4202350
calendar.add(GregorianCalendar.MONTH, 1);
@ShaU ok, i will try this, thanks
08:27
@NewCoder don't reinvent the wheel, man
08:39
@Sword Yes?
@Vogel612n I did not, I used calendar class ;)
good...
09:04
@Vogel612 This might interest you jonls.dk/2009/12/flux-for-linux
@Unihedro ahh forget it..
@ItachiUchiha it definitely does.
user4202350
@Vogel612 hmmm :|
@Vogel612 Its REDSHIFT, you should be trying. Let me know if it is any good :)
fge
fge
09:25
3 messages moved to Trash
10 messages moved to Trash
Now please stop it; it's really annoying
The difficulty of the last half of this chapter suddenly advanced to incredibly ROMhack hard.
09:46
Welcome to java, @Batty
Thanks :)
Can I reset just one file in git, to its previous commit state? I guess no, because git takes the state of the repository when a commit is made and not a file's state. But, I just want to get confirmed
user4202350
10:09
@Unihedro How to ignore a user globally? even in real life?
@ItachiUchiha yes your hunch is correct.
well without hacking yourself into the git structure and corrupting the repo it's... impossible
alternatively you could soft-reset and commit all other files back
fge
fge
Err
You can, actually
git checkout <refspec> -- <path to the file>
Example: git checkout HEAD~3 -- file/which/I/did/not/want/modified
And this also works for directories
Recall that a commit is associated to a tree, and that you can access individual files/directories from a tree (otherwise git would not be able to generate diffs at all!)
aren't you going into headless state then?
fge
fge
10:24
No
What you modify is the working directory only
You do not modify HEAD
@ItachiUchiha Eh, I believe you can discard the working set for the specific <path>.
hmm... soo... you're not moving the HEAD into <refspec> even though you checkout? strange
As for how to, I have no idea because I never actually used it.
fge
fge
@Vogel612 that version of the checkout command only modifies the working directory
@Unihedro git checkout HEAD -- path/to/whatever
ohh... the pseudo-reset
git checkout HEAD -- .
fge
fge
10:27
Meh, I thought you knew about this already
(or equivalently: git reset HEAD --hard HEAD)
@fge I believe so, thanks!
@fge I think I used to..
fge
fge
@Vogel612 never used that version...
well it should work the same way.
but it's somewhat more verbose, brute and cannot be granulated that well
soo...
10:47
@fge Let me try that :D
Morning
@fge Isn't Head~3 taking me back to my 3rd last commit?
fge
fge
Yes; of course, you know what refspec you want
This was just an example ;)
11:03
hey check this
Morning @Gem!
0
Q: I want to write a java method which crawls through given website and download all files containing .ppt extension

deepakI want to write a java method which crawls through its sub domain means when i give String url ="www.example.com"; It should check for www.example.com/index.html, www.example.com/xyz.ppt and so on................ and find all the ppt file and download it ...

fge
fge
Hmm, I'll have to find new maintainers for both json-schema-validator and json-patch
hmm... wat?
@fge why that?
fge
fge
@Vogel612 because I don't believe I have the time anymore and, even worse, the incentive, to give them the attention they require
And yes, they are my two most well-known projects, I know that
11:06
I can help but I can't take up, I'm not on that level yet :p
32
Q: Adding Numbers with Regex

Martin BüttnerI want to try a new type of regex golf challenge, which asks you to solve nontrivial computational tasks with nothing but regex substitution. To make this more possible and less of a chore, you will be allowed to apply several substitutions, one after the other. The Challenge We'll start simple...

hey guys
I am not sure if this is right place to ask or not
but still, if we can discuss over Bit flags
user4202350
fge
fge
1 message moved to Trash
@Batty Sure. I like bithacking, so go ahead for sure!
I read somewhere, they can be used in place of booleans
but not able to get much about it
11:15
So you're packing boolean flags into bits? Look into BitSet
user4202350
@fge . Please delete this too.
It works like this: There's an underlying long variable as its API, which is represented by a word in runtime (usually unless the JVM insists not to). Every bit of the long variable represents a boolean. Its methods allow you to interact with each of the bits.
@Unihedro, @fge is too softhearted
Can you please do the needful?
@SecondRikudo Activate override
fge
fge
@Unihedro there's something I don't know how to do and that is delete messages :p
11:18
@fge You can't delete someone else's messages
But you can move them away, and then delete the -> N messages move to ROOM message.
I will check BitSet first
@fge Only moderators can. (Even if you use POST to admin/delete, it leads to a 404 because you're only RO) As an RO, you can only move messages into the bin. When you cannot assume good faith, don't just trash messages, do more effective punishment.
fge
fge
OK
General rule of moderation: Assume good faith for offender and educate; else -> punishment
BTW, @Unihedro I seem to have lost the "Don't dump code" room in my to move list
Did it get frozen?
11:20
Yes, it did.
I am new here
People stopped dumping code, so I didn't manage to keep it alive.
are there any rules to be followed?
@Batty Be nice
11:21
except from not being offencive
:)
I am always nice. :-)
The general rule is that you remain at least loosely onto the topic of the main site - that is, discuss and collaborate as professional and enthusiast programmers.
For example, gender ignorance has no place here, and neutrality helps a long way. :p
fge
fge
I hate that; announcing to my other "candidate employer" that "no, I won't join, sorry, the other party is more interesting"
But what is done is done
Well, that's one thing they will never understand - how programmers give up "better" jobs for interesting positions
HI all..
Can we close this ?
-10
Q: Questions seeking to ask help

Computer oneMy Question Are questions of the below type on topic on SO ? EDIT HERE How can we build graphs in Android ? This developer resource has less information. Example question: Create graphs and charts in Android

@Computerone You mean the question in question or the Meta post itself?
11:27
Er... deleting a question because you've found the answer kinda defeats the whole point
@Unihedro The question
@Computerone So the meta post?
No, it's perfectly on topic - the downvotes indicate the consensus of "no it isn't" and "this question lacks effort shown", not that it's a bad one.
11:28
@BoltClock Yes lack of research
I retagged your meta post.
I was tempted to ask from this question
3
Q: Create graphs and charts in Android

AbhishekI'm going to develop an Android application which deals with a huge number of graphs (really huge number). All the graphs are dynamic and should be updated in every 30 seconds. I never worked with Android graphs and charts before. Can anyone please suggest which 3rd party library will be best sui...

in Tavern on the Meta on Meta Stack Exchange Chat, 2 mins ago, by J. Steen
more cv-pls http://stackoverflow.com/questions/18656018/create-graphs-and-charts-in-android
You headed to the posts the Meta people were closing. :p
@Computerone chart involve creation of new View
But it was open for 1 year
11:31
@user3104091 Please stop spamming stars, that's really not necessary
@Computerone It escaped the review queues fortunately enough, but its fate to be closed is predestined.
question.... if I have a null iterable I am trying to access with an enhanced for-loop...
should I expect NPEs?
fge
fge
@Vogel612 yes
fge
fge
Since an Iterable is really only there to give access to an Iterator via its .iterator() method
Iterating an iterable is essentially accessing it as a reference value.
11:33
goddammit
thanks.
Want a JLS while we're at it?
hi @Unihedro @fge
fge
fge
(well, EXCEPT for arrays which don't have an Iterator strictly speaking, but then arrays are peculiar beasts to start with)
@deadlydragon00 hiya
nope I could find it myself if I wanted
11:34
@fge Arrays are such a hack...
fge
fge
@Vogel612 starting with Java 7 you have Collections.emptyIterator()
Yeah, @Vog, try Optional.of(iter).orElse(Collections::emptyIterator)
fge
fge
@Unihedro yeah, but then you have to live with them :p And yeah, the number of JVM opcodes dedicated to them is... Frightening
@Unihedro NO
@fge y?
fge
fge
Optional.**ofNullable**(iterable)
11:35
:/ whoops
I am on Java 6 again, guys..
Optionals are so tricky to use!
nice ideas, but....
fge
fge
@Vogel612 don't you use Guava? :p
Just do ifn then.
11:36
the project uses ant
Guava has an Optional too.
=javadoc Optional
and manual library maintenance
Which one do you mean? (type the number)
1. com.google.common.base.Optional
2. java.util.Optional
and stuff like... JDOM v 1
11:36
@Unihedro com.google.common.base.Optional: An immutable object that may contain a non-null reference to another object. Each instance of this type either contains a non-null reference, or contains nothing (in which case we say that the reference is "absent"); it is never said to "contain null". (1/6)
you really expect me to be able to use guava here??
fge
fge
Well, uh, a static utility method
Who knows
You know, your superiors may, uh, see the light
user4202350
11:48
REDUCE RECYCLE REUSE
user4202350
@BoltClock Good Morning. remember?
fge
fge
There, the README of json-schema-validator mentions the hunt for a new maintainer now
@fge is that a github project?
11:55
oh so both you @fge and @Unihedro working together on this project, Thats Nice
fge
fge
It will live a pang in my heart somehow, but I cannot afford to keep it under my belt when I have no interest in it anymore; a project victim of sclerosis because its owner has sentimental feelings is as good as dead
And I don't want that
@deadlydragon00 Not this one project really, I didn't help with json-schema-validator, I did help with another of fge's project, known as throwing-lambdas
wow. that cool
And fge has been helping me greatly by answering my random concerns on using Mockito and AssertJ, which was immensely helpful :p
I was also looking for fast JSON parser
fge
fge
11:57
A parser? There are many
I happen to prefer Jackson, but the choice is yours really
I am also worry on the amount of JSON load
fge
fge
And there's a JSR for a JSON API in the JDK as well, which Java EE 7 implements
Hmm, I need to do the same with JSON Patch now
And that's good, since I know of a potential maintainer already
sound great.
fge
fge
And there go my two most known projects :p
Bah, I don't really care
(is what I'd like to say)
At least now you can go live a life :p
fge
fge
12:03
Barely
My JSR 203 work and grappa are still there :p
I never had any github project before so can you tell how to start? My first project will be a simple cloud end point for mobile
Well, coz you have taken up some work, does it mean, you cannot work on open-source projects?
You may not have all the free time, but you can still keep a watch on them :)
fge
fge
@ItachiUchiha no, that's not the point; those two projects are used quite a lot and I cannot dedicate the attention they require
As such I'd much rather leave them into more dedicated hands
Amazon and Swagger for JSON Schema for instance
the project will surely miss u @fge
True. The projects may not need attention for code anymore, but there should be someone to review & accept the PR's atleast ;)
12:06
I believe @Unihedro will take care it for you
@fge Amazon as in... Amazon.com?
fge
fge
@ItachiUchiha even code wise there is stuff to do; but I just don't have the time for it and the worst is that I lost motivation
@Vogel612 yes
1 hour ago, by Unihedro
I can help but I can't take up, I'm not on that level yet :p
That's out of my league, just saying.
@fge Well, it happens. Even I have lost motivation to keep working on the project that I have currently working for the last one year. You get bored and sick of the same thing.
@MaryStar Welcome aboard!
@ItachiUchiha That's a burn out. That's different.
12:09
lool
Hello!!
Hiya @MaryStar
@Unihedro whatever
@MaryStar hi
start the initiation :>
12:10
I want to prove the Merge Sort is stable. To do that I thought to use an invariant.

For the Insetion Sort I used the following inveriant:
"At the beginning of each iteration of the for loop, if $A[a]=A[b],a<b\leq j−1$, then $A[a]$ origiannly appeared before $A[b]$."

Could you give me some hints how the statement of the invariant for the Merge Sort will look like??
Do you have any idea @ItachiUchiha @Vogel612 @Unihedro ??
nope... that's CS. I didn't study (maybe yet)
@MaryStar Idea on what?
but it was kinda interesting to see how TimSort was not ruled stable recently
which broke Collections.sort through all java versions
@Unihedro which the statement of the invariant in the case for Mergesort will be..
this is missing some mathjax..
anyways ~food
12:17
in JavaScript, 47 mins ago, by ShaU
Dont ever go to Java Room . @fge is horrible person
Aww, you made a friend @fge
@SecondRikudo You saw that just now? xD
@Unihedro No, but I kicked him just now.
I think Shau needs friend I guess, cause maybe he feel outcast or whatso ever reason! Im afraid he will go for SUICIDE
@deadlydragon00 Well, that's totally irrelevant, and we're not anyones' care department.
12:21
It was just Theory...
fge
fge
@SecondRikudo looks like it :p I'm the outspoken type anyway. And I do have defects, like everybody
12:51
drama?

« first day (1600 days earlier)      last day (3565 days later) »