« first day (1526 days earlier)      last day (3415 days later) » 
00:00 - 16:0016:00 - 00:00

4:02 PM
yeah first doc released
finally
 
Yay! Congrats!
 
I just need to fix those API doc links
 
What's JavaBoost?
 
Sweet! Lightweight utilities, looks very helpful!
 
4:04 PM
I still need to update all the docs and stuff and write a lot of tests until the first release
thanks
:D
 
fge
Argh, that doesn't work
Sh*t
 
:O
Type conflict in method signatures?
 
fge
No, a strange error I haven't seen so far
 
??!
 
fge
Ohwell, I'll ask the question on SO
This is bugging me
 
4:17 PM
It will be your 100th question!
 
fge
Uhwait, WHAT?
Now it doesn't appear anymore
What the
 
What?! A phantom glitch?
 
fge
Yeah, maybe, dunno
Anyway -- the commit -- UNTESTED, I'm going to test it now
If that works, woosh
 
topic/throwingfi
First sight: Throwing Fire
Second sight: Aww, throwing functional interface
 
fge
Yeah, I was too lazy to type "throwingfunctionalinterface"
Ohwell, there, renamed :p
Hoo, how impatient I am
If this works as I want, tests will be more factorized and much more legible
 
4:27 PM
:D
 
fge
OK, as I suspected, .as() works out of the box
YAY
First test passed
feels what you would call "programmer elation"
 
fge
5:28 PM
@Unihedro works as intended so far
 
:D
 
Is that it? One test to rule them all?
 
fge
No, this is a sample
I'll factorize it all
 
Oh!
 
fge
5:31 PM
But as you can see I can now chain Throwing*
 
Wow! This is incredible!
 
fge
And I can also use mockito to verify that only what I intended to be invoked is actually invoked
Still unsure about the names, however
However at the moment I have a generics problem
Again
 
Sounds like you need some new ideas. :P
 
fge
No, I need a generics fix
Again
:(
 
fge
6:34 PM
@marcg hello!
 
Sup guys! hope ya all had a nice christmas :)
 
fge
@marcg I must tell I don't quite understand what your code does
@marcg but I'm interested
@marcg how do you "uncheck" the checked exception?
 
6:52 PM
 
Thanks @Alagaros
 
fge
@marcg just read upon this
Uh
That's really hackish
Actually I "know" Reinier Zwitserloot
 
:O
 
fge
7:07 PM
He is surial on FreeNode's ##java
And we did get into some heated debates sometimes, including regarding exceptions :p
 
heated debates ;)
Seems like fun :D
 
fge
Not sure I really like this approach
I do prefer a try/catch in this case and anyway, since Stream implements AutoCloseable, well, you can use a try-with-resources as well
 
Yay!!!! I agree with @fge
 
fge
Also, since you can specify the exception you throw, you know waht to catch
Using a sneaky throw like this requires in advance that you know what checked exceptions will be issued by the method
Not that you can't know it, but...
Well, I'm not entirely convinced
It could be added, but that will be post 0.3.0
 
Spring security 3.2x ... using java config is the norm, why? recompile for smallest change. how do u prefer for an enterprise app?
 
7:20 PM
@tgkprog And?
 
wondering what i should use?
xml seems nicer can rmove fom jar keep in cp. edit on will.
 
If it aint broke dont fix it
Save yourself some trouble
 
fge
@Unihedro still battling with generics
 
Need some battling music?
 
hmm r u referring to spring security j-config uni?
 
fge
7:27 PM
@Unihedro why not...
 
fge
Argh, you just reminded me that I also need to work on improving java7-fs-dropbox
 
so much to do~
so little time dev hours
2
 
:) dev hours true. radiotunes.com/classical
 
Thanks for the radio :)
... :(
 
7:33 PM
ty for mid. vlc did not like mid. garage band app playing it.
 
NP, we goofed up each other
 
:)
 
Adobe Flash Player? Come on, HTML5 has been there for over years!
 
html 5 is still not being as much as it should. if it aint broken in too many places ...
utube still uses it too for a lot of vids
 
fge
 
7:36 PM
inb4 its 2014 where is my hovercar
 
fge
Two monsters
 
