« first day (4020 days earlier)      last day (921 days later) » 

2:43 AM
In WPF how do you add to a stackpanel children.add methods?
 
 
4 hours later…
6:52 AM
Good morning
@mr5 Wake me when there's CnC:G in the browser
@Adan Yes, YourPanel.Children.Add(yourNewChild);
 
7:15 AM
Morning
 
 
1 hour later…
8:35 AM
Some one old answer of mine is awoken
A nine-patch backgroud suppoted container
https://stackoverflow.com/a/57603443/6859121
I think it worth be shared
 
i feel like im really starting to get into the swing of this new job now
 
I am trying to execute command on swipe
<SwipeView.RightItems>
    <SwipeItems Mode="Execute">
        <SwipeItem Text="Cancel"
                   Command="{Binding CancelCheck}"
                   BackgroundColor="Red" />
    </SwipeItems>
</SwipeView.RightItems>
I set a break point for the method attached to the command.
It's not calling it :/
 
I don't know Xamarin
cannot help you
 
no probs
 
9:14 AM
he want to add a list of "Method" into StackPanel...
Well, StackPanel.Children list only support Control.
"StackPanel" will display children like a list , in default.
I think he want to show a "list of method".
So he need to use ItemsControl or derived control, not stackpanel.
 
@Mr.Squirrel.Downy What do you mean by "Method"? A StackPanel stacks controls on top of each other, so if you want to add something it has to be a control. A method cannot be a control, as it is not an object.
It's like asking "what do you want to put on this Lorry?"
and going "washing dishes."
You can't stack "washing dishes" on a Lorry as it is not something you can carry.
Or stack, for that matter.
 
morn
someone send me the discord link plz
had to remove everything
 
@Squirrelkiller Oh.. I think you should say these words to @Adan
 
You're good where you are
 
9:22 AM
found it myself you loser
 
@Mr.Squirrel.Downy Ohhhh I just realised what Adan wanted to say with his sentence lol
@Adan you can't add methods to a StackPanel - it's a view that displays multiple controls on top of each other, so all you can add is controls. No use in trying to add methods, as a method is not something you can display.
 
But the "Properties of Method" can display, you should write a "DataTemplate" on "ItemsTemplate" property of you used ItemsControl./
 
Sure, but you still wouldn't directly add a method to the children but a control you initialize with information about said method.
 
[Captain Obvious] Morning cucks
 
9:37 AM
Morning cuck
Sorry, Captain cuck
 
or as i call him: fuckface
 
[Captain Obvious] Captain Cuck
 
LUL
morn harry
 
wag1
 
[Captain Cuck] @harry no you don't
 
9:39 AM
?
 
[Captain Cuck] Youn don't call me fuckface
 
be quiet fuckface
 
[Captain Cuck] 😦
 
hehe ly
 
[Captain Cuck] Unrelated
[Captain Cuck] But why the fuck doesn't git have a magic handy thing to do this
 
9:42 AM
I know the short-hand is -u but no idea if it still needs the explicit remote name
 
[Captain Cuck] sorta
[Captain Cuck] but apparently you can supply HEAD
[Captain Cuck] Hmm. I wonder if that uploaded the stack icon
 
Excellent. My lazy hack to make uploads from discord works without uploading every single image in the thing
I'm gonna retreat back to me hovel now
 
Ohhh nice, the answer below that is actually way more important IMO
1589
A: Why do I need to do `--set-upstream` all the time?

ZamithYou can make this happen with less typing. First, change the way your push works: git config --global push.default current This will infer the origin my_branch part, thus you can do: git push -u Which will both create the remote branch with the same name and track it.

 
[Captain Cuck] Yeah I just saw taht one
 
i absolutely love switch cases
 
9:58 AM
u gonna love switch statements then
 
i do
 
Damn basically already writing kotlin
 
but we aint using that version of c# yet
but ive used them at home on my own shit
switch expressions i mean
 
> But why the fuck doesn't git have a magic handy thing to do this
because git likes to not do things unless explicitly stated that it should do it
 
2
A: Dynamic query with OR conditions in Entity Framework

Mr. Squirrel.DownyBasedon StriplingWarrior's answer, I write my linq extension to do this work in linq way: https://github.com/Flithor/ReusableCodes/blob/main/EFCore/OrPredicate.cs The codes(may not newest): using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; namespac...

 
10:08 AM
any of you squirrels and vermin know how to run chrome/chromium in docker?
 
Yes: don't
 
but i want it
 
Although actually yeah lemme just copypaste some stuff
We have this in our dockerfile, apparently that is what's needed:
ENV DEBIAN_FRONTEND=noninteractive
ENV CHROME_BIN=chromium

RUN apt-get update && apt-get install -y --no-install-recommends chromium
Although I'm not sure you absolutely need the first two lines, those may be something we use later on somewhere
base image is node:14-buster
 
im not vermin you filthy kitten
 
anyone on Windows 11 now?
 
10:16 AM
[Hans1984] no
[Hans1984] it looks like garbage
 
Looks ok I think
 
[Hans1984] it doesnt look like its worth switching from win10
 
10:33 AM
In terms of how it looks?
Or it's functionality?
 
[Hans1984] looks
[Hans1984] and why move the task bar in the middle ?
[Hans1984] that sjust stupid
 
can you not move it
 
I didn't like Windows 10 when it first got released.
Now I much prefer it compared to the older Windows versions
 
