« first day (1781 days earlier)      last day (3150 days later) » 

2:00 PM
@Squiggle wow nice. i'd like to study this someday, but bdd a very new thing where i live :(
well, is jasmine bdd right? maybe i can begin with it
 
@JúlioMurta Jasmine is a javascript-based unit test runner. It's more like a tool for TDD.
if you talk about BDD, you'd typically be using a Gherkin-like notation for describing data, interaction and outcomes.
which is parsed/translated by code into steps that insert data into the database, interact with the UI and assert truths about the state of the system
 
thanks @Squiggle. do you know the book "bdd in action"? what do you think about? can you recommend another book/author?
@ton.yeung yeah, i'm Reading right now.
 
2:25 PM
@JúlioMurta I don't know of this book. ^what @ton.yeung said - Specflow it's self is good for resources, and practical experience is what matters.
 
Anyone good with Kendo ui?
 
ok @Squiggle. thanks a lot :)
 
@Squiggle i wonder who this is replying to ..
oh.
Apparently I was gonna ask you something but I forgot :)
 
@Sippy the answer would have been sarcastic anyway.
 
2:34 PM
You guys are still flaming TFS?
 
^
 
^
 
lol ok
@Obviously, what are you using kendo ui for?
 
I had to flame TFS earlier for auto-merging yet more code out of existence.
 
lol what? ^
 
2:36 PM
"Oh this code was committed in a changeset higher than yours? That must mean you don't want it."
 
oh that sucks
 
It does it a lot lol
mhm
 
I've never had code merged out of existence - it always highlights conflicts to me
and VS's merge tool is pretty good
 
I don't use automerge but I like to remind myself how retarded it is.
Really?
For me it often merges newer code out of the file.
 
i'm using tfs since two weeks ago. before i was using git. at this moment, i didnt have problems (yet)
 
2:37 PM
No idea why
 
aye. Although isn't there a context-aware merge now that uses Roslyn?
 
We're still on 3.5 man I don't know these things.
 
but when you merge, shouldn't it tell you that you have a conflict?
 
I'll get back to you when we join you in this decade.
@KalaJ It should yeah.
 
@JúlioMurta you're really asking for it...
 
2:48 PM
-_-
 
responsive email templates wooooooookillmenow
 
hahahahaha
That gives me an idea
I wanna see if there's any cool shit in LingsCars source.
NOT DISAPPOINTED.
 
@KalaJ I want to know how can i see my view model in the console when using kendo ui grid
asp .net mvc
browser's developer console
 
You want to see your viewmodel in the console?
what do you mean by that?
 
console.log('@Model') ?
 
2:56 PM
if you mean like @JúlioMurta, that should work.
 
but I think he means Console.WriteLine?
 
@Sippy hah! Why am I not surprised?
 
@Squiggle Hahahaha
 
@CuddleBunnym lol cool
 
3:00 PM
@ton.yeung could be cool
or disgusting.
 
why disgusting?
 
I wouldn't write office add-ins, I would use it for web dev so it might be too bloated
I wanted to like WinJS, but I felt like it made me conform too much
 
WinJS is actually pretty sweet.
 
@ton.yeung yeah, you can use it for the JS Win8 apps or regular web apps
there are some pretty slick components and nice data binding features
 
3:15 PM
everything MS has release lately has pretty tight Angular/Knockout integration
I think knockout has a few strengths
I'd much rather use that than React
but I like Kendo-UI/Angular most
 
I was wary of telerik because of those reasons
 
Yeah, they've gotten much better since then. Most of the webforms/mvc stuff is just wrapped around Kendo.
But I don't use any of their other products
 
sup y'all
 
