« first day (1721 days earlier)      last day (3218 days later) » 
02:00 - 21:0022:00 - 00:00

Ben
2:25 AM
hi, I have a line of code and it looks.... odd...
if (Main_Menu.Menu_View.Username == "frank".ToLower())
specifically the "string".ToLower() part. Is that right?
 
2:53 AM
It's syntactically correct.
However it brings up the question of why is a hard coded name of a person in your code? @Ben
If "frank" is a special user like "admin" or "root" I'd suggest moving that into a configuration file and then changing the code to compare the username against that.
That's still a bit of an usual design but it leads to less issues.
 
Ben
3:41 AM
@SpencerRuport It's a small program, so worrying about dynamic checks is a bit too complex. for this.
@SpencerRuport thanks for checking :)
 
4:37 AM
aww yeah, friday bitches
 
Ben
@BenjaminDiele I'm feelin it :P
 
5:32 AM
hi guys ...
hows everyone?
 
it's friday already
i have so much work pending
and here i am watch Mad Max fury road
*watching
 
5:53 AM
@Ben - Bad design is bad design. :)
 
and practise makes perfect
 
Good morning
 
Ahum..., sweaty morning
 
@BenjaminDiele - Does it ping you when I message other ben?
 
Ben
6:19 AM
@SpencerRuport Apparently so.
 
morning all!
 
I'd say, "yes" :D
morning!
 
Ben
@SpencerRuport In response to your comment about bad design, I do agree. I'm not saying this isn't terrible, I'm just saying the use for this is so minimal that the amount of effort required to set this up properly != level of complexity of the rest of the program, nor the requirement for integrity.
The words "quick and dirty" were used in the job request.
 
@SpencerRuport & @Ben: The "whatever".ToLower() also creates a new string, which can be expensive (throughout an application). Probably use IgnoreOrdinalCase instead :)

if (string.Equals(Main_Menu.Menu_View.Username, "frank", StringComparison.OrdinalIgnoreCase))
Last day before vacation!
mmmmm, vacation...
 
Ben
6:32 AM
@scheien learn something new every day :)
I'll use that, thanks :)
 
np!
 
@scheien Damn you, still 2 months here :(
 
Ben
Every weekend is a vacation! :P
 
@Ben Much too short though. 3 day weekends should be the norm.
 
and half mondays
 
Ben
6:37 AM
@BenjaminDiele You'll be jealous to hear that we actually have one this weekend. Starting in... checks watch 23 mins
 
Damn you all!
 
Man atleast its weekends ...
Working with a Startup includes working on days even when Fever is Pounding ...
@BenjaminDiele : dat wd make u Feel better :P
 
I'm glad I'm not in startups anymore to be honest @bhuvin
Most of those are places where "passion" and "motivation" is an excuse to get cheap labour.
 
6:56 AM
Morning! Can anyone help me a little with this Platform target things...
I have inherited project where some of the dll's are x86 and the rest are Any CPU. Now I had the ambition to change all to Any CPU (we have removed some old references so I hoped it would be possible). However I can set all the projects dll's to Any, but when changing the startup project from x86 I get an error
a BadImageFormatException
so what's the rules here? when can and can't I use the Any CPU?
 
Sure you've rebuilt all the dependencies with the same arch (anycpu)?
 
I have a C++ project also, and that's a win32 project.. I don't really know what that means, will it have any impact?
 
it does
 
7:11 AM
does it mean that everything have to be x86?
 
it depends
 
on? :)
 
if your c++ dll is compiled as x86 then you have to run your .NET app as x86
I think
 
Do you happen to know where I can find out if it is x86?
 
Yes, you can use 32b dlls in 64b projects, but not the other way around.
 
7:14 AM
10
Q: AnyCPU/x86/x64 for C# application and it's C++/CLI dependency

SoontsI'm Windows developer, I'm using Microsoft visual studio 2008 SP1. My developer machine is 64 bit. The software I'm currently working on is managed .exe written in C#. Unfortunately, I was unable to solve the whole problem solely in C#. That's why I also developed a small managed DLL in C++/CLI....

@Loetn you can't, not if it's a native dll
you need to have both x86 and x64 versions of your native dll if your app has to run in AnyCPU
 
@StevenLiekens Ooh, I don't know about the c++ dll, never worked with one. Should've read better.
Ooh, like that
 
