« first day (1575 days earlier)      last day (3373 days later) » 

12:10 AM
nice
 
fge
12:27 AM
OK, video done
Now, upload
 
fge
1:19 AM
Part 4 online!
 
I'll watch tomorrow
 
fge
1:39 AM
Well, I'm done with java.nio.file
Or npt
s,p,o,
 
 
2 hours later…
4:07 AM
Part 4??
 
good morning :)
 
4:25 AM
mrng
working on weekends?
 
yeah..
 
 
4 hours later…
8:01 AM
hey guys... i have built my swing app for about 90% already... and its going to have some more extensions i bet in the future... its built on a design that has embedded SQL on its DAO implemtations...
and then @Gemtastic told me about JOOQ... i read about it, and i cant wait to use it. but as i said above project is already 90% built. SHould I refactor my program now or just wait for the project to finish and use JOOQ on my future projects... just want to hear some comments or points about this..
 
@LeeJeong you need to ask @fge
 
oright.. tagging @fge, i dont even know if it was @Gemtastic that told me about JOQQ or @fge .. ahaha.
 
fge
8:48 AM
Moo
@ItachiUchiha yes, 4
Part 3 was attributes
Part 4 is manipulating filesystems
 
Ahh
btw, while we are discussing file systems
I have a question
 
fge
Shoot
 
In my mediaplayer, which can be run on multiplatform, how do I make sure that the filepath which the user selects is independent of the filesystem.
 
fge
Uh?
 
ahh, wait I'll get back in sometime
 
fge
8:52 AM
Well, if you open a local file, how can it not be dependent of the filesystem of the user
 
and I will elaborate on it
 
^^
 
fge
OK
 
@fge Whoops... No idea why I made it recurring, it wasn't supposed to happen
 
fge
Well, sh*t happens
 
9:00 AM
@fge dude~ I would like to ask some opinion about JOOQ
 