@Pheonixblade9 I broke Umbraco :(
but I think it is just my workflow that broke it so I have a gameplan.
 
@CuddleBunny how so? I broke it a couple times
the caching stuff is... fragile
 
3:29 PM
@RenderBody stopped rendering 2 of 4 default document types
none of which I ever changed the code for
and I still had the starter kit views in there
 
I backup umbraco all the time because it seems so fragile
 
it is
 
though still the best cms from what I have seen
 
but I think I am missing files, I wanted to run it on free tier app services in Azure. If I install it from the marketplace, working from VS is harder. If I create it in VS getting everything to deploy to Azure is also hard.
but I think I'm just going to do more work from backoffice because it works better when it knows what I'm doing rather than files changing behind its back.
 
Doesnt a save trigger a recache
If you're working with the files directly it wouldnt do that
Thinking about templates and masterpages
 
3:45 PM
nevermind of umbraco, what are you using it for? @CuddleBunny
*neverheard I mean. I just watched the video. It seems pretty cool to use for a personal blog vs. wordpress
 
Hi Guys when inserting using link and ef.

If pass across an existing complex type inside my class (i.e. just set the ID of it)

its inserting a new instance of the subclass? do I need to explicitly load the instance based on the ID before the insert?
e.g. in this pastie
if I create a new DeviceType and set the ID to an existing tye id such as 3
when I pass to the api to insert it is creating a new DeviceType and not just hooking up the devicetype with an id of 3.
 
@user3545438 yes, you need to detach the original entity and reattach the new one, or just modify the original entity
if you're using identity inserts, you should get the original entity. If you're inserting with a natural key, just detach and reattach
 
@Pheonixblade9 thanks so API side I would need to lookup and attached the DeviceType form the db based on the ID?
 
@user3545438 you can do something like this:
using(DbContext ctx)
{
    var e = ctx.First(o => o.ID == myID);
    //change values in e
    ctx.SubmitChanges();
}
I think that should work
if your changes are setting new values for another class, you should use the navigation property (assuming a recent version of EF) to set the values and it should get hooked up automatically, though I'd have to test it to be sure
do you know what a navigation property is?
(though DeviceType looks like it might be an enum?)
 
4:03 PM
@Pheonixblade9 no that fine I thought so I just wondered if I could get it to hook up automatically somehow
 
it should hook up automatically if you use a navigation property
!!google entity framework navigation property
 
@Pheonixblade9 your right I did a get on the device it to a var
and then set it to device.devicetype = pulled device type
and this inserted a new one again?
 
yeah, unless you have a primary key for the table it's inserting into, it will just assume it is a new entity
do you have primary keys on your tables?
first question, actually: are you using code first or model first EF?
 
no i am passing the ID across?
(basically form a databound dropdown)
plus I have done the double check of getting the item from the db and it still inserted a new entry lol
code first
EF correct
CREATE TABLE [dbo].[DeviceTypes] (
    [id]         INT          IDENTITY (1, 1) NOT NULL,
    [DeviceType] VARCHAR (50) NOT NULL,
    CONSTRAINT [PK_Table1] PRIMARY KEY CLUSTERED ([id] ASC)
);
that the table too
 
4:13 PM
just change your schema to make the DeviceType the key
 
ok? but I am passing the id
 
I don't really have enough context to help... and I gotta go soon
but I am sure one of the other regulars in the room can help :)
 
@Pheonixblade9 thnks anyway :)
 
yeah. hopefully that helped. Read up on navigation properties
 
4:28 PM
RE: my discoveries of mono Sqlite taking O(n^2) to set up parameters, I think I'll just do string injection for this large WHERE IN clause.
But ONLY because they're just ints anyway.
Another prescribed approach is to dynamically populate a temp table one row at a time and join against it. But dayum that's architecturally painful at this point.
I'd have to make sure the table gets cleaned up after use and shit
 
4:46 PM
Is there an easy way to append data into TinyMCE?
I've got a two label's and I need to append them into the editor, but it keeps on giving me a blank screen.
 
@KalaJ just don't like WordPress. Using it for a quick turn around on a website project that they want to be able to change the page content without seeing code.
 
I thought I was supposed to call against the tinymce.activeEditor
 
@Greg I think you can inject it into the <textarea> and tell it to sync again. It's been a while...
 
@CuddleBunny Any idea on how that works?
I think the problem is, the textarea is a runat="server" so when TinyMCE loads it just overwrites the element.
 
@ton.yeung in mem?
 
4:54 PM
I've only interacted with it using JS, so that is probably why
 
