« first day (1472 days earlier)      last day (3493 days later) » 

1:03 PM
@Sippy Meh. Multiple inheritance. Virtual is redundant as fuck. Want hot-swapping of methods. Primary constructors. Expression properties/methods. Auto-implemented properties with validation logic. And probably much more I can think of.
 
@RoelvanUden Lol, MS does like inheritance trees. Good points tho
It's not like any of those break OOP for the language though
Things would surely get messy if you gave a sub two supers though, no?
base becomes useless
Unless the compiler makes both supers partials in which case you got some weird hybrid
 
@Sippy Sure, they don't break it, but Java does OOP too but I wouldn't call it nice
 
PHP does OOP apparently, that's not nice either :P
@RoelvanUden Did you ever play custom gametypes on Warcraft 3?
 
@bhuvin got that minute please?
 
@Sippy I never played Warcraft 3, so there is that.
@Sippy PHP OOP is actually surprisingly nice. It's not as good as C#, but not as bad as Java either!
 
1:13 PM
@RoelvanUden Ahh that sucks, it's amazing :D
Not the RTS bit, but the custom games are worth the title alone.
@RoelvanUden I despise php :/
 
Why is this value in JProperty please?
foreach (var subscriber in job["_links"]["self"])
{
var a = subscriber;


}
Instead of JObject?
 
@Sippy Why? PHP isn't bad. Hell, some things are amazing.
 
@Marek _links is an object, self is a property of _links.
Don't use var.
 
What shall I use instead please?
 
Typesafe..
@Marek I think this is probably fundamentally wrong, actually.
subscriber is a property because you're looping through properties of the ["self"] object.
 
1:18 PM
I tried this:
foreach (var subscriber in job["_links"]["self"])
{
string s = subscriber.ToString();
var newObj = JObject.Parse(s);

string a = newObj["href"].ToString();

}
 
@RoelvanUden Never been keen.
 
Still not getting it:/
 
I don't like the lack of decent IDEs
PHPStorm I never had access to, though.
Netbeans is awful
VS had bad support at the time
 
@Sippy It keeps failing on the JObject.Parse
 
Is the json string as you'd expect?
You probably can't parse to var.
Cos it'll just parse as a string I guess.
Or as a generic object.
 
1:20 PM
I get:
Additional information: Error reading JObject from JsonReader. Current JsonReader item is not an object: String. Path '', line 1, position 6.
Why is that so?
 
@Sippy PhpED and PhpStorm are pretty nice. Otherwise Komodo Edit (FREE) is amazing as well.
@Sippy VS is just good for MS languages. Anything else: Just a big fat no.
 
Will remember that in future if I ever get forced to write in PHP by terrorists who take me hostage and want a website or they'll kill my family.
 
@Sippy may you please help me on tha?
 
@Marek I asked if your string was as you expected.
 
The string is: ""href": "/api/subscribers/?page=1&rows=10""
"href": "/api/subscribers/?page=1&rows=10",
 
1:24 PM
@Sippy Lol. It's always good to look at what other communities are doing; it can teach you a great deal even if you never use the language. PHP has come a long with package management, standardization and powerful frameworks and ORMs. It's not the PHP you knew 2~3 years ago. ;-)
 
How do I parse string like this into JObject?
 
Hehe
 
@Sippy I think it is correct format.
 
@Marek It's not.
 
@Sippy How is that wrong?
 
1:27 PM
It's not a json object.
That's why it won't parse.
It's a property of one.
 
Ok. How can I get the value of it please?
 
I have needed to look for it yet but how heavily documented is c#? If I run into issues is it highly likely I'll be able to find issues through a Google search most of the time (if I put some effort in!). When I started with JS / HTML5 it was for Windows 8 apps and there was hardly anything.
 
A user of my website can import data from an excel sheet. I would like this import to happen non-blocking (so async, I think) because it can be thousands of records. Any hints/tips/guides on how I can adjust my existing code to do this?
 
@James Yeah, but that has been around for a few years no. C# has been around since 2001 or something.
 
hi all
 
1:36 PM
@Sippy so I have JProperty now,right?
 