Yay music for the soul :) Timeslot is lost on mobile though but its ok
Why only 390 views? :(
And my like was only the 6th..
 
fge
@Unihedro yeah, why indeed
 
And some lame channels like ***pie has 2M views daily on unconstructive vlogs...
I don't even
Progress on taming the generics beast?
 
fge
No, not really, I don't believe I'll be able to factorize as much as I wanted to
 
7:49 PM
Hmm...
 
fge
Same setting, different song
 
8:03 PM
I downvoted only because this encourages unmaintainable code. This is an ugly hack, albeit a clever one, and I'll never find this answer useful. This is, again, another "do not use" of the language. — Unihedro 18 secs ago
Code that throws exception out of context is horrible, I can't begin to tell you how many hours I spent in the dev chat ranting about them.
Night!
 
8:18 PM
Hi
 
 
2 hours later…
fge
10:03 PM
 
Hi
I am looking for some very little help as I am learning Java and Groovy and I did already 10k lines but now I have hit some really silly problem
Basically I have class JavaAWS() which contains the main methiod
and then I have DownloadMetrics() and DownloadStatuses() methods
those two are created from JavaAWS, but now I am wondering how to make them actually using the same database connection
I have DBConnection in JavaAWS
It's a MongoDB connection pool
any help highly appreciated, I there's github repo with it
so pls let me know if you'd like to have a look]
0
Q: Re-using database connection in Java

AndrewI have following JavaAWS class in Groovy (it is using Java AWS SDK), but now I don't know how to re-use database connection in stage1 and stage2. Basically I'd like to use the same database connection everywhere and now I am not sure what is the way to achieve it. My ReplicateInstanceStatus and ...

 
fge
10:19 PM
@Andrew don't you use a connection pool?
 
it is a connection pool
that's the way mongo driver works by default, i just initalize it with new MongoClient() and it creates connection pool
but I can't access it from elsewhere then the class it was created in, as it seems I am missing something obvious
in PHP, I would use $_GLOBALS
In C++, I'd pass it as reference I guess
it could be that it's non-obvious
I think in the other class I would have define "database" Object and it would have to be referenced to that other object somehow
or I should pack everything into single class using extends
so that it's not in the single file
 
fge
Well, you can always create a singleton
 
I see
so that it is always only once in RAM
so that it wont get duplicated, hence the db connection will be reused
hmh
OK
Many thanks for your support
I think I can carry on from now on
I have singleton classes in Tomcat, but they are there automatically created
in Spring, controllers are singletons by default
 
fge
@Andrew it is recommended that you use a single value enum as a singleton
It works very well
here is an example
Hello @Gemtastic
 
10:39 PM
OK many thanks
I just read that enums are globally accessible
that's pretty much easy to do :)
 
fge
They are "globally accessible" provided that they are public
You can create package visible and private enums too
 
hello
I'm finally home
 
fge
@Gemtastic from work?
 
No from visiting the "in-laws" cross country
Just drove the 6h it takes to get back home
 
ok thanks fge, it looks like it's working fine
I have impression that understanding singleton in Java is like 20% of success ;-)
by the way, over xmas I have switched fully to Linux desktop and I am trully impressed
Centos7 based
KDE4 and Gnome 2
And Eclipse 4.4
And really everything is working very well, and it's truly nice
And I made an AWS clone, so that in internet cafe I can use it over VNC
like I am doing now
it's on-demand c3.xlarge instance
I use KDE4 desktop, and I have forced eclipse to use Gnome2 with webkit browser
 
fge
11:01 PM
@Andrew heh, I've been using Linux for 15 years (using Ubuntu however)
 
yrah
I stopped using Linux as desktop in 2007, then I worked with Microsoft fans, they were freaks, I was doing C# and Visual Studio 2008 and then 2010, but then, there wasnt anything exiting about it
They were freaks because they had aspiration to work at microsoft or get aquired by microsoft
I thought they must be freaks if they want to be taken over by MS
:-)
Today, I found that Groovy + Static Compilation is a really nice combination
I decided to implement bespoke network management for some big company were there are many bespoke systems, actually those are two large datacentres
So with Groovy it worked very well, things like SNMP, SSH, FTP works very fast and libraries are very sharp
I can't imagine doing it on any MS platform though
So now I am just doing AWS and it should be all done
I am really impressed by Java and Groovy, I was able to replicate data from 7 different database systems into mongodb and run continuous analysis on mongodb using extremely low cpu and memory footprint
and the latencies are extremely good as well
I have Java 8 and G1GC garbage collector as with those two I got best results
for memory usage and response time
and jvisualvm is really nice as well
I was able to profile all the code and make it running very fast and I still got very low LOC
It could be even faster but then the LOC would increase
I think Groovy is really good with static compilation, otherwise I'd use PHP
It's faster, and easier to learn and understand by others
I even got to like Apache CXF
And I even started using Eclipse for HTML, CSS work and it looks like it works very well
IMO I went into bad friendships last time
same would go for Mac guys
and Ruby guys too
those are smoking and drinking and stuff ;-)
 
fge
Huh well, I work at a different level myself -- core libraries
 
yeah
 
fge
Right now I'm having fun with lambdas
 
11:16 PM
It took me 2 weeks before I managed to get understanding of ioexceptions in java, that there's this file not found exception etc
But now I am getting thru this without much pain and everything runs on relatively high load and has stable mem usage and it's not crashing
using kernels from 2.6.18 up to 3.10 on over 1.000 servers
on each of them I have at least one agent running JRE 8
and over 100 tomcats
core libraries, hmm
I wonder if there would be some niche for myself
runtime hacking sounds very interesting though
very interesting
in my network management, generally summarizing all counters and running exceptions is the main reason for doing any coding at all ;-)
 
fge
FileNotFoundExcetion
Argh
The most useless exception in all of the JDK
Use java.nio.file
Please
 
Yes, I have already migrated everything since then
So that I can access ctime etc
I got to love Path etc
... so that I can get an idea that running some closure (like lambda expression) and throwing exception is some sort of realistic language construct
 
fge
Heh, FIleSystems is another of the core Java stuff I am into
In fact I already developed 3 filesystems
(and a fourth is in the works)
If you are looking for some utilities for Path etc, I developed some too
 
heh
I was doing recursive houskeeping with ctime in java7 last month
it wasnt trivial because of nio and ctime, and I used Groovy closure to do it so it was quite simple and easy to understand
I have storage were I need to delete old files, and I can't use any rubbish bash because it needs to be truly reliable
and only Java is normally readable language IMO
Like it's normal, proper OO
 
00:00 - 16:0016:00 - 00:00

« first day (1526 days earlier)      last day (3415 days later) »