« first day (1512 days earlier)      last day (3430 days later) » 
00:00 - 14:0014:00 - 00:00

fge
12:22 AM
Second filesystem DONE
Hehe
Works quite well
 
1:14 AM
Good job! And good morning
 
fge
Argh, problems with download
-EPIPE
Crap
 
@fge Which filesystem did you implement?
 
fge
@Michael dropbox, and the one I am testing currently is for box.com
 
Cool.
 
fge
As to FTP I need to rewrite it
Next is Amazon S3 but I hear there is already an implementation of it
 
1:22 AM
Ah.
 
fge
Anyway, it took me only 5 days to implement two filesystems
I quite like my new API :p
 
Really? Wow.
 
fge
@Michael yep, that is quite a nice result I'd say
But the real test is for someone else to implement a filesystem over it
 
Yeah.
 
fge
I'd sure like someone to pick up the gauntlet... I cannot be judge and party all the time
 
1:33 AM
I'll give the Dropbox one a whirl.
 
fge
I'm sure you'll find bugs ;)
In particular, attribute support sucks in it right now
I have just completed full attribute support and java7-fs-box takes advantage of it
But... Not documented yet :(
 
Why do you need attribute support?
 
fge
Because the API requires that "basic" be supported
What is more, uh, well, there are Strings, file attributes, file attribute views... All this is a HUGE melting pot
And no helper classes, of course -- that would have been too easy, right?
 
What more could you do with Dropbox if the API supported attributes?
 
fge
Set Dropbox metadata for instance
Or read it
I don't know whether you have noted, but all of OpenOption, CopyOption etc are interfaces
Which means you can implement them the way you want
 
1:38 AM
What about getting old versions of files?
Dropbox does keep a history of all the changes you make to each file.
 
fge
That would be a possibility, yes
So does box.com
You'd need to read attributes from the file first, but this can also be implemented with my API
I haven't had a go at it yet, however
But yeah, you could probably do Files.copy(dropboxsrc, localdst, DropBoxCopyOption.version("someVersion"))
Anyway, I need to sort out the basic problems first
 
Or be able to see all the different versions of a file.
 
fge
Yes, that can easily be done with custom file attributes
 
Is the access token the "App secret"?
 
fge
You just have to provide a custom implementation of FileAttributeView with a name and register it to a FileAttributesFactory (the latter is the current name; the former is defined by the JDK)
Well, right now this is the only available option
I know there can be more; but I haven't studied that part yet
In particular that OAuth2 refresh stuff is killing me; there does not seem to be a non interactive way of getting a refresh token :(
 
1:45 AM
It worked! \o/
It throws an exception if the file exists...good. :D
 
fge
Hey, I do program for such stuff; although I didn't test it for now :/
DropBoxClient is final but that's not an excuse
I should probably make a wrapper class
 
Umm...question.
 
fge
Moreover there is too much logic in FileSystemDriver, I believe
Shoot
 
You're missing unit tests!! xD
 
fge
Yes, I know
 
1:48 AM
Shame on you
 
fge
At this moment I am eating my own dog's food to see whether I have something decent
But as to DropBox I should go the way I do for box.com
Here I delegate all metadata handling to an interface, which means it's testable
 
@fge I hope you mean that figuratively
 
fge
Not so with the DropBox fs as it is currently
@Gemtastic have you never had a bad taste in your mouth after writing rotten code? :p
 
You seem to like leaving out the periods off the ends of your method descriptions.
 
@fge I have yet to write rotten code :P
 
fge
1:51 AM
Anyway, it's a work in progress, and the base API is such a beast that I have to get somewhere
 
not the best code, but not rotten :P
 
fge
@Michael yup, and not enough methods are documented anyway
 
Only method parameter docs are supposed to be sentence fragments.
 
fge
@Gemtastic you only realize that your code is rotten eventually -- that'd be too easy otherwise
 
@fge it's more like; I haven't written complex code enough to have the chance to let it rot
 
fge
1:55 AM
@Michael feel free to git send-email (or send a pull request) :p
 
In your instructions in the readme, I would specify that it's an OAuth 2 access token you're generating. That confused me.
Git send-email?
 
fge
Yup, that's the usual way lkml operates
 
> When this is done, you need to generate an OAuth 2 access token.
 
fge
@Michael pull request :p
 
-_- Ok. xD
 
fge
1:56 AM
I have a more pressing problem to solve right now ;)
 
where can I find the API of this chat?
 
fge
@Gemtastic good question; I asked @Unihedro about this and didn't get a clear answer about this either. I guess it's a question of reverse engineering... Although, since @Michael has written a bot he certainly knows more than me
 
@Gemtastic There is none, as far as I can tell.
People have had to do some reverse engineering to figure out how it works.
 
@Michael Ah, well in that case that explains why google couldn't give it to me :P
 
Yeah :(
 
2:07 AM
Hmm
I'm too n00by to work with reverse engineering...
I thought that I could maybe start working on a bot myself since my current course is getting into that kinda stuff
 
The SO-Chat bot project is pretty mature, from what I understand.
It's a JavaScript-based chat bot that runs in the Javascript chat room.
@fge You also seem to be a big semi-colon fan. xD
 
fge
@Michael you mean, in try-with-resources statements and enums?
 
No, in English statements. xD
 
fge
Hmwell, I can't really tell, this is just the way I write
Example? ;)
 
Well, in the readme anyway.
 
2:14 AM
@Michael yes, I'm looking into it
 
Why are you repeating the Javadocs from InputStream in DropBoxInputStream?
It already extends "InputStream", so if the DropBoxInputStream methods don't have Javadocs, then the Javadocs from the super class (InputStream) will be used.
 
I wish I knew how to take in the SO stream >_<
 
I tried to write Java code to connect to SO's websocket. Couldn't get it to work.
@fge Pull request sent.
 
hmm
 
fge
0
Q: Copy (over a web API) is complete; I get a broken pipe anyway. How to solve it?

fgeFor one of my projects, I implement a Java 7 FileSystem (ie, JSR 292) over the Box API Java SDK (the new one). As for the old one however, for downloading files, when you want to have a stream to the content, it only provides methods taking OutputStream as an argument; specifically, I am using t...

 
2:34 AM
@Gemtastic Tried it with two different websocket libraries. Got the same result.
Instead of connecting, then waiting for events to be pushed, it reached an "end of stream" immediately after connecting.
 
fge
@Michael see comments ;)
 
