« first day (3681 days earlier)      last day (1271 days later) » 
00:00 - 15:0015:00 - 00:00

12:16 AM
I want to choose a database for my new project. Is there any good platform with C# native. How is .Net spark?
 
12:45 AM
That's about the most open ended question on the planet
What are your requirements, what are you trying to do, is a database actually needed, will this be hosted in a lambda, can you get by with a SQLite database or do you need more proper hosting support, how will you be doing backups, do you care about backups, do you need network support (more than one user) or can you get by with a filesystem only?
Sometimes the easiest thing to do is to just serialize a list to json to disk
 
 
4 hours later…
 
1 hour later…
mr5
6:41 AM
the mods are cheating to us. bring this comment back to starboard:
15 hours ago, by Hozuki
Sex.
 
7:05 AM
posted on November 05, 2020 by Scott Hanselman

A few years back I had a lovely podcast conversation with technical leader Keavy McMinn. Sometimes I wonder if anyone listens to the show. Then a nice comment will come in when someone listen to an episode years ago and is still thinking about particular quote or line. Last week I got an email asking about a blog post or podcast that I might have written, and the person wanted me to dig up t

 
@Feeds Shut It!
 
7:24 AM
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' pleberinos!
@Hozuki lol all the stars got removed?!
 
Haha @Squirrelintraining. Theory proven, I guess.
 
posted on November 10, 2020 by Scott Hanselman

I've often asked for my Windows Terminal's settings.json (formerly profiles.json) so I keep it up on GitHub. The thing is, all my machines are different. I mix it up, I change it. Remember that the Windows Terminal is approaching version 1.5 today! Make sure you upgrade and read about the new features! This version includes clickable hyperlinks! UPGRADE NOW. Get Windows Terminal free from t

 
@Feeds SHHH!
 
Hi Pros
 
@Hozuki But why owuld a bot distinguish between removing stars and deleting, blocking messages?
 
7:30 AM
i have a question
 
@Squirrelintraining Guessing it was one of the Americans humanz.
 
mr5
it was GPT-3
 
Iam using Winforms
I have a TabPane with 5 pages
I have added a UserControl to each page and i have done all the work inside that UserControl
How can i change the TabPage inside the UserControl?
by using a button for example
i mean something like parent.SelectedPage=page1
iam sure it can be done but IDK how
 
7:48 AM
@Hozuki seconded
HamreenAhmad no idea sorry
 
31
Q: Get access to parent control from user control - C#

Farid-ur-RahmanHow do I get access to the parent controls of user control in C# (winform). I am using the following code but it is not applicable on all types controls such as ListBox. Control[] Co = this.TopLevelControl.Controls.Find("label7", true); Co[0].Text = "HelloText" Actually, I have to add items in...

 
Why Obama evolved? I dont think Trump have power now, other than legal resources that made out of democracy
 
8:30 AM
Until January 20 Donald Trump has full power, it is when he will be no longer president. On Jan 21st everybody will know if he is being removed or if he leaves
my manners... Morning!
 
good morning
 
 
1 hour later…
9:41 AM
@Squirrelintraining That's terrible
Mornin peeps
Today should be fun, no interviews and non of senior management have turned up xD
time to break out the nerf guns
 
@Squirrelintraining trying to hide it into a list... how lame...
 
@ntohl That's what he always does
 
10:06 AM
@ntohl You can't hide the truth!
Jack, funfriday
@DAustin Horrid, I know.
 
@DAustin gl gl
 
@Squirrelintraining lol
 
You didn't know that fun friday command?!
It's me best command yet.
Used on a weekly basisy
@Hans1984 BRING BACK CAP OR...
Jack, info FunFriday
 
@Squirrelintraining There's no command called FunFriday, Savvy?
 
10:10 AM
that's not good enough
 
Jack, info funfriday
Jack, kieran2
 
Jack doesn't understand CamelCase?
 
@Squirrelintraining Command funfriday, Created by Squirrel in training on 08-11-2019 at 13:11
 
PascalCase*
 
10:32 AM
hans to the rescue
what is going on
୧༼ಠ益ಠ༽୨ NOW WE RIOT ୧༼ಠ益ಠ༽୨
!~shiba
 
omg that's cute
 
indeed
 
11:01 AM
naww cute shiba
ok kids, riot is over shiba to cute
 
