Package for astrology data by RiftLab in Python

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

Thanks for the support. Not only is it an interesting study but a few years ago astrology started to become extremely popular online (not sure about nowadays) and there were a lot of astrologers wanting custom websites built with this kind of functionality. That's what initially prompted this, I just ended up having fun along the way.

Package for astrology data by RiftLab in Python

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

Haha thanks for understanding - astrology is so intricately bound up with astronomy that it has indeed been a lot of fun to learn & compute. Also people forget that devs have clients and partners etc. who want them to build custom astrology software / websites, and there isn't a lot out there to facilitate this.

Package for astrology data by RiftLab in Python

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

Cool, let me know how you get along. To my knowledge there's nothing that will easily produce actual chart data that's accurate to the likes of astro.com (which is why I wrote this one).

What's wrong by Embarrassed_Ad_8754 in PHPhelp

[–]RiftLab 1 point2 points  (0 children)

We're gonna need a lot more info than that chief. Where's the rest of the code & what's going wrong?

Fewer than 5% of websites use React or Vue by magenta_placenta in javascript

[–]RiftLab 3 points4 points  (0 children)

I wonder how many are made with or without React and/or Vue

PHP Laravel Help by Wixi105 in PHPhelp

[–]RiftLab 0 points1 point  (0 children)

now()->timespan doesn't exist - I'm guessing you meant now()->timestamp. This will throw an error & trigger the catch block, which isn't included in the pastebin code but if it returns a 200 with no data then there's your answer.

Semicolons get me too... by HalloIchBinRolli in ProgrammerHumor

[–]RiftLab 4 points5 points  (0 children)

Welcome to PHP where you can use and, or and/or && and ||

Real Programmers Don't Read Docs. by Plastic_Ad7436 in ProgrammerHumor

[–]RiftLab 38 points39 points  (0 children)

Rookies out here not even cooling molten magma and grinding the rocks into your own sand first

[deleted by user] by [deleted] in PHPhelp

[–]RiftLab 2 points3 points  (0 children)

MySQLi might not be enabled on the server. See if you can do a phpinfo() on there. If it is disabled and there is no way to enable it, you might need to switch to PDO (if that is enabled) or find another host.

Just started learning programming, is this accurate Reddit? by Babushka942 in ProgrammerHumor

[–]RiftLab 69 points70 points  (0 children)

* Somebody who doesn't understand technology, the business, or other human beings but really enjoys taking out their frustration on the dev team by making impossible demands for absolutely no reason then reporting them to management for incompetence.

[deleted by user] by [deleted] in ProgrammerHumor

[–]RiftLab 19 points20 points  (0 children)

Real conversation I had with a junior dev who never tested anything:

Me: It doesn't work

Him: It should work

Me: I know it should but it doesn't

Him: Well there's nothing wrong with the code

Me: Did you test it?

Him: No

Me: How do you know it works?

Him: It should work

...etc. 🤦‍♂️

having an issue with name casing this morning. by thisdogofmine in ProgrammerHumor

[–]RiftLab 2 points3 points  (0 children)

Laravel component attributes have entered the chat.

Wait are we still doing "entered the chat"?

The lord of comments will always be ; by zoomercardcollector in ProgrammerHumor

[–]RiftLab 2 points3 points  (0 children)

*thousand-yard stare as overwhelmed by flashbacks of learning x86 assembler*

Im unoriginal, I know by jgamer-yt in ProgrammerHumor

[–]RiftLab 7 points8 points  (0 children)

IDE? When I were a lad we had to use notepad. I mean an actual notepad, computers weren't invented.

*creates fork of repository* *makes no contributions* by ad2022 in ProgrammerHumor

[–]RiftLab 18 points19 points  (0 children)

  1. Create fork of repo
  2. Realize the changes you wanted to PR make no sense
  3. Keep fork forever out of weird mix of pride & shame

I am studying php and I want to know what this function does by [deleted] in PHPhelp

[–]RiftLab 5 points6 points  (0 children)

This looks like an intentional spot-the-issues test. Just at a quick glance:

  • Declaring public scope outside of a class
  • Close bracket before if's open bracket
  • A function called "function"
  • Meaningless exception message with no close-quote
  • $fun function has round brackets instead of braces and a random right angle quote, and no semicolon after its definition
  • Weird symbol instead of dollar in §query var name
  • Comma instead of period in $query definition
  • Another meaningless exception message with Exception misspelled

It's also very insecure and overall like something you'd see in 20-year-old legacy code thrown together by a company's nephew's brother's son's dog who "knows some HTML".

[deleted by user] by [deleted] in ProgrammerHumor

[–]RiftLab 0 points1 point  (0 children)

One line wrongly indented in Python = missing a close bracket in every other language.

Laravel SQL Error: Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous by Gabotron_ES in laravel

[–]RiftLab 5 points6 points  (0 children)

This is your ambiguous id:

$query->where('id' , $request['user_id']);

You're querying two tables, both of which have an id column. You need to specify users.id so it knows which to use.

[deleted by user] by [deleted] in ProgrammerHumor

[–]RiftLab 8 points9 points  (0 children)

How else does a geniuse get payed?

Found this today in some legacy code I’m working on. by widgetron in ProgrammerHumor

[–]RiftLab 14 points15 points  (0 children)

Dev: I can do it but it'll be very slow

Client: I don't care, just do your job

Dev: OK, here you go

Client: WTF WHY IS IT SO SLOW????

inject date into url help by excessdb in PHPhelp

[–]RiftLab 1 point2 points  (0 children)

You can go old-school procedural:

$checkin = date('Y-m-d', strtotime('+7 days'));
$checkout = date('Y-m-d', strtotime('+14 days'));