« first day (1467 days earlier)      last day (3466 days later) » 
00:00 - 18:0018:00 - 00:00

12:38 AM
hey
@Pheonixblade9 make me a wooden wallet
You are all my minions and you shall all fall to your knees in my presence.
 
 
7 hours later…
7:49 AM
hi everyone , can i enable gc concurrent at runtime for sometime ???
 
 
1 hour later…
9:15 AM
@RoyaanKhan Yes, you can:

<configuration>
<runtime>
<gcConcurrent enabled="true"/>
</runtime>
</configuration>
 
9:43 AM
haaaaaai
 
@Sippy Ohayou gozaimasu
 
YES!
 
@jay_t55 at runtime mean from code :P
 
@RoyaanKhan Isn't it enabled by default?
 
10:10 AM
yes it is but i want to disable it at some point of exucution
 
@RoyaanKhan Why would you want to disable the GC?
 
Hi there Anyone with Knowledge of RabbitMQ
 
Hey All..
Can someone help me setup a signalR project downloaded for NET 4.5 but i want to work on 4.0
?
 
hi Nezam
 
@Mohit Hi
 
10:13 AM
which signalR version you are working with 1 or 2
 
@Mohit 1.1
 
if it is 2 then it is not possible
 
Some NuGet packages were installed using a target framework different from the current target framework and may need to be reinstalled. For more information, visit docs.nuget.org/docs/workflows/reinstalling-packages. Packages affected: EntityFramework, Microsoft.AspNet.SignalR.Owin, Microsoft.AspNet.SignalR.SystemWeb, Microsoft.Net.Http, Microsoft.Owin.Host.SystemWeb
It shows me this message
 
well you can use package manager console for this purpose
check the package file and find out version which was installed
 
because the project was downloaded and was originally targetting 4.5 but i changed to 4.0 due to host restrictions
 
10:15 AM
and then install the rest with nuget website.
 
@Mohit Can you guide me how to do that ? I am clueless
Like should i remove references first and then install target framework references
like removing EntityFramework 5.0 and installing 4.1 ?
 
well what can i say from this Github page is what you are saying is possible
check Xiaohongt comment
 
this is the sample proj i downloaded
 
I usually work with SignalR 2.0, never worked with 1.0
but let me check if i could find anything
 
I just downloaded it and changed the target framework from 4.5 to 4.0
I just want to set all references correctly to run it
@Mohit Thanks
 
10:21 AM
well if you check this you find you don't need to change entity framework version
4
Q: System.Net.Http could not be resolved in the currently targeted framework .NET 4.0