fge
Opinion? Use it and drop everything else
(except maybe mybatis)
That is my opinion :p
Now, what do you want precisely?
(hmm, maybe I should do a session on jooq, however I need to practice a little more
 
I had my project written, out of ignorance, embedded SQLs on my DAO implementations... then you told me last year about JOOQ, when i was asking about ORMS.. i didnt read about it until this week. its awesome... cant wait to use it. however project is almost 90% done.. or 95%
should i still rewrite it and use jooq instead
 
fge
Well, how long do you think a rewrite will take and, more importantly, can you afford it?
 
i think it was still quite necessary for me to have written my program in the primitive way to familiarize myself deeply about SQL
... i dont know. i suck at estimation
isnt there a free version of JOOQ?
 
fge
Yes there is
I use it
 
9:08 AM
i got quite confused when you asked about affording it.. or you mean something else?
 
fge
Can you afford the time it will take for the rewrite is what I meant
 
right.
i guess ill have to wait for the project to finish and use it on other future projects..
 
fge
Well, you know, if you use git you can just create a branch and start to work with it
 
or when time is available to refactor the project.. right now.. crunch time. zzz... code duplication. how sinful of me
im still confused with git. fvck.. im so lazy, or im just drowing on the details..
lol. i was quite afraid too that the project would be leaked/hacked and used by others... wahahaha. (youd think i look so big of myself)
 
fge
^^^ I made this video
And, uh, jooq twitted it
 
9:12 AM
nice
can you recommend a tutorial or resource to learn about git
 
fge
Hmm, not really
There is a s*load of them, that's the problem
 
yeah.. figured... im much more comfortabe with SVN.. because thats what we use in the office..
problem is from what i know.. you need to have a server where it should be configured.
 
fge
What? git?
No, not at all
 
ok back..
@fge The problem I am facing is javafx FileChooser has a method which returns *.io.File
 
fge
Well, use a wrapper method, obtain the list and .map(File::toPath) :p
This is what I do in my project
 
9:22 AM
@fge no what i meant was the SVN
 
@LeeJeong start with the basics of git
 
@itachi its not that complicated right?
 
fge
@LeeJeong honestly I have no idea
I have dropped SVN/CVS a loooong time ago
 
@fge but whyyy??
 
even I was poor at it a few weeks ago (althought, I am not a pro yet). But, once you get hold of it, you will never look back
 
fge
9:23 AM
They are nothing but a distant (bad) memory to me, now
Why what?
 
@fge most of the business here in the PH are still using SVN, there should be a reason
 
fge
Yes there is: reluctance to change
(and what is PH?)
 
for you what was the reason you dropped it over GIT
Philippines.. xD
my country
 
fge
OK
Uhwell, the first argument which bought me over was the integrity guarantees
And then I discovered how it really worked
(that is, how it stores commits etc, the distributed nature)
The rebase capabilities, git add -i/-p, git stash, etc etc etc
 
sorry to make you a product endorser of git, but would just like to ask questions based on personal use for i dont really know... none of my software engr colleagues does mention that too
 
fge
9:26 AM
In fact git didn't even have stash when I started to use it
And of course, bisect
(which all distributed VCSes then stole)
 
it also does compares right? it has history of changes... I reallly dont have an idea. sorry if i sound so stupid
 
fge
Well, that's a VCS so yes you have the history of commits
It wouldn't be worth much as a VCS otherwise :p
 
right... it wouldnt be called that if not..
 
... So... I can easily copy an existing implementation, or I can have lots of fun doing it from scratch.
 
what I do now is... copy the whole project and tag a date of it as backup. fvckin primitive
 
fge
9:37 AM
wonders whether he could make a tutorial about jooq...
 
or libgdx maybe??
with a mic
and loud clear audio
 
fge
I still don't have a mike and I don't use libgdx, so no
You should ask @Unihedro for that
 
@fge: Just curious, why do you write "mic" as "mike"? :D
 
fge
Uh, habit
 
ahaha. xD
 
fge
9:40 AM
Influenced by the international alphabet maybe :p
Alpha, Bravo, Charlie, Delta, Echo, Foxtrot, Golf, Hotel, India, Juliet, Kilo, Lima, Mike, November, Oscar, Papa, Quebec, Romeo, Sierra, Tango, Uniform, Victor, Whiskey, X-ray, Yankee, Zulu
 
What are these?
 
fge
@ItachiUchiha the international alphabet
 
International alphabets.
 
fge
Used by pilots for instance
 
fge
9:46 AM
If you have, say, a French plane which registration is F-XART, the pilot will announce itself as Foxtrot, X-ray, Alpha, Romeo, Tango
 
don't u think that stuff is a pain in the *** for pilots??
 
fge
Well, no, in fact it is quite convenient
 
imho, it gives more clarity to the listener..
 
fge
For one, it is very useful when your communication is not crystal clear
 
9:54 AM
@Swordy ... nonsense, everyone uses international alphabets
 
OMG, we have the original computer in our room
bows
 
fge
Good, let's fire the Turing test
 
LOL
I am Computer one
 
Lies.
 
9:57 AM
What lies ?
 
If you are a true computer, you would at least interface language with the perfect grammar.
 
haha
I have a major doubt..
 
a relative of General Failure?
 
Some of my friends are in I.T Service based companies like CTS, WIPRO, ZOHO..
I just do programming in my free time

MY question
Who is more likely to gain more knowledge ?
 
quite vague
 
9:59 AM
@Computerone Neither.
 
@fge Review needed... Do you think this piece of code can be tested.
 
@LeeJeong If you are from India you would understand the question
@Unihedro how ?
 
doesnt matter... been working for comapny for 3 years.. what you would know is based from your need.
 
@ItachiUchiha Yes.
Also, your automatic comment sucks.
/**
 * Created by itachi on 10/2/15.
 */
 
10:01 AM
@Unihedro haha
well, blame me for not removing them
and blame idea for creating them
 
fge
@ItachiUchiha you point to the whole tree
And then, well, what do you want to test?
 
Well, I though of writing test cases for the code done so far, so that I can follow TDD for the rest of the code
 
fge
github.com/TheItachiUchiha/MediaPlayerFX/blob/java8/src/main/… <-- escape of this during object construction!
Also, you don't check whether the resources are null
 
@Unihedro that auto-comment in some javabot files is worse
 
How much time do you allvspend on SO ?
 
10:04 AM
it's an actual comment on the first line..
@Computerone depends
 
LOL
 
well it's the truth
 
fge
@ItachiUchiha by the way there is a dialogs library which "salvages" the future Javafx dialogs
This is why the latest version of ControlsFX marks its Dialog class as deprecated
 
@fge The Javafx dialogs won't be official till 8u40
so I created my custom dialogs
 
fge
Yes i know
 
10:08 AM
=javadoc Class#getDeclaredMethod(String)
 
I couldn't find a signature with that parameter. Did you mean this one? (type the number)
1. java.lang.Class#getDeclaredMethod(String, Class[])
 
1
 
@Vogel612 Method getDeclaredMethod(String name, Class[] parameterTypes): Returns a Method object that reflects the specified declared method of the class or interface represented by this Class object. The name parameter is a String that specifies the simple name of the desired method, and the parameterTypes parameter is an array of Class objects that ...
identify the method's formal parameter types, in declared order. If more than one method with the same parameter types is declared in a class, and one of these methods has a return type that is more specific than any of the others, that method is returned; otherwise one of the methods is chosen arbitrarily. If the name is "<init>"or "<clinit>" a NoSuchMethodException is raised. (1/2)
 
fge
Still, there is this:
compile(group: "org.controlsfx", name: "openjfx-dialogs",
    version: "1.0.2");
 
gradle FTW
 
Whats crackin ya'll?
 
fge
@ItachiUchiha well, I don't do that
 
I am on SO on valentines day! Does my life get any better!? :D
 
Yes it does...
 
@fge ahh, I will move them to the methods defined above :)
 
