« first day (2188 days earlier)      last day (2767 days later) » 

1:57 AM
i just changed jdk dependency in intelliJ, and i attempted to recompile a Class A, however i was given an error saying that the class that A extended could not be found. I recompiled this extended Class B, then went back to A and recompiled it. There was no longer an issue.
why did I have to recompile the super class after jdk dependency change for subclasses to recognize that the super class existed?
 
 
3 hours later…
5:06 AM
@Hans1984 ahah this isnt the same question i was asking before. This is like second part because what I'm trying is to get these co ordindates from my Jtabel to my Jpanel. After that I'm planning to make these move around
 
5:24 AM
@JohnnyCoder Thank you for your suggestion.. So if I put my code on server side could you please suggest me how can I secure my communication with the server while sending and receiving request or responses..?
 
morn
 
morn
 
morn
 
anyone good with GUI's am struggling pretty damn bad haha
 
corn
 
6:07 AM
@Abhijit https
if i recall correctly there are classes for just that purpose in Java EE
 
7:02 AM
Morn
 
7:52 AM
@Gemtastic Morn
corn
 
o/
Morn
@ross.c Shoot
@MadaraUchiha That's harsh
 
8:07 AM
morn
 
cat
 
cat cat
 
8:23 AM
gorn
 
torn
 
morn
 
@ItachiUchiha Dead haha
 
Guis are killing me
 
8:35 AM
lol @ItachiUchiha you said shoot na , he didnt got
 
what is your issue?
 
@i
@ItachiUchiha I'm trying to create a class which can read myCSV file, parse it, and store it into a collection of your Model class. A Controller class which will then take this collection, and display it in my JTable, and in my Map. My idea of importing it onto my Jtable
This is the output I have at the moment snag.gy/L67z9O.jpg but I cant get the co ordindates from my Jtable to my Map, I was thikning of adding a method in my paintComponent ?
@ItachiUchiha and this is my code in 3 seperate files pastebin.com/1sPv3xs5
 
@ross.c I am not very good with Swing. May be you can use this - docs.oracle.com/javafx/2/ui_controls/table-view.htm#CEGHGDFA
 
8:50 AM
@ItachiUchiha slightly different to what I'm looking for but thank you :)
 
9:18 AM
Hello Java!
 
Happy Friday Java!
oh wait...
im not Michael and its not friday :/
 
user6857832
It's Wednesday lol
 
ik
it was a joke
michael always writes this on fridays ;)
 
user6857832
I see lol
 
@Hans1984 Where is @Michael, my dear friend
 
9:23 AM
i dont know
havent seen him in a while
 
Is he coming to chat these days?
 
nether his bot :(
 
Oh okay
 
OakBot :'(
but CATrica is here
:3
!!meow
 
9:24 AM
Hi, I started working with OpenJML tool and I need to verify Java 8 code, but OpenJML tool support only Java 7 code, I would like to know if its possible to convert " .collect(Collectors.toMap(x -> x.getId(), x -> x)) " to Java 7? (I only have a part of the project)
 
Map<IdType, X> map = new HashMap<>();
foreach (X x : xList) { map.put(x.getId(), x); }
voila!
btw x -> x would be better with Function.identity()
 
thanks :)
 
@wonderb0lt Map<IdType, X> map = x.stream().collect(Collectors.toMap(X::getId, Function.identity());
Or something like that
 
9:43 AM
Good Morning
I see some developpers when they dont have a dependency to maven's module they use java reflection to instanciate lol farewell maven
 
10:18 AM
@MadaraUchiha The point was to not use streams
@MadaraUchiha But agred, the function reference for getId would have been even better
 
10:36 AM
!!meow
 
11:12 AM
Now I've finally gotten my IntelliJ license
 
nice @Gemtastic
 
@Gemtastic via employer?
 
Give me a software idea :)
 
@GianLorenzoAbaño If you're looking for something to do, a good way is to find an open source project and contribute :)
 
11:22 AM
@Hans1984 Looking for GIF?
 
yep
 
@ItachiUchiha Sorta
 
lunch break
brb
 
@Gemtastic Mutual Collaboration? xD
 
@ItachiUchiha lol
 
11:35 AM
@ItachiUchiha Something like that. Well, it's nice to have one
 
Sure
 
@Gemtastic you mean you paid half?
 
haha
May be, she won't tell you even if she did ;)
 
@ColdFire I paid for it
Since it's my personal license
 
And re-imbursed it from the employer?
 
11:38 AM
In a matter of speaking
 
how is that mutual then?
 
I get paid more
 
half re-imbersed?
 
Since the employer isn't allowed to pay for your personal license
 
wow, I wish I could do that O:)
 
11:40 AM
yeah
 