@Marek Loop through _list or w/e it was and get self as an object
 
What can I do with JProperty if I want the value?
 
Well I'm pretty sure if you just take it as a jproperty you can extract from it.
 
@James C# has plenty of documentation around the internet, although some parts with little use might only have the official documentation.
 
.value or something
I dunno, never used the library before
google it
@James most of the problems you'll ever face with C#, someone has already solved on SO :D
 
1:37 PM
Just be sure that you're using the right version of the .NET framework and of the external resources. most stuff changes every so often
For example, the proper way of doing asynchronous processing has changed 3-4 times since it was introduced, I think
 
Am I right in thinking .Net get installed when you install Windows?
 
yes and no
 
You probably need to download it.
 
Because there have been a few occasions in our office where I've had to add back .Net 3.5 because it is not installed by default
 
windows does come with certain .NET framework installations
 
1:40 PM
And you do it from the disc
 
easier to download it.
 
but not all versions come with the original installer
 
Hmm, you say that but you can't download with .Net 3.5 and Windows 7 / 8.1
 
yes you can
 
I ran into the issue numerous times and it has to be done of the disc
 
1:41 PM
you can even find .NET 2.0 somewhere
 
You get an error message otherwise (unless I'm doing it wrong)
 
what error message do you get?
 
Look at the Important box on that bpage
I've had to follow those instructions about 15 times!
 
1:42 PM
Simple answer: don't use Shitdows 8.1
 
without reinstalling your OS?
 
Ha, I don't - I'm on Windows 10 now :-s
 
Your whole business rolled to Win10 already?/
That just sounds like a bad idea.
 
You don't have to reinstall, you just have to put the disc in and run the CMD line - I figure it just reinstalls it from the disc
Haha no, just my personal machines
 
@James Yes. Every version of Windows since Vista has some version of the .NET framework. Which version that is depends on the OS. Look at en.wikipedia.org/wiki/.NET_Framework
 
1:43 PM
Def would not install unreleased software in the office
Ah, ok. Will take a look.
 
Now that I'm nearing my final 6 weeks notice period with my current company (already got the dismissal letter), I'm planning on buying 8.1 for my personal gaming machine. worth it, or should I wait for 10?
 
Wait for 10
 
Currently using 7
 
No point in 8
I'd keep using 7
:D
 
even for a gamer?
 
1:45 PM
Nothing wrong with 8. Wouldn't go from 7 to 8 just 'because, 8' though
 
Any Json expert here please?
 
since there's a 15% perf boost
 
How can I get value of t his string: "href": "/api/subscribers/?page=1&rows=10" ?
 
@NateKerkhofs Well, no. That depends on which game. Some of them run tons slower.
 
ah I see
@Marek Parse to a dynamic ExpandoObject using NewtonSoftJson, then access it through .href parameter
that is if you don't have an object that fits better than an ExpandoObject
 
1:47 PM
ExpandableObjectConverter ?
 
no, ExpandoObject, in System.Dynamic
 
@NateKerkhofs I have to say that I actually don't get the complaints with Windows 8, esp Windows 8.1
 
posted on October 27, 2014 by ericlippert

Previously we enumerated all the combinations of a particular size from a sequence by observing that the sequence {50, 60, 70, 80, 90} had combinations of exactly three elements as follows: { // 50, 60, 70, 80, 90 {50, 60, … Continue reading →

 
Windows 10 does feel like it's going to be much better though, it's rough atm (although no crashes, more UI roughness) but the foundations look like they're there.
Also, it quite a fun experiment as MSFT are pushing out updates monthly so you can see how it improves with feedback
Wouldn't recommend for main productivity machine though.
 
@James Touchscreen OS on desktop environment = worst usability ever.
 
1:49 PM
@James No crashes? or fewer crashes? I'm hesitant to install it on my secondary laptop because I'd rather not have to reinstall it every 4 weeks
 
Maybe not so useful on desktop, but on Laptop very helpful.
No crashes at all for me.
 
@James Isn't 10 just re-branded 8 with a menu button? :/
 
For example if I go from using works Surface 2 for a few hours to a laptop I find myself touching the screen like a dunce forgetting it's no touch screen too!
 
I think 10 has a lot more customisation options
So you can turn it back into 7 if you want.
Do away with the vile tileset page
 
Kind of, I actually had the new start menu and have kept the start screen, option is there if you want menu though. New virtual desktops is very useful.
 
1:51 PM
From what I can tell, 10 has a bunch of things extra in customization. Not sure how it goes for performance though
 
Although as I understand it there is third party software that does it for Windows 8 and 7 too, just I never used it.
 
which is what I care about most
 
If only games would run under Linux...
 
Performance feels the same as Windows 8, but Windows 8 definitely feels faster and more responsive than Windows 7, never done benchmarks though
 
I'd switch to that one Linux installation that allows highest speed if I knew it could support my games
 
1:51 PM
@NateKerkhofs I'm pretty sure they learned their lesson in sacrificing performance with Vista.
 
Not sure about the name though
 
@Sippy I don't think system requirements have gone up since Vista have they? Think they've even gone down!
 
Read about it on a TV Tropes article
 
@Sippy Vista.. isn't slow. :-)
 
@RoelvanUden trust me, it is
in fact, it's slower than Windows 8 AND XP
I saw Troy hunt do a test with windows 8 on a PC that used to run XP
8 was like 50% faster than XP
 
1:53 PM
@NateKerkhofs missed your earlier question - each monthly Win10 tech preview update doesn't require full install, just a Windows Update.
 
@NateKerkhofs Vista SP2 runs perfectly fine. It just has a bad reputation now.
 
The problem with Vista was that Security was too strict
 
@NateKerkhofs That's just silly. In what? Booting up? Well, of course, then. Normal code execution isn't magically faster.
 
@RoelvanUden I agree, didn't have too many performance issues. Interface feels clunky though.
 
1:54 PM
@RoelvanUden Let me find the article he wrote
triple boot speed, faster opening of documents, faster benchmarks
 
@NateKerkhofs Absolutely bad tests ;-)
@NateKerkhofs Installation is a minor difference nobody cares about.
 
@RoelvanUden why, exactly, are they bad tests?
 
@NateKerkhofs Windows 8 caches boot image therefore it is faster.
 
@Marek - Sorry man ... Got caught into a sudden meeting ...
 
@NateKerkhofs Opening a Word document on what? 2010 vs 2013, 32b vs 64b? XP 64b will have the same performance if using the same word.
idem idem idem for the rest
 
1:57 PM
They were also both running Microsoft Security Essentials and the other software seen in the demo (Office 2013 in Win 8 and Office 2003 in XP, Adobe reader and Photoshop CS3). The boot test was done by shutting down from each OS then powering on.
so that's the different software
 
How do I get that property value please?
foreach (var subscriber in job["_embedded"]["ngcp:subscribers"])
{
dynamic sampleObject = new ExpandoObject();

sampleObject = subscriber;

string s = sampleObject.username.Value.ToString();
@NateKerkhofs
I get error that it does not contain definition for "username"
 
@Marek no, you're doing it wrong. use Json.Parse(string) to parse the JSON string that you receive from whatever source you get it
 
@NateKerkhofs A proper test is nothing more than doing a truck load of calculations after the thing has booted, using the same supported hardware. You'll find that with the same hardware and the same instructions that the OS doesn't have much of an influence, or any at all. At least, in Windows NT world. Linux is different due to its scheduler.
 
at that point, you can access the properties of that object
parse it directly into your dynamic object
@RoelvanUden PassMark PerformanceTest Medal407.5 356.5
He did that as well
1/7th increase in speed
 
@NateKerkhofs Hardware, software, and from what age again
 
2:02 PM
@RoelvanUden Have you even read the blogpost entirely? he shares the hardware and the year from which the laptop came
8 year old laptop
 
You didnt like it
 
with same hardware for both tests
 
@NateKerkhofs Sorry, but, where do I get the Json.Parse function from?
 
@Marek From the NewtonSoftJson module
Look on NuGet for it
Or can you not use 3rd party libraries for some reason?
 
@NateKerkhofs I am already using the Newtonsoft
 
2:03 PM
@Marek could you please put in the data coming in ?
 
Your references and imports are correct?
 
The input data are like this
"ngcp:subscribers": {
"_links": {
},

"domain_id": 3,
"email": null,
"external_id": "moser",
"id": 13,
"password": "Moser2014!",
"primary_number": {
"ac": "7472",
"cc": "43",
"sn": "28257"
},
"profile_id": null,
"profile_set_id": null,
"status": "active",
"username": "moser",

"webusername": "moser"
}
 
And what do you need to get?
 
the username
I tried this:
username, status and id
foreach (var subscriber in job["_embedded"])
                {
                    dynamic sampleObject = new ExpandoObject();

                    sampleObject = subscriber.ToString();

                    string s = sampleObject.username.Value.ToString();
 
that JSON is not really correct. it's missing the first and final brackets
If it were real JSON, it would be
{ "ngcp:subscribers": {
"_links": {
},

"domain_id": 3,
"email": null,
"external_id": "moser",
"id": 13,
"password": "Moser2014!",
"primary_number": {
"ac": "7472",
"cc": "43",
"sn": "28257"
},
"profile_id": null,
"profile_set_id": null,
"status": "active",
"username": "moser",

"webusername": "moser"
}}
 
2:11 PM
Ok I did this: sampleObject = "{" + subscriber.ToString() + "}";
How can I get that username value now pelase?
 
why are you doing toString()?
 
you really need to read about json.
This is pretty much vamping.
 
I was about to say, what did we say earlier about vampires
 
It appears like your job element is a JSON object itself
start by doing JSON.Parse() on that
And if at all possible, use an online generator to create the appropriate class
so you can do strong typing
for example
 
Really trying to do that but cannot find the JSON.Parse method
 
2:14 PM
@Sippy Yeah, your suggestion yesterday doesn't really point me in the ideal way. How would you allow an logged in Site Owner modify their site layout in Model View Controller? If it is a poor idea to change Shared Layout files.
 
@Marek rtfm?
 
@Greg What is that in reference to?
 
@KendallFrey Marek is a vampire. Just don't bother. :-P
 
@Marek You trying to do JSON.stringify?
 
@Greg C#
 
2:15 PM
@Sippy Our conversation yesterday afternoon.
 
oh, looks like JSON.Parse is something added by the Mandrill SDK that I'm using
 
@Marek JavascriptSerializer look that up.
 
@Greg Ask Roel, I wouldn't change a layout. I'd restructure the site.
 
yeah, do what @Greg suggests
 
But @RoelvanUden has a way you can do it.
I think.
 
2:16 PM
@Sippy Hm, I'll have to ask about it then.
 
@Marek msdn.microsoft.com/en-us/library/bb412179(v=vs.110).aspx for the official documentation
but that doesn't use the NewtonSoft version
 
@RoelvanUden What would be the ideal approach to allow logged in Administrators the ability to install or change the site? I originally believed some modification to Shared Layout would be required.
 
james.newtonking.com/json/help/index.html for the documentation of the NewtonSoft version
If you have any questions after that, feel free to ask
@Marek but first try to solve it with those 2 URLS and liberal use of google
 
If someone has never coded before but wants to develop an app, do you think overall it is quicker to get stuck in and learn as you go, or to actually learn the language itself though guides and examples that don't directly impact your future app, and then transfer that knowledge to building the app at a later date?
 
@James You need to know the language.
You will probably be able to build something if you don't, but it's never a good idea.
In the same way that jQuery allows people to 'write javascript'
 
2:24 PM
@Marek put your input between another {} to get a valid JSON data then paste as special in visual studio so you will have the classes generated by the VS and then use them like this: JsonConvert.DeserializeObject<Rootobject>(input);
everything will be in place
 
WCF problems again
I'm getting a 413 Request Entity Too Large on a message that is smaller than MaxReceivedMessageSize
 
@Marek the generated classes: pastebin.com/ZZDhnKHU
 
What else would cause that?
 
iirc there are a bunch of properties with similar names for max size
 
I just dont understand why this was working in previous case?
foreach (var customer in jo["_embedded"]["ngcp:customers"])
{

string contactIDElement = customer["contact_id"].ToString();
string externalIDElement = customer["external_id"].ToString();
string statusElement = customer["status"].ToString();
Now it is not working.
 
2:28 PM
this is a Tom q
 
@KendallFrey MaxBufferSize ?
 
Maybe? Let me check what that is
 
@Greg Plug-in your own template system that can override sections from database-powered configuration for the specified user. Don't allow Razor or any kind of logic to execute in a template. Mustache is a good example of logic-less templates.
 
> For buffered messages this value is the same as MaxReceivedMessageSize.
So I don't think it should be an issue
Not sure how to find the value in code
 
@KendallFrey readerQuotas settings?
 
2:33 PM
Will check those next
The behaviour still changes based on MaxReceivedMessageSize
 
there is a contentstringlength also I think
 
@RoelvanUden Okay, I'll take a look. So use the database to ensure persistence.
 
the trace tool for wcf is pretty nice
 
So, in short, with a MRMS of 1000, a message of 172B fails, but if MRMS is 1000000, it works
 
and MRMS is in bytes, not in bits?
although it would be silly if it were in bits
 
2:37 PM
it would indeed
 
The only thing I could think of is protocol overhead
Could you use Fiddler to see how big the actual request is?
 
I thought MessageInspector should take care of that
 
As far as I can tell, MessageInspector only checks the message itself
 
hmm
let me see what fiddler says
 
there might be some overhead that's not viewed as part of the message, but which is used to calculate MRMS
 
2:40 PM
that would suck
 
@KendallFrey u suk kindel
 
jk
u r da best
beta dan all da rest
beta dan ereyone
 
Also, are you using the WCF test client?
 
2:41 PM
ereyone i eba met
 
@NateKerkhofs Um, probably not?
It's our normal client
 
@Sippy are you drunk? :D
 
Probably.
 
okay, because the test client has its own max size
 
MRMS is set to the same on client and service
 
2:43 PM
there's also a 33% increase in message size if you don't use MTOM
because it's converted to B64
What's ALSO possible is the second answer in there
 
Why is room never this helpful other times? :)
 
that your binding is of the wrng type
Because I rarely visit this room
I believe that, no matter how stupid the question, if someone asks it, they want it solved
 
hahaha
anyway, the binding match
 
so I'd rather help them than ignore them
And besides, I'm currently on the job with my 6 weeks notice starting next week
 
how do I config fiddler to capture localhost again?
 
2:46 PM
and my project currently is winding down mostly
 
well that's balls
 
just because
 
@KendallFrey Lol, just use machine name noob
 
I am
 
2:50 PM
:D
 
^_^
 
well, I got the request
ow shit
f u soap
 
So now I have this value in string:
 
What's the problem, Kendall? dropped the Soap again?
3
 
lol
odd
the B64 is 4 bytes longer than the size reported in the inspector
 
2:53 PM
could be because of some whitespace in there
 
I may be mistaken, double checking
 
but I don't know how a 4 byte difference could cause the message to not come through
 
@NateKerkhofs I am now having the value in string. What shall I do to retrieve the username please? jsoneditoronline.org/?id=de9664b2d4840ac4d5a57d8cf80c753f
 
Now you deserialize it into an object
 
yeah, that's weird
the message itself is way long though
 
2:55 PM
using that second link I send 15 minutes ago
so you got an object that you can process like any old POCO
 
yup, it appears to be the soap overhead
 
there you go
 
now how do I deal with that?
 
can you increase the message size?
 
yes, that's not the issue
the issue is that we get weird problems when we go over the size
I'm trying to prevent them
 
2:57 PM
like what?
 
timeout, usually
when the server sends a large response, the client discards it and times out
 
how big is the line between server and client?
it could be because the client is trying o squeeze an elephant through a mouse hole
 
huh?
 
or the server, or whatever
 
bandwidth ain't the issue
 
2:59 PM
Does the resonse reach the client?
 

« first day (1472 days earlier)      last day (3493 days later) »