« first day (1665 days earlier)      last day (3275 days later) » 

12:21 PM
finally got my thumb out to book the repair for my car. Not even 3 years old and the window opener stopped working on the passenger side :/
Arrays are so java 1.2 ;P
 
@Gemtastic completely related topics :P
 
4 hours ago, by Gemtastic
I'm always out of context :D
 
change your avatar:
 
Related to my earlier conversation:
Statistically it should be me, but this is the first time I have this issue
 
fge
J-29 before Le Mans
 
12:28 PM
Okay wish me luck
 
@Vogel612 gl with whatever you're doing
 
I just wrote filtering for one and a half hours...
and deploying this for the first time..
 
:O
 
@Gemtastic can't see the image, sorry
 
O.o
not now either? i.imgflip.com/ljdeh.jpg
 
12:29 PM
@Vogel612 i might need your help after about 1 week
to write my filter
 
there is a very tiny but annoying firewall here in the office
 
fge
@Vogel612 filtering of what?
 
ah
 
it's extremely random
 
apparently it hates memes
 
12:29 PM
business stuff..
 
I can click on sex-related news, but not some random pics
 
mostly filtering projects the user isn't allowed to look at
depeding on business logic
 
aaaaand I forgot to move over the new navigation entry...
 
>_>
 
12:32 PM
~restarts tomcat
well this gives me another minute to go crazy over whether it works or not.
 
does a little dance
writes a little code
 
oooookaaaayy so far so good... it works when I don't have to filter..
 
gosh, the firewall kicked in and banned stackoverflow
 
wow
 
wat?
 
12:39 PM
maybe it hates me?
 
just as I said it
all of a sudden I got redirected to the firewall blocking page
 
Maybe my link set it off?
 
oh dammit the filtering query is malformed..
 
@Vogel612 tell me about it, it banned SO
:P
 
Well we have this wonderful self-built query-language, that's completely undocumented.....
 
12:46 PM
...
 
and it has a special syntax...
and I fucked it up
but I think the filter itself might just be working fine
(after I corrected the query)
 
@LuisAverhoff Thank you @LuisAverhoff. That is very useful.
 
Are you two coworkers?
 
can anyone help me with this plz ?
I checked the response of a forgot password form submitted. This is the response -
7|0|8|https://www.optionsxo.com/app/Basic/|76FEA087AF57D211731FFDFE028D7ACE|com.optionfair.client.common
.services.AccountService|genNSendNewPassword|java.lang.String/2004016611|tester|tester@123.com||1|2|3
|4|3|5|5|5|6|7|8|
can someone explain me this ? Can i perform this from my server ?
anyone ?
 
1:02 PM
@Gemtastic who?
 
kinda sounded like it :P
 
nope
not that I know of at least
:D
 
oops
oh well
 
AAARRRGGGHHH
OMG
 
fge
1:11 PM
grappa 2.0.0 released!
 
The .collect method of Stream supports both Supplier<>accumulator, BiConsumer<,T>collector,Function<,V>expander, UnaryFunction<V>finisher and Collector<T, ,V>, while IntStream and deriveratives only accept the accumulator-collector-finisher combo, but not a Collector
This means in order for Fancy-Collectors library to manipulate with IntStream, LongStream and alike, we'd either need to provide mocked objects in the form of HelperObject::new, HelperObject::accumulate, HelperObject::finish, or it'd be a utility method that takes a stream, does some lossy conversion, and return the result
both sucks
        int[] arr = {1, 2, 3, 3, 3, 4, 6, 8, 1};
        System.out.println(Arrays.toString(arr));
        // [1, 2, 3, 3, 3, 4, 6, 8, 1]

        System.out.println(Arrays.stream(arr)
            .collect(
                StringBuilder::new,
                (buffer, string) -> buffer.append(string),
                (x, y) -> {} // Do nothing
            ).toString());
        // 123334681
or I could make the users use .boxed() stream, which also sucks
argh
 
fge
Actually the combiner is never called on sequential streams
 
this is going to be a painful design
 
fge
Although the javadoc doesn't mention as such
 
@fge Which is why I used a lambda form that does nothing :p
 
fge
1:15 PM
You just have to create an IntCollector
 
wait, really? there does not appear to be such
 
fge
THere isn't
This is yours to make
 
But .collect on IntStream won't take it anyway
 
fge
Extend IntStream and override .collect()
 
... you absolutely sure about that?
 
fge
1:17 PM
IntStream is an interface, right?
 
Yep.
 
fge
Just extend the interface
And add a .collect() overload which takes an IntCollector which you'll have designed
 
Wouldn't this mean CustomIntStream.of(knownIntStream).collect(IntCollectors.sum())?
 
