« first day (1783 days earlier)      last day (3390 days later) » 

18:03
i love tabs, people apparently hate them... who knew. probably the same people who use VIM
"its too distracting"... your in the wrong business
press i to start typing
lol I like tabs as well. Better than opening folders or looking for files.
@ton.yeung, FFIX
Yeah Stiltzkin
The traveling moogle
You buy stuff from him to help him continue his journey lol
moombas are interesting
I haven't played FFVIII in a while actually. I've been trying to replay FFIX when I get the time XD
lol that I want to see
in FFXIV i get to slaughter moogles
love it
nooo
expansion, a dark knight quest
haha
its pretty great
18:09
lol no 9????
didnt like 13 that much
or 12 really
Did you play 9? LOL
It's great!
everything :)
story, characters, quests, music, etc...
cant wait for XV
18:10
which is great as well but really weird o.O
@ton.yeung Ultros
I've been replaying 6 on my commute and it's really weird. Ghost trains to the afterlife, battling on a waterfall, singing in an opera, ultros yes
oh no, I mean ultros from FF6
I only played the oldies
I havent' played 11+, are they worth it?
11 is trash
I know my sister is stuck on one of the bosses in 13
lol
lightning returns is worth it
18:13
I tried to defeat it for her but I lost
yeah I gave up, she gave up.... I told her to battle some more to get stronger idk if that helps in that game
well this boss is huge with many heads. Doesn't work that way :(
I forgot the name
sub?
oh I see
@ton.yeung tree of savior?
is that the ragnorok thing
I must be dumb, but I can't round my head around this. I need to round up X to the nearest multiple of N where both are Decimal. I've got X += X % N, but it only rounds up. 334 rounded by 3 becomes 337 and not 333. What do?
See, I play RO too, but it's completely different
@JacqueGoupil, can you use Math.Round?
try x -= x % n
334%3 is 1
18:20
@ton.yeung Realism Overhaul (KSP)
idk how you even get 337
erm, 336 (man, my brain is off)
334 += 334%3 should get you 335
You know what, let's restart that.