11:51 AM
@JohnnyCoder Thanks a lot for your help. I have one more difiiculty. Due to some unavoidable reasons I somehow want to have my jar file included on webpage. Now if I upload jar file on client side or webpage I will be facing security issues as anyone can download and decompile my jar file which contains code for my program.
So could please suggest me how can I secure my jar file? Is there any way by which I can hide my jar file or encryot it or make it totally inaccessible to outside world or users and let alone allow my program to access it to carry out operations...?
can someone help me?
@ItachiUchiha could you please help me...
@SepDev Hi
 
allright I hate that people who are downvoting my posts haha
 
12:13 PM
does someone have experience in AWS?
 
what is your doubt ?
i.e., doubt in AWS ?!
 
so I want to make JUnit tests for AWS but I don't find any documentation about this at the official page
Like there is a package named "aws-java-sdk-test-utils" but there is no documentation
 
what is the feature u wud like to test in ur application ?!
 
Like connecting virtual to AWS but not really establishing an connection
More like mocking the connection
 
This is for web app testign hosted in AWS
used for UI testing
 
12:21 PM
yeah it's more for the ui
But for like the AWS sdk in java?
 
@SepDev Just mock the calls to the SDK?
 
could this work?
 
It really depends on what you're doing
 
please explain detail, what functionality you are trying to validate in UI for Junit
Junit is used to test ur component logic
not the UI level of testing
 
12:40 PM
 
1:11 PM
!!hang
 
  +---+
  |   |
  |
  |
  |
__+__

-----------
 
yoo morn
 
cat
hey crabs
 
Aylo
 
user6857832
!!hang s
 
1:15 PM
  +---+
  |   |
  |
  |
  |
__+__
s
----s------
 
user6857832
!!hang c
 
  +---+
  |   |
  |   O
  |
  |
__+__
c, s
----s------
 
user6857832
!!hang v
 
  +---+
  |   |
  |   O
  |
  |
__+__
c, s, v
--v-s------
 
user6857832
!!hang a
 
1:16 PM
  +---+
  |   |
  |   O
  |
  |
__+__
a, c, s, v
--v-s---a--
 
user6857832
Do anyone know whats the word?
 
!!hang o
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, c, o, s, v
--v-s---a--
 
@ballBreaker aylo?
new greeting word
 
yeah
like haylo
!!hang d
 
1:17 PM
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, c, d, o, s, v
--v-s---a--
 
There's a lot of times D's around V's
 
haha
 
oO
 
There's a sexual joke in there if you look closely
 
i know
thats why
oO
 
1:18 PM
lmao
 
user6857832
I don't
 
you have a clean mind
thats good
 
i know
 
and you re a woman
 
user6857832
Nvm I got it lol
 
1:19 PM
crab is a nasty crab
 
user6857832
I do have a clean mind but I got it a lil later
 
now you re mind is poisoned
:p
 
@Hans1984 Did I tell you me n Dom are going as crab people for halloween?
 
lol rly?
cool :D
 
1:20 PM
 
wtf
 
haha yeah from south park
 
@ballBreaker rofl
 
!!hang e
 
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, c, d, e, o, s, v
--ves---a-e
 
1:20 PM
@Hemlata lol
 
!!hang i
 
user6857832
@ballBreaker Then everyone will get scare of ya lol. Cuz you're a crab
 
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, c, d, e, i, o, s, v
i-ves-i-a-e
 
!!hang investigate
 
invescirate?
 
1:21 PM
@wonderb0lt Correct! The word is investigate.
 
oh nice
the spelling of that was way off too
 
crab everywhere
 
Trying to fit the word to match what I want it to be
 
crab crab crab
 
crab crab
 
user6857832
Wonderbolt is smart lol
 
lol crabs
 
user6857832
!!hang a
 
  +---+
  |   |
  |   O
  |
  |
__+__
a
----
 
user6857832
!!hang c
 
1:23 PM
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, c
----
 
!!hang food
 
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, c, food
----
 
was hoping to just get really lucky
 
!!hang crab
 
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
a, c, crab, food
----
 
1:23 PM
@ColdFire Both c and a are out...
 
user6857832
!!hang hans
 
!!hang i
 
@MadaraUchiha You people suck. The word is dunk
 
@Mada are you going to take that? She's totally calling you out, bro
 
@MadaraUchiha lol we were just having fun
@ballBreaker lol crab
 
user6857832
1:26 PM
!!hang s
 
  +---+
  |   |
  |   O
  |
  |
__+__
s
--------------
 
!!hang i
 
user6857832
!!hang o
 
  +---+
  |   |
  |   O
  |
  |
__+__
i, o, s
-io--i---o-o--
 
!!hang e
 
1:26 PM
  +---+
  |   |
  |   O
  |   |
  |