Brian OgdenGot a nasty error after moving a solution from Visual Studio 2010 to 2012. Build is fine and everything works perfect localhost. I have one new MVC4 project that requires .NET 4.5 so I installed the 4.5 framework on the build server. The build is good but MSBuild is failing to copy DotNetOpenAuth...

 
Ok i tried to rebuild in the current scenario but now it gives me the following
Error 7 'System.Web.Routing.RouteCollection' does not contain a definition for 'MapHubs' and no extension method 'MapHubs' accepting a first argument of type 'System.Web.Routing.RouteCollection' could be found (are you missing a using directive or an assembly reference?
 
sorry Nezam currently no idea
 
@RoelvanUden If you make a submit request using AJAX with a json contentType, how can you return html from the method it submits to?
Just change contentType in response context?
 
@RoelvanUden dude i dont want disable GC, i just want to enable conccurent gc for some time which is disable by default
 
10:38 AM
@Mohit Thanks Mohit i got it to work using -reinstall
 
Would I be a dick for doing this?
 
@Sippy You just return html as normal
 
@RoelvanUden Doesn't work, it errors in ajax call.
Something like "unexpected token '<'"
 
@Sippy Let me guess, you're using some jQuery helper that expects JSON? :P
 
10:49 AM
Cos obviously '<' isn't a JSON char
I'm submitting JSON with JSON contentType
So it expects JSON back
 
        public void addTask(String title, String description)
        {
            XmlWriterSettings xmlWriterSettings = new XmlWriterSettings();
            xmlWriterSettings.Indent = true;
            xmlWriterSettings.NewLineOnAttributes = true;

            XElement element = XElement.Load("Tasks.xml");
            element.Add(new XElement("Task", new XAttribute("id", this.getID()), new XElement("title", title),
                new XElement("description", description)));
        }
Guys, my XML file does not get updated when I call the function. :/
 
@Sippy That's just jQuery behavior. AJAX has NO NOTION whatsoever of return types
So don't use the assumption-based bullcrap and start using something sane
@HassanAlthaf You never save it. Surprise, surprise.
 
@RoelvanUden As in stop using jQuery? :P
I figured it out already anyways
Render page as html string and return it as a json variable :D
HAHAHA SHOOT ME
 
Hey can someone explain me why i am getting security exception in this
@Mohit
I compiled that successfully and uploaded.Its running well on local but gave this exception on the server.Please help
 
11:06 AM
How to remove a Node in an XML file according to its Attribute using XElement?
<?xml version="1.0" encoding="utf-8"?>
<Tasks>
  <Task id="1">
    <title>Hey!</title>
    <description>Hey!</description>
  </Task>
  <Task id="2">
    <title>My TitleLOL</title>
    <description>Lorem Lipsum Blablabla</description>
  </Task>
  <Task id="3">
    <title>LOL</title>
    <description>HAHA!</description>
  </Task>
</Tasks>
For example, I want to remove the node "Task" which has the ID of "1", how would I achieve that?
 
@Sippy That's just stupid
 
@RoelvanUden do you think you can help me please? :(
 
@HassanAlthaf You've not shown any effort yet to solve it yourself, so, no.
 
@RoelvanUden Why? It works fine
 
@RoelvabUden I have been searching this since 15 minutes on google.. I found a way but its not in XElement..
Nvm, found it woop!
 
11:12 AM
I should point out I need to return other stuff as well.
Using json
So it's the only way that makes sense unless I use more ajax calls
But what's the point
 
Debugger:Beginning of Application: .ctor, MainWindow.xaml.cs line 11
This is the first event recorded in user code.
Time: 10/22/2014 4:45:10 PM
Thread:<No Name>[8156]
Error. :(
Fixed.
        public void updateTask(String id, String description)
        {
            XElement elements = XElement.Load("Tasks.xml");

            var query = from element in elements.Descendants() where (string)element.Attribute("id") == id select element;
            if(query.Count() > 0)
            {

                elements.SetElementValue("description", description);
            }
            elements.Save("Tasks.xml");
        }
Guys, I want to update the description Elements value, but it creates a new description node.
It does this:
<?xml version="1.0" encoding="utf-8"?>
<Tasks>
  <Task id="1">
    <title>Hey!</title>
    <description>Hey!</description>
  </Task>
  <Task id="2">
    <title>My TitleLOL</title>
    <description>Lorem Lipsum Blablabla</description>
  </Task>
  <description>Hey whats up mate you rock!</description>
</Tasks>
Note the <description /> after the </Task>
 
11:35 AM
Evening!
Anyone that worked with MonoDevelop here?
 
@IonicăBizău Yup.
@Sippy To reduce overhead and make more sense :-)
 
@RoelvanUden Can you bring some light here?
 
@RoelvanUden It makes sense :D
I'm replacing the html of a container using a partial view, same as before.
 
I worked with C# in 2011-12, on Windows. Now I'm using MonoDevelop on Ubuntu, for school...
 
And the overhead is basically the same as it was before.
 
11:38 AM
@IonicăBizău No idea. Never used GTK#
 
@RoelvanUden Is there any alternative to show an image in a window, on Ubuntu?
 
@IonicăBizău Even worse, Windows Forms.
I just don't have experience first-hand with GTK#. I imagine it has an Image property, or Source property, etc.
 
@RoelvanUden Maybe ImageProp?
 
Someone please help me, I am badly stuck.;
 
did you put it in four wheel drive?
 
11:49 AM
and low-ratio?
 
@RoelvanUden I found the answer!
0
A: Set/Change the source of image in C# Gtk project, using MonoDevelop

Ionică BizăuSetting the Pixbuf property works fine: this.image1.Pixbuf = new Gdk.Pixbuf ("/home/whoami/Pictures/1.png");

 
@IonicăBizău Cool :-)
 
 
1 hour later…
1:12 PM
In a single threaded app, if you have an event handler function and are stuck in a while(true) loop somewhere else, will you ever get inside that event handler function? I am going to assume no.
 
you assume correct
if a thread is doing something, it can never be doing something else
 
Unless the while(true) does some kind of event pump (for you, probably, unlikely!), as Kendall said.
 
Lets say I want a thread that just idles until an event occurs. So I create an object of my class, and do new Thread(new ParameterizedThreadStart(functionNameHere)) and start it up. What is the best way to have this idle until I want to handle an event.
the event handling would occur in the new thread
 
ManualResetEvent
basically it lets a thread wait until it gets a signal from another thread
 
Hm, why not use the build-in event functionality?
 
1:18 PM
though if you're trying to make a workaround for the aforementioned infinite loop problem, nothing will help
except for removing the infinite loop
 
Looking at the ManualResetEvent docs, I don't necessary want one thread to signal another. What I am doing is having the thread idle until an event occurs so I can handle it. The infinite loop question was completely seperate and was just a curiosity question.
 
are you trying to poll something?
 
Sounds like you're after some kind of producer/consumer-type of approach? :-/
 
One sec, I will type out the scenerio
 
if you have an actual event, then you'll just have to handle it in the main thread and then signal the worker
 
1:24 PM
I have a ConcurrentBag of Device objects managed by a DeviceManager class. The device objects represent rows in the database. A device has various properties that have the equivalent column in the database table. The oracle ODP.NET library allows you to attach an event that will fire when a table change occurs. So let’s say the warning high level for a device has been modified in the database.
This should fire the event and the DeviceManager updates the relevant device object with the new value. I want this DeviceManager to run on a separate thread and it can just idle until it needs to update the collection of objects used by other threads.
 
1:37 PM
So Telerik is getting acquired.
 
262.5M. Didn't know they were worth that much.
 
Companies pay outrageous prices to acquire the most useless crap anyway.
e.g. Microsoft for Minecraft :-P
 
> Progress Software
...who?
 
fiddler is a pretty handy tool
 
I only use it to inspect traffic from other applications, not mine :P
 
1:50 PM
yeah, it's interesting to see what types of calls certain websites are making
 
For websites you have your browser tools, no? For other apps its useful.
 
@TomW My reaction exactly
@RoelvanUden *Mojang
 
@KendallFrey portfolio looks crap
bloated enterprise BS solutions to made-up problems, by the looks
 
perfect company to acquire Telerik
 
agreed.
I think we're coming up to our first year free of Telerik in all new production software.
which pleases me greatly.
 
1:58 PM
everyone wants to sell stuff to make writing software 'simpler'
by doing the opposite
 
It still fools hordes and hordes of inexperienced programmers, so they got a market.
 
inb4 resharper
 
I am slowly getting used to resharper
the refactor menu with useful features, quite unlike the default one, is acceptable
 
Good morning.
@TomW How do you like it?
 
My boss just said "probably not" to R# licenses, so I had to buy my own. Oh well.
Still worth it. The find usages menu, jumping between VB > C# without the stupid object explorer, on-the-fly decompilation for libraries
 
2:07 PM
I'm trying to convince my boss to get licenses to NCrunch.
(which, if it happens, gives me a good reason to request an upgraded 8-core workstation)
 
@Squiggle build server
 
huh?
yes, we have some of those.
 
run that stuff on a build server
hm, 'for visual studio'
does that imply it can't be run in a CI process, without VS?
 
NCrunch is awesome. It continuously compiles runs your unit tests on-the-fly.
any changes you make which cause tests to fail are immediately highlighted
doesn't even require you to save the file. Just change a + to a - and it will give you feedback within 2 seconds.
<3
 
@MrDoom What benefit do you get with R#?
 
2:14 PM
Doesn't VS2013 have that?
 
of course you compliment that realtime unit testing with a full integration test on your CI server
@MrDoom afaik, it just runs tests on build
 
@MrDoom vNext definitely has that.
 
@Greg Aside from what I listed, the in-your-face warnings and errors are great. We're running stylecop on our projects and ReSharper has support for detailing what stylecop violations you have in your code
 
really? Any more info? resources?
 
Going into some of the files from pre-stylecop result in a lovely wall of errors
 
2:15 PM
@Squiggle Who are you talking to?
 
or am I missing half a convo
:-/
ignore me :)
but don't /ignore me
 
