« first day (2406 days earlier)      last day (2529 days later) » 
00:00 - 17:0017:00 - 00:00

12:47 AM
morn
 
1:26 AM
morning
how do I export an eclipse project so that sysouts will show on console, i tried runnable jar but that doesn't show anything
ah I got it
you got to run it as a jar in cmd, so append java -jar
 
 
2 hours later…
3:19 AM
@Aequitas these kind of questions have been asked "hundreds" of times on the forums
 
3:32 AM
as an example when you google it ;)
https://www.google.de/search?q=java+create+jar+file&ie=utf-8&oe=utf-8&gws_rd=cr&ei=i00mWcuJFMPmUt-TqpAB#q=java+start+jar+from+console
 
4:00 AM
"Plant your own garden and decorate your own soul, instead of waiting for someone to bring you flowers." -Veronica A. Shoffstall (source)
 
4:30 AM
@motaa ye but I didn't know you had to run it as a jar from console, i had made it a runnable jar, and it didn't show console output
 
4:42 AM
do you know the difference between a runnable JAR and a non runnable @Aequitas
 
5:31 AM
@motaa nope
presumably runnables can be run
whereas the jar needs to be opened in eclipse maybe?
 
5:46 AM
@Aequitas does a file called manifest ring a bell?
 
nope
well in android ye
 
ok. A runnable jar contains a manifest.mf file. This file signals the entry point for the jar file, the "main" class
a non-runnable class does not contain this file, so it's just a library
 
okay pretty simple
 
you can import a non-runnable jar and use whatever is public there
#themoreyouknow
 
6:17 AM
\o/
Finally my laptop has a SSD and I can breathe :D
 
burns itachi's SSD to crisp
muhahahahahha
 
@ItachiUchiha Only one?
 
@JennaSloan My laptop can handle just one ;)
 
@ItachiUchiha most can only one
 
There's external drives too, you know.
 
6:25 AM
@ItachiUchiha were you holding your breath in the meantime?
that must have been quite a sight
 
Can a HttpURLConnection use cookies?
 
@Tavo not sure if that is correct... I think a non runnable JAR also contains a Manifest but there is no entry point set
 
@motaa you are right
it can. But it's not mandatory
 
@JennaSloan I have loads of external drives
@Tavo somewhat ;)
 
pics or it didn't happen!
 
6:34 AM
man i am seriously hooked by ML :D
 
lol
dude, don't
1 message moved to Trash
 
7:11 AM
How to get first date of the the current month (in a system date) using java
 
have you even googled that?
 
Yeah and there are so many answers that i tried and non of it works
 
you've tried them all. And none works
 
My intention is to display the first day - month - year (of the current system date)
 
every single java developer that ever gave an answer to that question is wrong
 
7:13 AM
Actually i dont know how to implement it
correctly
So i need advise on that
I am doing in on Jasperstudio
 
my advise is that you don't expect us write your code for you just because you are lazy
 
Well i am not lazy for real i been looking for 3 long days and every moment of it i tried
 
Isn't first date always 01? :P
 
Hello
 
I am tired of looking which one is working
at least for jasperstudio
 
7:15 AM
I really don't believe you
@IccheGuri hi
 
Oh well well if you dont believe me then is fine...i am honestly asking
 
@TheBANNED What you're asking is pretty trivial
 
You know i have no idea how java even works
 
@TheBANNED , what is your problem ?
 
@TheBANNED and here lies the problem
it's not that solutions don't work. It is that you don't know how to make them work
 
7:17 AM
ha ha
 
@IccheGuri i want to display first day + month + year (of the current system date)
 
For today
you want to display as
 
@TheBANNED That sentence makes no sense.
 
@Tavo i already told you that i dont know how to implement them
 
25/05/2017
 
7:18 AM
There is only one current system date, and it's not a "first" anything.
 
@TheBANNED
 
@TheBANNED you said that you have tried every solution you found on the internet and none of them work
 
For example this month of may show 01-05-2017
@Tavo i am not here to argue about the way i asked..
but if you dont want to help is fine...i will just go thats simple
 
@TheBANNED there's no argument. You didn't say that
 
ok then thanks all
 
7:19 AM
21
Q: Get first date of current month in java

user959883I am trying to get to and from date where ToDate will have previous date and FromDate will have first date of the current month. For January it would be 1/1/2013 and so on. How to get the first date of the current month correctly? I am not able to do it. today.add(Calendar.DAY_OF_MONTH, -1); jav...

 
@TheBANNED , this is a quite simple problem
 
20
Q: How to get name of the first day of a month?