@ton.yeung how would that work under the hood? would it ultimately make a query to SQLite that emits a huge result set, and then filters it in C#-land?
 
@CuddleBunny That is what I'm trying to do, a web-form.
 
@Greg if you inspect the tinymce HTML I think it either wraps the textarea or transforms it into a contenteditable div behind the scenes
The last time I used it, I had some issues with the built in methods and just wrote my own.
 
In most of the dozens of cases I'm seeing, the where-in clause is on PK
@ton.yeung Yeah see, this is a mobile app...
 
@CuddleBunny It adds a ton of stuff on it.
 
5:06 PM
@Greg yeah, but the underlying textarea is still there and I think there is a method you can call that syncs between what is rendered and what is in the textarea.
 
Yeah, I see the textarea but their stupid window is hiding all the text making it blank and shit.
Like the background is hiding the text.
 
the main case I've been focused on is updating a column for a set of PKs
 
@CuddleBunny The fucker made the font white, wtf.
 
the code was originally updating them one at a time, and I sped it up a bunch via fewer commands with large where-in clauses
But the profiling still led me to discoveries such as the O(n^2) parameter setup
yeah, the sqlite file is in the app's library folder
 
@MikeAsdf does SQLite support transactions?
 
5:15 PM
@Pheonixblade9 yes, we use them in a couple places
 
just for reference, sqlite has full support of clustered and non-clustered index, and works in the same mechanism of sqlserver standard or enterprise
 
@MikeAsdf you could put the stuff in a table variable and use that
 
Sqlite does NOT support multiple threads per connection.
@Pheonixblade9 I really do wish for that.
 
@Greg lol yeah there is some crazy stuff like that in there.
 
@MikeAsdf you can't use table variables in SQLite?
 
5:17 PM
@CuddleBunny Then they have some white Z-Index background hover it to. Wtf-
 
@Pheonixblade9 nope.
 
