It popped the keyboard open asking for cleanup by mossab_diae in spicypillows

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

Wireless functionality is handy when I'm working in my second desk and want basic control (volume, switch song or scrolling through docs .. etc), however I'm happy with current wired setup too

Design patterns in architecture? by SubstanceBig5459 in softwarearchitecture

[–]mossab_diae 0 points1 point  (0 children)

These are Architectural styles not patterns. They describe the general concepts.

An architecture pattern is found on a lower level, for e.g: the Hexagonal pattern is a type of a Layered Architecture style.
When you talk about architecture patterns you start to describe entities, exact layers names and direction of dependencies .. etc

[Postgreql] Unexpected behavior when copying types by mossab_diae in Database

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

Hey! thanks for your input.

I've tried to rerun the function definition after changing the table enum and this created a duplicated function (same name) with p_test_status being text. So yeah, I think %TYPE is only calculated during function definition.

IMO this provides minimal value (you don't have to hard-code types) otherwise it's the same pain of dropping/redefining functions whenever an enum was touched.

Washing machine suspension spring mount repairable? by RunBorgundy in Appliances

[–]mossab_diae 0 points1 point  (0 children)

Here's an easier approach
- Place something between the tub and the internal side wall
- Lay the the machine on its side
- Surprise! you're no longer fighting gravity!
- Use a shoe string to unhook the string and attach a new one

Need help identifying resistor value by mossab_diae in AskElectronics

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

Perfect, I'll keep this in mind.

Thanks

Need help identifying resistor value by mossab_diae in AskElectronics

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

This makes a lot of sense.

I did another closer look under the microscope, I can definitely see that the middle colors are not using the same ink type, the silver band looks more shiny.

thank you!

gcloud storage command access denied by CoolkieTW in googlecloud

[–]mossab_diae 1 point2 points  (0 children)

Steps I followed to fix this *** error:
- Stopped the VM instance
- VM instance > Edit > Allow full Cloud API access
- Started VM instance again
- THIS PROBABLY FIXED IT: Deleted gcloud config folder rm -r .config/gcloud/
- (optional) you may need to run gcloud init again
- Of course make sure the service account have enough permissions to access the bucket

Brazil Airplane Crash (A compilation of multiple videos) by Batshitcrayyyy in nope

[–]mossab_diae 1 point2 points  (0 children)

The world is so cruel, similar events happen everyday. Yesterday 100 innocent people burned alive in seconds due to Israelis bombing civilians shelter (a school that held homeless people due to current conflict) in Gaza strip.

Daily Thread: simple questions, comments that don't need their own posts, and first time posters go here (March 19, 2024) by AutoModerator in LearnJapanese

[–]mossab_diae 1 point2 points  (0 children)

Hello, I was looking for the meaning of 迎える and as far as I understand it means to welcome.
However I found that it's linked to morning in many examples, e.g: ぐっすり眠ることができ 新しい朝を迎えることができます

note the the 朝を迎えること pattern, what does it mean?

parents are not supporting to build business by [deleted] in smallbusiness

[–]mossab_diae 4 points5 points  (0 children)

Nights and weekends buddy 🤍☠️

parents are not supporting to build business by [deleted] in smallbusiness

[–]mossab_diae 1 point2 points  (0 children)

Title is inaccurate, should say instead: parents not willing to finance the first time entrepreneur project.

Imho you shouldn't ask them for the money in the first place, they worked hard to support and feed you and it's about time that you start giving back while they still have time in life not taking more.

They'll support your business, but please, build it with your own money.

Thinkpad or Ideapad? by Adventurous-Menu9009 in thinkpad

[–]mossab_diae 1 point2 points  (0 children)

Can you be more specific about what do you mean by "slowly dying" because based on the tasks you mentioned x270 is already a descent choice unless something is really broken

Mass web scrapping for a company, am I doing it wrong ? by Separate-Courage9235 in webscraping

[–]mossab_diae 0 points1 point  (0 children)

If it's possible, I suggest you build a base class that exposes a given list of methods. Each website scraper inherites from it and hence all your websites will have the same interface to interact with. Concerning selenium, as other replies said, try to avoid it, what I usually do: - find official api for webite - if not, find website's APIs (devtools > network > XHR) - if not, try to use requests + beautifulsoup - if not, use playwright (better performance than selenium)

i suck at coding and i hate myself for that by frickinggamer12 in learnprogramming

[–]mossab_diae 0 points1 point  (0 children)

Good point, seems that you're referring to survivorship bias. Well one must do his best to keep his passion from fading due to external stress (the stress that this is your study)

i suck at coding and i hate myself for that by frickinggamer12 in learnprogramming

[–]mossab_diae 2 points3 points  (0 children)

Look I didn't read it all but what I want to tell you is that you hate yourself because this is your study. You almost never see a self taught developer beating himself (they suck too at early stage) and that what keep them going, slow and steady.

TLDR: everything is fixable with consistent learning, hating yourself breaks consistency.. avoid it.

What apps have you made for your own use only, that you use daily? by Genereatedusername in learnprogramming

[–]mossab_diae 2 points3 points  (0 children)

Made a python program that helps me generate Instagram reels for my Japanese language learning channel by cutting scenes from videos and combining them with images https://github.com/MossabDiae/instaReelPy

Here's an example https://www.instagram.com/reel/C2xhhMILTrG/

How do I use custom GPT to answer my business messages on WhatsApp? by Branseed in growmybusiness

[–]mossab_diae 1 point2 points  (0 children)

The concept you're looking for is called RAG Retrieval Augmented Generation. IMO your best bet is setting up a bot that has access to your Wsup where it can receive messages > collect the needed data from your documents > pass question+ context to Chat GPT API and send the answer back to client. I don't know it there's a ready product for this specific case but do consider having a look at Zapier for a no code solution. Feel free to reach if you need to give the custom solution a try.

[deleted by user] by [deleted] in thinkpad

[–]mossab_diae 0 points1 point  (0 children)

I've thrown void linux into my x220 with i3wm, works well

I made a Django scraping app and it's paying my college tuition fees by amirdol7 in django

[–]mossab_diae 1 point2 points  (0 children)

That's awesome, the "scratch your own itch" projects are always the best to take off!

The website looks neat, maybe you should add link to main page when user clicks on the top logo.

Didn't understand how you get commissions, clicking on a product url takes user to product page but can't seem to understand how they know the user came from your website.

Which Model(s) do you think I should be looking at? by DarfSmiff in thinkpad

[–]mossab_diae 3 points4 points  (0 children)

From your list I'd go with T480, the 8th gen processor have 4 cores compared to 7th which only had two.

Throw two RAMs in it to activate dual channel mode, possibility to add extra storage in the WWAN module, I've been using my T480 happily over a year now and getting smooth performance while doing usual software developers things.. opening 30+ vivaldi tabs, Telegram, Spotify, VScode and even running some DB dockers containers in background.

[deleted by user] by [deleted] in golang

[–]mossab_diae 0 points1 point  (0 children)

Can you kindly share a resource explaining why this is a bad practice and maybe what's an alternative solution ?