11:14 AM
YES! My first apllicant with a useless graph! xD
Their ASP Core is 95% apparently
of what I have no idea, the other axis has no label xD
 
11:26 AM
🤣
Damn doing graphs is difficult yeah?
 
lmao, i used to see it all the time in Graphic Design, first one I've seen for a developer
How to tell me you're a bad communicator who values style over substance with one image
 
TBF I did it too
Cuz that's what HR wana see
 
Im fine with it if you label the axis so I know what its talking about
like "Years of commercial experience" or something
but when its just 6 bar graphs saying .NET Core 95%, MVC 95% and so on, im like, "95% of what dickhead?!"
id upload a screenie of it but dont wanna get in trouble for data protection lol
and yes Ive done it in the past, but I used "Years of commercial experience" to label it
 
mr5
11:43 AM
my resume looks boring now as compared to my previous. I've focused more on putting words rather than graphics but I feel like I should really put the edginess back cuz its not getting much attention.
 
It's friday my friend
@mr5 graphics < words
 
mr5
it doesn't feel like it now though
I've been searching for almost a week already. still no interviews.
 
Umm... a lil issue.
public void OnPost(string email, string password)
{
	admin_portal.Models.User user = new admin_portal.Models.User(email, password);
	if (user.IsValid())
	{
		Redirect("https://www.google.com/?gws_rd=ssl");
	}
	else
	{
		Redirect("/");
	}
}
user.IsValid() returns true (debugger checked)
 
mr5
this looks cool for my portfolio: startbootstrap.com/previews/freelancer
 
But it still does not redirect
 
mr5
11:52 AM
how about ../
 
Redirect("https://www.google.com/?gws_rd=ssl");
The debugger reaches here
it executes it
but the browser redirects to /
/ is the login page
 
@mr5 it takes time jsut rrelax
 
mr5
maybe you need to specify it's an absolute path?
 
@mr5, I want it to redirect it to google lol
how do I provide absolute path for a remote site?
 
mr5
@Squirrelintraining yeah. I'm overthinking about it.
 
11:55 AM
Yes, yes you are.
Also why u no in my stream evrtytime i start
i think u nr1
fan
where is p3k in my strim?
i ned p3k
p3k is love
p3k is life
 
mr5
@d4rk4ng31 the hard-coded way is to modify the header of your response (I think its name is 'redirect: absolute-url-here'). Or code it in client side..
 
@mr5 So Redirect("https://google.com"); is wrong?
 
mr5
@Squirrelintraining because your game time is weird. why would you start to play at 4am?
@d4rk4ng31 idk. I'm talking about the lower level of it. There's probably a high level way to do it but I'm not familiar with ASP
 
@mr5 Why don't you start to watch at 4am?
 
mr5
I actually watched your dota2 but aoe izz mehh
@d4rk4ng31 is Redirect a method of Response class?
 
12:01 PM
@mr5 I guess
 
@mr5 pff uncultered pleb
 
mr5
the asp experts are busy rn or prolly lurking and laughing at us.
 
@mr5 Some of the applicants we've had in didn't get contacted for a week or 2 after they sent it in so don't worry
 
@mr5 Poor poor me. :(
 
mr5
@DAustin thanks.
@d4rk4ng31 I'm poor too don't worry :)
 
12:05 PM
@mr5 :D
 
mr5
xD
 
You got the double reference? that's nice :D
 
mr5
huh
what reference
 
Okay, not so nice
 
mr5
@DAustin how many applicants do you receive per day?
 
12:06 PM
It was like: poor(opposite of rich) poor(oh you poor dear type poor) me
 
mr5
yeah I get that. I'm both of it actually =P
 
:D
most are in the lockdown
 
@mr5 Not many, its not a great role for the money so we're not exactly swamped, around 3-5
 
@mr5 But one really needs to be not so rich to understand the value of money
 
of which only 1 or 2 will actually match up to the spec
 
mr5
12:09 PM
@DAustin devs there prolly have more choices so you're getting the least talented ones.
 
user image
4
I kinda finished it already
 
mr5
@Squirrelintraining cuz I can't relate. Those games are targeted for colonizers only xD
@Freerey niceeee
@Freerey is this going to be part of Autorize Domain characters?
 
@Freerey Thaaaat's not how a violin bow looks. That said, looks pretty darn fun. Good job man
 