I've never had to do that myself, but that's the theory
a big chunk of the BCL consists of thin wrappers around windows DLLs
saying that you've never worked with one is not very accurate
 
I found one of the problems... one of my projects was actually set to have x86, even in the Any CPU configuration... changed that to Any and now it seem to work. However I'm not really sure. Since there are no compilation errors but just runtime..
 
oh that's nasty
 
mhmm
 
7:26 AM
find the person who did that and slap them in the face
 
The win32 dll is still there, and that is used as an interface to my app from an other app. Now I wonder if his app will still work, since I might have changed my target to Any CPU......
 
Hello. can anyone please resolve this.
http://stackoverflow.com/questions/31200285/redirect-to-payment-express-site-from-actionresult
 
@StevenLiekens I never worked directly (as in, I knew of it at the time) with one. :)
 
I wonder how to split byte array by defined byte splitter0x1c, is there any cool thing for that or should I write that by myself?
 
7:57 AM
should the splitter byte be included in the resulting subarrays?
if so, left or right?
@Markus must read hanselman.com/blog/…
 
8:25 AM
hey
good morning
 
@StevenLiekens nice
 
8:40 AM
Protocol violation error in response header - updating web reference.
 
9:07 AM
@AmitKumar : Could u provide more details ?
 
@AmitKumar: Are you redirecting to an url? return Redirect(url) not an option?
 
9:37 AM
Can anyone tell me how check if the list has already the value of obj.downloadlink?

if (obj2.KBNummer.ToUpper() == obj.KBNummer.ToUpper())
{
List[i].Add(obj.downloadLink);
}
with not too much code
should break; fix it?
because the if-statement is in a foreach(var obj2 in aList)
 
Hello
 
Hello Tushar
 
Hi Wouter...I had a strange set of characters appearing in place of action name in the url
like ���'
I even had <meta charset="utf-8"> in my views but still the issue persists
anyone ?
 
@wouter: list[i].Contains() ?
 
@scheien: see this Tut.I also want to redirect to payment gateway site .
http://www.paymentexpress.com/Technical_Resources/SampleCode_ASPDotNET/PxPost.aspx
@bhuvin: I have replied on my QA.
 
9:47 AM
Ye I got that now
and how to delete a list[i][j]
list[i][j].Remove(); ?
 
@wouter i) read the documentation ii) test it
 
okay i will
 
10:04 AM
Hey, how do I get the current threadID when debugging in VS2013?
Nvm, found it
 
10:44 AM
@wouter You need to get into the habit of asking Google whenever you have a question.
 
Can I detect if the async task has ended already? Console app.
        Task.Run(async () =>
        {
            using (client)
            {
                while (!ErrorRaised)
                {
                    var receivedResults = await client.ReceiveAsync();
                    ParseResponse(receivedResults.Buffer);
                }
            }
        }).Wait(65000);
 
the task object has a state property
so, yes, you can
but don't use it for progress reports
 
Thanks.
 
if you're just waiting for a task to complete, use callbacks instead of polling
Task.Status should only ever be used to check if a task is already in an expected state
not for polling until it enters that state
 
11:17 AM
button_Print.Visible = true;

//comboBox_emp.Visible = false;
string connectionString = "Data Source=.\\sqlexpress;Initial Catalog=db-ub;Integrated Security=True";
string sql = ("SELECT * FROM Visitors WHERE Day_In='" + Convert.ToDateTime(dateTimePicker1.Value) + "'");
SqlConnection connection = new SqlConnection(connectionString);
connection.Open();
sCmd = new SqlCommand(sql, connection);
sAdpt = new SqlDataAdapter(sCmd);
sBldr = new SqlCommandBuilder(sAdpt);
sDs = new DataSet();
sAdpt.Fill(sDs, "Visitors");
guys can't understand
why it's giving date/or time string error
please help
 
@JayitaRoy Please, use SQL parameters instead of just adding strings together
It might fix your problem too
 
I tried
 
and what happened?
 
11:33 AM
Product owner: (Words to the effect of) These bloody developers, why do they always want to know how the software should work? I haven't got time for constant hand-holding!
 
it was showing error but kendall
finally I have corrected it
thank you so much :)
 
Where is the line between user stories and requirements? Is it appropriate to push back on requirements if you think there may be a better way to meet the user's needs?
@JayitaRoy cheers, enjoy your Friday
 