Austin DonovanHow would I go about getting the first day of the month? So for January, of this year, it would return Sunday. And then for February it would return Wednesday.

45
Q: How to get the first day of the current week and month?

cesarlinuxI have the date of several events expressed in milliseconds[1], and I want to know which events are inside the current week and the current month, but I can't figure out how to obtain the first day (day/month/year) of the running week and convert it to milliseconds, the same for the first day of ...

 
Ok I am trying to give you a simple piece of code
 
If you're expecting "Here, copy/paste this into your code and magic happens", you will not find it here (or anywhere)
You do need to understand what you're doing, at least on the most basic level.
 
I agree with @MadaraUchiha
Try with this example
If none of these works tell me
.
 
7:21 AM
alright i will try them
thanks for your kind help
give a minute try
 
I'm not going to say it :D
 
anyone ever used Tensorflow?
 
@motaa nope
 
what is tensorflow ?
 
open source for machine learning
 
7:23 AM
I will start my thesis in machine learning
It will be very helpful to me
 
this is what i get
 
what code have you tried ?
 
@IccheGuri then this channel might be sth for you youtube.com/…
 
Our office has banned youtube
 
TODAY.ADD(Calendar.DAY_OF_MONTH, -30)
i use this
how to add screenshot in here?
 
7:25 AM
 
@IccheGuri just check youtube for machine learning recipes by Josh Gordon (googledev)
 
is there anything that goes like this new SimpleDateFormat("dd-MMM-yy").now.getMONTH?
 
ok . I will see it after returing to my home
 
@TheBANNED you really need to get the absolute basics in JAva and OOP in general
and start using the oracle java doc
I would claim that is the best doc out there ;P
 
How did you add screenshot into the chat
 
7:28 AM
/help
 
Commands=====================
/8ball     Simulates a magic 8-ball.
/about     Displays information about this bot.
/afk       Allows users to mark themselves as "away".
/cat       Displays a random cat picture. :3
/define    Displays word definitions from the dictionary.
/help      Displays this help message.
/http      Displays information about HTTP status codes and methods.
/javadoc   Displays class documentation from the Javadocs.
/learn     Teaches the bot a new command.
/react     Displays a reaction gif.
 
/8ball
 
@motaa Yes definitely
 
@TheBANNED I am not sure how to post screenshots maybe only admins can :D
 
/8ball
 
7:30 AM
@TheBANNED Concentrate and ask again
 
:D
 
lol i type /8ball and here it is /8ball
 
1 message moved to Trash
 
no button to click to add image?
 
@TheBANNED please do not post code/stack traces here. Use hastebin/pastebin/whatever other tool you like
 
7:31 AM
ok
 
/cat
 
lol
 
lol that one I haven't seen yet :D
 
maybe it's new
 
7:32 AM
ok maybe i just have to go i have no time to do this there are plenty of works to do...
 
farewell!
 
ah this one is always fun youtube.com/watch?v=tvsRSM-0_5E
 
@TheBANNED , I can help you now
Try with this code :
SimpleDateFormat dt = new SimpleDateFormat("dd-mm-yyyy");
Calendar c = Calendar.getInstance(); // this takes current date
System.out.println(dt.format(c.getTime()));
This is giving me the following output :
25-37-2017
 
lol, 37?
 
amazing
why this is giving me 37 ?
 
7:38 AM
mm stands for minutes
 
shit
 
37 :D
 
Got it
will be MM
 
#themoreyouknow
 
SimpleDateFormat dt = new SimpleDateFormat("dd-MM-yyyy");
Calendar c = Calendar.getInstance(); // this takes current date
System.out.println(dt.format(c.getTime()));
This is the final code .
@TheBANNED , hope this will help you .
 
7:40 AM
@IccheGuri please stop posting code here. As I said, use pastebin/hastebin/whatever other tool you like
 
@Tavo ,sorry man
How are you ?
I am grateful to stackoverflow .
It makes me a software engineer
 
I'm tired of this week. I just want it to end. Boring piece of work I'm doing
 
@Tavo prepping data? :D
 
What is the name of your country ?
 
@IccheGuri you mean where am I from, where is home or where am I living at the moment?
 
7:46 AM
both where is home and where are you living now ?
 
@motaa I've been doing training, had to sit in a booth in a conference for a whole day and now I'm reading documentation
home is London. I'm in Singapore now
 
oh ye that sounds boring :D
 
Java is my favourite language
I am working in it from 2010
Still I have not learnt any framework of java
 
well
it really depends on what areas you focus
 
What framework should I learn ?
 
7:49 AM
Struts! Swing! Dagger!
 
