« first day (1507 days earlier)      last day (3435 days later) » 

12:52 AM
Just watching a tv show when suddenly "hacking scene" comes up where they found a picture vital in solving the mystery of a missing person. "This picture was taken with her cellphone! That means the GPS coordinates are embedded in the file!"
 
1:04 AM
@fge one thing is true about the ##java channel; people will rise to correct someone wrong rather than answer a question XD
 
 
3 hours later…
3:48 AM
is there a way to write a generic like class Box<T extends A | B> T can be either A or B, and they are totally unrelated
say Box<T extends Integer | Long>
i guess it doesn't make much sense
 
I don't know enough to help you, sorry
 
no problema
 
4:28 AM
@Mario Java doesn't support multiple inheritance; so you cant..
 
well that's not about multiple inheritance
but i can see why it isn't possible
 
yeah i know
but a class can only extend A
and the declaration must be clear
with A.. i mean a class
@Gemtastic hello
 
Hi Ita
 
how r things going on?
 
Not doing much atm :P
Listening to amazing singers such as sissel kyrkjebø and colm wilkinson
 
4:35 AM
lolz.. i ve never heard of them :-P
 
and
Sissel is the reason I sing
(ignore that it's a religious song, it's her voice that's amazing)
Well, actually both are kinda religious; the song Colm sings is a priest praying for an injured young man >_>;
 
just a man? :-P
 
Fraying for, not to :P
 
:-O :-I
 
It's from the musical "Les Miserables", the song Colm is singing
 
4:49 AM
and i guess it must be a famous musical
 
Yes, yes it is
 
fge
@Gemtastic well, that's quite a different set of mind than this room, that's sure
 
Well,this could be the prelude to Java the musical
 
haha
 
you guys are from?
 
fge
5:04 AM
@Mario Earth
(I think)
 
the Milky way
I am not sure which galaxy you are from..
 
I come from the delta quadrant
 
@fge One random question, Do you have a day job?
 
5:09 AM
 
fge
@ItachiUchiha not at the moment
 
@Mario haha XD
 
@fge still studying?
 
fge
@ItachiUchiha nope... Unemployed ;)
 
@mario lolz
 
5:19 AM
as a TNG fan, i felt offended
 
@Mario why?
 
but then i started laughing.
 
ahh.. i see.. taking a break from the normal life ;-)
 
one of my favs
 
5:23 AM
@fge atleast you are utilizing your time creating libraries :-)
 
fge
@ItachiUchiha yeah, I've been doing this ever since I was unemployed basically
My last job was python, so I had to remove that bad taste from my mouth :p
 
sounds like you've been unemployed for ages.. :-P
 
in swedish pyton means "tastes disgusting"
 
keeping humour aside, how long? @fge
@gem lol
 
Hello.. got a question
 
fge
5:31 AM
@ItachiUchiha very long
 
often times, if you have a String instance variable and you used getters and setters... why is it not possible to say getName = "Jeong"?
object.getName = "Jeong"
oh, i see my problem now!
ahahaha
 
because it's not a private variable
 
i can use set name..
 
@fge give me a figure. I would like to know,, if i ever quit, how long can i survive without one..
 
fge
@ItachiUchiha don't want to tell, I'm kind of ashamed of it :p
 
5:33 AM
hello @Gemtastic ! been a while .. thanks for the response
 
@LeeJeong Hello.
 
@Gemtastic actually IT IS a private variable, thats why i used getters and setters...
 
In order to make the variable private to the class only you have to write:
private String getName = "Jeong";
 
the problem is, i was trying to change the String instance variable by using the get method
 
fge
@LeeJeong you cannot assign a value to an expression
Only to a variable
 
5:35 AM
@LeeJeong Your variable is called the same as the getter
 
like say im on another class and i want to change the name, object.getName() = jeong... i thought this was possible, coz what the method was returning is still an object
@fge i dont know why it came to me naturally to that approach.. i cant exactly remember where i do use get methods and directly assign variables to it.
 
