« first day (1945 days earlier)      last day (3009 days later) » 

12:00 AM
@TravisJ - Sounds like a use case for microtypes.
 
Sorry, this is in JavaScript
 
In c# I wouldn't have to deal with junk like this lol
 
@SpencerRuport - I am trying to make sure that the grouping for highstocks properly groups a rate
 
12:01 AM
You could overwrite the typeof(x) method?
 
@SpencerRuport - I have a chart, and it is a series of data which consists of a date, and a price
Nah, the typeof was just to demonstrate the primitive part
I tried overwriting all the other ones though, tostring, valueof, toprimitive, tofixed, parseInt, parseFloat
nothing seemed to work
 
So the price is a ratio
And when it groups by week it just sums the ratios
facepalm
 
Whoops.
 
There is no data structure they provide to allow for grouping other than just giving the set of ratios.
I need to include the denominator and nominator in order to reproduce an accurate ratio
But hacking it in there has proven rather difficult
 
12:04 AM
I'm helping a guy in India fix his build, lol
 
@Codeman - Heh, you and 8000 questions a day on Stack Overflow :P
 
Regex was like (.?*) or (?.*) or (.*?) lol
got it , its (.*?)
 
12:23 AM
@SpencerRuport - Did you see my chrome extension for stack overflow? :) includes a "cite" link near the "share" link.
 
What do we call people who ask for an appointment on Saturday at 6 PM, insist that's the only time that will work, and then cancel eight hours later...
 
@kush cockmonglers?
 
perhaps :(
!!urban cockmongler
 
@kush cockmongler A man who (given opportunity) -will- suck your cock.
 
what a time to be alive
 
12:30 AM
lol
@kush - If someone cancelled like that on one of our projects, I would just up the price.
That way it is no longer wasting time, as they are having to pay for it :)
 
@TravisJ I can dream
btw, have you guys used csv helper?
 
not i
 
I just can't get the mapping to work
 
I am currently fighting with highstock's charting
 
yay for exception :)
 
1:10 AM
Hi guys
Is there any inline editing plugin like "vitalets.github.io/x-editable/" inside Telerik MVC/Kendo UI? I know there is grid inline edit or even editor but these are not what I'm looking for.
 
1:59 AM
:)
 
2:25 AM
what causes an argument null exception here? if(ETFs.Any(x => x.FundTicker == etf.FundTicker))
d'oh
sorry
 
3:21 AM
you work in finance?
 
Hello Guys
any help on this question
0
Q: Better or optimized way to filter customer records by 3 dropdown filters

LearningI have one page name as:CustomerList.aspx on which i am displaying list of customers. This is my table and class files too: public partial class Customer { public int CustomerID { get; set; } public string FullName { get; set; } public string EmailId { get; set; } ...

 
@SteveG sort of
this isn't for work
 
ah
 
4:15 AM
any one?
Hi all!
 
4:30 AM
i have one field in my table that is datatime:LastDayatJob
 
 
1 hour later…
5:35 AM
hii all I have posted my problem plz go through it once ... here is the link stackoverflow.com/questions/35341220/…
plz give me your suggesions
 
 
2 hours later…
7:14 AM
@Learning any problems with the answer you've already got?
 
answer which i got is not worked for me
any how I have changed my code now its working fine
 
Great. :)
@TravisJ: Installed the chrome extension, but it doesn't give me the cite link. Is there something fancy I've missed?
 
8:07 AM
happy friday
 
Happy but for hte fact that I'm at work. :-(
By choice, though.
 
Gooood morning people~
 
Greetings earthlings!
 
I'm at work against my will
why do I keep making a conscious decision to go to work every day?
 
Because money.
 
8:13 AM
ah, yes
I do love money
 
Friday is a weekend day here, so being here is extra annoying, but still, made a choice to leave early yesterday.
 
you get 3 weekend days?
 
Nope. Work week is Sun-Thu.
 
Not being a Christian country and all.
 
8:15 AM
I had enough trouble with people insisting that the first day of the week is Sunday
 
@TomW We've been through this before, haven't we?
It is.
Here.
 
so do you hate sundays more than mondays?
 
Sundays are the rough ones, yes.
 
it's a strange world
 
@AvnerShahar-Kashtan Yes, we have. And I've grudgingly accepted that not everybody in the world automatically accepts that Britain is always right, anymore :)
 
8:21 AM
@TomW The sun has finally set on the British empire? :)
 