10:13 AM
Valentine day is no special day it is just like other days
 
@Computerone So true botha.. Thats what I keep saying to myself! :)
 
but, then I need to have a mediaPlayer reference floating at class level
 
@codeMan What's Valentines day?
yesterday, by Unihedro
Happy Singleness Awareness Day!
 
@Unihedro i really loved that
Is SO reputation really your reputation ?
 
10:16 AM
Haha.. good one @Unihedro
 
@Computerone SO rep is a measurement of your contribution and how much the site believes in you.
 
fge
@ItachiUchiha you use, well, code to bind and I use FXML, so we don't really have the same architecture
 
^^^^ Thats how programmers party!!
BTW... did you guys know that having a ';' at the end of insert query and using a batchExecute can make your life miserable...
 
@fge well, you can't use FXML at all the places
 
fge
@ItachiUchiha your event listeners, imho, have too much "intelligence" in them; that makes it hard to test
Well, let me fork it and see for myself
 
10:18 AM
@fge What would you suggest?
ok
 
cool gif on your profile @Unihedro
 
Currently, only the menubar -> file -> open works.. @fge
 
@codeMan ehh shouldn't that???
this... eeek!
 
@codeMan :D
 
fge
@codeMan meh, use jooq
 
10:23 AM
@fge I am sorry.. I did not get that part
what is jooq?
 
@fge you won't be able to play videos in it. The Javafx media doesn't support Ubuntu 14.x versions :(
 
a quite fast ORM
 
@codeMan jooq.org
 
I did not know that such a thing as jooq exists! will check it out.. :)
 
fge
@ItachiUchiha that's OK; I need time to understand how your code works because it is really different from what I use
Any reason why you don't use the "standard" project layout, too?
 
10:26 AM
cool
@fge ??
 
fge
If you want I can send you a PR which transforms that into a gradle project with the standard layout and all
That is, sources in src/main/java, tests in src/test/java etc
And remove the compiled classes from it while we are at it :p
 
@fge You are at a different branch
please switch to java8 branch
 
