« first day (1679 days earlier)      last day (3268 days later) » 
00:00 - 17:0017:00 - 00:00

Wil
12:50 AM
silly question alert... I've got a complex type that I need to use in various ways... The only way I seem to get to see it all is via debug and the locals window, or, hover the mouse over it and pin the results... but, when I exit debug, it goes/isn't easy to read again... Is there anyway to keep it around in its current state?
 
if you exit debug, the memory is lost, so you can't keep it
 
Wil
@ohmusama it does keep it from hover, but, I can only see it when hovering...
...unless that is resharper...
 
I don't use resharper, so
 
Wil
actually, I don't think it is resharper... but, annoying...
this is what I am talking about:
If I stop debug mode, it is still there, but only if I hover over an icon to the left and it specifically says that these are values from the last debug run
ideally just want to always see this on top instead of having to take screenshots all the time
 
anybody use lisp?
 
1:06 AM
no lol
 
Anyone who knows what the "#" stands for in new FontFamily(new Uri("pack://application:,,,/"), "./resources/#Pericles Light");?
(The one before the font's name)
 
maybe its the group of font files
fonts don't just come as one because different browsers use different file formats
 
I see
 
.eot, .svg. ttf. woff
I can't remember which browser uses which format
 
I was already wondering why the file extension wasn't included :P
 
1:11 AM
Just finished importing (manually) a asp.net 2.0 web forms project into 4.5 land
 
So for a font file named BROADW.TTF, I should be using #BROADW? or simply BROADW.TTF?
 
I would use #BROADW
 
Alright, gna give it a go
So that didn't work :(
 
No, huh?
You don't have the other formats? Did you get a FileNotFoundException?
 
Nope, no exceptions, it's simply showing me the default font (Segoe UI iirc)
 
1:14 AM
Guys I have this question: stackoverflow.com/questions/30386866/…
 
@Yorrick look at the html, and see what you get when you render it out? Is the CSS linking to the font file correctly?
also depending on your browser, .TTF isn't going to work
 
@ohmusama I would, but it's a WPF app :P
@KalaJ what are the types for lineName & GetLineParams?
Actually nvm, had something in mind but just realized that wouldn't make sense
 
@KalaJ answered
@Yorrick
0
Q: WPF app custom ttf font not being used?

Gaz83I downloaded a custom font which displays EAN 128 barcode. I also downloaded some source code and sample program which converts a string to an encoded string to use with the font (includes check sum etc). I installed the font, opened my WPF app and set a textblock font to this new font and added...

did you embed the font as a resource in your application
otherwise you are depending on it being preinstalled on the target computer
also # seems to refer to the "family" of fonts
which might be different than the actual ttf file name
Like it might be "#Broad Word"
like Calibri might not be Calibri.ttf, it could be CALIB.TTF but it would still be referenced by #Calibri
frequenlty font's will come with an "italic" and "bold" version, which all wrap up to the same font name, but the italic and bold versions are in different files.
 
@ohmusama, I understand the problem now. I just set the linename set equal to a string I know exists without the line having to be drawn first
I realized that is why it's null
 
Yeah I had it as a resource, and indeed # refers to the FF name, not the file name :P works now it seems
 
1:28 AM
yay
 
Just had to switch from using the file name to the font family name & had to swap build action to content/copy if newer
 
not too bad
 
Damnit, it works on my pc... But still won't run on my PC downstairs where the font isn't installed
:'(
 
not using the embedded resource
;)
 
If i swap from Content to Embedded Resource, it won't work even on my own pc :(
 
1:33 AM
well, this is out of my realm,
i don't know wpf that well
 
Damn :(
 
I mostly do web dev / application dev
 
Hey guys I have a question, I have a variable in ClassOne that is set to a value in MethodOne in ClassOne. What if I want to use the variable value from ClassOne in another class, ClassTwo? What is the best way to pass the value of the variable from ClassOne to ClassTwo without it returning null?
 
@ohmusama Found it :) had to set it to Resource (not Embedded Resource) & set the FontFamily to "/resources/#FONT NAME" =)
 