fge
For instance
 
For instanceof()
 
1:20 PM
oh the suspense, it's killing me, I'm dying to see it
oof
 
sometimes I wonder why Stash even has the option to send an email when one is added to a pull request
does anyone ever look at those?
 
... no
 
entirely my point
 
1:32 PM
UGGGGGH AFAFAFFFF OMG NO
 
Ungh... a if-else case full of instanceof >_<
Why? Why? WHY?!
 
If you use a custom helper object in IntStream.collect, the object typed T for accumulating is RETURNED without the ability to finish by converting to a final type
so this is a no-go :(
 
@Gemtastic dont remind me...
 
Arrays.stream(arr)
.collect(
    () -> HelperObject.groupByEvery(3),
    HelperObject::insert,
    HelperObject::finish
) // Returns HelperObject at this point, no exceptions
 
public static long longValue(Object obj) {
    if (obj instanceof Number) {
        return ((Number) object).longValue();
    }
    // some other stuff
}
 
1:35 PM
@Vogel612 that's painful
I'm thinking a design like IntCollector.groupByEvery(3).eat(Arrays.stream(arr)) might work
 
better than manually checking null, toString()ing and Long.parse()ing every time you get an Object that actually is a Long.
But hey, code is most probably working just fine..
 
@Vogel612 I'm rewriting this thing.
 
depending on the code you might use an overloaded method to do that for you..
 
No, I'm rewriting this whole thing
 
okay that works too scrap and start anew ;)
 
1:44 PM
Yup ;)
 
most of this filtering thing was copying code from other places and cleaning it up
so I'm not in the mindset for scrap and start anew
but hey it used to be a 2k LoC method
 
Well, I need new class structures and to figure out how this thing works. Passed main, I don't even know where to go >_>
 
now it's just a 1.5k LoC class with ~15 methods and another 150LoC class for some filter-Properties
 
Good morning all.
 
Morning
 
1:49 PM
You ever have a dream where you fix a bug you've been struggling with, then wake up and forget the solution?
Apparently my subconscious is better at coding than me
 
I managed to learn Maps and SortedSet :D
Impemented them and here is the result
[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S]
{AB=10, AC=15, AD=15, AE=20, AF=17, AG=10, AH=5, AI=12, AJ=20, AK=10, AL=15, AM=15, AN=20, AO=17, AP=10, AQ=5, AR=12, AS=5, BC=15, BD=15, BE=20, BF=17, BG=10, BH=5, BI=12, BJ=20, BK=10, BL=15, BM=15, BN=20, BO=17, BP=10, BQ=5, BR=12, BS=20, CD=15, CE=20, CF=17, CG=10, CH=5, CI=12, CJ=20, CK=10, CL=15, CM=15, CN=20, CO=17, CP=10, CQ=5, CR=12, CS=30, DE=20, DF=17, DG=10, DH=5, DI=12, DJ=20, DK=10, DL=15, DM=15, DN=20, DO=17, DP=10, DQ=5, DR=12, DS=20, EF=17, EG=10, EH=5, EI=12, EJ=20, EK=10, EL=15, EM=15, EN=20, EO=17, EP=10, EQ=5, ER=
Amazing :D
 
@fge I managed to do what you told me
Now I have my edges with associated costs and my list of vertices as well
Now the only problem is making the adkacency Matrix
 
Finish it!
 
@Unihedron I created the matrix
 
1:57 PM
good for you
great
 
But how will I check which value get in them?
 
@Sabir what do you mean?
 
For example AB gets into adjMatrix[0][1] and adjMatrix[1][0]
 
Hiya @deadlydragon00!
 
@Tavo I mean the value of the AB from my TreeMap
 
1:58 PM
yeah, you don't need both
 
@Unihedron pls participate on this this
Hiya =) , I got 195 char but Im a looking for the shortest answere if possible
 
pfft games :p
sure thing
 
just use the top or the bottom
 
meaning?
 
oh it's code golf
THAT'S A GREAT IDEA
 
2:00 PM
@Sabir top and bottom halves are redundant. [1][2] == [2][1]
 
yep
That's okay. My problem is when I'm looping through each index, how will I take the value from my TreeMap and the put it in the array
 
what's a code golf?
 
now my TreeMap has all values in order so AB means 01 AC means 02 and so on. Then it follows with BC which means 12 in my array
 
@deadlydragon00 do ... in the least characters possible
 
Ever played golf? The person who putts in the ball in the fewest hits wins.
 
2:02 PM
even if it means that your code never ever terminates...
 
In code golf, we code in obfuscated manners in order to use the least bytes, while in code bowling we write the longest, hardest to read code
 
the latter is impossible to judge
it's easy to make code more complicated and long-winded
 