Kendall.. yeah.. Happy friday to you too
 
god, this stupid web blocker
stops blocking any website, starts blocking RDP
 
11:53 AM
@TomW: What? Aren't all developers mind-readers?
 
@KendallFrey depends how many hats you wear in your development lifecycle
 
requirements > solution and solution > code
 
If you're one of those developers who's a BA, an SA, a developer and a tester in one, what you say goes
 
I am incapable of writing requirements
I just stop functioning if asked to write requirements
Except my own projects
 
I find it helpful to consider those distinct roles even if you do them all yourself. When you're a BA you talk to the customer and write user stories. SA turns user stories into technical requirements (e.g. write a webservice that...). Developer...well, you know how to do that
Make them separate artefacts if it helps. It's like separation of concerns for requirements
 
12:03 PM
That sounds like a good idea.
 
@TomW Yeah, there's a reason I can describe myself as two responsibilities
In our team we seem to be confused about the steps of software development
The one I see the most is the line between requirements and solution
My favourite classic example is when one of the requirements was a "ring buffer".
 
any explanation why?
Lack of understanding of the difference between telling someone what to do and telling them how to do it seems to be alarmingly common
 
It was just a requirement to be able to access the last X events
 
12:20 PM
So the requirement should say that
And shut up about implementation, unless it's genuinely important
 
precisely
Yesterday I had a long discussion and managed to convince the manager to throw out and change a bunch of requirements
Thus removing all the work I needed to do
Sometimes I wonder if I'm pushing my opinions too far
 
12:43 PM
:)
 
@SteveG Happy Friday, bitch
 
thanks, but we don't have work today, so yesterday was my 'friday' :p
 
Happy Meaninglessday, bitch
 
THANKS, BITCH
;)
im bored
 
guys
 
12:55 PM
gals
 
in JavaScript, 3 mins ago, by Sajeetharan
guys
don't mind me, just xposting
 
nice yellow glasses, bitch
 
who
 
I hate sql server
 
i am sending data from rest client to wcf service , data does not come to the service
 
1:01 PM
feels like trying to build a sandcastle from a pile of pig shit
 
remove your douche glasses then you could have a clear look at the problem
 
Invalid use of a side-effecting operator 'RAISERROR' within a function.
the fuck does that even mean
 
nobody likes side effects
 
but raising error IS the effect!
I'm trying to create a placeholder function that does nothing except raise errors
CREATE FUNCTION [dbo].[fn_BigIntListToTable]()
RETURNS INT
AS
BEGIN
    RAISERROR(N'[dbo].[fn_BigIntListToTable] is undefined', 16, 1);
	RETURN -1;
END
 
I would guess SQL functions aren't allowed to have side effects
 
1:07 PM
the goal being that you can run ALTER FUNCTION after that without having to check if it exists
alright
I guess I'll just RETURN 1/0
 
 
1:41 PM
If I need static xml document in class, should I use static initializer or just check if it has not been created yet and then do nothing or load the xml file?
check if it has not been created yet when constructor is called*
 
why have xml if it's static?
I mean does the xml ever change?
 
Not when the program is running, it will contain information about how to construct the object and all objects will use the same xml file.
 
it sounds like you skipped a step
 
What step? :p
 
parsing the xml and mapping it to classes
 
1:46 PM
Do i need to do that?
I was thinking about just parsing it recursively every time object is created
 
you were thinking about writing duplicate code?
 
Nope? What do you mean?
 
no just wondering
I thought that's what that meant
do you have to modify the xml?
 
Nope
 
so you don't have to worry about saving back to disk
 
1:51 PM
Nope
 
in that case I'd definitely deserialize the xml to objects and pass those around
 
But doesn't that lose some flexiblity
If I parse them recursively I can easily add multiple child elements and so on if needed
 
design your schema so that your classes don't have to change when you do that
 
And the pros for doing it that way are?
Small performance boost?
 
you get static typing
which you don't get if you pass around XDocument or whatever
 
2:01 PM
I don't pass it around I need it only in the object constructor. + I'm not sure how this schema deserialization works but how can you handle a case when an element might have many different child elements, or might not have them
I still think that paring the document recursively would be easier
But that's java code and not related to this current project in any way
But anyway, how about the original question?
 
pass the xml as a constructor arg
 
