« first day (2784 days earlier)      last day (2390 days later) » 

14:06
The beauty of hitting the [Ignore] tag over each and every unit test :3
!!Cap, do your thing
@Squirrelintraining Doubtfully
wat did i just trigger? ô.o
Doesn't look like anything to me.
Doubtfully
anyways ima off
squirrel you guys tomorrow
14:11
How the hell do I run a process completely, close VS, reopen and suddenly it doesn't work?
Forgot to save?
I saved of course.
I think someone fiddles with my computer when I'm away.
I'm going to start locking it every time.
There's for sure a little gnome sitting in your pc. His name is CPU.
I've got an actual ram in my PC. pulls sheep with plastic horns
If I have a List<T>, how can I determine the type of object in the list?
14:19
@Hypersapien typeof(T)
T.GetType()
T : EarlGrey(Hot)
2
@Hector I have times where visual studio just stops accepting ketboard input in the text editor. Needs a system reboot to work again
Sneaky beaky VS
I take that as my cue to go home because I've done enough work that it's telling me to stop
14:25
HAMMERTIME!
even Caprica
Time to go home, cya tomorrow!
I wish I could go home
are these two equivalent?

public string field { get; private set; }
public string field { get; }
No
You can't set the second one at all
Even if it's in scope
14:34
oh
rip
if you add the setter, then still no
oh leaving out the seter makes it like readonly then
I don't know to what extent it was a good idea to read every single comment and scan for the words stop, halt, or whatever
@HéctorÁlvarez It already parses every message anyway
That's how bots work
Don't let JDoe know.
He'll tell you it's all due to chat messages having border radiuses
Yeah it makes sense to parse every message.
Doesn't that put a little bit too much strain on them?
I mean, when they work simultaneously on 20 different chatrooms and they have to listen all the time.
It should be pretty lightweight, but still
14:42
I mean, every chat message does have a border radius x-files theme
@HéctorÁlvarez Do you have a better idea?
Do you really need to ask a rethorical question on a matter I ignore for 99% of it?
If you handle it server-side, then not much to do aside from hooking the bot, I guess.
I bet if there was a better way you guys would have done it that way.
@HéctorÁlvarez What server?
@Hector I believe cap is just a js both which sits on the SO chat page on somebody's browser
14:53
From the GIT page
Whoops
> The bot is currently a big dangle-on script running in your browser. Run bookmarklet.js in your browser to get it up an' running. For some tips on handling the bot, see Bot Handling.
!!getMoneros
@HéctorÁlvarez That didn't make much sense. Use the !!/help command to learn more.
I want to know how many cryptocurrency units you've mined off me
Does it run web assembly?
@HéctorÁlvarez How would it mine off you? It's not running on your computer is it?
personality.js is an absolute killer
@Cap bitch
14:57
does this way of initializing have a name?

