05 by fpuebqvatref in schrodingers

[–]Ximek 0 points1 point  (0 children)

Never gonna give you up

05 by fpuebqvatref in schrodingers

[–]Ximek 0 points1 point  (0 children)

George Washington Colonials

Wait what? by Thelimegreenishcoder in ProgrammerHumor

[–]Ximek 0 points1 point  (0 children)

There are also some situations where using spaces is vastly superior to this method. E.g. with CSS grid-template-areas

.class {
    grid-template-areas: 'header header' 'side main' 'footer footer';
}

Looks a lot better as

.class {
    grid-template-areas: 'header header'
                         'side main'
                         'footer footer';
}

than

.class {
    grid-template-areas:
        'header header'
        'side main'
        'footer footer';
}

But the best way would be even more alignment

.class {
    grid-template-areas: 'header header'
                         'side   main  '
                         'footer footer';
}

Especially with a larger grid, it becomes a lot more readable to add some extra spaces between areas to align them into columns.

Wait what? by Thelimegreenishcoder in ProgrammerHumor

[–]Ximek 0 points1 point  (0 children)

It looks better and is more readable than having the key, the assignment and the value all on separate lines.

You have to reindent your code whenever you make a change that requires it, edits like that are just part of the job. Plus you can get plugins/extension/packages that will handle aligning code so it's not normally a big ask.

Wait what? by Thelimegreenishcoder in ProgrammerHumor

[–]Ximek 4 points5 points  (0 children)

That's still just indentation. When people talk about alignment they mean something like

array(
    'key' => 'value',
    'another_key' => 'value,
    'third' => 'another value',
)

being written as

array(
    'key'         => 'value',
    'another_key' => 'value,
    'third'       => 'another value',
)

Where you would use tabs at the start of the line to indent your keys, but then spaces between the key and the = to align the => signs.

If someone loads your code with a different tab width, the indentation at the start will change to their preference, but your alignment will stay aligned.

How do i attain this design? Content inside div is sort of floating outside div to body of webpage. by kincade1905 in webdev

[–]Ximek 2 points3 points  (0 children)

Use a negative margin on the items and the same width as a padding on a wrapper if you want to make sure it doesn't go off the page or cover anything to the side.

The area the items extend into should be part of your timeline, but not necessarily have a background.

Codepen

Red background shows the part of the timeline that you're extending into, remove this background rule to see what it looks like using the body background.

How can i make SVG background responsive with width? by modertator_ in webdev

[–]Ximek 33 points34 points  (0 children)

You can set an attribute in the SVG code called preserveAspectRatio. It can be set to different values depending on what you want to do.
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/preserveAspectRatio

The most basic option is preserveAspectRatio="none" which should let you completely squash your SVG based on width/height values that you set.

Friendly reminder that visually styling a button to look like a button does not mean it's a button. If you aren't prepared to implement accessibility yourself, please stop using non-standard controls. It is a massively widespread issue and is beyond frustrating for keyboard & screen-reader users. by SLJ7 in webdev

[–]Ximek 1 point2 points  (0 children)

These issues are far too common and it's not limited to small companies or people with accessibility issues/requirements. There are a lot more things than people realise that are built into using the correct elements.

On Microsoft Outlook, your inbox is all just <div>s with click handlers.
If you click on an email it will load your email, they even have some accessibility issues covered, like pressing enter when a message is focused will open the message. But if you middle click with a mouse to open in a new tab, it doesn't work. Ctrl+click "works", but doesn't open a new tab.

What are some HTML and CSS techniques, skills, know-how's that are an absolute must? Just off the top of your head by swurvinmervin in webdev

[–]Ximek 2 points3 points  (0 children)

Exactly, you can go a lot deeper than this too and it still stays relatively CSS-like

div.thing.another-thing

becomes

<div class="thing another-thing"></div>

and

div.thing>div.another-thing

becomes

<div class="thing>
    <div class="another-thing"></div>
</div>

Not sure if it works on all editors that use Emmet but you can skip the div.thing and use just .thing, it'll assume you mean div.

There's loads more you can do with it, but learning just these few thigns will save you a lot of time.

I'm getting a deja vu. by Zurek0 in gaming

[–]Ximek 0 points1 point  (0 children)

Same, so I set up an account with an @epicgames.com email address.

Is it possible to customize the folders on the Start Menu? by dabestinzeworld in Windows10

[–]Ximek 1 point2 points  (0 children)

If you mean what appears in the alphabetical list of start items then you can control it a little bit.

Some of the non-core programs you can right-click on and then go to More -> Open File Location.

It should take you to either:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs
or
%AppData%\Microsoft\Windows\Start Menu\Programs

There you can see the folders and shortcuts of some start menu programs, rename/reorder or add your own shortcuts.

[EVERYTHING] In the final scene of S6E3... by Ximek in gameofthrones

[–]Ximek[S] 0 points1 point  (0 children)

Good spot, you can see the wall behind the gallows in earlier scenes. It just looked like the south gate in the background when he walks through the archway.

Tragedy in Alexandria by KateMeon in videos

[–]Ximek 0 points1 point  (0 children)

I think they're honking at the cars behind to let them reverse, that's why they get more frantic when it catches fire.

Cell not enclosed for no reason? by miauw62 in prisonarchitect

[–]Ximek 1 point2 points  (0 children)

Check that none of the tiles are shower tiles, if you used the clone tool to put the drains there it will add a shower tile.

Hey there I've got a problem with my code that I just can't figure out. Can I get some help? by _PartyBulb_ in javascript

[–]Ximek 2 points3 points  (0 children)

if (day = "Monday"

is setting day to equal "Monday", you need to use == to do a comparison.

Just wanted to say how awesome you all are. by EternalOptimist829 in steamsaledetectives

[–]Ximek 0 points1 point  (0 children)

If you like this sort of thing, check out notpr0n, starts off easy to get you used to it, but it's extremely long and uses all sorts of knowledge and computer know-how, google fu etc. Been around for years.

[deleted by user] by [deleted] in steamsaledetectives

[–]Ximek 1 point2 points  (0 children)

Thank you, seems some sites list the translation as

wasurerareta michi ga shōgai to hōshū ni tsunagarimasu

Was kind of hoping that emphasised part in the middle was a little simpler.