:(
MY ARCHITECTURE, IT FAILS WHEN USING SHITTY VERSIONS OF THINGS
 
well, tbh, if your "database" is only like 2-3mb, i would just have plain text file and preload them into memory on app starting
 
Also no stored procedures. Also data types can be weird; i.e. guids are stored as byte arrays.
 
@tweray don't reinvent the wheel :)
 
5:20 PM
in which case you need to manually handle persisting though, but keep everything in memory really save a lot braincells
 
oh you mom & pop shop apps
man I just saw that github VS bug in the stars. that's crazy
 
dude posted his keys on Github, he shouldn't have done that
 
AFAIK any cryptocoin mining on a CPU would gross pennies a month
 
It was a bug in the vs extension
 
that's why you don't instantly upgrade as soon as they release it
3
 
5:24 PM
I wonder what coin they're actually mining, if it's bitcoin or something else, if there's one that's more profitable than I expect...
Maybe I should "accidentally" leak some VM credentials and see what they install on it
 
no, do it on your home computer
about 50% of ddos or funky sql injection cookie or cross domain post attack nowadays we are receiving are from either google or amazon, fact is, they just take the money and don't care what shit ppl do on their cloud
 
@MikeAsdf if bitcoin mining on EC2 was profitable, Amazon would be doing it. It's perfectly profitable if someone else is paying for the computer time, though...
sad thing is I remember trying to get a CPU miner working in like... 2008 and I got sick of it and thought "this will never take off" :P
 
and you know what, for this poor guy wrote the article, even everybody in this world knew that he's hacked, he still have to pay that 6.5k bill on amazon
 
@Pheonixblade9 right, I'm just wondering how profitable it would be to even have a shitty computer scanning github for pennies a month per victim.
Wait I guess the victim instances could do the scanning
So maybe the creator spawned it years ago and it's still spreading and self-sustaining
 
@tweray I bet he could get out of paying it but would lose his ability to use Amazon any more.
 
5:31 PM
and after 10 years the program will start to evolve and here comes skynet right xD
 
Google got a new logo apparently
 
!!alpha google new logo
 
@tweray That didn't make much sense. Use the !!/help command to learn more.
 
ExamplesandTutorialsExchange :(
 
5:34 PM
New google logo designed by a schoolteacher! The 5th letter will SHOCK YOU!
 
It is part of the alphabet
 
lol
I am shocked
still using the alphabet in 2015
 
make me recall the google glass logo
 
wow, who cares
 
perfect split between the L and A
 
5:40 PM
Cool font.
 
@ton.yeung - Actually, Microsoft broke the law there, and as there were more than $5,000 in damages they are liable for an actual lawsuit.
It wasn't the settings VS pushes?
It seemed to me like the private flag wasn't set in the commands VS's auto publish tool was using.
Hm, well someone broke the law.
Ah the extension
So yeah, GitHub is on the hook for that then.
 
@TravisJ since it's an extension by github, according to the use term msft should be 100% free of responsibility. and for the github side, it's all depending on their use term, but most of the case they will also clear any of their legal responsibility as well
 
@tweray - Not with damages.
Damages are the trump card. If it had been less than $5k I would agree that it wouldn't go anywhere. But after $5k damages then both civil and criminal charges can be brought.
The law treats anything over $5000 as a big deal. Keep in mind, $5000 of theft will get you a $250,000 fine and up to 10 years in prison.
 
https://github.com/gitextensions/gitextensions/blob/master/LICENSE.md
check term 15 and 16
 
criminal?
against who
bitcoin miners in china?
 
5:46 PM
@ton.yeung yes, it their tou for vs2008-2013, can't find the new one, but i assume they will just copy/paste
 
@tweray - TO THE EXTENT PERMITTED BY APPLICABLE LAW
damages Damages DAMAGES
 
@ton.yeung Accidently coding a bug isnt criminal negligence
 
@Shoe - It is if you cause damages.
 
criminal? Probably not
 
Sorry, but I am not sure where this disconnect is coming from. If you write something, or do something, anything, and you damage something, you are on the hook.
Regardless of how you tried to publish your terms.
 
5:48 PM
In US there is criminal and civil court
 
Criminal? Probably not. But still up for investigation depending on how many times it happened to other people.
 
If you accidently break something you are most likely not a criminal
 
Correct. Unless you break something that was $6500.
Real money, real consequences.
 
Dollar amount doesn't differentiate civil and criminal
 
It does.
 
5:50 PM
10k in bad checks will teach you a good one
 
lol
 
You're talking like small claims versus large claims
 
No, the law is tiered as well.
They will not prosecute under certain limits as well.
But the 5k line is real.
 
Who is "they"
 
is there a way to use signalr.client in a webapi project
 
5:51 PM
Add it to the project?
 
nuget didnt work
 
The district attorney would be the actor, but the law is different for each tier.
 
describe work - is it in the Reference?
Did nuget error?
 
@bdawg - You still have to set up the hub and everything
 
Why is the district attorney involved
It's a civil matter between 2 parties
 
5:53 PM
@juanvan there was no error and i was trying to add it as a reference using nuget but it didnt install
i clicked install and nothing
@tr
@TravisJ thats on an mvc client
web app
 
@bdawg - I don't think there is a difference. I have setup signalr on vnext with modules and it still needed a hub.
 
@tr
 
@Shoe - It is civil between the two. But if there was a large amount of others who experienced similar actions it could become criminal. In this instance it is more than likely not at all and was just a simple failure.
 
@bdawg try install in through package managment console, see what message retuns
 
The party size makes no difference
For example, for years many companies used asbestos for manufacturing different things. Turns out that's bad for you. Those companies were not "criminally negligent" because nobody knew asbestos was bad for you
 
5:58 PM
@TravisJ but in this case, the whole world of hacking lost on windows os should always start criminal inspection on msft?
 
However those companies were civilly liable.
 
@tweray - lost on windows?
 
@Shoe So as long as nobody knows, it's ok?
 
@KendallFrey No it's the difference between civil and criminal
 
@TravisJ say some bank lost 100k because of a security flaw on windows, does that means msft must be on the criminal inspection?
 
5:59 PM
at what point does negligence become criminal?
 

« first day (1781 days earlier)      last day (3150 days later) »