@Michael And there's no information about what websocket they use? (why is that?)
 
I followed the instructions in that SO-Chat bot file. I went through the whole auth thing fine to get the URL to the websocket. But couldn't properly connect to it.
 
So how did you go about to find out what to do?
 
@fge Reading...
@Gemtastic I didn't. That's where I got stuck. >.<
 
2:37 AM
Ah
 
OakBot and JavaBot use polling. They don't use websockets.
They check for new messages every 5 seconds or so
But with websockets, new events are pushed to you, so you don't have to ping, ping, ping, etc.
 
nods
 
Also, using the websocket would tell you about events like message edits and deletions, which the bot could take advantage of.
 
nods
Yeah, I think I can guess how that works
 
@fge Responded.
 
fge
2:49 AM
@Michael replied back
Anyway, that pipe stuff is killing me
I don't know what on Earth happens here
 
@fge Ok, changes made.
 
fge
@Michael seriously, I have never even ever heard of that "two spaces behind a dot" rule
 
I must have learned that in high school.
That's what I've always done when writing a paper.
It's more: "two spaces after a period"
But, it doesn't really apply in Internet land.
HTML always ignores the second space. xD
 
fge
3:06 AM
@Michael can you squash the two further commits where appropriate?
Well, fixup, rather
 
Not sure how to do that. >.<
 
fge
git rebase -i ;)
git rebase -i origin/master
 
Is that all?
 
fge
You'll have an editor opening up with a list of commits
 
Then what... xD
 
fge
3:08 AM
Move the line of the serial warning commit right after the one where you attempted to add the serialVersionUUID
 
All I see is a vim window with "noop" at the top and some instructions commented out underneath.
 
fge
Eh?
Then quit
 
noop

# Rebase 7f42825..7f42825 onto 7f42825
#
# Commands:
#  p, pick = use commit
#  r, reword = use commit, but edit the commit message
#  e, edit = use commit, but stop for amending
#  s, squash = use commit, but meld into previous commit
#  f, fixup = like "squash", but discard this commit's log message
#  x, exec = run command (the rest of the line) using shell
#
# These lines can be re-ordered; they are executed from top to bottom.
#
# If you remove a line here THAT COMMIT WILL BE LOST.
#
 