[Hans1984] true but win10 neve rlooked that silly
[Hans1984] last windows that looked real silly was win8
[Hans1984] when it first came out
[Hans1984] the only reason i switched to windows10 from windows7 was because my pc stopped working after 11 years...
[Hans1984] and I had to buy a new one
 
no windows 8 was fucking stupid
 
10:46 AM
[Captain Cuck] @Wiet why the fuck are you trying to run Chrom[e|ium] in docker
 
with that horrible start menu
 
[Hans1984] yes
[Hans1984] win8 was horrible
[Hans1984] at first
[Squirrel in Training] w7 was masterracde
[Captain Cuck] The start menu can be moved to its normal positiong
[Hans1984] but they changed the outlook
[Hans1984] but I never used win8 anyway
[Hans1984] soooo
[Squirrel in Training] XP was decent and very good but win7 upped the game
[Captain Cuck] But the taskbar can't be used vertically anymore
[Hans1984] xp wa sthe crem-de-la-crem for a looong time
 
@Squirrelkiller any idea how to get a specific version of chromium installed?
 
[Captain Cuck] Windows 8's start menu was fucking boss on tablets
 
@CaptainObvious I want to run a script that tests our websites using chromedriver and selenium
 
10:50 AM
[Captain Cuck] Anywhere that wasn't a tablet (at least 99.5% of users) just experienced garbage
 
I want those scripts to run in AWS Lambda
so far, no real luck with just downloading the correct version and running it because for some reason, I am missing files which are not needed locally
(also keeping in mind that my local machine is Windows and the server is Amazon-linux2)
 
[Hans1984] tablets yes
[Hans1984] lol @your name
[Hans1984] 😆
 
in any case, I can run docker on Lambda, so if I could make it work in a docker image, that should be 100% representable as what would run on the server
now comes the biggest problem: I have to run docker on my poor windows machine
last time I tried, it half destroyed my operating system
but to be fair, last time I tried was like 8 years ago
 
[Captain Cuck] Just don't use docker, problem solved
 
in that case, I would have to search for weird libraries
I would prefer it that way, if there was someone who knew where to get them
 
 
1 hour later…
12:13 PM
@Wietlol I'd open WSL and go apt-get --help then probably look for the --version setting or something
 
1:08 PM
-1
A: Mysql - Add row as column

Squirrel.98Try this: Query #1 SELECT Id, Title, File_Name, listings_id, MIN(front_image), MIN(back_image) FROM ( SELECT l.id, l.title, i.file_name, i.listings_id, CASE WHEN i.properties = '[{"front_back":"front","path":null}]' THEN i.file_name ...

Getting a downvote a for a good answer
 
1:59 PM
my pc with a 5yo cpu can't run win11, so I expect windows 10 will become the next XP, where it's still commonly used even in 2028
 
With the chip shortage probably yes :/
 
[Hans1984] yeah
[Hans1984] well I dont plan on switching to win11 anytime soon
 
the chip shortage also reminds me why right to repair is crucial
companies claim to care about the environment, yet their devices are contributing hugely to e-waste
in such ways as not using a universal power plug for your flagship phone
@Botler one of my PCs has win11 and I'm working to get my heavily-modded Oblivion to run on it huehue
my company seems to be really interested in upgrading to win11, but we have like...10yo machines on our network
 
Ryan Donovan on October 18, 2021
Code quality affects the mental state of a programmer, communication within their team, or the incentives attached to their work is likely to be reflected in their code. Improve your code and you can improve your organizational health and competence as a whole.
 
2:45 PM
devops is telling me i have a merge conflict but isnt giving me the UI to resolve it
wtf do i dp
 
You rebase
Trying to merge into develop? git rebase develop
After pulling develop of course
Then git push -f
 
nahnah all good
 
if you have branch feature-foo and you want to merge into branch master, you should merge master into feature-foo first
 
installed an extension
 
2:53 PM
allowed me to do a merge resolution
 
after that, you can do a pull request and let azure do its work
 
ty tho bois
 
if you invert merge first, you resolve all problems that would occur during the merging
imo, there should be a setting to only allow pull requests that are up to date with the master (or whatever branch you are merging into)
 
@Wietlol It's called FF-only merging
Gitlab offers three options:
1) default: As long as you don't have conflicts, you can merge
2) semi-linear history: You still get a merge commit, but your branch definitely has to be up to date with master (or whatever target branch)
3) fast forward only: Gotta be up to date and you don't get a merge commit
It's in Merge Request settings
I bet github has something similar
For my own projects I usually use FF-only
 
the fact that gridviews are showing extra columns on one website but not the other is getting me to the point where I'm literally developing schizophrenia from all the reasons this doesn't make any sense
"autogeneratecolumns".....omfg
I HAVE SPECIAL NEEDS
 
3:14 PM
@Squirrelkiller ooh, I have to check that out
 
 
6 hours later…
9:14 PM
 
 
2 hours later…
11:20 PM
posted on October 18, 2021 by Scott Hanselman

Award for longest blog post title ever? Andrey Muzychenko has a great github repository where they decompiled the 25 year old Space Cadet Pinball application from Windows 95/XP and then recompiled it for Linux (and really any platform now that it's portable code!). NOTE: Because this is a decompilation/recompilation, it doesn't include the original data files. You'll need those from a Windows

 

« first day (4020 days earlier)      last day (921 days later) »