__+__
e, i, o, s
-io--i---o-o--
 
!!hang t
 
!!hang b
 
Hi; with Oracle JDK8, for platforms where file locking is technically impossible, does NIO's FileLock "advisory" cause other JVM processes using NIO for file I/O to reliably respect the file lock in a multiprocessing-safe manner? (E.g., multiple JVM processes using NIO and trying to get the FileLock on GNU/Linux).
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
e, i, o, s, t
-io--i--to-o--
  +---+
  |   |
  |   O
  |   |
  |
__+__
b, e, i, o, s, t
bio--i--to-o--
 
!!hang biotechnology
 
1:27 PM
  +---+
  |   |
  |   O/
  |   |
  |
__+__
b, biotechnology, e, i, o, s, t
bio--i--to-o--
 
!!hang n
 
!!hang n
 
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
b, biotechnology, e, i, n, o, s, t
bio--i--to-o--
@ColdFire n was already submitted
 
!!hang l
 
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
b, biotechnology, e, i, l, n, o, s, t
bio-li--tolo--
 
1:27 PM
lol biotechnology
sooo wrong
 
!!hang g
 
!!hang y
 
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
b, biotechnology, e, g, i, l, n, o, s, t, y
bio-li--tology
 
!!hang m
 
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
b, biotechnology, e, g, i, l, m, n, o, s, t, y
bio-lim-tology
 
1:28 PM
!!hang p
 
!!hang bioclimatology
 
@wonderb0lt Correct! The word is bioclimatology.
 
wow that is a word
 
!!hang e
 
  +---+
  |   |
  |
  |
  |
__+__
e
e-e---------e--e--
 
1:29 PM
okay now let's not forget there was a question during the game
2 mins ago, by allquicatic
Hi; with Oracle JDK8, for platforms where file locking is technically impossible, does NIO's FileLock "advisory" cause other JVM processes using NIO for file I/O to reliably respect the file lock in a multiprocessing-safe manner? (E.g., multiple JVM processes using NIO and trying to get the FileLock on GNU/Linux).
 
Multithreaded filesystem access sounds like an excellent idea
Especially in Java! </sarcasm>
@allquicatic Have you considered a database?
They're usually meant for multithreaded/multiprocess access
They abstract locking and the such from your application and that's Code You Don't Need To Writeâ„¢
 
@MadaraUchiha Funny; however, due to a combination of high barrier to entry for getting any sort of database installed on a production system, plus the extreme simplicity and small scale of the data in question, I'm using XStream serialization to write out an object graph to XML. There may potentially be multiple JVMs that need to update the XML, but I don't want them to read a "half-written" file.
 
lol look at that frog
it has 3 eyes
 
@allquicatic I still think you should be using a document store database of some sort. I'm not joking.
 
Actually.... would a try-catch(IOException) loop work if I wrote the "new" file to a temp file (guaranteed unique temp file) and then used a move command to move the written file to the "official" location of the serialized XML....
 
1:33 PM
frog frog frog
jk
 
Might have answered my own question... I think the file move operation is atomic on major platforms
 
;)
 
@Hans1984 It's actually a Fwog from My Singing Monsters.
 
now we have a frog great add to the list of animals we have @Hans1984 cat
 
@allquicatic That depends on the FS
 
1:34 PM
The Fwog's song on Plant Island goes, "Wawawawawawao."
 
oh
my bad
fwog fwog fwog
yes cat@ColdFire
 