Grumble grumble at least with us everything was organised
 
@TomW Rhodesia is doing so well now I hear grumble grumble
 
@AvnerShahar-Kashtan where are you from?
 
@Jamaxack Israel.
Oh, sorry, "The former British Mandate for Palestine", for @TomW.
 
    class Program
    {
        static void Main(string[] args)
        {
            StateMachine sm = new StateMachine();
            sm.OnEntry<string>((x) => method(x));
            sm.Fire("State entered");
            Console.ReadLine();
        }

        static void method(string message)
        {
            Console.WriteLine(message);
        }
    }

    class StateMachine
    {
        Action<object[]> entryAction;

        public void Fire(params object[] args)
        {
            entryAction(args);
Is this the only way to save a generic action?
 
8:31 AM
@FreddyFlares Please use Ctrl-K to format your code.
 
without using reflection or dynamicinvoke
 
@FreddyFlares The only way? I'm pretty sure it's not. It's a way.
 
@FreddyFlares In that specific case I would use OnStateChanged event
OnStateChanged += method;
 
Then that wouldn't work if I changed the message to an int
I'm writing a version of Stateless on github
 
@FreddyFlares Why not have Fire be generic as well?
 
8:39 AM
yes
 
Also, do you expect the same instance of StateMachine to have various types of message? The same instance will have OnEntry<string> replaced by OnEntry<int>?
Because if not, you could simply define StateMachine<T>.
At which point, your callback registration could simply be replaced with an event of type EventHandler<T>.
 
Yes eventually you can create many states with an OnEntry action that has a parameter of any type
 
@FreddyFlares But on the same instance of StateMachine?
 
Top o' the morning to you all
 
8:44 AM
Tips hat
 
Transitioning from one state to another will call the OnExit of one state and the OnEntry to the next
 
@FreddyFlares in that case event is not the best way.
but I can still think of a way if You use EventHander<Action>
but the pasted code is better
 
Stateless doesn't use event handlers
 
A state machine that is stateless? I can't help but have a chuckle at this idea.
 
readonly Action<Transition, object[]> _action;
It has that to save the action
 
8:50 AM
Hiii,
getting the exception ({Unable to read data from the transport connection: net_io_connectionclosed.}) while trying to send mail using yahoo smtp settings
and the smtp settings are host - smtp.mail.yahoo.com port = 465and ssl enabled
 
Nice.
@NikhilKrishnan did you google the error?
 
if i change the port to 25 then The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Authentication required exception occurs
 
indeed
 
yes but no solutions
 
what client are you using?
 
8:54 AM
smtp
 
what client
smtp is the protocol
are you using a library? or did you write your own SMTP client?
 
yep net.mail
sorry did you mean that
 
aye
msdn.microsoft.com/en-us/library/… did you try a simple example like this?
I assume that you're not explicitly telling the client to use SSL, and Yahoo's SMTP service is just closing the connection because it isn't able to do a secure handshake.
 
9:14 AM
Good morning guys
Is there any inline editing plugin like "vitalets.github.io/x-editable/" inside Telerik MVC/Kendo UI? I know there is grid inline edit or even editor but these are not what I'm looking for.
 
no idea
:D
 
good answer :D
have you ever used X-Editable on MVC?
 
Nope. Not sure if I'm a fan of that sort of UI widget.
what's the use-case?
 
i was just thinking that
looks cool though
I wouldn't want to update a lot of stuff that way ... inline editing feels cleaner too
 
@Squiggle I need to build a profile page where the user can see about 30 fields from First Name to many other personal information. I was thinking to build something that at first it doesn't have many textbox instead showing as label and able to edit inline.
 
9:25 AM
i'd have 2 views ... an editable and a non editable version
 
^ yep, me too.
Easier to implement, clearer for the user.
 
you could even break it down in to sections and have the user pick a section to edit instead of making the whole page editable
 
I've installed the X-Editable on my MVC project but I can't make it work inside Razor.
 
Google, LinkedIn, Facebook etc all use separate edit/view screens.
why try to reinvent the wheel?
 
@Wardy for example, Name section, Birth info and etc?
 
9:26 AM
It depends. If it's in the expectations of an app, a user doesn't expect to see a display and edit screen. It's all combined.
 
@Squiggle yeh those guys won't have got it wrong
@CodeMaster depends ... what feels right in terms of logical grouping ?
maybe basic info, education. hobbies, ect ... sort of like a CV i spose
 
@Wardy Ok, I got it. I actually have different sections for education, employment, military and etc.
 
@CodeMaster yeh so you'd either make each section editable or read only
and have an MVC view to each
 
Good Mythical Morning
 
then use some sort of mvvm binding to separate the data from the view
 
9:30 AM
You can also work with displays and an edit button to load in a partial template onto a section to make that editable.
 
at least that's how I would do it
@RoelvanUden yeh I think i'd go with an ajax reload of a component "replace" the non editable with the editable on a button click or something
 
@RoelvanUden this sounds interesting, is there any sample out there?
 
that way very small chunks of data can be mnaged by very simple views
and lately i've taken things a step further ... taken the role of API out in to a separate app that delivers an OData model based collection of endpoints
 
but when you use editable do you mean inline editing or editable in general?
 
@CodeMaster depends on the situation .. sounds like you have a basic flat set of properties on an object
basically a field list
so you prob have a form like ...
 
9:35 AM
exactly
 
label     field
label     field
so you have 2 views
one that renders the text for field and the other that renders a textbox or whatever is needed
then you just swap them out as needed
 
so for label I need to use DisplayFor and for field TextBoxFor?
 
how about using LabelFor and DisplayFor
or labelFor and EditorFor
i have a generic object renderer that can build a form from meta info of an object
 
for example, if I I'm at the view level, I just render my data as Label and I should have a button that says Edit, right? That Edit will take me to editing page.
 
whack this in a view in the folder ~/Views/DisplayTemplates/object.cshtml
@using System.Text.RegularExpressions
@if (ViewData.TemplateInfo.TemplateDepth < 1)
{
    var meta = ViewData.ModelMetadata.Properties.Where(metadata => metadata.ShowForDisplay && !ViewData.TemplateInfo.Visited(metadata));
    foreach (var prop in meta)
    {
        if (prop.PropertyName != "Id" && !prop.IsComplexType && !prop.IsReadOnly)
        {
            <li>
                @Html.Label(prop.DisplayName)
                <div class="value">
                    @Html.Display(prop.PropertyName, prop.TemplateHint)
that will then let you do ...
@Html.EditorFor(m => m)
no matter what m is
I have a similar view for read only
MVC handles all the hard work for you
 
9:41 AM
So first I need to add this template, right?
 
Dude cmon ... help me out here ... do some reading up on MVC and ow templating works it'll make life a ton easier for you
mostly now I just define business objects with the right meta, MVC figures out how to build forms for me
 
@Wardy Thanks
 
This stuff is so generic you can tell MVC how to do it by convention
I would recommend looking at the MVC source on github
loads of good little hints in there
 
Sure, I will. Thank you
 
then add value with a simple bit of js work ... for example I pulled in kendo to make my controls look a bit nicer
 
9:47 AM
I'm using Material Design, would that work as well?
 
and if you use mvvm binding with kendo you can have MVC tell kendo what a template looks like by dynamically generating row templates for grids ect
@CodeMaster not sure what that is
 
can anybody help me with this question
 
I'm also using Kendo UI but for my textbox and checkbox I use Material Design to make it even nicer.
 
1
Q: Handle multiple delete events from grid with single events handlers asp.net

LearningI have two grid which contains delete button and i am using RadAjaxManager which will fire ajax request from client side to server side OnajaxRequest which contain event handlers and that event handler will call my delete event like below: <telerik:RadAjaxManager ID="RadAjaxManager2" runat="serv...

 
9:48 AM
ah that explains it
its a bootstrap thing ... I have an aversion to bootstrap
 
@Wardy me too, but is there anything else to use? Material Design is made by Google and I was first implemented for AngularJS, material.angularjs.org/latest
 
how about building a bit of css and a layout yourself, it'll be clean for a start
what happened to good old fashioned web design ... everyone wants a bloody web app template on a plate these days
 
@Wardy:Have you ever created event handler in asp.net?
 
@Learning LOL ... someone neds to do some reading on what an event handler is
@Learning sorry but i'm going to stay away from this question because I don't have a spare 3 hours to teach you asp.net and some c# fundamentals today like yesterdays long drawn out problem about a problem that changed in to another problem after 2 hours of conversation
and on that bombshell ... im outa here for a bit guys ... happy c#'ing !
 
@Wardy:i am not asking you to teach me but if you can help me on this question
1
Q: Handle multiple delete events from grid with single events handlers asp.net

LearningI have two grid which contains delete button and i am using RadAjaxManager which will fire ajax request from client side to server side OnajaxRequest which contain event handlers and that event handler will call my delete event like below: <telerik:RadAjaxManager ID="RadAjaxManager2" runat="serv...

 
9:59 AM
Can remember the last time I saw such a webforms way of thinking about web development ... what's wrong with just using a telerik grid on its own? it works perfectly fine
it looks like your problem is that you over complicated the situation
 
@Squiggle No i have specified it explicitly
then also the same exception
 
Hey all
 
@NikhilKrishnan try with a different SMTP email provider?
 
yes it working
i have tried with gmail and live
 
10:04 AM
ask a client if they can reproduce the issue on the testing server. Their reply: it will affect our production server
:O
 
@JackyNguyen ... :O
 
do something on the testing server will affect the production server?
hmmmm
1 month to new job haha
 
hay guys have anyone used text angular
?
 
@vishuminhas "text angular"?
 
>D btw if You change something on the file server with the reproducing, than the prod server may also be affected
 
10:10 AM
@JackyNguyen 1 1/2 months to my new job :)
 
Morning
 
Lol, I wanted to stay late a bit to do more work on freaking Friday. After I saw the client reply, I wanna go home
 
Hey all. I have to use a certrain 3rd party library where I register to some events. Unfortunately these events seem to catch every exception that are thrown. I would like my application to crash like if they are not catched... any idea what I should do?
 
@Squiggle yes look at this github.com/fraywing/textAngular
 
@vishuminhas 'k. Why do you ask if anyone has used it?
 
10:13 AM
because I need to know how we can bind it dynamically.
?
 
good day everyone
 
@vishuminhas the example is in the plunkr linked to from the github page - plnkr.co/edit/kKPfk0LCXWrMpZ1gkblb?p=preview
@SteffenWinkler :)
@JackyNguyen what's the new job?
 
@Squiggle: it's impl consultant
work with dynamics AX
 
That's some profitable work to get into, right?
:D
excited?
 
lol yup but the code base is crazy
 
10:23 AM
natch
you're in Singapore?
 
just relocated to
hhaha
 
integrating with AX now
 
Nice one. I hear it's a good place to be.
 
partner has their own integration layer
 
dynamics ax portal use webform man!
 
10:25 AM
retro :-/
 
@Squiggle: So you took the job? What will you be working on there?
 
mobile, angular, Azure, prototyping, "digital workplace" stuff. It's interesting, and the colleagues are great.
plus: No more 1-month contract extensions \o/
sick of that unpredictability. My Swiss residency permit is tied to my contract, which is tied to internal budgets. Last time my contract wasn't re-issued until 2 hours before the deadline to renew my permit.
 
They must know that's unsustainable for you
and just not care
Businesses that don't put the effort into doing right by their staff always seem surprised and upset that they can't retain people
 
I've never been staff. There's a real two-tier thing going on here.
 
@Squiggle oh, that looks nice
 
10:31 AM
I didn't say employees because you're not
But I'd say you are staff, in that you work there
 
So you'd be a full time employee now rather than a contractor?
 
@scheien yep!
@TomW ah. Semantics :P
 
this is my code please look at this
where I am wrong.
 
what am I looking at?
is this inside a controller or something?
 
actually I am binding li here with dynamic data but not getting anything wrong here ?
 
10:35 AM
if you're doing Angular, you shouldn't be putting any sort of HTML markup in a controller
@vishuminhas there's nothing there I can work with. Refer to the example plunkr from the site.
 
but its working with static data
ok :)
 
wow brightball.com/development/no-such-thing-as-real-programming just got round to reading that article someone posted yesterday. The "real programming?" section describes almost exactly my previous job.
 
anyway. time to go home
my client gives me headache
 
Reading literature in pdf format is not my thing. It get so boring, so quickly
 
@Squiggle wow ... just wow! ... i'm completely on the same page as you with this!
 
10:44 AM
:D
I went from solo hacking PHP as a freelancer to firing people and negotiating service contracts within 3 years.
 
if you're good at what you do it's so easy to get in real deep real fast
 
or if you're just lucky :P
 
but then to have others say what you do is somehow "not a real career"
that's just rage inducing
 
thankfully I never heard that after we founded the company.
as a freelancer, sure. That was harsh.
 
people always judge harshly until they see real talent ... the problem is getting them to see that asap so you can just worry about getting the job done
 
10:51 AM
especially where money is concerned
 
so next time some has a dig ... "sure ok ... go back to writing that driver ..." lol
@Squiggle "real programming" from their point of view is writing a website in assembly ... but what moron actually does that these days ... IMO real programming is about choosing the right tool for the job and knowing how to get the best out of it in order to deliver what's required!
 
damn straight
That for me is the difference between "programming" and "engineering"
 
11:14 AM
anyone has any love for bootstrap here ?
 
@Mathematics nope
 
@Mathematics it's fine. I use it. No complaints.
 
can I dynamically add scroll to panel 1 here ?
jsfiddle.net/ru6wk8p7/1
this is because I want Collapsible Group Item #2 always visible on screen
 
Happy to be moving to Angular Material soon though!
@Mathematics that's not really a bootstrap question. It's just css. Perhaps flex box would help you there?
 
yes, sort of
not sure how I will use flex box here though, but let me check
something like this, but I want it to be dynamic, shouldn't provide heights myself
@Squiggle isn't supported by IE 8
 
11:41 AM
@Squiggle Congrats! :) I guess your gf is quite happy with the decision?
 
@Wardy a quick question. Should I create the template inside the View under base folder or inside Areas, because I have areas and I was wondering where should it go.
What's the correct terminology to search for MVC Edit and Display templates?
 
Apparently 70% completion is standard for our sprints
 
12:05 PM
@Wardy yeah, I totally agree
@Squiggle I've moved one of my apps to material, ain't going back to bootstrap anytime soon.
takes some time getting used to, but still worth it.
 
you guys know maybe, if there is a way for clr stored procedures to return strings?
 
12:25 PM
@Mathematics I use bootstrap
 
12:35 PM
@Mathematics and IE8 isn't supported by anyone. Why the hell are you using it?
 
!!youtube the days - avicii
 
@JakobMillah: Did you ever get around to listen to Kygo?
 
@scheien Yes, listened to Kygo pretty much all day yesterday :) 3 + 2h playlists
very nice work music!
 