fge
Oh
You don't have my remote, that's why
Well, you can find it
Meh, OK, I'll merge it and fix it all up myself
 
Sorry. >.<
 
fge
3:10 AM
But you should learn to rebase -i ;)
It's a very, very powerful tool
 
I guess so.
 
fge
As is git add -i
In your case, git rebase -i HEAD~6 should do the trick
If you want to learn, tell me ;)
 
Ok, well, when I quit out of vim, this message printed to the console:
Successfully rebased and updated refs/heads/master.
So I guess that means it did something to my local repository. xD
@fge I'll keep that in mind. Thanks.
 
fge
Hmm, if you didn't modify the file it didn't do anything
 
I did ":q!"
 
fge
3:18 AM
Yeah, in fact it is curious that git showed this message at all
It should have told "nothing done" or something like that
OK, let me explain
 
Or not printed anything.
 
fge
No, not printing anything is the worst thing that can happen
Because you don't know what happened, precisely
Anyway, scenario: you git rebase someRefHead and the sequence shows this: pick c1 -- pick c2 -- pick c3 (the -- here stand for newlines)
You edit the file so that it shows pick c1 -- pick c3 -- pick c2
 
So, you're re-ordering the commits?
 
fge
In this case, the rebase will be done so that c1 is applied, then c3 and c2
Yes, that is one possibility
But there are other options
There is the option to delete, in this case the commit is completely forgotten
delete the line, I mean
 
But wouldn't you loose the changes that were made in that commit?
 
fge
3:22 AM
You would in the branch -- not in the reflog
 
So if I removed the commit where I used double-spaces, it would also remove the other changes that were included in that commit.
 
fge
Yes
Which is where squash or fixup come in
If you have pick c1 -- squash c2 then all changes in c1 and c2 will be merged; and you will be presented with the editor where both commit messages from c1 and c2 appear
If the second is fixup instead of squash, then the commit message of c2 is discarded entirely
 
So, I could choose which changes in a commit I want to keep?
 
fge
You can do that also but for that you need to edit
When you edit you have the option to edit both the index and message for that commit; git will give you instructions on how to proceed
Have you ever used git add -p?
 
Ah, that's nice.
No.
 
fge
3:25 AM
You should ;)
 
What does it do?
 
fge
If, for instance, you have included too much in your last commit, you do this:
git reset HEAD~1
git add -p
It will show you diff by diff, file by file
 
Oh, that's cool.
 
fge
If you are dissatisfied with a diff, you can [s]plit it or even [e]dit it
git add -i goes even further
And after you are satisfied with your changes you can even commit with the commit message of another commit -- for instance, git commit -c HEAD
 
That's convenient.
 
fge
3:31 AM
Yup, that's git for you :p
Of course, such "heavyweight" manipulations (they alter the commit tree after all) should only be done on branches of yours which are not upstream, so as to not upset other people who use the same remote ;)
But git can do even more than that
 
I know that much. You should never modify the commit history once it's been pushed.
 
fge
Well, if it's your own playground and not anything official you can afford it, of course
Anyway, that was the Git Lesson Of The Day(tm)
 
Right. Assuming other people are pulling/pushing to your repository.
@fge Very nice. Thank you. xD
 
fge
In this case anyway, practice makes perfect
As you can create branches as you see fit, don't hesitate to practice on "dummy" branches ;)
That will pollute your reflog, of course, but you can clean even taht
s,aht,hat,
 
3:51 AM
Night all.
 
night
 
fge
Heh, that's an oldie but still useful:
5
Q: I use Guava's immutable collections (compiled for Java 6) and a Java 8 JRE, can I use the new stream interface?

fgeI use Guava and in particular their immutable collections (ImmutableList, ImmutableSet). But Guava is compiled for Java 6. If I use Java 8, can I use .stream() with them?

[13/12/2014 04:55:33] <cheeser> ~lol
[13/12/2014 04:55:34] <javabot> Maybe LOL stands for "Limited Operable Literacy".
Excellent
 
