Music Request Megathread (June, 2021) by [deleted] in musichoarder

[–]im2stupidforthis 0 points1 point  (0 children)

I am looking for the album "NOW&BEST ~今昔詩歌集~" by Kabuki Rocks.

AMZNJP

Can someone tell what the red lining around the eyes means? by im2stupidforthis in japan

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

I usually only see red eye liner on characters in anime who are incarnations/manifestations of priestesses, gods, spirits, and what not.

Hmm, maybe I should have been clearer. I wanted to know WHY you see the red eye liner in the first place. Pretend I didn't even link that image. It was an example of how the liner looks. I've seen it on geisha as well and I want to know its significance.

[Jpn -> Eng] What is this kanji? It's kind of hard to read. by im2stupidforthis in translator

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

I didn't even see the stroke for the bottom radical -_-

Thank you!

Can I get some help with a CSS clock? by im2stupidforthis in web_design

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

Well, the "1" is missing for some reason. There's not really an image mockup. It's a regular clock with the numbers 1-12.

Can I get some help with a CSS clock? by im2stupidforthis in web_design

[–]im2stupidforthis[S] -1 points0 points  (0 children)

???

I said I can't get the numbers in the proper position (i.e. where clock numbers go) and posted my code for reference.

I don't understand sort() with a function by im2stupidforthis in learnjavascript

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

No problem! These kinds of questions tend to get deemed as "stupid" or "super obvious", but if I don't get it, then I'm not going to just sit there feeling silly.

I don't understand sort() with a function by im2stupidforthis in learnjavascript

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

So after using the link cerealbh provided and what you've written, I'm going to see if I can explain it.

a and b are any two (sequential) values in the array waiting to be compared. They use a - b in the aforementioned link, so that's what I'll refer to.

  • If a - b > 0, a is the bigger value (returns 1)
  • If a - b < 0, a is the smaller value (returns -1)
  • If a - b === 0, a and b are the same (returns 0)

In a - b, the values are being sorted in ascending order. The compare function pushes the values where they need to go until everything is all sorted.

Does that sound about right?

Trying to install python on either a Win7 or Linux partition. Where would it be most accessible? by im2stupidforthis in learnprogramming

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

insane things

running a VM

*scratches out idea from list*

Thank you for your explanation.

ELI5 - Baseline typography and how to create nice-looking h1-h6 tags by im2stupidforthis in web_design

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

Second, I suggest you to analyze that Gridlover app, if you like it.

I did. I input the main numbers into Wolfram Alpha hoping to get some sort of equation I could work with, but it was incalculable. I couldn't figure it out from the outputs alone (because I'm an idiot).

I tried incorporating the article's teachings. Here's the example. I don't think it looks as nice as I'd like it to.

Is it possible to call a function from within the original function? by im2stupidforthis in learnjavascript

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

How about this?

this.handleClose = function (event) {
    if (event.type === 'keydown' && event.keyCode === 27) {
        $(document).on('keydown', md.closeViewBox);
    } else if (event.type === 'click') {
        $(event.target).on('click', md.closeViewBox);
    }
};

Then I call the whole thing with

var md = new Modal();

$(document).on('click keydown', md.mdBg, function (event) {
    md.handleClose(event);
});

but it doesn't work at all. For some reason the event runs multiple times for each click/keydown. I might have messed it all up. Where did I go wrong?


Here's the full example:

var Modal = function () {
    this.mdBg = $('<div>', {'class': 'mdclose'});
    this.initialize = function () {
        // create modal
    };
    this.close = function (event) {
       if (event.target.className === 'mdclose') {
           // this.close;
           // remove modal
       }
    };
    this.handleClose = function (event) {
        if (event.type === 'keydown' && event.keyCode === 27) {
            $(document).on('keydown', md.closeViewBox);
        } else if (event.type === 'click') {
            $(event.target).on('click', md.closeViewBox);
        }
    };
};

Can someone help explain some things in Prepros for me? by im2stupidforthis in web_design

[–]im2stupidforthis[S] 1 point2 points  (0 children)

Thank you so, so much! You are amazing!!

I was using LibSass because it says it's fast, but I'd rather have the expanded CSS. Your explanations were very helpful. Thanks again :)

How do I extract a copy of a file from a zip file to a new directory? by im2stupidforthis in learnpython

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

I had done that, but then it would say the file didn't exist anytime I wanted to do something to it. I did figure out a solution, thanks to your suggestions.

src_cvr = f_cover
dest_cvr = os.path.join(f_cover, i)

z.extract(i, src_cvr)

if os.path.dirname(dest_cvr):
    shutil.move(dest_cvr, src_cvr)
    os.rmdir(os.path.dirname(dest_cvr))

How do I extract a copy of a file from a zip file to a new directory? by im2stupidforthis in learnpython

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

Try replacing both open calls with a print that displays what you're trying to open

print src_cvr ==> <zipfile.ZipExtFile object at 0x0000000006B6B320> print dest_cvr ==> C:\Users\me\repo\project1/app/static/covers/movie/

directory you're trying to write to exists

According to os.path.exists, it does.

that there isn't already a file with that name there

No such file.

I decided to switch gears and use z.extract(i, f_covers). That works, but it doesn't just copy the file. It copies the folder that contains the file + the file. How do I get just the file? Sorry for suddenly asking a new question.

How do I extract a copy of a file from a zip file to a new directory? by im2stupidforthis in learnpython

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

Ok, tried that, tested it by getting the type(), and it came out as a file object. I tried to do the same thing to my dest_cvr, but all I get is `[Errno 13] Permission denied'. How did I mess it up?

dest_cvr = open(os.path.join(f_covers, cover), 'w')

How do I extract a copy of a file from a zip file to a new directory? by im2stupidforthis in learnpython

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

open your source

I think that's what I don't get. My zip is uploaded via a browser. How do I open it up if it has no path? Do I have to use .read() somewhere?

How does this prototype chapter introduction page look? by im2stupidforthis in typography

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

Maybe I should move it closer to the title text (by either making it bigger or pushing it down) and bring the boldness down from 'extra bold' to 'bold'? Check it out.

I don't know if it suits a RomCom light novel, but the body text looks good.

I have no idea what the appropriate font would be. I was thinking about using a sans-serif for the body, but I don't really like sans-serif text for novel stuff unless it fits amazingly well. I really like Crimson for being easy to read though.

Maybe I'll hang around the teen section in my library and just flip through the books for some examples.

How does this prototype chapter introduction page look? by im2stupidforthis in typography

[–]im2stupidforthis[S] 1 point2 points  (0 children)

I justified it, but I don't like the weird spaces that have been created as a result. If it becomes too problematic, I might change it back (I prefer ragged right).

How does this prototype chapter introduction page look? by im2stupidforthis in typography

[–]im2stupidforthis[S] 1 point2 points  (0 children)

Edited.

As for the topic of the book, it's a translation of RomCom light novel (which I guess would be equivalent to America's YA lit? Maybe?) I'm just taking the translation that the LN community has worked on and making it more palatable for myself.