In some filesystems, it's atomic, i.e., the new file is written in a temporary location, there's a checksum, then the filesystem updates the reftable
In some, it's not.
(That's why you should, again, use a database, where this behavior is normalized and documented well)
 
@MadaraUchiha Okay, so, do you know of a "database" that doesn't need some kind of supervisor process like mysql / pgsql and can somehow solve the problem of multiple process access even on systems without mandatory file locking?
 
I think this behavior is called "safe write" but I'm not 100% sure of it.
@allquicatic What kind of "supervising" does mysql/pgsql need?
Also, pgsql has a specific column type for XML: postgresql.org/docs/9.3/static/datatype-xml.html
 
@MadaraUchiha It's an extra process that always runs, takes up memory, has background "vacuuming" / optimizing routines, opens TCP ports, has a multi-subdir /var subdirectory with log files, has extremely complex configuration, etc. -- which is fine in cases where a database is the only solution to the problem, but here that's almost as bad as dealing with file locking.
that's a lot of complexity to solve a problem that I should be able to solve on my own, unless you're saying it's simply impossible for multiple processes to work on the same file in any sort of thread-safe way without a third-party process to go through, on platforms lacking explicit file locking?
 
1:39 PM
@allquicatic It's not impossible, but multithreaded/multiprocessed file access is one of the biggest bug factories I've yet to encounter.
Especially in a language like Java which has little to no safeguards in this area
That's why I normally opt to avoid it at almost all costs.
But that's my personal experience, I'm not strictly a Java developer, just a guy who occastionally programs in Java
 
mmmh
I wish I still could design stuff like that
 
Actually... I may be able to re-architect my program so that it all runs within a single JVM. That way I could simply use ReentrantLock to ensure that only one thread reads or writes from the file at a time.
 
in my first job I could. Now I'm always dealing with Legacy or have """architects""" above me
 
@wonderb0lt Sounds to me you're looking for an architect position.
 
It'll be a while until I achieve this in this company
 
1:42 PM
@MadaraUchiha multiprocess is the beast; multithreaded is fine as long as you are sure that any thread that needs the touch the file will use your synchronization primitive... so I think I'm going to just do that and give up on the multiple process idea :)
 
@allquicatic The low level idea is that you have a lockfile myfile.xml.lockfile of some sort, that gets written and deleted whenever the file is touched
Then your synchronization primitive verifies the existence (or rather, lack thereof) of that lockfile
And writes/deletes it whenever it can
 
!!hang eieooiiooaaaeiieaa
 
  +---+
  |   |
  |   O
  |
  |
__+__
e, eieooiiooaaaeiieaa
e-e---------e--e--
 
The problem is that filesystem is a global state that's managed at the application level, and global state + multiple entry points = big mess
 
user6857832
1:44 PM
!!hang a
 
A database, is also global state, but one that's managed outside the application level, which makes it a bit more tolerable.
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, e, eieooiiooaaaeiieaa
e-e---------e--e--
 
I thought for sure it was just a dolphin squeel
 
user6857832
@ballBreaker That's scary as hell lol
 
user6857832
!!hang s
 
1:45 PM
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, e, eieooiiooaaaeiieaa, s
e-e---------es-e--
 
!!hang i
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, e, eieooiiooaaaeiieaa, i, s
e-e-------i-es-e--
 
@ballBreaker haha
 
user6857832
!!hang u
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, e, eieooiiooaaaeiieaa, i, s, u
e-e-----u-i-es-e--
 
1:46 PM
@ColdFire I knew you'd like that joke
 
hehe
 
lol hows a dolphine scarry
its not a shark@Hemlata
 
user6857832
Yea but it is scary
 
lol shark
 
lol
 
user6857832
1:47 PM
Look at his big teeths
 
dolphines are not scary to me
they are small
look at a great whites open mouth
then you know scary
;)
 
user6857832
Don't dolphines eat humans?
 
no
 
user6857832
Well then it's not scary lol
 
no they dont
 
user6857832
1:51 PM
 
user6857832
Here is great whites
 
user6857832
He's scary 😢
 
ahhh
 
@Hemlata They occasionally rape humans
 
why you do that to me
 
1:53 PM
That's arguably scary
 
i cant take those pictures
i have a great whites trauma
;)
 
user6857832
@ballBreaker Yea he is scary as hell 😢
 
I have dolphin trauma but I posted a picture of the one who personally victimized me
Made me into the man, or lack thereof that I am today
I'm realizing this humour is getting dark and probably inappropriate so I'll stop there
 
i watched all 3 parts of jaws when i was a kid one day and my parents werent home
i saw sharks all night long in my dreams
since that day i have that trauma
 
You know what I find scarier than sharks
 
user6857832
1:55 PM
I hate horror movies. If I ever watch em then I can't sleep whole night
 
user6857832
@ballBreaker what?
 
Being stuck in the middle of a bay at night, with rusty war ships around you and water mines that you can't see
 
i mean i was like 10 those movies were scaring the shit out of me
 
user6857832
I can't watch horror movies yet also. I jus hate em, they always scare me.
 
i watched all 3 in a row lol
 
1:56 PM
I mean it's the most weird thing to be scared of
 
user6857832
Yea
 
yeah
 
I meant water mines, and rusty warships
 
ik
 
Ohokay
 
1:57 PM
@Hemlata Just start watching them and at one point of time they will start making you laugh
because its full of crap
 
Yeah going back and watching them now is just too much
 
user6857832
no its scary
 
I rewatched the halloween movies and was laughing most of the time
 
my horror movie taste totaly changed through the years
i used to watch all those US horror movies
 
user6857832
I'm scared of sharks, horror movies, dark and so many things lol
 
1:59 PM
but for a couple of years i mostly watch asian horror
japan/korea and so on
 
I really want to watch this, but Dom got too freaked out within the first 5 minutes and we had to change it
Rob Zombie makes dope horror flicks
 
they are much more subtle
the grow in your mind after you watched them
 

« first day (2188 days earlier)      last day (2767 days later) »