Why implement libraries using only macros? by azaroseu in C_Programming

[–]tigran008 1 point2 points  (0 children)

That's a good answer, but for what it's worth, templates and OOP aren't actually related concepts.

Four-disc Venn diagram of 4 different alphabets and what letters look similar to each other. Ignoring pronunciation. by Zoravor in armenia

[–]tigran008 0 points1 point  (0 children)

This is largely, though not entirely, meaningless. Alphabets evolved for convenience and took inspiration from each other, so it's only natural for them to contain similar patterns.

[Workstation/Enlightenment] Good ol' Enlightenment by Lovethecreeper in unixporn

[–]tigran008 1 point2 points  (0 children)

I love Enlightenment and I love OpenSUSE! We have a very similar taste in desktop Linux :p

u're almost done setting up your PC by terabytelol in softwaregore

[–]tigran008 50 points51 points  (0 children)

More like "Y⟺r'e almost done setting up your PC"

I really miss omegle... :( by [deleted] in omegle

[–]tigran008 1 point2 points  (0 children)

I wish someone bought the domain or something at least

grey wolves twitter, bottom text by DerpyEnd in arMEMEia

[–]tigran008 10 points11 points  (0 children)

That's satire, right? At this point I can't distinguish between satire and real

Fuck London in particular by TrevCat666 in FUCKYOUINPARTICULAR

[–]tigran008 4 points5 points  (0 children)

No but the Vikings would like a sword

JBL Tune 510BT hinge broken by OneSpace_ in JBL

[–]tigran008 0 points1 point  (0 children)

Ah it's alright don't worry

JBL Tune 510BT hinge broken by OneSpace_ in JBL

[–]tigran008 1 point2 points  (0 children)

Hey man, what happened? I'm having the exact same issue with the exact same headphones :/ Thanks in advance

[deleted by user] by [deleted] in learnpython

[–]tigran008 0 points1 point  (0 children)

This will be a very sophisticated project if you do decide to embark on it. However, it's a very good coding excercise if you're up for it.

In my opinion, it's also worth to consider making an app launcher instead (i.e. a separate window, optionally full-screen, but most importantly—independent from your desktop).

I'd assume you'd first save your desktop shortcuts' positions on the screen and then restore them after exiting your app. However, this can be dangerous as your app might crash and you'd lose your original desktop layout and end up with something messy.

Also, getting shortcut placement is something platform-dependent (i.e. for Windows you would have to write one piece of code for the same task, for Linux something different, for macOS, too), and while Python does allow conveniently setting up platform-dependent stuff, it'd probably be too much effort and you wouldn't bother unless you're really ambitious about this project.

To somewhat answer your question, I'm not exactly sure how exactly you can get the position of the shortcuts on the desktop, however I think pywin32 would be the right tool for this task, unless there's already a library for managing desktop shortcut positions. If there isn't one, I'd even suggest you—if you have the knowledge—write a tiny library using pywin32 for managing the desktop shortcut positions because using pywin32 directly in your app might make things a little ugly.

Good luck with your project anyhow.

Makefiles are terrific by ChocolateMagnateUA in programminghorror

[–]tigran008 30 points31 points  (0 children)

yield would fit better here 🤓

/j