fge
Ah
 
the java8 is a maven project(which forces you to use standard layout)
 
fge
Ah, OK
Why maven? :(
 
10:29 AM
the project on master is a very old copy, when javafx wasn't supported on maven
Well, I am not very used to gradle
 
fge
Since when do you need specific support?
Ohwell
OK, then on the Java 8 branch
The openFile() method
If I were you I wouldn't do it this way
I would create a method called selectFiles() which returns a List<Path>; then you could test the behavior for the case when the list is null etc
For instance, doReturn(null).when(controller).selectFiles(); verify(controller, never()).playVideo(anyString());
Since I use MVP, this is what I do: gist.github.com/fge/c696a9dea3b0851f4bb4
And this is when the load succeeds: gist.github.com/fge/bd1652b995a88815e671
(that part is a little messy by the way, but uh)
 
well, your pattern helps in writing tests. I will give it to that.
@fge I already have a wrapper class which returns List<Path> :P
but again that is just a wrapper class :P
 
user4022749
hello frndz i have a question tha
 
shoot
 
hmm.. start by writing coherent english please
 
user4022749
10:42 AM
*t how do i disable the Alt+ctrl+del keys in java swing application
 
bind a key listener to your app and prevent bubbling of these
 
If you are on windows, CTRL + ALT +DEL is a OS event key, you can't disable it
 
1
Q: Java Swing Key Press Event

Syed Muhammad MubashirI am using my predefined inherited Focus Traversal Class For My JFrame I have defined the key press event for one of my button with some action on pressing Tab key to select other tab of my jTabbed Pane . This button is not responding only for the tab key . int index=1; if(evt.getKeyC...

 
user4022749
give me specific answer can we air not
 
@ItachiUchiha actually not correct
 
10:43 AM
@Vogel612 I really doubt it
 
but interrupting that needs some really low level interceptions which you can't get in java, sooo
It's possible to prevent the bubbling though
 
Native.
 
Java is not the best language for key loggers anyway
 
yep.
 
user4022749
am i able to do this or not
 
10:44 AM
probably not
 
;;;;;
 
user4022749
creating an application like ATM machine
 
fge
@KuldeePChoudharY we are not at your command, you know
 
user4022749
there must be no control by os
 
fge
Low level OS control is, well, the role of the OS
You can't do that in Java unless you use native bindings, but then Java is not the best language for that
 
10:46 AM
Java is not the best language for what you want
 
well it may be for everything else you want, but eh
anyways, I'll be off for the rest of today.
cya around ;)
 
c ya
 
user4022749
hey bro i have a Frame which is in a full screen and if user will press alt+tab or ctrl+alt+del then there must be nothing from user end
 
user4022749
that's it
 
user4022749
??
 
10:51 AM
For single purpose machines you need to custom the system. You can't do that from pure java (and not really from native application either. those key combinations are caught by the system for a reason)
 
user4022749
yeaah
 
@KuldeePChoudharY Don't use Java, as everyone already told you. Your lack of proper skillset is not an excuse to delegate that. Use the proper tool for the job.
 
fge
@ItachiUchiha sure you don't want to switch to MVP? :p
 
@fge Switching to MVP will make it difficult for beginners
 
fge
@KuldeePChoudharY please quit with the aggressive attitude; it will not get you any closer to obtaining an answer, however you might obtain a virtual kick in the back instead
@ItachiUchiha not if you include appropriate documentation :p
 
10:57 AM
@ItachiUchiha Everything is difficult for beginners.
 
fge
And even if your user is a beginner she had better learn such designs sooner than later
 
lol, yeah
true that
 
fge
OK, I should REALLY release a version of the debugger
Enough playing around
 
lol
 
user4022749
@fge
 
user4022749
11:01 AM
:)
 
@fge Do you really think I should? Guess it is a will be a good opportunity to learn :P
 
fge
@ItachiUchiha imho, yes you should
 
my typo's.. errr
 