@Tavo you mean spring? :D
 
Is swing a framework ?
 
@motaa too mainstream :P
 
Maybe you mean spring ?
 
I am deeply against Spring
 
7:51 AM
why man ?
AS I know it is a very popular framework
 
so is spending two hours watching people kicking a ball. I still don't like it
 
lunch time guyz
 
Spring takes too much control away from me
 
will talk to later
 
swing is a gui framework
 
7:53 AM
have chill
 
I would go for jfx :P
 
the best part of Swing was getting the layouts right
and those magnificent humungous classes where you set up all the ui elements... mmmmmmmhhh
2
 
I don't like swing :P
it's getting messier the bigger the gui gets :D
 
8:10 AM
@wonderb0lt, have you broken your phone again? I sent you a message a while ago and still hasn't arrived
 
8:50 AM
morning
 
morning
 
now it is afternoon
which country do you live in ?
 
9:09 AM
Cheers o/
 
hey @geisterfurz007
 
@IccheGuri 'I thought it had been established that it's always morning at the java channel - apr 21 at 16:27 by kiheru'
 
ok
I had to communicate from java to a dll written in vb6
How can I pass list from java to dll written in vb6 ?
 
have you googled it?
 
@Tavo Relatable.... I had a 2k line constructor for one of my programs. Took me ~4 days to get everything seperated in several classes. Well I was a newbie when I wrote the application but still... The layouts were horrible...
 
9:15 AM
Yes
 
@geisterfurz007 Swing! Because there are people that think Java can be good in front end stuff!
@IccheGuri and?
 
morning
 
morn @Sayros :)
 
10:04 AM
dead room
 
10:20 AM
Hi
 
Cheers
 
I want to know the flow of the below program
public class Main {
public static void main(String[] args) {
Consumer<String> c = (x) -> System.out.println(x.toLowerCase());
c.andThen(c).andThen(c).accept("Java2s.com");
}
}
can some one help me out
 
10:36 AM
what ?
I have seen this program for first time
 
/fatcat
 
Heeeeey @ItachiUchiha :) Not seen you for a long time!
 
I also miss him
 
@geisterfurz007 Hello!
 
10:38 AM
o/
 
\o
 
SSD ita
 
this is java 8 lambda
expressions
 
another one of those Uchihas :D Hey @Madara
 
10:39 AM
lol yeah
 
@MadaraUchiha o/ fella!
 
whatsup uchiha brothers
 
We aren't brothers.
I'm his ancestor.
 
haha
 
10:40 AM
I have thought @MadaraUchiha and @ItachiUchiha are relatives
 
Also, I still love the fact that even though his name is Itachi Uchiha, his picture is of Shinchan, an anime character known for losing its pants and doing the butt dance.
 
lol yeah
 
@ItachiUchiha is there a way I can override the sorting of a column of a tableview? Because it is easier for me (for now) to use my wrapper and write everything in the View as String, sorting a column that contains ID's should be sorted after the numbers, but I could not found something like that :/
 
@MadaraUchiha Dead ancestor :P
 
That's what I want 'em to think.
 
10:42 AM
lol
so madara is back to javascript
again and free from java
 
Aye.
And Amen to that.
 
nice
 
got 70 rep removed...
someone upvoted to many of my amazing answers :>
 
lol
one of my friend is in israel currently
lots of photos
beautiful it was
 
@ColdFire oooh, fancy
Where were they?
 
10:50 AM
anyone here with embedded systems?
 
@MadaraUchiha the last photo shared was from mansion of Bahji
 
Nice!
 
although he will not be able to visit arab countries now or so i have heard
 
@geisterfurz007 It should be possible although I don't remember how from the top of my head. I will let you know later.
 
@ItachiUchiha Thanks a lot!
 
11:13 AM
Greetings
 
Greetings
 
What's up?
 
working out something for college while distracting myself in various ways
One beeing chatting :D
 
For what class?
 
for me it is called timewasting -.-
Competences of IT
would be the somewhat rough translation
We are forced to write protocoll during a lecture, work it out afterwards and the write about how, why and what we decided to write
 
11:20 AM
Ew....
 
I learn best when listening to what the person in the front is talking about and not writing stuff down
 
I learn best by doing, and I prefer with somebody coaching
 
I usually do not write anything except for rare lectures where I know I can use it. And these are rough notes that I can look at later to go through the lecture again in my mind. And not novels to read -.- And I do not care about what theoretically helps me with learning and what they expect me to do... But I gotta write it down because they sure know better....
@Joe'sMorgue Exactly!
 
It's been so long since I've even looked at code, it's not even funny
 