2:53 PM
If I'm programmatically making Binds do I need to manually make Dependency properties for control properties? c.SetBinding(c.IsChecked, bind); is not working because CheckBox.IsChecked it not dependency property?
 
3:03 PM
Found it, just needed to use CheckBox.IsCheckedProperty
 
 
2 hours later…
4:49 PM
argh i have spent my after noon trying to figure out exceptions caused my mvc
*by
Problems were in the view; null exception but the model had values
Deleted the views, created new ones and copied stuff back to them, worked
:/
 
computers are so dumb
 
still not sure about the culprit
could be me..
but i dont know
 
5:07 PM
When running my .net/C# programs on a pc without VS, do I need to include all the Microsoft.* and System.* dlls that are generated in my bin folder? Aren't those already included in a normal/client .net installation?
 
@HalfEvil They are installed with .NET
 
@KendallFrey Okay thanks, but how come they are generated in my bin folder?
 
U dun goofed
you shouldn't have .NET DLLs in your bin
 
Well I mean bin/release and bin/debug.. so even like Microsoft.Bcl.dll shouldn't be there?
 
I've never heard of that, dunno why you're using it
 
5:11 PM
They should be in GAC ?
They should be there after you compile I believe.
Is it a web app?
 
No just a normal forms app. I downloaded a few packages from nuget and those packages downloaded a few each
so hard to know if I need to include all of those, been trying to google it but can't really find an answer
 
You will not need to include these.. For example System.Data, System.Core, System.Xml will be on the client machine (Windows)
and client machine of course will need to have correct framework what your app is using..
 
@Teomanshipahi Yeah I guessed so. So like Microsoft.Threading.Tasks.Extensions.Desktop.dll and System.Net.Http.Primitives.dll are included in a default .net installation too?
I just got a few threading.task dlls and System.netHttp dlls
no System.Core or so
 
Are you getting them from nuget?
 
If it came from a nuget package, you need to include it because it won't be present from the NetFX installation.
 
5:20 PM
They are downloaded as dependencies on other nuget packages.
 
check if they are already in GAC, if not, you will more probably get them from nuget. once you release your app, all related dlls will be in release folder. so package your app with those assemblies.
 
Deployments get test scripts just like any other aspect of your software. Automating THOSE tests is particularly painful, in my experience.
 
Okay I see. But aren't dlls like log4net.dll debug specific?
 
nope. log4net is one of main production purpose libraries. you gotta log your errors and ship to your bug logging server :)
at least on web apps.
 
@HalfEvil Definitely not. log4net.dll is usually a Release mode compilation of the log4net library, and if you have the nominal "static ILog log = .... " block, your code will fail before you get anywhere if the log4net assembly isn't there.
 
5:24 PM
@TetsujinnoOni Okay, I didn't use that code myself (ILog) but I guess some of the others dlls do so i have to include it anyway..
 
 
1 hour later…
6:53 PM
code
 
@HalfEvil the whole point of log4net is to be able to turn logging output on and off without pushing a specifically instrumented build.
 
7:38 PM
do any of you use the Assert.That(... verbosity...) syntax?
 
What's the mstest equivalent of Assert.That?
 
dunno if there is one
 
Assert.IsTrue?
 
> Assert.That(expected, Is.EqualTo(actual).Using(comparer));
 
That looks pretty awful
 
7:40 PM
perhaps more readable for a manager?
I'm not sure I have ever read a repo that uses it.
 
I wish JS had goto
 
I wrote a pr and resharper formatted stuff creating a really messy diff
 
I'm obsessive about clean diffs
 
Hey peoples.
 
@KendallFrey attribute per line in xaml then
 
7:54 PM
@JohanLarsson ?
 
produces clean diffs
 
@SpencerRuport \o
@JohanLarsson Why is that cleaner than any other approach?
 
the diff points out what changed in a clean way
have you tried xamlstyler?
I can recommend it
 
What you need is to make a way to disable first-chance exceptions on a line-by-line basis
this debugger
 
@JohanLarsson - Where did you say you and your friends were going hiking?
 
8:01 PM
not decided yet, why?
 
I just wanted to look at it on a map. I just finished a big hike here in California and so I'm looking for other adventures. :)
 
we usually go to remote places where none else goes, no trails
 
@SpencerRuport Where'd you go in CA?
 
@ReedCopsey - I hiked the Tahoe section of the PCT. Echo Lake Resort to Highway 40.
 