cool
@KalaJ are ClassOne and ClassTwo of the same type or different types?
 
1:45 AM
Classes have types? Well they both derive from MonoBehavior (using Unity)
 
a class is a type
 
oh right nvm you're right
I'm tired
the classes like like public class ClassOne and public class ClassTwo
Both extend MonoBehavior
 
so, typically you create an instance of ClassOne, and then call a method to get that value
I don't know unity
but
 
oh call the method right
yeah I just created the instance but it was returning null
 
class2Value = new ClassOne().GetClass1Value();
 
1:47 AM
I need to call the proper method hmm
oh but that method would have to return the variable right
 
or if the method "sets" the value
 
I can't grab the variable without returning it in the method
?
 
ClassOne one = new ClassOne();
one.SetValues();
class2Value = one.Class1Value;
assuming it is exposed as a public property/field
 
yup it's public
ahh ok I will give it a try
thank you
 
np, simple cs202 stuff
 
1:49 AM
yeah I didnt want to return the variable in that method, I just wanted to grab the variable from it directly
 
yeah, if it isn't set in the constructor, you'd need to call some sort of init method on the object
or reference an existing object
that has already been inited
 
if what isn't set in the constructor? The instance of the method or the variable?
 
what you are trying to read
 
actually I was thinking about something and I actually could get the info another way.
But basically, I have two unity views
and I wanted to know if I was in view one or view two
I needed to get that info from ClassOne and pass it into ClassTwo
It's a string
 
So... Just tested something else in my app on my dad's pc... On mine it works 100% now, on my dad's it's throwing a NullRef exception here:
` try
{
LoginSystem ls = new LoginSystem();
ls.Show();
this.Visibility = Visibility.Collapsed;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}`
 
1:55 AM
@KalaJ I don't know enough about unity to understand their framework
@Yorrick which line?
 
np
 
No clue, it's somewhere in that block, but I can't debug as it's not throwing any exceptions on my dev machine
 
change your code to
MessageBox.Show(ex.ToString())
you'll get the FULL stack trace
 
Oh right
 
when the message box appears, you can copy the contents with Ctrl+C
 
1:57 AM
Yeh, I sort of forgot about .ToString() on an Exception :P
brb
System.NullReferenceException: Object reference not set to an instance of an object. at Hub.LoginSystem..ctor() at Hub.MainWindow.btnLogin_Click(Object sender, RoutedEventArgs e)
 
Its 7pm time to head home
 
4 am here, been time for me 2 go to bed for ages now :P
 
It's 10pm here lol
 
No clue what that ..ctor() is btw
 
I imagine ohmusama is on the west coast lol
 
2:16 AM
So... After nesting 4 try/catch blocks, managed to narrow the nullref down to ls.Show();
I mean LoginSystem ls = new LoginSystem();, Unless the Exception from the nested try/catch blocks there is being passed on all the way through to that try/catch
 
2:38 AM
^ Narrowed it down even further, looks like the NullRef is being thrown on this line in my LoginSystem() constructor: Login.con = new SqlConnection(ConfigurationManager.ConnectionStrings["thuisDB"].ConnectionString‌​);
 
3:02 AM
Made a full question out of it, as I don't understand why/how this is happening
0
Q: NullReferenceException during .exe run, but not during debug

YorrickDuring the construction of my Window LoginSystem, a NullReferenceException is being thrown only when running the application through the .exe. While debugging, everything works perfectly fine however. Code which calls the LoginSystem window: LoginSystem ls = new LoginSystem(); ls.Show(); Whe...

 
 
2 hours later…
4:37 AM
 
 
1 hour later…
5:52 AM
@Yorrick constructor
 
6:24 AM
morning
 
6:51 AM
Any IDeas?
2
Q: What is the right CSV encoding for c# to open with Excel?