@mr5 void... Redirect() returns RedirectResult
but then again, converting void to RedirectResult ain't working
 
@mr5 nah lol, but ty
@Hozuki oh well! 😂 but ty tho
 
12:17 PM
@Hozuki Umm... is that a wand?
 
a guy who doesn't play violin attempted to draw a violin bow from memory
 
@d4rk4ng31 No, the shape is fine. It's just a 1/4 bow on a 4/4 violin.
 
@mr5 Spot on, we are aware of this issue but it is what it is
 
@Hozuki lol
He'll have to move his arm a bit more :D
 
"someone pls help I need a new bow cause the old one broke on the way here!! :( "
"here's a bow!"
"...this is for children"
 
12:18 PM
lol
 
There you go, backstory fixed.
 
mr5
@Freerey it looks like a good idea. you're creating characters just for fun now, but as the time goes by, you have created a lot of it and you realize can integrate those images in your story.
 
2 mins ago, by d4rk4ng31
but then again, converting void to RedirectResult ain't working
anyone?
 
Reminded me of this
 
@mr5 this was actually part of an art trade; the other person should be drawing Augusta soon enough
 
mr5
12:21 PM
@Freerey so is the image based on a real person?
@Hozuki kek. I like those guys
 
it's based on a dummy
now can anyone help our guy d4rk3ng31?
 
mr5
ha! I know nothing about ASP
sorry m9
 
@Freerey Its Uchchay btw. :) That's my real name
 
I'll try to member that ;P
 
:D
 
12:22 PM
I develop in ASP,b ut I've never seen redirectresult
 
mr5
me too
he's prolly doing some dark magic overthere
 
hmm... it keeps saying not all code paths return a value
 
mr5
last time I did ASP, I'm only dealing with models and linq stuffs
6
A: Redirect on absolute URL doesn't work in MVC 4