I've got X -= X % N, but it only rounds down. 335 becomes 333 instead of 336.
isnt that what you wanted
im confused
18:23
x = Math.Round(x / N , 0) * N
@tweray Late answer cause my VS crashed, but yeah, that seems to do it.
I'm not sure why I thought I couldn't use the Round function since I'm working with decimals. I probably need more sleep. Thanks!
18:41
Nope, it can use it for most numerical types :)
I had a similar question with decimal values last year and I ended up using Math.Round()
What does this line of js code means
if its mentioned in the top of a js file
SomeApplication.CommonJSFiles.SomeFileName = {};
19:06
@ton.yeung i had a moment like that this morning
@ton.yeung just finished making a nav that uses ui.router states to create itself. Any state that has a url creates a nav link in the navbar. You can nest infinitely using hyphen.
I just finished exporting my project template....
youtube needs a setting for "Just Audio"
i dont need the damn video
youlisten.com?
yougraph.com
19:24
guys
if i have a byte array like this
byte[]buff=BitConverter.GetBytes(1500);
Does anyone here work for Pivotal labs?
The name rings a bell
and i just want to append a another simple int variable to int
for example 3500
why i could not just use the + operator? :( i dont want to do 1500+3500
just to add it as another number
@TomW those dudes make that fitbit device thing
why do you want to know
pivotal tracker as well, for project management
An acquaintance has just signed with them
Good for him. Looks like a good shop
19:29
ill never work for a start up
they were a startup...like 7 years ago
they are still going through funding
If you have a globally recognised product you are not a start-up
arent they?
everything is a startup at all times or it is run by accounts milking what the startup was
19:31
then maybe not
i thought they were newer than that
I might like to work for a start-up. Depends on my enthusiasm for the product
theres a start up next to where i live called Apprenda
tried to get a job there
Buddy of mine got into Deliveroo at the right time. Post start-up, paying salaries, need to keep the momentum going and bring in domain experts
@ton.yeung That didn't make much sense. Maybe you meant: asians, aliens
@ton.yeung alias Otherwise; at another time; in other circumstances; otherwise called.
maybe you meant: asians
perfect
lol, caprica
20:01
fuck i lose my day searching and trying to prove to my team that there is a bug on our homologation web services
@ton.yeung homologation (organic chemistry) Any reaction that converts a compound into the next member of a homologous series, usually by lengthening a carbon chain
sorry, i wrote wrong
our "test web services"
we have two environments here
one to developers and other to test analyst
and the ws for test analyst is in another version with a bug
Homologation (Greek homologeo, ὁμολογέω, "to agree") is the granting of approval by an official authority. This may be a court of law, a government department, or an academic or professional body, any of which would normally work from a set of strict rules or standards to determine whether such approval should be given. The word may be considered very roughly synonymous with accreditation, and in fact in French and Spanish may be used with regard to academic degrees (see apostille). Certification is another possible synonym, while to homologate is the infinitive verb form. In today's marketplace...
20:19
do you use it? or are they wanting info on it?
now i need to solve the worst bugs in the app -.-
it is usually behind the keyboard, goes by the control word 'User'
fuckety fuck
fixed one problem, created ten more
2
Fukerdit Dittitily
nah, the application has a lot of controllers with more than 10000 lines of code
the app has 3 years, i believe
and i got it to work just two weeks ago
20:23
got to work? just started there?
I wrote a question on SO and another forum and answered my SO question but forgot to answer the other one. Some idiot answered the one on the other forum and plagiarized my answer on SO
Doesnt look like there is flagging on this other forum
Haha it's the Umbraco forums. I dont really go there unless I am desperate
https://our.umbraco.org/forum/getting-started/installing-umbraco/57168-622-Examine-Management-dashboard-hangsbrowser-freeze

http://stackoverflow.com/questions/26239672/how-do-i-turn-off-the-examine-dashboard
20:40
Jim is from des moines iowa works at Polk County Government and has 6 posts and 27 karma points
noice
Thx
come fite me
took him a little over a yr to find the SO answer
Must be slow
Slow like the last 15mins of work
@Shoe there is a famous teen band in your city right? are they your neighborhood or something like that?
20:46
teen band?
slipknot
Not sure where exactly they are from
but they are from the state
Slipknot is an Americanheavy metal band from Des Moines, Iowa. Formed in September 1995, the group was founded by percussionist Shawn Crahan and bassist Paul Gray. After several line-up changes in their early years, the band settled on nine members for more than a decade: Corey Taylor, Mick Thomson, Jim Root, Paul Gray, Craig Jones, Sid Wilson, Shawn Crahan, Chris Fehn and Joey Jordison. Gray died on May 24, 2010, and was replaced from 2011 to 2014 by former guitarist Donnie Steele. Jordison departed from the band on December 12, 2013. The reason for this is still debated. Steele left during the...
!!there's no place like home
@Nathvi That didn't make much sense. Use the !!/help command to learn more.
20:48
thought I'd give it a try
@ton.yeung just joking
Yeah they are from here then
!!/help
@Nathvi Information on interacting with me can be found at this page
lol you have famous neighbors
20:50
trying to code hierarchical clustering and my brain is burning straight for 3 hours now
!!define hello Ton Yeung
anyone can help
@Nathvi My pocket dictionary just isn't good enough for you.
!!define hello
@Nathvi [hello](http://en.wiktionary.org/wiki?curid=4803) A greeting (salutation) said when meeting someone or acknowledging someone’s arrival or presence.
Hello, everyone.
20:50
i have a dictonary which calculates distance between each pairs
however the merging part seems pretty complex
!!define Ton
@Nathvi Ton (Berne dialect) tooth
@JúlioMurta Lol not quite neighbors. There are quite a few people living here
!!define Yeung
@Nathvi My pocket dictionary just isn't good enough for you.
20:51
damnit
any c# linq and clustering expert :D
y is the cluster bad?
@MonsterMMORPG, I might be able to help
@MonsterMMORPG have some code to look at?
well let me explain
this is a dictionary that holds each document distance
Dictionary<string, double> dicDocuments_Distance
string here is key basically doc1+";"+doc2
id
so my now i have to start merging them
i have 1 by 1 each document distance
i am trying to figure out best approach :D
ye so hard to explain ^^
20:56
We have 2 Documents and then a monkey and a football and POW
let me write some code maybe will be able to explain better then :)
I think you want to join all keys into a single semi-colon delimited string?
what are you looking to solve
but this thing exploding my brain
holly styles they are already
instead of multi key dictionary i used key maker
so pair wise each document distance is calculated
is this conversation in english?
20:58
now time to start merging them
? from key maker
key maker is my function lol :D
private static string func_Return_Dic_Docs_Key(string srDocId1, string srDocId2)
{
    List<int> lstDocs = new List<int>();
    lstDocs.Add(Convert.ToInt32(srDocId1));
    lstDocs.Add(Convert.ToInt32(srDocId2));
    lstDocs = lstDocs.OrderBy(pr => pr).ToList();
    return string.Join(";", lstDocs);
}
Dic docs
I do love a function named function
my own naming contention :D
convention
20:59
its a small world
Whats all this converting to int nonsense
Parse was out to lunch?
anyway it works. shoe instead of multi key dictionary this enables holding pair wise documents distances
what in the actual fuck is going on in those couple lines of code?
21:00
Coz string can haz null init!
priceless
@MonsterMMORPG You need to rethink that approach
oh dic docs, so good
there is nothing wrong so fart
far
here image how pair wise document distances look
for example between document 26156 and 44162 Euclidean_Distance is 33.242
now time to start merging them with UPGMA
ohh you have the KEY as a KEY Pair..
21:04
yes
this is the fastest solution
you can have 2 keys be the same then?
@ton.yeung ng testing with jasmine... doing it?
@juanvan nope . no need to calculate distance between same documents
they are all unique
so by chance they are all unique
lets say if there are A B C documents
AB , AC , BC
nope by implementation
21:06
@ton.yeung gotcha. normally I see people inject() in the beforeEach() method, but I need to inject in every it() method... can not find an example of this anywhere
Wow love that count 1,622,701 !
yes 1802 documents without any blocking
just trying to build function at the moment blocking and other improvements will come later :D
I don't think I ever allocated a dictionary that big
Isn't [1,2] the same as [2,1] why would those be different keys
actually real application will have hundreds thousands perhaps millions of documents. so i will be have to use clever blocking. a lot thinking waits me
@Shoe exactly that is why there is no such key
they are ordered
21:09
Thats why I said you need to rethink your keys
and when you send to the function 2,1 or 1,2 it will always return 1;2
so u cant have 2;1 as a key never
@ton.yeung each test injects a different set of routes into $state
no, but its closer
actually since i have to recalculate distances each time not holding all data in a dictionary would be better way in terms of memory usage
ye will go that way
21:42
if I ever want to use an xml parser, abd I am writing an xml document for it, then for elements with no closing tag, should I use <element /> or just <element> ?
<element/>
or <element></element>
21:58
@ton.yeung ugh, finally. the syntax is so poorly documented.
    beforeEach(function () {
        module('app.common');
        module(function ($provide) {
            $provide.factory('$state', function () {
                return {
                    get: function () {
                        return routes;
                    }
                };
            });
        });

        inject(function (_$state_, _NavigationService_) {
            service = _NavigationService_;
        });
    });
@CharlieBrown when you're not busy i have a q
basically
DDD, what if i want to enable history for my model..... like "this employee changed this field to this".... is that called change tracking? should that be completely seprate from your domain model?
it's being displayed on a page
Auditing
like, i feel really strongly that it should be in my domain, and when my domain changes, i add an event to it's 'history' collection, with the type of event
yes! auditing
but when i google it, everything makes it sound like thats a bad idea
22:02
very common in my experience
to be in the domain model?
or to be wired up at the application layer
or some shit
classic way was using db triggers, but thats ugly to me
fancy is using aspect oriented programming (AOP), but its a learning curve
I have done it using the models in EF quite nicely
esp if you need to report on it later
let me draw an ascii diagram to show where it goes...just a sec
so, my domain model is my ef model
code first with fluent api
f, ascii sucks
ok, ill spell it out
draw it on paint, and upload it
or tell me
lol
22:07
function IHttpActionResult MakePayment(PaymentModel model){
    var paymentService = new PaymentService();
    var response = paymentService.MakePayment(model.userId, model.Amount);
    Assert(response);
    return OK();
}
// payment service
function ServiceResponse MakePayment(userId, amount){
    // code that actually does the payment
    // audit that shit here
    Audit("Payment completed by user");
}
Where audit is a service that stores data in your auditing db
public PaymentService(AuditService auditService){}
so you can inject the audit service and it can save to either the same db or a diff db, whichever
yeah
Sometimes we do it in a diff db for security reasons / performance
We like mongodb or hadoop for auditing since it just stores straight up json
but Ive done it with EF really well over the top of MS SQL
(weve done EF over mongodb as well)
gotcha yeah i get the gist of it, since our presentation layer doesn't know about our domain layer, i think basically what you're saying is this should be another service in the application layer
right, a middle layer the coordinates all the transactions, i.e. "Service Layer" as defined by Martin Fowler
This is where audting, authz, and centralized logging happen
well, i already have an application layer with 1 service in it, you're saying create another new service for the auditing and call it from the first service?
22:13
I like to do that, but its not neccessary if you dont want to
you could just put it as a protected function in a base service or something
damn fuck my life
lol
me and this other programmer were going back and forth about what it should be, i thought domain :(
you're saying the same thing they're saying
lol, sorry bro
haha it's all right, learned something new
whoa, 2/3 of my taskbar icons were gone for a bit
Carrot Cake service pattern demo
/me im outtie
22:17
haha thanks bro
did you make that carrot cake example?
More free swag available
101
Q: How Did Stack Overflow Help You?

bluefeetAs we continue the celebration of 10 million questions on Stack Overflow, we want to give away more stuff! We’ve already received some awesome stories about users going above and beyond for others, but before we give away more swag we need something from you. We want some stories about how Sta...

i know there are a lot of nice developers here and i learn a lot with them. this is because i'm on so mainly including chat.
and i can improve my poor english too hahahahaha
23:06
anyone have a good github repo that has good documentation
basically, a company that might put their product manuals on github

« first day (1783 days earlier)      last day (3390 days later) »