fge
@LeeJeong no -- again, cannot assign a value to an expression
 
Object.getName() will return a string
+1 to what @fge just said
 
@fge thats what exactly ECLIPSE was punching into my face...
 
fge
Oh, so Eclipse does some things right :p
 
5:38 AM
haha
 
but i do remember.. i did that thing.. from an expression assigning a value.. ahaha. nvermind. this is a lesson.. for this, i give you a STAR! haha. just kidding..
 
fge
@LeeJeong in other languages, maybe, just not in Java
 
but i do remember.. i did that thing.. from an expression assigning a value.. ahaha. nvermind. this is a lesson.. for this, i give you a STAR! haha. just kidding..
 
fge
Hmm, I'd like to have feedback from dropbox users to know what they use the most frequently
 
guys, was reading java's doc
how does java solve this overload:
nvm. lol
i'm an idiot
was looking at the previous row ahah
but question, there's no subString(index, length) in java's string, right?
only startIndex, endIndex
 
6:05 AM
@fge There is nothing to be ashamed of. From what I can see, you have definitely raised your bar. Now you can even look for job, which excites you(for e.g. something related to java) :)
 
fge
Hmmm, I've just had an idea of another filesystem
 
I wanna get to that point too >_<
 
fge
A git based filesystem
 
:O
 
fge
Branch to a remote and fetch only what you need
 
6:06 AM
@fge Git based filesystem?
 
fge
Could be nice
@ItachiUchiha for instance ssh://git@github.com/user/repo?tag=mytag
 
@gem Do you think creating a GUI for @fge dropbox file system is a nice idea?
 
fge
Eh, I don't think it's worth it
 
@ItachiUchiha I could try :)
 
fge
DropBox already has GUI apps
 
6:08 AM
@fge y not?
 
ah
 
fge
@ItachiUchiha that would just be a casual file explorer with nothing really new
 
@fge Does your filesystem does anything other than the API's that dropbox provides?
 
fge
Mind you, it could be an alternate to DropBox's clients, of course...
@ItachiUchiha well, it provides (nearly) full java.nio.file support
So you can directly, say, create a zip file from the contents of (part of) your dropbox account
Open a dropbox fs, open a zip fs, copy recursively from one to the other
Also, it does not account for many features of the dropbox API
Integrating them would be possible, however
 
Oh that is cool, but why would someone want that? Can it Open one or more dropbox fs, create another zip fs on dropbox and copy the contents?
 
fge
6:12 AM
Hmmm, embedded filesystems? Not sure I can do that without copying locally first
 
fge
DropBox has no llseek(2) support
 
and I have no idea what that is :P
 
fge
But that would require support in -base first
@ItachiUchiha seeking into a stream
It does not have that, nor mmap(2)
Which is not very surprising given that it uses HTTP
It would require quite the hack to make both work
Also, no WatchService (yet), no UserPrincipal/GroupPrincipal (yet)... All this is yet to come
Meh, it's only been a week since I've started it all
 
Errhh, sometimes I wish I could understand all the terms :)
 
fge
6:15 AM
=javadoc WatchService
 
@fge java.nio.file.WatchService: A watch service that watches registered objects for changes and events. For example a file manager may use a watch service to monitor a directory for changes so that it can update its display of the list of files when files are created or deleted.
 
fge
=javadoc UserPrincipal
 
@fge java.nio.file.attribute.UserPrincipal: A Principal representing an identity used to determine access rights to objects in a file system.
 
fge
=javadoc GroupPrincipal
 
@fge java.nio.file.attribute.GroupPrincipal: A UserPrincipal representing a group identity, used to determine access rights to objects in a file system. The exact definition of a group is implementation specific, but typically, it represents an identity created for administrative purposes so as to determine the access rights for the members of the group....
Whether an entity can be a member of multiple groups, and whether groups can be nested, are implementation specified and therefore not specified.
 