KovuI write a CSV with my C# CSVWriter based on a StreamWriter. In my data I have a lot of special characters like "Bávaro". So when I use UTF-8 or ASCII to encode my CSV I can't get the "á" but I can open it in Excel afterwards perfectly. When I use Unicode my CSV has the correct char but in fact w...

 
Wil
7:06 AM
Anyone around who uses EF in Winform apps? I last did it years ago with EF4.1... Created the Dbcontext and dbset and it was all automatic... I just installed latest v6.1.3 from nuget and I keep getting timeouts... finding it hard to see documentation on how to fix
 
7:27 AM
@Wil That's usually not related to EF.
 
Wil
Just been reading that in v6, they changed the way it works/auto doesn't happen any more... just can't get the syntax right
 
THE
7:42 AM
var cats = GetCats();
var badCats = GetBadCats();

now cats has property "Bad", how can I set it to true in "cats" collection using linq  - I can use ID column?
 
THE
8:09 AM
maybe not using linq
any way
 
it's an extension to List<T> you can use.
ForEach()
 
THE
not sure how to put it into this context :*(
 
I would probably just have used a regular foreach(Cat cat in cats) {}
 
MORNING.
 
but if cats is List<T> you can use cats.ForEach(cat => cat.Bad = true);
or even cats.ToList().ForEach(...)
 
8:17 AM
Note that Linq is supposed to be pure
Modifying existing objects with linq is.. bad.
 
THE
8:43 AM
@RoelvanUden well cats in question are bad as well ain't they deserve it ?
 
Cats are cute. Don't bash cats.
 
Our cat can't meow.
 
8:57 AM
hey guys!
 
9:13 AM
@scheien that sounds like the setup to a joke similar to "My dog's got no nose"
Best blog title I think I've ever seen:
> My doc's got no nodes
 
9:47 AM
I use the following code for polling the server:

public bool IsAlive()
{
try
{
byte b = 0x0000001;
binaryWriter.Write(b);
binaryWriter.Flush();
return true;
}
catch(Exception ex)
{
return false;
}
}

Is there any reason why it would return true, even though I shut down the server?
 
@ErwinOkken The BinaryWriter has no understanding of the underlying stream. I presume there is a NetworkStream under there, which does not even implement buffering or flushing. There is no guarantee the data is sent immediately at all.
Which then depends on the TCP configuration etc.
 
The weird part is.. it instantly detected the disconnect earlier. I didn't change any code regarding the sockets. Meh
There is a NetworkStream, indeed.
 
The wonderful world of socket programming :-)
 
wondercrap :P
The server gets it almost instantly every 1 second. But when I close the server, I have to wait like 30 seconds.. I think something else is going on. But I dunno what :p
 
10:05 AM
@TomW: As wierd as it may sound, it's not that uncommon.
Still funny though, when he wants something, he makes a strange sound that is something like wheezing
 
10:30 AM
@RoelvanUden Can I fix this 'problem' by using stream.write instead of using a binaryWriter?
It didn't :P
 
10:48 AM
Anyone hhave idea how to pass ESC/POS commands via bluetooth?
 
11:14 AM
Debugging cache are one of the most awesome tasks
 
11:36 AM
Hello guys, i came across something which I saw for the first time and wanted to know the difference between them.
class Foo {
List<Someclass> list;
}
Foo foo = new Foo();
foo.list = new List<Someclass>();
foo.list.Add(new Someclass());

class Bar {
List<Someclass> list = new List<Someclass>();
}
Bar.list.Add(new Someclass());
Are there any performance related difference between the two?
 
In this case, no.
 
The way I'm using foo.list (post initialised) and bar.list(preinitialised)
Ok, in which case will there be differences?
 
I kinda like the pre initialized variant (then I don't have to null check it)
 
Your Foo may be used without creating a List (if it does more things). If you don't need the list, you don't initialize it. That is a performance gain, albeit marginal.
Pre-initialized is often the way to go, if only for the sake of clarity.
 
and avoid null checking everywhere
 
11:39 AM
Exactly. Null is evil. With preinitialization you can have a contract saying 'List is never null' avoid a whole range of defensive code
 
Yeah, not doing null checking is the only thing I could think of
 
And that in turn may get you more performance somewhere else :D
 
Well said :)
 
12:36 PM
So what happened between @SteveG and @SpencerRuport?
 