public Dictionary<string, string[]> prop { get; set; } = new Dictionary<string, string[]>()
So it doesn't run on my computer, but it doesn't run on someone else's computer either?
@erotavlas Auto-implementation.
It's running on the browser of whoever is logged into to the chat as Cap
Cap is a user like you or me, but instead of a person talking, it's a bot reading the messages and sending replies
@HéctorÁlvarez thanks
I get that. Probably someone's computer. Maybe the term "Server" was inappropriate.
@HéctorÁlvarez rlemon's, to be exact
15:02
Right, so rlemon has a browser instance, or emulation of said browser, that logs in the website as a custom bot user, listens to an inderterminate amount of chatrooms for everyone's comments as long as she's been summoned there, and parses their inputs to provide all this stuff transparently.
I believe that's correct
Well, I must say that implementation details aside, it's brilliant.
I can't even undertand what's going on in zalgo.js
okay new question
Fun fact: Caprica Six was created when Zirak was lonely on Christmas Eve and wanted someone to play hangman with.
15:07
one a scale from 1 - 10, one being not at all, 10 being "if you don't the world might end" how much should I be using factory classes instead of writing stuff in my constructors
and more importantly, why
That's so vague that any response I give will be wrong
Oh okay.
Don't worry that's acctually a good answer.
The factory pattern solves certain problems. It's a tool that's useful to have in your toolbox, but it doesn't replace the other tools.
okay great, that's what I wanted to know, basically.
15:10
@LeeButler Oh snap, Zirak's real name
Ben What a disappointment
I was expecting somehting cooler when his username starts with a Z
If you normally expect people's real names to be more interesting than their handles, you have a gross miscomprehension of the world
@KendallFrey that is so vague that any response can be considered correct (probably what you meant)
@Wietlol No, I meant that every reponse is wrong most of the time
I expect their handles to be roughly equally interesting
My handle is butler1233. My name is Lee Butler. They are fairly equal
15:13
Slightly less gross, but still major miscomprehension
@KendallFrey you still need factory classes to instantiate those factory classes though
because constructors arent good enough
that is why the entire concept of factories exist
imagine how factorio would look like if you dont need factories
you lazy bastard
;)
my real name is Lemonade
15:16
my real name is Wietlol
Donkey!
I spend so much time being refereed to as Lemonade. Sometimes in meat-space I accidentally refer to myself as Lemonade if I, for some reason, need to refer to myself in the third person.
Wielol can confirm this
It's a weird transition since it used to be the other way round, and I'd accidentally refer to myself by my real name online.
In voice chat, that is. It's quite hard to fuck it up if you're typing.
My IRL close friends keep their nicknames. I'd head to their place and go like "sup hunter?" and their family look at me like I was some fucking weirdo. I am, but that's no reason to stare at me like an idiot.
15:26
I've never had nicknames with irl friends.
either them giving me one, or me giving them one. There are a few friends I've refereed to by their second name instead of their first.
The only exception being someone that I met online and then met in real life after that. it'd have been way weird to use our real names after referring to each other by nicknames for that long.
some of my friends had nicknames, but those names were initially not connected to their online names
16:03
Hi all, I have a question. Why, and how is it that I can make great complex, web applications in c# but know very little about asp.net?
I don't understand the question.
You want to create a but complex system in ASP.NET but don't know much about ASP.NET?
16:26
great and complex dont go hand in hand
16:39
no, I have created awesome applications in c# been given awesome writeups, raises, references but I know very little about asp.net
16:54
ASP.NET is a subset of .NET
@Skullomania are you asking us "why haven't I learnt about asp.net"
Because honestly I don't think, unless you take us through your entire life and every choice you've ever made, we can answer that.
we can certainly answer
but the chances that we are right will be quite low
My guess is a snake phobia.
Which would also explain why he doesn't know Python.
user9145305
17:13
Hey is this more of a C# or .csv question? I am saving a .csv file w/ my C# code but when I copy the records in the .csv file and paste them to a txt file, I have a bunch of extra commas
It's a <software you're using to open the .csv> question
@Lemonade1947 no, Im just suprised that I know much less than I thought
user9145305
Dang, so it's Word Pad. Not even sure how I would go about debugging this then.
why would someone use wordpad for anything, much less csv?
17:50
^
@RudiVisser when did you move to Australia?
Also, yeah. On the list of "Software that I'd use to open a CSV", Wordpad ranks somewhere between iTunes and "punching myself in the face repeatedly"
 
2 hours later…
19:47
.
20:02
..
20:22
C:\Users>
20:43
WPF sucks...
honestly
can't even do a simple button grid without going completely insane in the process
your just using it wrong
I've been on this for a couple of weeks now
progressively doubting moving to Electron instead :D
so the entire grid cells have buttons in them?
I think the answer already mentioned this, but Height in RowDefinition Height="64" doesn't mean "height in pixels"
They may, they may have not. Buttons are dynamically loaded.
20:57
no, it doesn't
rather, if you have a two rows, one with height 2 and other with height 1, it means the first row is twice the size of the other
oh for heavens sake
How do you do absolute heights again?
It's been years since I did wpf
How much does the guy at MS who came up with that silly idea get paid?
isn't that only if you put a * beside it?
otherwise its in pixels
That's what I thought
20:59
Then.. MS doesn't understand pixels?
do the cells need to be exactly the same size no matter what?
I mean a fixed size (not expand/contract when resize window?
Yes. 64px*64px
well the height of the entire grid must equal the height of all the cell heights
Which becomes problematic with 10-11 rows. the 11.th row is even outside of the window, tho 720/64=11.25 so it should fit in
you have 720 but its still getting cut off at the end?
21:03
Yes
Like it doesn't understand what size to be
Javafx does magic, it seems, as the example in the Q states
See the Q, my entire xaml is there ;)
did you try adding an extra row at the end with no buttons?
with height *
Just * ?
yes
basically <RowDefinition Height="*" />
no doesn't work just tried it
yup
still only 50% of the last row is in the window
21:07
oh I know set the height of the window to Auto
That makes rows on screen = 9
lol ok
hmmmmm
ShareX has this region grab that shows you the dimensions
no wait it does work
apparently the gridrow cells are 79 by 79 !?!?!?!?!?!
what the actul
21:10
Height 👏 = 👏 64 👏 does 👏 not 👏 mean 👏 64 👏 pixels 👏
oh yeah right...pixels is for Silverlight...WPF is a device-independent unit (1/96th inch) measurement
I assume you have tried pixels (px suffix), Rando?
just did, to no success
Are your grid elements not 64 pixels by 64 pixels, when you tell them to be 64 pixels by 64 pixels?
21:16
do you need to have the window a fixed size? I mean not resizeable?
i.imgur.com/HF881v8.png this showed up as 79by79 when screenshotting...
You are aware that the window height includes the title bar, right?
if even this can't be done, resizable will probably be an even bigger cluster of you know what
you can have a scrollviewer
it's 64 on my machine
21:20
Not really, because you'd just have it auto scale to fit
it's probably your DPI settings on Windows
@RudiVisser in fact, I was not aware of that... other UI frameworks don't do that...
try this
<Window x:Class="WpfApplication3.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApplication3"
        mc:Ignorable="d"
        Title="MainWindow" Height="Auto" Width="300" SizeToContent="WidthAndHeight">
    <ScrollViewer  >