Now I can't find info on it
hm
 
@Squiggle I asked the benefit of R#, vNext does have what you just mentioned. It is how all the web-applications were built to remove System.Web so you call what you want to use.
 
But there is also this: continuoustests.com
But it's also a bunch of other little tools. The code reformatting, highlighting unused or dead things, indicating when checks are unnecessary, etc.
 
@MrDoom continuoustests is a really poor alternative, tbh.
 
2:17 PM
I'm sure you could get a bunch of that out of Rosyln, but for now R# has it made
 
@Greg I haven't heard of this feature in vNext
 
2:35 PM
twiddling thumbs
 
@Squiggle vNext is built on project.json.
@Squiggle This basically lets you call what you want to use, which in turn will have individual components running so you can continually run without any issues.
 
2:52 PM
Ah, OK. I was talking about NCrunch which runs an on-the-fly compile/run tests/profile code/visual feedback. It's not a platform thing, it's a build thing.
but I get what you mean, and I like it :)
 
@Squiggle Yeah I know. vNext does run on the fly, compile, and etc. The Visual Feedback I'm not sure about though.
vNext is definitely geared for Cloud.
 
Aye.
We're building an Azure cluster here. Can't wait to get my hands dirty...
 
3:10 PM
Yeah, I'm thinking about launching one of my projects on Azure.
 