Have anything happened?
 
Did something happen between them?
 
!
 
Didn't you hear? @SteveG married @SpencerRuport and their avatars are the sign of their undieing love for one another.
 
12:39 PM
Who does he work for1
Lol
Well
 
@RoelvanUden but... they're opposite
...kinda
 
My housemate just started vaping and now I want one
 
Steve goofed
 
@KendallFrey Some distincting in their marriage role has to be established.
 
bastard
it so tasty
 
12:40 PM
@Sippy vaping?
 
mustard
 
e-cigarette
 
@RoelvanUden Yes, not raping
 
@KendallFrey: @Jeremy has one of those avatars too
 
I used to smoke cos I like actually smoking but stopped cos cancer etc
 
12:41 PM
@KendallFrey oh
 
Smoking stinks
 
yeeee
vaping doesn't though :D
 
@Sippy You smoked cos? dayum son. trig is one helluva drug
 
I used to smoke, but I quit because it is stupid and a waste of money
4
If you want to be Marlboro man, just light up mate
 
I used to smoke a lot, then I quit sitting on the stove.
 
12:44 PM
:)
 
smoke snoop dogg every day
 
haha
 
guh, when is my ride leaving work
I can has weekend pls
 
kinda wish you could shift+click and have VS open a new instance of that project form the start page
 
@KendallFrey I think he means the lettuce bro
Lettuce is a hell of a drug.
 
12:56 PM
lettuce bros for life
 
@RoelvanUden lmao
 
@SteveG
 
@KendallFrey
how are you
 
1:20 PM
Good morning.
 
I fuckin' hate SQL. It is such a fucking piece of shit.
 
@RoelvanUden ?
 
@RoelvanUden I like it. Apart from pivot.
 
I should have gone into baking burgers. "Can I take your order please?"
@TomW And fucking partitions.
"SQL, give me rows and distinct by column A, please."
 
hahaha
 
1:24 PM
HAHAHA SCREW YOU WORK WITH FUCKING PARTITIONS AND SHIT MOTHERFUCKER
Thanks sql.
If only I could just do a simple map/reduce. Whoever said querying in SQL is a great thing was fucking lieing.
PostgreSQL made a DISTINCT ON.
Yay for PostgreSQL.
And then there was MSSQL.
 
Fuck this shit completely.
 
1:44 PM
fook this shiaat
 
doing List<Territory> Territories or Territorys?
 
Terrorist
 
Hi guys any windows phone developers over here that can help me with a small question ?
 
ask before Friday gets away from us ;-)
 
It is Friday already O_O ?
 
1:53 PM
I'm trying to do the following: stackoverflow.com/questions/20005355/…
But I can't get FormUrlEncodedContent to build without errors ?
The type or namespace name 'FormUrlEncodedContent' could not be found (are you missing a using directive or an assembly reference?)
 
System.Net.Http referenced?
 
 
1 hour later…
edc
3:14 PM
I might have to build a messaging system from scratch since the vendor product one kinda suck
 
SignalR
 
@edc when you say messaging system, do you mean the messaging system like chat? or the messaging system like MSMQ
 
edc
It's going to be similar to a chat function, but tied to a dashboard, or even to some form of a business object (e.g. data in a data table), with some security features (e.g. a group can chat in certain business objects only). It will be nice to have push functionality, but not necessary since the vendor's one doesn't have it.
 
\o
 
ded
@CharlieBrown is it easy to make 100k in appleton area?
 
3:22 PM
In the Marine Corps, we have a saying "If you're too lazy to get the easy things right, you're not going to get the difficult things right"
@NETscape mid-salary is around 90k here
 
edc
@tweray maybe i can play with singalr
 
@edc well, singalr is more for broadcasting, for example, like how we are chatting here, everybody subscribes will see the message. if you tend to do something more of a one to one messaging stuff, it may not be the best choice
 
edc
@tweray oh that thing sounds more like a broadcasting problem. Person P1, ..., Pn in group G1, P1 sends a message to G1, P1, ..., Pn receives it
 