fge
You can even salvage the code from the debugger for that if you want; for the next version there will be documentation for it, which right now it severely lacks
 
it is a will be <-- what the f did I just write :P
I'll just finish this MVC pattern ASAP and switch to MVP for testing and refactoring..
 
11:41 AM
is there a library similar to this in Java? npmjs.com/package/colors
 
12:00 PM
Anyone know how to solve that Eclipse can start a local tomcat 8 server, but cant run a jsp project run it? The error occured after Eclipse ran the project once and than couldnt restart the server for a re-deploy.

The error only contains "Server Tomcat v8.0 Server at localhost failed to start."

I have tried to search stackoverflow for a solution, but didnt work.
 
@CristianMatthiasAmbæk looks like you have fallen into one of the most famous errors of Eclipse for JavaEE
Can you just delete the local tomcat and add it again?
 
I have tried to delete and re-install the server, didnt work.
I have tried to create a new work space, didnt work.
 
fge
@CristianMatthiasAmbæk for starters you should not rely on your IDE to start/stop an app server unless you can reliably do it on the command line
 
@fge so you saying i should manage the server from the cli instead?
 
fge
You should be at least able to do so
Because if you only rely on your IDE, what will you do the day when you have to deploy your app on a live server?
 
12:06 PM
Only learning the basics of jsp at the moment.
 
fge
Yes, and jsp means running a servlet container
 
12:24 PM
Hi..
I would need some help from you all
 
@CodeGeek Yes, as it does not present minimal code. It's closed now. Thanks!
 
12:39 PM
@Unihedro Thanks !
 
fge
1:24 PM
0
A: Deleting first line from a text file using RandomAccessFile

fge I want to delete the first line of text file using RandomAccessFile DON'T. DO. THAT. Question: what do you think will happen if the write fails? Answer: you lose everything; both the original file and the modifications you were supposed to bring to it. So, again: I want to delete th...

Meh
 
@CodeGeek It's borderline, but I'd save my close votes for ones that are more dire.
 
1:43 PM
Cool, the people on chat.SE/gaming has a Minecraft server!
 
@Unihedro Oh So the question has to be still improved ?
But I guess I was clear enough there
 
@CodeGeek It can be salvaged by peer editing, yes.
 
so what can i improve there ?
 
Morning
 
mrng
 
What's up?
 
Celebrating Singleness Awareness Day! ^^
 
Alternatively, VLQ.
@ItachiUchiha I'm celebrating singleness awareness day by joining the Minecraft server by gaming.SE people :D
 
2:37 PM
I am designing my mediaplayer, which is almost complete.
Will switch to MVP for TDD, once done with this
 
in Tavern on the Meta on Meta Stack Exchange Chat, 5 secs ago, by Unihedro
Bam, defended for another day, thanks everyone :D
Thanks @Ita :P
 
@Unihedro np :)
 
fge
<-- currently releasing grappa-debugger 0.3.0
 
gZ
 
Today is the day to make singletons
 
2:51 PM
hey
When you connect to a server that listens for both UDP and TCP, it's basically 2 connections? one for TCP and one for UDP?
 
Sad news! Overwolf is officially dead.
 
fge
@BenBeri eh? No, you just choose your "poison"
 
Also, why does /myUser/.IntelliJIdea14 take up 3 GBs for junk files?
 
Maybe, it stores indices there...
 
@Unihedro Who is Overwolf? :(
 
2:58 PM
@Gemtastic It's a gaming client that... apparently no one uses
So it's now dead!
 
Ah
 
@fge What do you mean exactly?
 
I thought it was a user on stack overflow
 
fge
@BenBeri well, you either open a TCP connection or a UDP connection; no need to open both, unless the service requires it
(that would be a strange requirement however)
 
On other news, I'm sad to see so many junk repositories I accidentally created in /myUser/.m2/repository due to mistyping in the IntelliJ interface, is it safe to delete it entirely for IntelliJ to realize it's empty to re-download it?
 

« first day (1575 days earlier)      last day (3373 days later) »