@Sabir I think I know what you mean. A=0, B=1, C=2... How does that help you?
 
oh nice to know :)
 
@Tavo that's where my logic fails. I'm not sure what to do with it
 
2:05 PM
@Vogel612 would you like to participate as well?
 
no
I am a CR person
I "dislike" code-golfing
 
lol the endless battle between factions CR and CG
 
@Vogel612 would you like to participate as well?
 
@deadlydragon00 they don't golf code
 
@deadlydragon00 would you like to be blocked?
 
2:05 PM
it's just not what they do
 
I mean.... wtf?
 
must... beat... 96chars solution
 
ah ok
 
@Unihedron use golfscript
 
@Sabir why did you do it then
 
2:06 PM
@Vogel612 the tools are limited
JS, Python, Java or C++
 
uni use JAVA
 
I needed it to make the matrix
 
js probably, then..
 
no i'm using JS
 
I used its size() to define my matrix size
 
2:07 PM
dont do it in python cauz I know you can get 50 chars
 
I don't like python
 
@Sabir why are you doing something without knowing why?
 
So I have a matrix that can hold the combinations
@Tavo Wait let me reexplain.
 
good, because you've lost me
 
@fge: Are you still there? Any feedback on this? chat.stackoverflow.com/transcript/message/23318094#23318094
oh well
 
2:11 PM
I read my file which goes as follows:
A : B : 10, where A and B are vertices and 10 is the cost of the edge AB
I start by reading through the file and create a SortedSet of vertices(A,B, C, ...) This will have all the nodes that my graph contains. At the same time I take the A, B and 10 and add them to a TreeMap<String, Integer> so now I have a list of all the edges and their associated costs(e.g {AB = 10, AC = 15, ..., BC = 10, ...}
 
goodnight all =)
 
Next I make an adjacencyMatrix . To be able to make the matrix flexible to fit the size, I use my vertcies SortedSet.size() and make the adjacencyMatrix. Next I loop through the matrix and set the diagonal to 0 since they are not used.
 
@Sabir so far, so good
 
@deadlydragon00 gn
 
Now my next logical step is to loop through the adjacencyMatrix once more and fill it with the values from my SortedSet<String, Integer> meaning that adjacencyMatrix[0][1] will have the value of AB from my TreeMap which equals 10. This is the part where I get stuck. I don't know how to check it and assign it to the matrix.
 
2:14 PM
do it the other way round. Iterate over your Set and put the values in the matrix
 
\o/
 
<(*)
 
/o\
 
2:16 PM
(^_^)/
 
(>^_^> <(^_^)> <^_^<)
KIRBY DANCE
 
omg I can't think anymore
but I need to work...
 
Just mash keys and pretend to work
 
meh... I gotta keep track of the times I work though...
and It's kinda not so good when I say "worked from 3:30 to 5:00" and nothing happened...
 
If your at home and it's flexible just meditate for 30 minutes or something then might help?
and then do some actual work after that
 
2:25 PM
@Vogel612 it's useless to be in front of the computer when you are exhausted
 
meh.. if I were at home, I'd not be working...
 
take a break
go for a walk and take some fresh air
start smoking
 
maybe we got some fresh food
@Tavo bad idea
 
hey, whatever works
:P
 
let me just fix this one crappy field, and then I can probably go into the weekend anyways...
 
2:26 PM
@Tavo lmao. That works for me usually.
 
the only bad thing about not smoking anymore is that I miss the social side of it
 
Why smoke when you can chat?
 
chatty chat
 
smoking is more socially accepted in an office than being in a chat room
 
Wtf
 
2:27 PM
when IRC was still a thing, a friend of mine got sacked for chatting during office hours
 
@Tavo closes chat
 
lol
 
Social side of smoking is great
 
@Sabir Up until you start talking to a cute girl and she says "you smell gnar"
 
@Dustiny lol
 
fge
2:31 PM
@Unihedron sorry, I was hair deep in work
 
I figured ;)
 
fge
@Unihedron looks fine; however I'd make the IntCollector an interface out of the CollectingIntStream, plus in the comments/javadoc I'd mention the equivalent in a "bona fide" Collector
Plus, well, implement that .collect() method :p
 
I can probably wrap it as a default method which essentially calls the underlying supplier-accumulator-finisher chain :p
 
okay just great...
debugging is correctly attached to the tomcat, but the breakpoints are skipped....
 
For some reason that reminds me of when my last boss made me debug a CUDA program with print() statements and wouldn't let me use the debugger. Dark times..
 
2:38 PM
@Vogel612 are you positive you are passing through those breakpoints? (just trying to help)
 
@Tavo well... if I interpret the xml configuration binding a classname to a route correctly... then I definitely should be
 