@ton.yeung typical c# developer, web, wcf, wpf type of work... average is about 90k for upper mid level in this area. maybe a bit less
 
@CharlieBrown how much is household like? for example, how much is a studio or 1 bedroom aptmt per month?
 
3:30 PM
@tweray studio or 1 bedroom, around 600/mo
less depending on what you consider decent quality
 
lol, that's pretty good. my 1 bedroom is like 1800 now
 
you can get a 1 bedroom in this area for 300...but i wouldnt recommend it
600 usually gets you a parking garage for a single car
which you want in winter
 
actually it's also in one of the best school area in long island, although i don't have kids.... ppl always say that i'm crazy to rent this. but other places are still something like 1200-1500, and i have to drive extra 10-15 minutes to work
 
edc
interestingly, it's minimum 1800 to rent a condo here in Toronto
 
wow, im suprised
 
3:37 PM
@ton.yeung same thing on long island is some 500k to begin with
 
edc
@ton.yeung and my condo is 500k, 890 sq ft
my parents house
was 400k when we bought it 15 years ago, now doubled
Hong Kong is even crazier. A house my father in law got during SARS, now tripled
 
When remote development becomes more mainstream, people can live wherever they want. The weather might be a bit cold, but the people, cost of living, and fresh air are amazing in Wisconsin/midwest
 
i was in toronto last winter, and they say houses are going crazy like, someone sell house and price it 500k, you have to call 700k to get it
 
edc
@tweray that's probably something that would go on the news, a bit exaggerated of the norm. but yes, you have to go over asking price to get the house you want here, and you run into an average of 5 bidders per house.
I'd say you have to go at least 10-20% above asking at least.
 
for a beer
vietnam dong
33,000 VTD = $1
 
edc
3:50 PM
TIL vietnam dong is even lower in value than indonesia Rupiah
 
To startup or not to startup, that is the question.
 
edc
When I was in Indonesia my wallet literally can't hold all the rupiahs I exchanged
 
owin: you must startup
 
I'd need 2 more devs, and a graphic/web designer
stack: angular/js/bootstrap/gulp/mvc5/webapi/ef/azure
 
posted on May 22, 2015 by Visual Studio Blog

Unfortunately bugs are a part of software development, and despite our best efforts to write software correctly from the start we spend a lot of time in the debugger. While bugs are an unfortunate fact of life, finding them doesn’t have to be as painful as it often is. For you problem-solvers out there, the Visual Studio 2015 debugger contains a rich set of features that can really increa

 
3:54 PM
It's a startup we began a few years back... we had a good aplha test one summer, then everyone had kids and we fell apart
I'm debating whether I want to go through the stress/pain again. The concept is still valid, and the competition is old and crusty
@ton.yeung nice, love the designs
yeah, i would have to build the core up, then just ignore design entirely and focus on the functionality. then bring in a couple more devs for feature building
 
i like it that there's 6 ppl in the team and each of them is a manager
 
once the site is viable, drop the cash on a design
@ton.yeung ill entertain other options?
 
well, maybe he got a beer himself
 
I was thinking core done in 2 weeks
I think were on the same page, by core im referring to the "patterns" and architectures we will use... like "this is how we load data" "here is how we do validation"
just so we dont end up with 9 ways to do validation or something
Like all crazy people, I really do think the site has huuge $$ potential, esp phase 2 with kids
phase 1 would just target adults
25-35 demographic
I'm itching to do something... but if my wife thinks I'm taking too much time away from our son, she will kill me
 
how old is your son?
 
4:09 PM
1 next week
 
well, ok, that can surely become a problem
 
@ton.yeung your on the list
 
happy birthday to your son btw
 
4:34 PM
1 is a fine age. They just learned to walk or crawl really well, and won't listen to anyone.
 
a
1 message moved to Trash can
5 messages moved to Trash can
because i wanted to
 
alcohol?
 
4:55 PM
@ton.yeung: haha, indeed
 
Do you speak spanish @ton.yeung?
 
00:00 - 17:0017:00 - 00:00

« first day (1679 days earlier)      last day (3268 days later) »