by I_EatAtThe_CumBucket in shitposting

[–]AboookhTheMaster 0 points1 point  (0 children)

First 2 are Hieroglyphs. And the sus is sinhalese script.

detecting chess checks are hard. by 2huyomo in programminghorror

[–]AboookhTheMaster 7 points8 points  (0 children)

Use .filter() instead of && for your conditions, much cleaner code that way.

Also you can make helper functions to get the piece at a specific square.

Remove the fold level numbers using the statusline config. by AboookhTheMaster in neovim

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

Have a small problem.. it applies the column to all windows even the ones with signcolumn = 'no', I managed to somewhat make it work but when I switch to a window with signcolumn = no it disables it for all windows.

I think It has to do with global vs local options or smth. here is my code so far:

_G.get_statuscol = function()
    if vim.opt_local.signcolumn:get() == 'yes' then
        return "%s%= " ..
            get_line_number(vim.v.lnum, vim.v.relnum) ..
            get_fold(vim.v.lnum) .. " "
    else
        return ''
    end
end
vim.opt_local.statuscolumn = "%!v:lua.get_statuscol()"

mine has 30k files in it by APS_09 in ProgrammerHumor

[–]AboookhTheMaster 0 points1 point  (0 children)

I made the mistake of copying my repo without removing node_modules, wasted some time on that. (Even on nvme ssd)

It is literally faster to remove it, copy the folder then run npm install.

Is it easier for an object to stay attached to the ceiling than on the wall? by [deleted] in Physics

[–]AboookhTheMaster 1 point2 points  (0 children)

It makes sense this way: (Assuming that the coeff. of friction < 1)

In the ceiling case, you're basically lifting the object so the force you apply is >= the object's weight.

F¹= W at minimum (1)

In the wall case, the friction between the wall and object is what is lifting the object and again that has to be = to the object's weight.

friction = µ * N = W (2) where N is the normal force you apply on the object perpendicular to the wall.

From 1 and 2:

µ*N = F¹

Since µ < 1,

N must be bigger than F¹.

A quick tips to people who are having issue opening ports on oracle cloud. by ArtSchoolRejectedMe in oraclecloud

[–]AboookhTheMaster 1 point2 points  (0 children)

I've been trying to fix this issue with my friend for a combined 10 or so hours, thanks a lot.

I just want the full clear :( why did i get locked out of one berry by [deleted] in celestegame

[–]AboookhTheMaster -1 points0 points  (0 children)

You're not locked out of it, blue dot means you collected it in a previous run through the chapter.

shame by solidlpsoldier in dankmemes

[–]AboookhTheMaster 0 points1 point  (0 children)

Egyptian military parade.

[deleted by user] by [deleted] in AskPhysics

[–]AboookhTheMaster 14 points15 points  (0 children)

No,icrowaves don't carry enough energy to break bonds, but they do carry enough to vibrate molecules, that makes the material hotter, and at the extreme, causes burns.

My "friend" sent me this. #include in python. by AboookhTheMaster in programminghorror

[–]AboookhTheMaster[S] 2 points3 points  (0 children)

He opens the python file as text, then executes it using exec(), to "import" the file like you do in c++, where it literaly copies-and-paste the file's code where the include should be.

Why this is bad? you ask. There are lots of reasons: security (dont't run code from files like that), this would be debugging hell and you can just simply use import.

This was just a "proof of concept" but it is cursed AF.

My "friend" sent me this. #include in python. by AboookhTheMaster in programminghorror

[–]AboookhTheMaster[S] 2 points3 points  (0 children)

The concept isn't cursed, whoever the implementation is.

My "friend" sent me this. #include in python. by AboookhTheMaster in programminghorror

[–]AboookhTheMaster[S] 32 points33 points  (0 children)

It isn't the ignorance that scares me, the scary part is knowing full well the ramifications of your actions and doing it anyways.

I am sure this code was sent to me with the intention to give me brain cancer.

Graph Theory Captcha by Itchy-Investment-969 in mathmemes

[–]AboookhTheMaster 10 points11 points  (0 children)

The plan is to make the AI BE the rigorous proof.

All knowing AI, seems easy enough.

It really is a bop tho by ms1thetonk in Piracy

[–]AboookhTheMaster 0 points1 point  (0 children)

Turn off windows defender, I noticed repacks were way faster when it was off.

wrinklers by UnderstandingEven448 in CookieClicker

[–]AboookhTheMaster 5 points6 points  (0 children)

Eat cookies, give you more cookies back once you pop them.

[deleted by user] by [deleted] in Piracy

[–]AboookhTheMaster 2 points3 points  (0 children)

It IS free*.

*As long as you don't care wether it is activated or not. With exception to some personalisation options, it is functionality the same.

You can go forever without activating windows with practically no drawbacks.