6:15 AM
Michael has done a pretty good job with the bot ;)
 
fge
=javadoc FileSystem.getPrincipalLookupService()
 
@fge Sorry, I never heard of that class. :(
 
fge
Eh?
 
=javadoc FileSystem#getPrincipalLookupService()
 
@ItachiUchiha That method doesn't exist.
 
6:16 AM
=javadoc FileSystem
 
@ItachiUchiha java.nio.file.FileSystem: Provides an interface to a file system and is the factory for objects to access files and other objects in the file system.
 
fge
=javadoc FileSystem.getUserPrincipalLookupService()
 
@fge Sorry, I never heard of that class. :(
 
fge
Grrr
 
=javadoc java.nio.file.FileSystem#getUserPrincipalLookupService()
 
6:17 AM
@ItachiUchiha UserPrincipalLookupService getUserPrincipalLookupService(): Returns the UserPrincipalLookupService for this file system (optional operation). The resulting lookup service may be used to lookup user or group names.
 
@fge dont thank me :P
 
fge
=javadoc FileSystemProvider
 
@fge java.nio.file.spi.FileSystemProvider: Service-provider class for file systems. The methods defined by the Files class will typically delegate to an instance of this class.
 
fge
=javadoc Path
 
@fge java.nio.file.Path: An object that may be used to locate a file in a file system. It will typically represent a system dependent file path.
 
fge
6:17 AM
=javadoc FileStore
 
@fge java.nio.file.FileStore: Storage for files. A FileStore represents a storage pool, device, partition, volume, concrete file system or other implementation specific means of file storage. The FileStore for where a file is stored is obtained by invoking the...
 
@fge now you can stop spamming
 
Hi friends
 
fge
OK :p
 
@user2335416 heya
 
fge
6:17 AM
Anyway, those are some of the things that I had to implement
 
could any body tell me which is the best jsr and jcr we can use in a java project?
 
I will have to go through this nio.file package
+ Noted!
 
fge
@ItachiUchiha most of the time you will only ever use Paths or Files
Plus FileSystems to create new file systems (I've yet to integrate dropbox into the spi)
=javadoc FileSystems#newFileSystem(URI, Map<String, ?>)
 
Which one do you mean?
* #newFileSystem(URI, Map)
* #newFileSystem(URI, Map, ClassLoader)
 
fge
Ah well
This is how you'll create a dropbox fs eventually
 
6:20 AM
I c
 
fge
You can, for instance, already create a filesystem with "jar:file:/some/zip/somewhere"
And manipulate your zip contents like that!
Well, I have a lot to do -- including documentation
So, back to the IDE
 
good luck, I will read about these and see if there is any way I can contribute and create another PR :P
 
fge
@ItachiUchiha wait till I've written some documentation
It will be a lot more clear
 
@fge Well I can go through the base project
 
fge
Which is still poorly documented but you can get a grasp of what it is doing, certainly ;)
 
6:24 AM
The readme is poor
 
fge
Yup, I know
 
you can add more data in it
 
fge
But I don't want to make a book out of it
I prefer linking to the wiki
(or using an external site for the docs -- I just don't know which one)
I hear readthedocs.org is good
 
Never heard abut them
 
fge
Anyway, you only have to implement one interface for a new filesystem, and extend one class -- and extension is pretty basic
Also, I'd like to use DI, but I've no idea how
 
6:29 AM
Dependency Injection?
 
fge
Yes
 
You can use spring
 
fge
Nothanks
 
You don't want to use external lib?
 
fge
Well, right now I have no external dependencies; I was rather thinking about using only the annotations
(ie, javax.inject)
It can help for tests
Because for tests I can then depend on a DI library (guice or dagger have my preferences)
 
6:32 AM
hmm
 
fge
But annotate what, and where, is the question
Also, I'm not sure DI can work alongside SPI
Could be nice if it did
 
Ok, I see what you are aiming
But, isn't DI a part of JavaEE?
 
fge
It is but since then it has been "externalized"
You have a jar for javax.inject annotations which you can use
And both guice and dagger support these
Just like the servlet and jsp APIs and other stuff as well
 
fge
Well, there's a thing you can do: implement a no-op WatchService ;)
 
6:44 AM
No operation WatchService?
 
fge
Yep
One which never returns any watch key
The interface is pretty simple
.close() should be tested though ;)
 
I am going through the interface
 
fge
.take() could be a problem
As I read it you have to wait an infinite amount of time... Bah, a loop with TimeUnit.HOURS.sleep(1L) should do it
And throw an IllegalStateException if you get out of the loop (you shouldn't; InterruptedException would come first)
Also, "A watch service is safe for use by multiple concurrent consumers" <-- therefore use an AtomicBoolean to detect whether the service is closed
Heh, public static final class Epic { public static void fail() { thrown new IllegalStateException("how did I get there??"); } } -- in code: `if (badcondition) Epic.fail();
 
jeez
 
7:06 AM
Morning
 
morning
 
@fge brb
 
fge
7:20 AM
Anyone know of a good readup on DI? In particular, how/when NOT to use it?
 
I kinda want a good readup on multi-threading
I wanna learn how to do that
 
@fge well, when not to use is a bit difficult to tell but it shouldn't be used unless you know exactly what DI is
 
fge
@Gemtastic the read you want is jcip
It is somewhat outdated (but not that much) API wise, but its explanation of fundamentals is still spot on
 
@fge "Book by Brian Goetz"?
 
fge
@Gemtastic yes, that one
And I have poked Mr Goetz a couple of times for a v2 -- no reply yet
The arrival of streams in Java 8 makes a good field of study though
 
7:24 AM
@fge I'll look into it
 
fge
What with collectors, spliterators and other stuff
@Mr.777 I can see what it does technically; what I'm not sure about is the good use case scenarios for it
The ancestor of it (Spring) has left a bad taste in many people's mouths
 
@fge Do you do web development?
 
fge
@Mr.777 no, server side development only
I do have a web site but it outright sucks
A monkey would have styled it better -- behold: json-schema-validator.herokuapp.co
 
@fge I won't call it web development though as it has nothing to do with any dynamic stuff
 
@fge It only shows to lines of text to me
O.o
@Unihedro
 
7:29 AM
How Java folks :)
 
@Ste you are making no sense @ all
 
Frnds.. Is there any card game built over Libgdx ??
 
@RoshanJha Hello
 
fge
@Gemtastic eh?
@addy123 probably so... I don't know of any however
@Gemtastic I warned you -- it sucks
But here at least it displays, well, the site
 
@fge To me it's a pink banner and some kind of link
 
fge
7:35 AM
@Gemtastic uh... Screenshot? Also, what OS and browser?
 
What does OS & browser has to do with web view?
 
fge
@Gemtastic what the...
Oh, sh
THe URL is wrong
(missed the "m" at the end, meh)
 
NOw I see a site
But, yeah, there are some clipping issues
 
fge
Only that? :p
Given your talent at graphics design I'd have expected that you said "yeah, it sucks all right" :p
 
7:43 AM
I see your theme and it could be used to make it nice, but it really bothers me that the menu covers the text so I can't read what the site even does
 
fge
What menu? It is horizontal here
@Gemtastic screenshot?
 
Not one bit ashamed of my tabs
 
fge
@Gemtastic ah, I see... I don't have this problem at all here
@Gemtastic but yeah, my "design" sucks
If you have some spare time some day... ;)
 
@fge Well I do :P
When you webdesign you need to have all browsers (old and new) and preferably more than one OS
 
fge
@Gemtastic then feel free to hack :p Site project is at github.com/fge/json-schema-validator-demo
 
7:55 AM
@fge I'm not that terribly great XD
 
fge
Meh, I only run Linux and up-to-date Chromium and FireFox
@Gemtastic given my level which is 0, you are infinitely better than me
 
My firefox should be up to date; I installed it less than a month ago
 
fge
Wow, json-schema-validator has 92 forks! So why do I have so few pull requests? :/
 
Morning everyone
 
Morning
 
8:10 AM
@fge coz most of them don't work on it :P
 
Hello all! Lots of new faces in the room today :P
 
fge
Moo
 
@Gemtastic
 
@Unihedro You missed the moment
Drunk guy was drunk
 
But I was at school! :P
 
8:19 AM
G'Morning
 
monking
 
@Unihedro Yeah, but I dunno if there are any other moderators in this room
 
Still recommend the conversation trashed? If you think having it in the transcript harms the reputation of the room, I can always do that.
powers up the chat message annihilator...
 
fge
@Unihedro well, it is of no value to anyone
So, scrapping it won't be a miss
I guess you could leave it for some sociological boffin to study at length, but that's about all its worth
 
@Unihedro More like back then we could have used someone steering up the conversation
 
8:21 AM
@Gemtastic Java Concurrency In Practice
 
@Unihedro That's not what I was referring to
 
@Gemtastic ... is an excellent book on this matter
 
fge
@Unihedro I have already suggested it :p
 
Oh :-(
 
@Unihedro I'll see if I can get my hands on it
 
fge
8:23 AM
Well, it shows that you have good taste in books :p
 
^_^
 
fge
@Gemtastic just buy it, it's worth its weight in gold
 
@fge Oh, I thought Uni read that you had commented on it XD
@fge Sadly I don't own even the gold to buy it :/
 
fge
Hmm, OK, some crowdsourcing for @Gemtastic please
 
Kickstarter: Give poor little Gemtastic monays for books
(money is misspelled on purpose)
 
8:26 AM
donates two cents to the crowdfunding project
Yes. Write code. — Unihedro 5 secs ago
^ someone vote to close that horrible question please
 
fge
@Gemtastic if a v2 comes out I'll buy it and send you the v1 by mail :p
 
@fge Aww ♥
 
fge
In the meanwhile I have ordered myself my Christmas present: amazon.com/s/…
 
Parsing Techniques
 
Hey, it's a book on parsing theory!
 
fge
8:34 AM
I am impatient to receive it
@Unihedro yeah, I need it badly for grappa
 
I remembered when you were looking for good books in the field, did you get an answer?
Oh yeah you did. :P
 
fge
It's pricey though
But the TOC appealed to me, so...
 
Ohh
The second edition is twice as expensive as the first edition. xD
 
fge
Meh, no matter; I spend more than that when I treat myself to a jazz festival
 
hmm... what would I give to be able to handwave such expenses, too
 
8:42 AM
That's great! No music, no life :P
 
fge
@Vogel612 you only live once
And I'm not a youngster anymore, far from it
 
Thinks fge is rich, even without a job :D
 
@fge but I am a youngster....
soo I don't really have the money.
 
"You only live once" is a false statement... You live every day, you only die once.
7
Kind of ironic that my random #chatroomthought got three stars instantly...
1
Q: Are question asking for resource recommendation on-topic?

Bleeding FingersI have seen that questions asking for book recommendation are considered to be okay/on-topic on this site. Is the same stance adopted for other sorts of resource recommendations? If so, why are such questions considered on-topic on this site?

Yay Theoretical Computer Science likes book recommendations!
 
fge
I should read this site more often
But that would make even less time to code
 
8:46 AM
Priorities...
 
fge
Yeah, especially since I'm about to fix the attributes conundrum
The java.nio.file API makes it really hard to implement those -- fortunately I have found a solution to make it much easier to implementors
 
Usually my flow goes like this: Development first, then leisure goes to reading and learning something new :)
 
fge
(after all that's the whole point of java7-fs-base)
 

« first day (1507 days earlier)      last day (3435 days later) »