11:25 AM
Well, my code
 
After a few months of programming in Java on a daily base I tried to write something in a language that I learnt in school (Pascal) and I got literally nothing to work...
 
Pascal...I remember dabbling in that back in the 80s
 
Yeah we had it to learn the basics of programming as it is almost english with a bit extra punctuation :D
 
What is your native language?
How many chat rooms are you in?
 
o/
 
11:29 AM
\o
 
The first language I programmed in was Pascal but I barely know anthing about it anymore. Now I almost only program in Java. Rarely in batch and that only when I need a quick handy script
 
I was referring to spoken. :)
 
oh xD
german
 
xD
 
11:32 AM
I've written some seriously challenging batch files in my time
 
HINDI
 
But I mostly do stuff in English... I even think in English. And yes... I think with and against myself. I am crazy :)
 
lol
 
It actually takes me more to think in German than in English which is quite fascinating for me :D
 
I'm still trying to master English myself
 
11:34 AM
yeah me too
 
...but English is my native language
 
...well
 
lmao
 
Well one never stops learning
 
11:35 AM
American slang English
 
crazy geisssssssssssssssssssss
 
Indeed
But it massively helps me :) I think through many ways of telling someone something, certain situations I might end up in near future etc. This helps to make the right the decision some time before one needs to make it :D
 
yeah
 
And it helps to sleep faster which is another plus xD
 
Right now, I'm trying to learn more about Win10, and getting it to run properly...
 
11:37 AM
Windows 10 says no....
 
I'm running it exclusively in OS X on this computer
I expected Fusion to suspend Win10 when I shut down OS X, but when I booted this morning, Win10 had to boot also
I left stuff open to use this morning, it won't be difficult to get to, but it's the principal
 
12:09 PM
hello @ColdFire
 
12:29 PM
@geisterfurz007 that definitly is possible :D
 
@motaa I am glad to hear that :D
 
it is possible in swing so it must bve possible in jfx aswell :D
 
swing suuuuucks ♪♫♫
 
12:46 PM
Morning, Java!
 
Hey Michael!
 
hey Mic
 
Hey @gei @Cold
@Joe'sMorgue They say there are two kinds of English...native speaker English and English-as-a-second-language English. xD
 
Kinda, but no...I know people who speak better English than me, but it's not their native language...Then again, you get in the 'hood', and I can't understand what they are saying
 
^
I think so as well. I have English as a second language and almost see it as my main language. Further I know people having English as a second language as well but only because they were forced to learn it in school and do not really like it.
 
1:02 PM
^
 
I know people who have it as their first, but don't use it well
 
they are called humans :D
 
lol
 
True
 
1:29 PM
@geisterfurz007 How is that?
 
@ItachiUchiha Thinking is exhausting :P
 
and at some point one is at the point where you think "Ah screw it, just sleep" and boom next day
 
And I used to think that if someone is over-thinking, they can't get any sleep
 
That's the trick ;)
you may not overthink it :D
 
1:47 PM
Don't overthink that theory, you will never sleep again
 
2:25 PM
@geisterfurz007 lol nice
 
 
2 hours later…
4:03 PM
@geisterfurz007 Just wondering, why doesn't the default sort work in your case?
 
4:21 PM
@ItachiUchiha Because I save them in Strings. So the sorting is 1, 10, 11, 12, 2, etc.
 
4:38 PM
@geisterfurz007 The best way to do this is to use TableColumn<?, Integer> instead of TableColumn<?, String>
 
Yeah I know, but currently it is hard for me to get my head around the mechanic of the Tableview :/ So I use my own written wrapper for Strings... Maybe I should see if I can get it to work generic...
But then still I would not be able to have Integers and Strings in the same Table
 
Why not?
What is the type of your TableView?
 
currently String[]
Well if I take Object I could
 
You mean you have a TableView<String[]> ?
 
4:42 PM
That is an interesting use case.
So, it would mean that you number of columns is not defined, right?
 
Correct
and they can visually vary between rows
If there is no content (=null) then nothing is displayed
 
The easiest way to do it in your use-case would be to use TableColumn#setComparator
For a String to Integer comparison the following code should be enough:
tableCol.setComparator(Comparator.comparing(Integer::valueOf));
 
So after creating the columns after the search I would add above code for the ID column and would be set for that?
That sounds to easy for the TableView :D
 
It is :D
 
I will test that really quick :)
Would it be Integer::parseInt ?
it says that valueOf could not be resolved :/
 
00:00 - 17:0017:00 - 00:00

« first day (2406 days earlier)      last day (2529 days later) »