Is String.Substring() zero based?
 
better be
 
<#@ assembly name="$(TargetPath)" #>
When does ^ work?
 
huh?
 
Work = execute?
 
3:13 PM
I have not figured out what sequence of rebuild, knock on desk etc that makes intellisense come back for me
Could be an issue in the plugin fourtea
 
0
A: High frequency mongo db, is there a performance improvement asymptote when scaling hardware

Markus W MahlbergThat is a horrible idea in terms of durability. You'd potentially loose a lot of data on a simple power outage and alike. As long as you can scale, you should do so. Finding the sweet spot where you get the most bang for the buck is not easy, but I would focus on that rather than risking my data.

any comments on above
please
 
@JohanLarsson Seems redundant (and wrong) to add a reference to itself
 
oh, maybe it is not needed at all
want to grab things in classes outside the template
 
I might be wrong if it's a design-time template
but depending on yourself sounds like a recipe for confusion
e.g. getting the old version while building
 
I am confusion :)
@KendallFrey yep all kinds of bs, not even seen evidence it is deterministic
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ assembly name="$(TargetPath)" #>
<#@ import namespace="Gu.Units.Generator" #>
<#@ parameter name="UnitMetaData" type="Gu.Units.Generator.IUnit" #>
<#@ output extension=".txt" #>
<#
// Template used by UnitGenerator.tt
IUnit unit;
 
3:18 PM
@JohanLarsson I've had issues with that as well, sometimes it will just drop references. There's an open bug on the github for ForTea for that.
 
removing :
<#@ assembly name="$(TargetPath)" #>
<#@ import namespace="Gu.Units.Generator" #>
breaks it
 
Are you using $(TargetPath) to reference the project that the T4 template is in?
 
intellisense came back now though :)
 
is it a design-time template?
 
@MrDoom yep
@KendallFrey where can I check?
 
3:19 PM
So the problem with that is you need to build the project in order for that reference to actually work.
If you want to reference the containing project you're meant to use either reflection or the EnvDTE COM object. @KendallFrey Do you know if Reflection actually works in T4 yet?
 
I don't know why not
 
I build and I clean and I rebuild and I switch build def and repeat it
 
Did it not work at some point?
 
I tried it at one point in VS2012 and got some esoteric errors, can't remember why I gave up on it.
 
@JohanLarsson What is the Custom Tool for your .tt file?
 
3:23 PM
TextTemplatingFileGenerator
long name that does not say much imo
 
that's design time
design time templates generate code for your project
why does it make sense to reference the project in the T4 itself?
 
it complains if I don't have it
 
why?
are you using code from your project in T4?
 
I have a static class with method names etc that I use when generating
 
if this class is used for generating your project, it shouldn't be part of your project
 
3:29 PM
URGH
I inherited some code from possibly the most retarded programmer ever
SO MUCH REDUNDANCY
nosebleed
 
@KendallFrey one project generates code in another project
Wanna keep the real project clean
 
I'd be able to give better advice if I knew how everything was structured
 
@Sippy Ctrl+C Ctrl+V is a highly productive programming strategy.
 
@Squiggle I feel dirty but that is exactly what I have done.
Took his code, modified it slightly and just left it.
I can see about 20 things I can change straight off that would make it less shit.
 
@Sippy sometimes that's the only way to fix something.
 
3:34 PM
Like wrapping DirectoryEntry
He's written out every connection to AD lol
Like why
 
Because it worked just fine the first time?
 
But whyyyyyyy
 
@Squiggle One of my coworkers discovered this strategy. Only she doesn't update the comments.
 
If it works then you think oh I can avoid writing this 200 times if I wrap it
 
I have clearance to start code reviews, but I haven't quite pulled the trigger on that one yet.
 
3:35 PM
I'm a lazy programmer. I write as little code as possible to get the job done.
Your predecessor was probably a manic coder who flailed at a keyboard until it worked, amirite?
 
He seems to be
There's like 200 methods as well
Like "CheckThisExists" methods
Rather than just evaluating it like a sane person
 
@MrDoom electroshock therapy is a good solution to this.
 
That'd be funny
 
Actually, one valid way to really punish a developer is to confiscate their 2nd monitor.
Right. I'm going home. End of the sprint and there's no more work to do.
 