fge
4:26 AM
bangs head against wall
Why am I so stupid?
 
 
1 hour later…
5:53 AM
cc @Gemtastic @Michael ^^
Also a limited unofficial documentation: github.com/Manishearth/ChatExchange/blob/master/docs/…
Sam and I has been experimenting about the protocol in both domains chat.meta.stackexchange and chat.stackoverflow about the POST sequences, we'll document what we have later in both CE.Net and JCE.
 
Oooh
@Uni, my best friend ♥
 
6:15 AM
There's also a place where you could get help (supposedly), but...
 
Hmm
 
 
2 hours later…
8:11 AM
 
are the gifts part of a mod?
 
player heads
 
oh
Well, one can do it that way too
 
lol, they bought accounts just to make that christmas tree
 
XD
 
8:59 AM
anyone there??
 
Greetings
 
LOL
 
;D
I know you'd like it
 
9:35 AM
How to synthesise notes with the Java API?
 
9:51 AM
huh?
 
huh??
 
10:05 AM
You mean Lotus Notes?
 
10:27 AM
@Uni What does it mean if someone says "I need a refcounting CharBuffer"
 
11:22 AM
Errrrr, quiet during this time :O
 
@Mr.777 It's an object with a more specific garbage collection algorithm.
 
@Unihedro Any reading for it?
 
u,m...
In computer science, reference counting is a technique of storing the number of references, pointers, or handles to a resource such as an object, block of memory, disk space or other resource. It may also refer, more specifically, to a garbage collection algorithm that uses these reference counts to deallocate objects which are no longer referenced. == Use in garbage collection == As a collection algorithm, reference counting tracks, for each object, a count of the number of references to it held by other objects. If an object's reference count reaches zero, the object has become inaccessible,...
Wikipedia has all the readings!
 
I am working with fge & he has give me quite a tough task :D
Okay but I usually don't like wikipedia. May be it's because of it's UI
 
11:44 AM
Does anyone know about git repositories?
Why should we host code on git repositories?
 
@JavaTechnical You're implying that one should host code on git repositories.
I love SVN.
 
12:02 PM
hey can you pls help me to solve my issue with jasper reports with java
 
@user3892439 We can try. What's the question?
 
Are you hiring a mentor or learning jasper?
 
my report does not get loaded with data in the database.
I am learning
but with empty datasource, it generates the report with out data
 
You mean the data from database is not loaded into your report?
 
@Mr.777 yes
I asked the question in stackoverflow
May I put the link here?
 
12:07 PM
What's the link?
 
0
A: Nothing get loaded to the jasper report

kemosabeIt could be that your report is blank because your data source has no records. (JREmptyDataSource "simulates a data source with a given number of virtual records inside").

@Mr.777 I generated this jrxml file in ireport tool
it worked and loaded data fine
 