Indeed
:)
 
12:45 PM
Avicii is a bit difficult working to
 
room topic changed to C#: Home of JicamaJS! csharpchat.com [.net] [asp.net] [asp.net-mvc] [asp.net-mvc] [c#] [entity-framework] [java-hate] [jicama] [linq] [panini] [visual-studio] [wcf] [wpf]
 
1:17 PM
jesus.. There are some SEVERE optimization issues on the website I am working with...
 
morning
 
To query out 1000 users, the shop is making 5001 queries to the server :(
Queried 69 users.. Took about 4-5 minutes
 
What? Lazy loading is a great feature. Just leave it enabled!
 
Lazy loading? :o Mind explaining or got some nice docs?
ahh ye, you load everything right away and then pick the stuff you need afterwards? Definitely, but the database is so fucked up
It does shit loads of calculations and what not per user, so changing something now would maybe need a week or 2 to maybe get it done
I tried to tell my colleague I am mainly working with "he got tons of years of experience and is really smart", that most of the time lies within the actual transaction between client and server.. But ye, it didn't get that far
 
1:35 PM
for (var user in db.Users) {
  var order = user.Orders.First();
  Console.WriteLine(order.Items.Sum(x => x.Price));
}
Something like that with lazy loading could easily do 3 queries per user.
 
Morning
 
morning
 
Deer cost 3k for fix the car bummer - how was the rest of that doc @Failsafe ya make some changes?
 
Definitely! But you should see the code and the database :P I would need a week just to understand all the things that are going on. Just the "budget" calculation (Every customer got a set of points to purchase from), they make 3 queries per customer. The problem lies within the database structure. It needs complete rework
 
@juanvan Nope
everything before sample A was pretty standard
 
1:39 PM
ok cool
I will send ya over an unedited version for your records
 
did you finish the rest of it
?
 
no - the wife had me on baby room detail last night
 
haha
 
happy wife happy life
5
 
@Squiggle cuz it's the most famous one
 
1:51 PM
@juanvan you jest of course. There's no such thing as a happy wife.
 
I try, it easier to make the code happy then her
 
code is all logic and reason
your skillset as a programmer is worthless in relationships
2
 

« first day (1945 days earlier)      last day (3009 days later) »