maybe you can try to print something just to be sure?
and by print I mean logging, printing, ...
 
fge
Oh dear
I don't get any work done today :/
 
maybe your debug configuration is missing something like some sort of parameter
@fge TGIF
 
@Tavo nope... the previous action works just fine.
 
2:42 PM
@Vogel612 are you sure you haven't deactivated your breakpoints?
 
@fge Fridays are bad enough, but it's a long weekend in Canada this weekend.. so even more so
 
yes, the previous action hits it and suspends there
I checked ;)
 
are you sure you don't have some sort of filter in your breakpoint?
 
how would I even do that?
 
conditional breakpoints
just right click on the breakpoint
 
2:43 PM
I just put the cursor into the class and press Ctrl + Shift + B
 
(depends on the IDE though)
 
nothing fancy...
 
you must be using Eclipse
IDEA does something completely different on Ctrl+Shift+B
:D
can't you walk step by step from the previous breakpoint into the one you want?
 
I wish I knew these frameworks... errors, errors everywhere! Errors that weren't there yesterday...
 
@Tavo there is no "previous breakpoint"
I set a breakpoint on the first line where I can control it....
but it just doesn't hit...
 
2:48 PM
ah, ok. Sorry, I misunderstood
 
fge
!!ubran TGIF
 
@fge That didn't make much sense. Maybe you meant: ban, unban, urban
 
fge
Argh
!!urban TGIF
 
@fge [TGIF](http://tgif.urbanup.com/232962) Acronym for "Thank God it's Friday". Used to express the joy one feels in knowing that the work week has officially ended and that they have two days off with which to enjoy.

Is also the name of a block of family friendly sitcoms aired on the ABC network every Friday evening. It was a pretty good block back during the 80's and early 90's when they showed Perfect Strangers, Full House, Family Matters, Hang(snip)
 
fge
Meh, that doesn't apply to me
I work on weekends too
I never stop working
 
2:49 PM
you are not on Friday?
 
fge
Yes I am
 
I'm on Friday but I code everyday ;)
 
well, if you work weekends as well, you might as well call it a day
 
Or, in other words, I work 24 hours a day
 
fge
But Friday, Sunday, Monday, holiday... That doesn't matter to me
Only the weather matters: I want it sunny and hot, with no humidity
 
2:50 PM
^ timeless tasmanian devil
 
mmmmm sunny and hot. Now that's something I haven't had in a long while
 
fge
This is why I love South Italy
 
I miss Singapore :(
 
hmm.. sunny, okay
hot? meh
 
sunny and hot.....with no humidity? so a desert or what
 
2:51 PM
@Dustiny my hometown
 
I miss Centaurus :p
 
dry... well yes better than underwater.
 
^_^
 
fge
@Dustiny no need to go that far; anywhere in Italy Naples or south gives you that
 
Spain, Greece, Morocco, Turkey...
Mediterranean weather in general
 
2:52 PM
Yeah fair enough, somewhere with some good elevation would probably do.. Ontario Canada can be unforgiving at times
 
fge
Anyway, back to work (attempts)
 
Either way too dry and cold (in the winter) or pretty hot and way too humid..
 
That's why I Left Ontario and headed west!
California is the best of all worlds
 
@Kylar it's full of Americans :P
 
@Tavo Hahahahaha.
 
2:54 PM
It depends on how you look at it! My group here at work, for instance. There's only 1 american
out of 10 ppl
 
California would be the dream though. Or maybe australia or somewhere where it doesn't snow... screw snow. I've had enough winters for a lifetime
 
1 Canadian, 3 French, 1 Tawainese, 1 Chinese, 1 Indian, 1 Australian
 
3 French! :P
 
truly international inter-cultural experience :)
 
not sure what's worse
 
2:55 PM
@Dustiny where in ON are you? greater TO area?
 
:D
 
@Tavo lol! my words exactly.
@Kylar Yup! Markham actually, good call.
 
oh god no, have mercy upon me
 
Hey, without the french, we'd have a giant gap between Ontario and the Maritimes
 
I need to manually read a property file in my jsp
 
2:57 PM
Yeah they're not too bad of people. It's also fun to call them "Quebexicans" really gets em riled up.
 
@Dustiny Cool, I have a good friend who lived in Markham, just moved away from there
my family is all over ontario still
I went to school in Hamilton
 
Right on man, I am from Orillia originally if you know where that is (north of Barrie by Muskoka area). Went to school in Kingston (Queens). Im guessing you went to McMaster?
 
Mohawk, then dropped out :)
 
anyways I'm off into my weekend.
 
Enjoy!
 

« first day (1665 days earlier)      last day (3275 days later) »