Hold on let me see
I was so dumb, previously I used to answer for questions with checkbox "Wiki Answer" marked :(
 
I didn't get you :(
 
@Mr.777 ..
 
:P yeah true story @Uni
@user3892439 If you just hard code the connection into your report and run from there, does it work fine?
 
12:16 PM
@Mr.777 I replied to your comment there
I created this jrxml file using iReport tool. it works fine there. BUt here it does not. I have commented out the code line with emptydata source here. with it, the report shows the image and the word null in the places needed, but with the datasource, it does not even load the picture
 
523
Q: What are "Community Wiki" posts?

Justin StandardSome questions and answers are marked Community Wiki and are owned by a Community Wiki user. Why have Community Wiki posts? How do Community Wiki posts work? How does a post become a Community Wiki post? How can the Community Wiki status be removed from a post? Return to FAQ Index

 
@Unihedro Yes, i agree. But you don't get repo against that question or answer after that :(
 
@Mr.777 Community Wiki is for posts that doesn't deserve rep for.
4428
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

^ like that one.
 
@Mr.777 That's for questions.
 
12:22 PM
@Mr.777 any help for me?
 
Yeah so for answers, if the author feels like, he has just pasted the links or references from somewhere else etc, should the answer be marked as CW
But I never knew that you don't get reputation after marking it as CW
 
fge
Moo
 
I have quite few answers marked as CW and got good score for those :(
 
Oh and, wiki posts can't be bountied after wiki-fication.
So there's that.
 
Morning @fge
 
12:23 PM
@Mr.777 ... You're doing it wrong :p
 
Yeah, I was doing it wrong :P
Now, when I see those answers, I put effort into, I often think of banging my head into some wall but then a thought appears "It will hurt"
@user3892439 Do you get any exception?
 
@Mr.777 it generates a pdf file with nothing in it
 
Any exception on console or log file (if you are logging)?
 
@user3892439 Make sure everything is being used properly, because your obtained result reveals that it's not.
You never know when you make a typo in your code.
 
not any exception
no compile time errors
no exceptions
 
12:27 PM
35 secs ago, by Unihedro
@user3892439 Make sure everything is being used properly, because your obtained result reveals that it's not.
 
@Uni you lost repo again since yesterday
It was like 57.. yesterday
 
@Mr.777 Don't remind me!!!
 
This is the question once again. It generates the pdf file with the picture in the template and static text when I am using empty datasource
But with the data source , the pdf contains nothing
 
No.
 
@user3892439 There is different between an empty data source and a datasource returning null or wrong queries syntax something like that
 
12:32 PM
From your own question:
> I get a blank pdf file from this code. But when I use a JREmptyDataSource the report is generated with null data.
 
the code is inside a try catch block. if there are any exceptions like syntax errors it should be shown in the console
 
How do you do this? Tabbed space like you did now? @Uni
@user3892439 Syntax errors in the queries won't reflect in your console. I am not sure if it will throw exception outside to be catched in your java code
 
@user3892439 There is no exception. Everything follows the contract, but you have a logic error.
@Mr.777 Do what?
 
@Unihedro Tabbed space, like you did "From your own question:" and then the user's comments
 
what is the logic error here?
 
12:34 PM
> quoted blocks?
oh and comments on posts on main sites? — Unihedro just now
 
Yeah
 
@Unihedro the sql query is in the xml file
it worked fine in ireport tool
 
anyone here?
 
@TaimurAyaz Hmm?
 
12:39 PM
It depends on where "here" is.
 
@Mr.777 HI
ever worked with recyclerview?
 
Nope never heard of it
 
fge
Good, pipe problem solved
Not the way I'd have wanted, but...
 
Can you please take a look here?
0
Q: Gridview items changes order using a RecyclerView

Taimur AyazThe gridview items change order randomly sometimes when i click on items and mostly when scrolling. I have searched all over the internet but couldn't find a solution which works for recyclerview. This is my layout adapter class public class LayoutAdapter extends RecyclerView.Adapter<LayoutAdap...

 
@TaimurAyaz What's with that code formatting? How do you even see anything with that? It's so inconsistent and hard to read. And no code commenting?!
 
12:45 PM
@Unihedro sorry about that
 
And do you have a extra } somewhere?
 
nope
 
Huh, then Eclipse is drunk.
 
I am using Android Studio
 
@TaimurAyaz Errrr I didn't like it @ all
 
12:48 PM
Its a very long file so I just deleted most of the code for simplicity
 
1:23 PM
I have a system architecture question, if anyone is interested in discussing?
no..maybe? not even a lil bit interested? :P
 
Nope, not really interested in architecture. :)
 
@BrianJ I am
 
I'm mostly a Design & Implementation kind of person.
Sorry.
 
It is design related too I guess..
This is a question on my exam I'm studying for, so far I have come up with zilch
 
interesting
 
1:31 PM
I'll upload the image now
One enhancement Ican think of so far is to implement a message queue and a polling system to improve scalability.
* I can
@TaimurAyaz any thoughts?
The three enhancements needed in the redesign are:
1)Scalability
2)Aggregate functionality from other heterogeneous remote services.
3)Allow remote queries from different request protocols.
 
fge
OK, I have decided. Wikia it is
 
1:48 PM
@fge .....
 
fge
@Unihedro what? :p
@Unihedro contributions welcome, of course ;)
 
@fge :)
 
fge
Anyway, writing at the moment
 
Any ideas as to what I could include in the design to meet these requirments?
 
I'm also writing, but finishing up a report so my teacher would approve of whatever I'm going to do. I bet they don't really read it, it's just mandatory boilerplate stuff.
 
00:00 - 14:0014:00 - 00:00

« first day (1512 days earlier)      last day (3430 days later) »