@Squiggle Time for some feature creep
 
3:40 PM
Seeya squiggle
 
At 5:39pm on the last day of the sprint?
 
Ah, you're not in the US. Begone then!
 
<exits silently>
:D
Central Europe. It's getting dark right now.
 
Meanwhile, it's lunchtime for meeee
 
Anyone point me in some ideas, for dynamic content to modify a web-site?
 
3:43 PM
@Greg JavaScript
It's designed for exactly that
 
@KendallFrey I mean like, a user inputs data and then it automatically changes the web-site. More like a Content Management System.
 
JavaScript
so you want to rewrite wordpress huh?
Do you have any reasonably scoped questions?
 
Lol
Just keep repeating JavaScript
 
everything can be done with JavaScript
 
@KendallFrey Not really rewriting Word Press, it is for a custom enterprise system.
 
3:50 PM
@Greg what do you want to do?
Specifically.
 
I need to allow our employee the ability to modify content of a page, track the history of the changes, and several other items. Obviously I could build a database, but wasn't sure that was ideal and most efficient.
 
How else you gonna track changes?
Logfile?? :D
 
@Sippy Well, wasn't sure if that would be better.
@Sippy All though Disk I/O isn't as quick as SQL.
 
Well for a CMS you're gonna need some form of database so it'd make little sense to do the logging in a file.
 
@Greg So, if you want to kill yourself just deploy Drupal or Wordpress.
 
3:55 PM
@ton.yeung Yes.
 
If you don't want to kill yourself there are a lot of canned systems out there. Why do you want to write it in-house?
 
For learning and bettering my code / knowledge / practice?
 
Oh it's a learning project
Fair enough
 
In that case
Throw it up against NoSQL and have fun
 
at least a hundo diff cms systems out there
you could do a db-less cms in node.js pretty easily
 
4:04 PM
@CharlieBrown Yeah, want to really learn vNext quite solid.
 
yeah, it looks nice. wish is was released though
 
 
@ton.yeung Selling.
 
You don't remember "I did not have sexual relationship with this woman"? @ton.yeung
 
4:22 PM
@ton.yeung Well, doesn't mean I'll sell it.
 
4:38 PM
Sharepoint!
Sharepoint is the best
 
Any body working on XNA?
 
@ton.yeung Yeah, that is what I'd like to do.
@ton.yeung I feel like most become horrible.
 
@ton.yeung Yeah thanks!
 
4:54 PM
@ton.yeung I'd like to make something useful but truly make it simple.
@ton.yeung What is the best way to build controls for MVC?
 
lol
agreed
yeah, its great for the "container" of the application, but everything inside I would delegate to angularjs at this point
i was just looking for one and couldnt find it
 
5:17 PM
Same, can't seem to find any information on their plans
Just arbitrary goals
 
last blog i read said the tooling is not created in VS14 yet, so im sure that needs to be there as well
 
Oh boy
 
shouldnt be too painful of an upgrade from mvc5 though
at a glance, i thought it looked like a replacement for global.asax and thats about it
or copy paste, not really that hard. i did 3 -> 5 like that
 
5:33 PM
@ton.yeung Angular directives?
 
am i crazy? shouldnt this work?
var regex = new RegExp('^(0[1-9]|1[0-2])\/(0[1-9]|1\d|2\d|3[01])\/(19|20)\d{2}$');
regex.test('12/10/1956');
 
use regex literals
 
@ton.yeung I was thinking of Model View Controller, definitely intend to use Web-Services though. I can use Angular with MVC correct?
 
As for why, just print that regex to the console
 
i normally do, but im actually passing it in like new RegExp(format)
 
5:47 PM
oh
what's in format then?
 
var format = '^(0?[1-9]|1[0-2])\/(0?[1-9]|1\d|2\d|3[01])\/(19|20)\d{2}$';
 
well that's broken
 
mm/dd/yyyy format
 
!!> '^(0?[1-9]|1[0-2])\/(0?[1-9]|1\d|2\d|3[01])\/(19|20)\d{2}$'
 
@KendallFrey "^(0?[1-9]|1[0-2])/(0?[1-9]|1d|2d|3[01])/(19|20)d{2}$"
 
5:48 PM
just look
 
ugh, i forgot about escaping
yup. need food then.
 
My company uses XSLT to convert XML documents to JSON objects, that are then temporarily imported into C# objects, sort of, and then dumped out to Knockout.
It is exactly as terrible as you imagine it is.
 
00:00 - 18:0018:00 - 00:00

« first day (1467 days earlier)      last day (3466 days later) »