nice
 
8:03 PM
Thanks. I wasn't sure I could do it. Big milestone for me.
 
@SpencerRuport There is a thing called Kungsleden, it is ~500 km long.
 
The place to hike around here I guess would be the Bruce Trail
 
@JohanLarsson - Are there sections which are considered more scenic than others?
 
Abisko - Nikkaloukta is perhaps a decent pick as it is easily accessible by train
@SpencerRuport Yeah, you want the higher mountains.
do you have any dates planned?
 
Sometime in August
Will any snow be falling by then?
 
8:07 PM
nope, a good time to go there.
 
Fun thing for a Friday: Put on any song, watch this guy dance to it.
 
@SpencerRuport August is after the mosquitoes
 
Oh good. They were awful in Tahoe.
 
8:10 PM
My word that looks miserable.
Poor doggie :(
 
yeah it wasnt much fun
we were going fishing, hiked 15 km, slept one nigt in tent and hiked back first thing in the morning
 
I don't blame you.
 
@SpencerRuport The dogs could outrun them, was probably worse for us
 
Oh ick they'd follow you the whole day?
 
it is not always like that, most times they are only mildly annoying
that was extreme
 
8:14 PM
Gotcha
 
August can be zero of them but it varies
 
Yeah the last night I decided to dry camp because I couldn't handle the bugs.
 
who wants to hear a question that will make you respect me less
 
8:20 PM
\o
 
how do I minify my JavaScript that is in strings?
I'm building JS out of a series of snippets
and it would be nice if I could minify those snippets to use shorter variable names etc.
I didn't really expect an answer anyway
who's enjoying their friday
 
@ReedCopsey Tnx man for ur Blog and Example last night , i was able to learn binding and make my WPF now at least half MVVM-ish , Half WinForm-ish :D
 
:D
that's an improvement at least
 
yes :D
btw , i tried binding everything and they update with no delay , it's great , even binding Images from Remote Server
but
is my Property Class wrong ?
    public List<string> SetWalletResults
    {
        get { return WalletResults; }
        set { WalletResults = value; OnPropertyChanged("SetWalletResults"); }
    }
 
@KendallFrey I suggest a thing I call WIL Web Intermediate Language. Like CIL ~200 instructions or so that other languages can transpile to
 
8:28 PM
Binding a List to a Listbox doesn't update good
 
@Pedram It is usually good to check if it is a change before notifying
 
@Pedram If you want it to update when an individual item changes, you should use ObservableCollection<string> instead of List<string>
also, typically good to do as @JohanLarsson mentioned, and only update if the property's value actually changed
 
I read somewhere that binding to collections that are not observablecollections cause memory leaks, dunno if true
same with binding to properties in classes that are not inpc
 
It's a Report , actually , i have like 10-20 item , backgroundwroker check them all 1 by 1 , if each time if they success ! it will Add an item to listbox saying success ! if not , it say not success
Oh i just notice ! i get the new values in the listbox ! but if i move between Tabs in my Application !
like moving to Tab 1 and back to Tab 2, make it Refresh the listbox
hmmm
 
How expensive is branching? Prolly impossible to answer but I want hard and fast rules :)
or perhaps something to read
 
8:33 PM
@JohanLarsson Is that like a ripoff of WASM?
 
dunno, depends on what it is
It would eliminate js in browsers
A nice open binary format for browsers to jit & run
I imagine it would be very stable
Then all kinds of languages could be used for dev
 
@ReedCopsey is it Ok if i , For changing the Value of my SetWalletResults use it like this :
SetWalletResults.Add("Adding Wallet Canceled ! This Code : " + WalletCode[i] + "And the Codes after it was not Used");

or is it better if i Add it to a List each time then Say , SetWalletResults = myList; ?
 
sounds like wasm to me
 
web asm?
I have heard of asm js
 
yeah
!!google webassembly
 
hmm, no wikipedia
 
it's too new
 
anyone know what the equivalent of RenderSection would be in Rails?
Also, webassembly will be awesome... like 15 years from now. D:
 
everything is so slow, just use CIL as ~inspiration and be done in a week
 
nvm ! i used the 2nd Way and now it's Worked like a Charm :D Tnx Anyway :D
 
02:00 - 21:0022:00 - 00:00

« first day (1721 days earlier)      last day (3218 days later) »