Joan CaronIt's strange because it's the right way... public ActionResult YourAction() { // ... return Redirect("http://www.example.com"); } You can't directly perform a server side redirect from an ajax response. You could, however, return a JsonResult with the new url and perform the redirect ...

the solution is probably not the ideal one.
looks hacky
 
zoidberg
 
We are using .Net Core (i.e. MVC 6) strange to see, they haven't yet fixed it
 
12:26 PM
I'm not finding it anywhere in my company's code
aw crap I just remembered somebody wanted me to look at their github
 
Well, okay, then does anyone know any other methods of redirection?
Like, if the user is valid, it should go to google
 
what are you trying to redirect?
ohh
 
else, /Error or maybe just /
 
Response.Redirect();
 
@Freerey
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace admin_portal.Pages.LoginView
{
	public class LoginModel : PageModel
	{
		public void OnPost(string email, string password)
		{
			admin_portal.Models.User user = new admin_portal.Models.User(email, password);
			if (user.IsValid())
			{
				Response.Redirect("/Home");
			}
			else
			{
				Response.Redirect("/Error");
			}
			Response.Redirect("/");
		}
	}
}
 
mr5
12:29 PM
@d4rk4ng31 the hack I mentioned earlier will probably work
 
This you mean?
 
"/Home" should be whatever your default page is
 
Nope, not working
 
mr5
can you at least modify the response headers?
 
what I do for my pages to go to the "main menu" is Response.Redirect("../../Default.aspx");
 
12:30 PM
@Freerey umm
I changed that
 
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace admin_portal.Pages.LoginView
{
	public class LoginModel : PageModel
	{
		public void OnPost(string email, string password)
		{
			admin_portal.Models.User user = new admin_portal.Models.User(email, password);
			if (user.IsValid())
			{
				Response.Redirect("https://google.com");
			}
			else
			{
				Response.Redirect("/Error");
			}
			Response.Redirect("/");
		}
	}
}
Still to no avail
 
@ntohl is that a violin bow or a bow to shoot things?
 
It simply keeps redirecting to the same page
 
hang on a sec..
 
12:31 PM
@Freerey That's an archer's bow
 
@Freerey bow to shoot things
 
@Freerey mhmm
 
@ntohl I started shooting barebow btw. It's a lot of fun.
 
for the error part you can at least do this: Response.Redirect(Request.ServerVariables["HTTP_REFERER"] ?? "./Default.aspx");
 
@Freerey What will this do?
 
12:32 PM
so if there's an error, the page will take you back to whatever page referred you to the one you're on
but the "default" part can be whatever you want for when it succeeds
 
@Freerey err... That's the default page
 
I'm still trying to see if I've ever referred to an https page outside my intranet
 
wait
 
so the referrer is the default page?
 
@Freerey yes
also
it worked
 
12:34 PM
okay, so "default.aspx" in my code can be whatever you want
a w w y e a h
 
simply stopped IIS and cleared the cache lol
Okay wait
new error
 
mr5
drop asp and switch to nodejs
 
Redirect to google works
but /error does not
 
@mr5 y tho
/error isn't a page
 
how is it not a page?
I have it under pages
 
mr5
12:35 PM
@Freerey ez deploy but slower though.
 
Error.cshtml
 
maybe put .cshtml in there
@mr5 use deno
 
@Freerey Nope :(
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace admin_portal.Pages.LoginView
{
	public class LoginModel : PageModel
	{
		public void OnPost(string email, string password)
		{
			admin_portal.Models.User user = new admin_portal.Models.User(email, password);
			if (user.IsValid())
			{
				Response.Redirect("https://google.com");
			}
			else
			{
				Response.Redirect("Error.cshtml");
			}
		}
	}
}
 
Where does this code get called from?
 
@Hozuki Login.cshtml
Log in Button
 
mr5
12:38 PM
@Freerey ic. it was developed by the same guy who made nodejs. but for now, I really don't need performance as its just a website for my portfolio =P
 
PageModel? OnPost? How is it called?
 
@Hozuki It's the code-behind file
 
Web Forms?
 
@Freerey umm... yeah, removing / worked
it apparently needs "Error"
@Hozuki .net core
5.0
 
Blazor? I don't recognize this style of code.
You sure this is MVC?
 
12:40 PM
@Hozuki It ain't blazor
@Hozuki Web Application (non MVC)
till now
 
@Hozuki noice. I almost bought an Oneida. It was second hand, and the draw length was risky (I have very short). I didn't want to travel 100 km for nothing.
 
After adding the user properly, it will be MVC
umm...
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace admin_portal.Pages.LoginView
{
	public class LoginModel : PageModel
	{
		public void OnPost(string email, string password)
		{
			admin_portal.Models.User user = new admin_portal.Models.User(email, password);
			if (user.IsValid())
			{
				Response.Redirect("https://google.com");
			}
			else if(string.IsNullOrEmpty(user.Email) || string.IsNullOrEmpty(user.Password))
			{
				Response.Redirect("/");
			}
			else
			{
				Response.Redirect("Error");
How do I change the second condition
(else if) that is
to show a warning message after the below the heading?
 
@d4rk4ng31 what I do is call a .ascx file
and then put the .ascx in the ASP side and use codebehind to call it up
 
@Freerey what is that?
 
User Control
 
12:48 PM
Can you give me an example?
 
there is probably a UserControls folder in VS
yeah we use one called ErrorMsg.ascx
 
I actually was gonna use a different method
 
so when calling in ASP, we do <ErrorMsg:Popup ID="ErrorMsg" runat="server" />
and an example error is ErrorMsg.ShowError("An error occurred when attempting to load the gridview.<br />", ex.Message);
 
I was gonna define ErrorMessage property and keep it empty by default. Then, change it when the condition occurs, How does that sound?
 
under "Web.Config file"
 
12:51 PM
umm... tl;dr, not exactly
 
dear god this article is 18 years old
 
lol
@Freerey Okay, I give up, This sounds better
 
@Freerey The article could be doing porn by now
 
but where do I put this file?
 
in a UserControls folder
UserControls just goes in the root
 
12:59 PM
Done
@Freerey Will try this now
21 secs ago, by d4rk4ng31
Done
Just used a static bool
@if(LoginModel.InvalidEntry)
{
	<h3>Invalid entries</h3>
}
 
mr5
this took me less than 10 mins to create: nkraft.herokuapp.com
not yet functional though
 
umm... how do I prevent opening of /Home until login has completed?
like, in my app, if I directly go to the url (localhost)/Home, without logging in, it opens up the app
How do I prevent it?
 
may need a .dll to find out if the user is logged in or not
int userID = LoginControl.GetUID().ToString() != string.Empty ? Convert.ToInt32(LoginControl.GetUID().ToString()) : 0;
if (userID == 0)
  LoginControl.Display();
LoginControl is from a custom .dll we've made
 
umm... still a newbie. Can you please explain a little more?
 
.dll is a binary that we custom-made to have its own controls
you probably don't need to use a binary, but that's what we did
you can just use an object to connect into your login database (or whatever it's called) and handle login data trhough that
if you have a way to find out what the user's ID is, then find it
and if the User ID is zero, that means nobody is logged in
 
1:14 PM
@Freerey oh! okay :)
 
mr5
@d4rk4ng31 you need to understand the "sessions" concept first in web.
 
^this
 
@mr5 You mean the [ValidateAntiForgeryToken]? Still trying to understand that
 
mr5
@d4rk4ng31 no
 
then?
 
mr5
1:16 PM
it has something to do with client's cookie
sorry I can only explain in lower level form. You should probably look up how ASP does it.
 
OK FYI MAN
if you're using MVC, I don't know how well the usercontrols thing will work
 
hmm...
 
just a disclaimer before you get too far ahead
 
Okay, for the time being, we can do it this way
*might be able to
 
mr5
yeah. that one from Freerey's suggestion is probably taken care on their DLL already.
 
1:18 PM
But first, umm, can we write a function that get's executed before the view is rendered?
Because I don't think validating using ctor is a good idea
 
mr5
you're asking too many things.
focus on a single topic one a time
 
@mr5 Am reading that
its good
will get back when I am done
@mr5 That... usually is told by many to me 😅
 
mr5
Let's assume you have a Login page and it will call the LoginController at one point.
In the LoginController, you will store some object in the Session to flag that the session have a logged in user.

For example:
LoginController {
	Post([FromBody] request) {
		...
		Session['userId'] = user.Id
	}
}

On page start up, you probably want to have a conditional redirect as follows:
if (Session.TryGet('userId', out var userId)) {
	// user is logged in
	Redirect(requestedUrl)
}
else {
	Redirect(errorPage)
@d4rk4ng31 ^
 
umm... can I please first complete that doc?
 
mr5
it's a pseudocode but it should give you a rough idea how it all works
 
1:32 PM
Or is that what you have given here consisely?
@mr5 Thanks loads :)
 
mr5
it's a tl;dr version but a pseudocode
it's up to you.
 
I'll read botj
*both
perks of a group project with deadbeats :D
I didn't get this part:
*As you can see, the AddSession method accepts a lambda expression that is, in turn, passed a SessionOptions object (I called the object "so" in my sample code). You use the SessionOptions object to set the options you would have set in the sessionState element in an MVC project's web.config file (by the way: passing an options object to a lambda expression is a pattern that you'll see crop up in several of the configuration methods in MVC Core).*
What is the SessionState element?
 
mr5
idk
I don't do ASP
 
😿
we've got to allow Discord emotes
 
😿
Aug 10 at 8:52, by Captain Obvious
^ This message brought to you by [win]+[.]
 
1:37 PM
oh btw
I successfully parsed html with regex the other day
take that tony the pony
 
who's tony the pony?
 
@Freerey eh, too hard to find :D
 
TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ
 
I wonder if mac has an emoji hotkey
 
@CaptainSquirrel F
How the hell did you type that?
 
1:40 PM
@CaptainSquirrel you mean you queried a set of data from html for a given time for a given page.
 
there's a garbled text generator somewhere on the web
I actually used it once when writing a story and the other students were like "how you do that??"
 
:D
ASP.NET core + Razor. Is it easy?
No?
it is confusing
 
I'm not even using Core
 
Hardcore
 
Razor will, I bet, make it a little blurry.
 
mr5
1:48 PM
Isn't Razor is still a new thing?
Then this Blazor came along that adds up more confucious
 
I think Razor is about as new as your grandma.
 
mr5
brandnew granma then
 
a squirrel grandma, which is about 2 weeks old
 
mr5
I just heard Razor circa 2019
 
2:04 PM
@mr5 🤣🤣
 
mr5
 
2:24 PM
> Razor was in development in June 2010[3] and was released for Microsoft Visual Studio 2010 in January 2011
 
does that makes sense?
 
2:52 PM
So I accidentally called the wrong property so when a caller requested a list of teams, everyone else would receive the list of teams just not the actual caller.
 
00:00 - 15:0015:00 - 00:00

« first day (3681 days earlier)      last day (1271 days later) »