« first day (3792 days earlier)      last day (1141 days later) » 

12:18 AM
 
 
4 hours later…
4:45 AM
@orgg What do you exactly want to do?
 
mr5
5:11 AM
o////////////////////////////////
 
5:41 AM
umm... trying my hand at Xamarin.Forms. Was able to deduce the use of each file in the templated app except for App.Xaml and AppShell.Xaml. Please explain me the difference between the two.
 
mr5
6:10 AM
AppShell is for building/structuring your page navigations
App.xaml is the main entry point of your app.
 
 
1 hour later…
7:30 AM
Good morning
 
 
3 hours later…
10:31 AM
Hi Everyone, I am trying to use Routing to "hide" IDs in my URLs using Guid.NewGuid() but the same Guids are being returned every time. Is there something I am missing?
routes.MapRoute(name: "name", url: "url/" + RandomID() + "{id}" + RandomID(), defaults: new
{
    controller = "controller",
    action = "action",
    id = UrlParameter.Optional
});
private static string RandomID()
{
    return Guid.NewGuid().ToString("N");
}
 
10:51 AM
Pretty sure the string in the parameter is built once, so the RandomID() is only called with the first call
 
11:19 AM
@mr5 I was thinking on it. My current version of diablo 2 is still on a CD somewhere. :)
 
11:46 AM
@Squirrelkiller yeah i saw that online after i posted the message in here, probably have to go about what i want to do differently
 
12:13 PM
@WhatsThePoint dont try to hide urls
 
routing is static for that. I would do nonce-ing some other way
 
I mean, once could make the route like
"url/{rg1}{id}{rg2}"
public Task SecretEndpoint(Guid rg1, int id, Guid rg2)
// Ignore rg1/rg2
Does that work? Multiple parameters at the same level?
 
nope
just use a single param and split it yourself
 
12:39 PM
MCSA Web aplpication retired since 31/01/2021. I was trying to schedul a 483 exam...
What is the remplacement. Microsft certification pager is no help.
 
All your certs are belong to Azure
Everything is Azure now
 
No no no no. You are not the boss of me now!
Im just shoot at the sky to bring that cloud down.
 
And you're not so big
 
Yes II am
 
So we went to skill based certification to .. Pick either Azure or Dynamics 365..
Im so tilted.
 
12:51 PM
So when you try to download an azure certificate as pdf...you should know that it's probably gonna download as "microsoftcertificate.pdf" and is not gonna be opened by any pdf viewer. Because it's actually a zip and after renaming it to zip you get the actual certificate inside.
Also all the MS forum posts got answers by MS employees like "I PM'd you" "thanks that solved it".
Like why not tell people to rename it to zip ffs
 
1:04 PM
Life is unfair
 
1:35 PM
@Squirrelkiller well. That's humane.
 
Hi all. Trying to programmatically remove an NLog rule (as described here). Nuget Mgr says the installed NLog is at 4.7.3, which should support the config.FindRuleByName(...) but it just doesn't show in C#. Any thoughts?
 
Try to confirm if the rule is really there
 
What's weird is the method is not available on the config object
 
1:57 PM
string[] bits = new string[3];
bits[0] = bits[1] = "0,1";
bits[2] = chkShowAll.Checked ? "0,1" : "0";
bits[3] = ddlLoanByYear.SelectedIndex > 0 ? ddlLoanByYear.SelectedValue : null;
switch (e.SortExpression)
{
    case "PERSONFULLNAME":
                break;
    case "bootID":
                break;
    case "fdescript":
                break;
    case "balance":
                break;
    case "discount":
                break;
    case "lastModified":
                MessageBox.ShowMessage("hi!");
@ntohl that's what I got
the error appears at switch (e.SortExpression)
 
@Freerey bits[3] is out of range
you are counting like 0 2 3 instead of 0 1 2
 
but I commented that out and it still errored on me
ok nvm now it works 🙄
sorry my head has been spinning all day
 
wtf is that anyway? whouldn't bits be Func or something?
no
now I get it.
 
looks like I copied something wrong,b eacuse the bits part was 4 long in another area
 
2:01 PM
yeah. But never do the 1 line assignment like that
bits[0] = bits[1] = "0,1";
different compilers might implement it different ways
 
oh, well...I've been doing 1lne assignments for awile now
🙃
There are times where I don't do it, but I though here it would be fine
 
it got me.
 
It almost never occurs that I need to assign two variables to the same value
but I suppose if it came up, I wouldn't mind a one-liner like that
 
@Neil you could set a bunch of variables to null or something
but C# would probably not allow that anyway
 
not sure I see why that would be a problem honestly
string is immutable
 
2:14 PM
me neither
I wouldnt even consider it as a feature for new languages
 
it almost never comes up
only time I could think that that might come up is if I needed to establish two boolean variables to be true or false
even then, it's rare that I need to do that nowadays with lambdas and such
 
in Kodian, syntactically, it works, but semantically, it does something different
 
oh dear that sounds dangerous
 
not really
it was the compromise between two bad designs that ends up being both elegant and safe
I do want as many things as possible to be an expression, so an assignment is a valid expression
but, I do not just do a pass through of the value to the return of the expression
instead, the return type of the expression is Variable<T>
at least for variable assignments
this way, you can also never* make the mistake of assignment when you meant a comparison
like if (bits[1] = true) vs if (bits[1] == true)
the first is an expression for Variable<Boolean>, while the second is an expression for Boolean
only the latter is a valid condition for an if
 
Hi all,
When I do F12 on a method in a different project referenced by the current project, it looks like the external references: no implementation code just the signatures, with auto-generated attributes.. the project is referenced as project, not DLL
 
2:29 PM
@Wietlol In fact, allowing assignment would be a mistake
I've seen many a problem turn out to be an assignment by mistake in C++
some of the time, it was me doing it :)
 
 
6 hours later…
8:29 PM
@Neil still, in those cases, the compiler will yell at you for having the wrong expression result
as I said
boolean x = isDangerous = false;
is not valid because x demands a boolean and isDangerous = false does not yield a boolean
 
9:21 PM
posted on March 04, 2021 by Phil Haack

In my last post, I wrote about writing a sparkly skill in Abbot. That was fun! But Abbot isn’t only about fun. After all, our company name is A Serious Business, Inc. Seriously, that’s the name. So it’s about time I show you how to get to some serious business with Abbot.

 

« first day (3792 days earlier)      last day (1141 days later) »