Without window title, and converted to pixels - it works as expected
and in fact without pixels it would also work fine
(So long as you account for the title bar)
Fixed height apps are always the devil though, you're better off autosizing to your desired col / row amounts
Which probably describes the "magic" that Java 🤮 is doing
Also I assume as a "kassa" this would be run fullscreen anyway, so just code to that + device pixels regardless. I'd guess you always need to show 11x4 grid, so just code to that. Ignore width/heights, they'll be equal by default
21:26
you don't need fixed height to solve this....he's missing this SizeToContent="WidthAndHeight"
and if he wants to keep it at the startup size he can set ResizeMode="NoResize"
He fixed height: 1; to prove a point and 2; because he thinks WPF is inflexible and not doing so would introduce further problems (as per his most recent message about size)
I wanna know what the guy who made this was high on....
Makes you think Assembler is easy
Ah right, so you're just trolling and don't care about answers
Anyways, that last snippet of code worked.. I'll see if I can turn it into something I can understand and maintain in the morning, thanks
Probably just going to default to fullscreen, as rudi suggested
I've posted an answer with what I was playing with anyway, so feel free to check that out. Will work regardless of size
The only thing you'll want to do to make it more appealing is guarantee, rather than fixed width, a fixed % width of the right column (25%?)
21:37
mm, and that'd be the star width thing then?
right, so 25* ?
great
Maybe I'll actually start to like this...
Anyways, off to home & bed, night
Updated my snippet to have a proper grid so you can put content in the first column too
G'night
btw, any way to set the monitor it launches on, from here? my 4k dev monitor may be a bit excessive for this...
That code works fine on 4K w/ DPI Scaling (since you're ignoring pixels) - see my pic above
That's one of the best things about WPF
21:41
yeah, but still, for full screen development... for something that would just be plain stupid to run on 4k...
Maaaybe overkill :D
yeah, if you're not dependent on actual physical pixels, you can solve the problem of scaling trivially
anyway, gnite
@RandoHinn My most basic advice is to match your lowest possible client resolution that it's actually going to be ran on and dev to that. Then run it 4K and see if/make sure it still scales correctly
Then you're winning in life
do programming blogs earn any money?
How would you plan to monetise it?
21:45
ads?
Then no
The only model that's worked in the past for me (and I hope will work again) is freemium ie certain articles are free
I've seen some people develop courses...but seems like a lot of work
maybe making an app would be more profitable
Well yeah
If you don't wanna put work in to it why do you expect to make dollar :D
making money doing nothing is the ultimate achievement
That's why I'm so happy in life!
But that's normally a result of convoluted business arrangements, not helping people to code, unfortunately
Anyway good luck with your blog if you do start it - I'm out. G'night!
21:50
later
 
2 hours later…
23:50
Can somebody please advice me on this question?
0
Q: Membership.GetUserNameByEmail returns null when executed for the first time

Vinit DivekarI have got this strange looking bug and I am not sure what is causing it. I have written a following web service [WebMethod] public string GetMemberByEmail(string emailId, string applicationName) { string userName = Membership.GetUserNameByEmail(emailId); MembershipUser mu = GetProvide...


« first day (2784 days earlier)      last day (2390 days later) »