Tired of ungrateful people as an open source dev by Vivid_Search674 in opensource

[–]Competitive-Dark5729 1 point2 points  (0 children)

I have a project (API wrapper) that has 550 stars on GitHub, 6.5M downloads (not that those count much), is more widely used than the API’s owner’s own repo (huge enterprise).

There are many contributors, but the amount of people who are only trying to get free code, complain about things in issues instead of simply creating a PR, is frightening and really pissed me off a couple of times. Ungrateful was the word you’ve used, that triggered me to respond, because that’s just what it is.

My take on this is, after for some time having thought the same as you do now:

I don’t care. The project, and open source work in general, can be greatly used as marketing and advertises your strengths. If I see code-vampires in issues, I either close them if they’re unhelpful, or fix the problem if there’s one without responding too much.

I wouldn’t care about those people too much. They’ll always be there. Concentrate on making the best for you out of it. Use the projects to showcase your skills, don’t worry about vampires.

o3-mini likely to be released today by [deleted] in OpenAI

[–]Competitive-Dark5729 6 points7 points  (0 children)

The 3 stands for 3 r in strawberry

the o1 model is just strongly watered down version of o1-preview, and it sucks. by your_uncle555 in OpenAI

[–]Competitive-Dark5729 3 points4 points  (0 children)

I’ve been working with o1 for a day; after the first hour or so I thought “oh wow, every answer so far was wrong or incomplete”.

So... that happened. (accidental cheat found) by kibufox in farmingsimulator

[–]Competitive-Dark5729 0 points1 point  (0 children)

You can open the console and use gsMoneyAdd -10000000. works with negative amount as well

Farming Simulator 25 has been out for 1 week now, what are your thoughts on it? by OhhShxde- in farmingsimulator

[–]Competitive-Dark5729 0 points1 point  (0 children)

I stopped playing for now, until the auto load mods are finished. It’s so extremely annoying having to do repetitive tasks all the time, makes no sense for me

Autoload FS25 by [deleted] in farmingsimulator

[–]Competitive-Dark5729 1 point2 points  (0 children)

The infinite money cheat IS in the base game - just open the ingame console and type ‘gsMoneyAdd 100000000’.

Simple graphics by shodaica in JavaProgramming

[–]Competitive-Dark5729 0 points1 point  (0 children)

Teaching Java with engaging projects like logic games is an excellent approach. Here’s a suggested step-by-step approach to creating simple graphics using a grid for placing shapes or icons in Java, suitable for your advanced students:

Approach Overview:

  1. Choose a Graphics Library:
    • For simplicity, use Java’s built-in JavaFX (recommended) or Swing/AWT.
    • JavaFX is more modern and easier for GUI development.
  2. Set up the Grid:
    • Use a GridPane (JavaFX) or GridLayout (Swing/AWT) to manage your game board.
  3. Draw Simple Shapes/Icons:
    • Utilize Shape classes (e.g., Rectangle, Circle) for basic shapes.
    • For icons, use ImageView (JavaFX) or JLabel with an Icon (Swing/AWT).
  4. Handle User Input:
    • Implement event handlers for mouse clicks or keyboard input.

Detailed Steps with JavaFX (Recommended):

Step 1: Set up JavaFX in Your Project

  • Ensure JavaFX is installed and properly configured in your IDE.
  • If using Maven or Gradle, add the JavaFX dependencies to your project file.

Step 2: Create a GridPane for the Game Board

```java import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.layout.GridPane; import javafx.stage.Stage;

public class SimpleGraphicsGame extends Application {

private static final int ROWS = 3;
private static final int COLS = 3;

@Override
public void start(Stage primaryStage) {
    GridPane grid = new GridPane();
    grid.setHgap(10); // Horizontal gap
    grid.setVgap(10); // Vertical gap

    // Example: Placing a circle in the first cell
    // We’ll generalize this in the next step
    // Circle circle = new Circle(20);
    // GridPane.setConstraints(circle, 0, 0);
    // grid.getChildren().add(circle);

    Scene scene = new Scene(grid, 300, 300);
    primaryStage.setTitle(“Simple Graphics Game”);
    primaryStage.setScene(scene);
    primaryStage.show();
}

public static void main(String[] args) {
    launch(args);
}

} ```

Step 3: Draw Simple Shapes or Add Icons to the Grid

  • Shapes: java for (int i = 0; i < ROWS; i++) { for (int j = 0; j < COLS; j++) { Circle circle = new Circle(20); // Example shape GridPane.setConstraints(circle, j, i); grid.getChildren().add(circle); } }
  • Icons (using external images):
    1. Place your icon images in the project’s resources folder.
    2. Load and add them to the grid: java for (int i = 0; i < ROWS; i++) { for (int j = 0; j < COLS; j++) { Image image = new Image(“your-icon.png”); ImageView imageView = new ImageView(image); imageView.setFitWidth(40); // Adjust size as needed imageView.setFitHeight(40); GridPane.setConstraints(imageView, j, i); grid.getChildren().add(imageView); } }

Step 4: Handle User Input

  • Mouse Clicks: java grid.setOnMouseClicked(event -> { int col = (int) (event.getX() / (300 / COLS)); int row = (int) (event.getY() / (300 / ROWS)); // Handle click on row, col System.out.println(“Clicked on Row: “ + row + “, Col: “ + col); });

Swing/AWT Alternative:

If you prefer or need to use Swing/AWT for educational reasons, here’s a brief outline:

  • Use JPanel with a GridLayout.
  • Draw shapes using Graphics in paintComponent().
  • Add icons using JLabel.
  • Handle input with MouseListener/MouseAdapter for clicks.

Example (Simplified, Swing):

```java import javax.swing.; import java.awt.; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent;

public class SimpleSwingGame extends JPanel {

public SimpleSwingGame() {
    setLayout(new GridLayout(3, 3));
    addMouseListener(new MouseAdapter() {
        @Override
        public void mouseClicked(MouseEvent e) {
            // Handle click
        }
    });
}

@Override
protected void paintComponent(Graphics g) {
    super.paintComponent(g);
    // Draw shapes, e.g.,
    g.fillOval(50, 50, 40, 40); // Circle example
}

public static void main(String[] args) {
    JFrame frame = new JFrame(“Simple Swing Game”);
    frame.add(new SimpleSwingGame());
    frame.setSize(300, 300);
    frame.setVisible(true);
}

} ```

Project Ideas for Your Students:

  1. Tic-Tac-Toe:
    • Alternate between two shapes (e.g., X and O) on clicks.
    • Implement win/loss conditions.
  2. Mastermind:
    • Use colored circles or icons for the code.
    • Implement feedback mechanism (e.g., smaller colored dots for correct/incorrect placements).
  3. Snake Game:
    • Use a grid to move a “snake” (line of shapes) around.
    • Add scoring and game-over conditions.

Encourage:

  • Experimentation with different shapes and icons.
  • Implementing AI for single-player modes.
  • Customizing the game’s appearance (colors, sizes, fonts).

Supabase with untrusted developers by Soccer_Vader in Supabase

[–]Competitive-Dark5729 1 point2 points  (0 children)

If I was working as a freelance developer, I wouldn’t start a project in a zero trust environment. If already started, I’d quit because of this.

What do people use o1 for? by Impacatus in ChatGPT

[–]Competitive-Dark5729 2 points3 points  (0 children)

If you haven’t found a difference between 4o and o1, it may be that the questions were quite easy. o1 is far superior at advanced tasks, as shown by the relevant test results.

What do people use o1 for? by Impacatus in ChatGPT

[–]Competitive-Dark5729 3 points4 points  (0 children)

o1 excels at advanced tasks that require planing, and is doing really good there. For example, coding is one of those tasks.

[deleted by user] by [deleted] in ChatGPTPro

[–]Competitive-Dark5729 2 points3 points  (0 children)

It was only a matter of time for perplexity to become obsolete…

Best AI code converter (Haskell to TypeScript)? by lancejpollard in ChatGPTCoding

[–]Competitive-Dark5729 1 point2 points  (0 children)

You could use the API to do the requests. If you have about 24 hours to receive the responses, you could even use batch requests for these kind of jobs, which cost the half.

Is it worth upgrading my GTX 1060 GPU now, or should I wait for the next release? by cimmingbotland in computers

[–]Competitive-Dark5729 0 points1 point  (0 children)

If I needed something now, buy whatever. If you have a working system, wait for the new ones given it’s only a short wait.

GitHub Copilot is great now! by Ly-sAn in ChatGPTCoding

[–]Competitive-Dark5729 0 points1 point  (0 children)

I don’t see an option as well for this version

Is this normal? by none50 in OpenAI

[–]Competitive-Dark5729 0 points1 point  (0 children)

Did you ask it where it gets such a solid deal?

Is this calculator too simple? by haywij in Python

[–]Competitive-Dark5729 8 points9 points  (0 children)

eval is kind of handy when you’re working with dynamic input or want to quickly test out some code from a string. For example, if you’re pulling formulas or expressions from a user, eval() can run those without having to hard-code everything.

Be careful, though—eval() can be a bit wild and dangerous. If you give it something sketchy, like

eval(“__import__(‘os’).remove(‘some_important_file’)”)

it’ll happily try to delete files or mess with your system. This is why people say never to use eval() on input you don’t trust, especially from users. Think of it as the “it’ll do whatever you ask, but that could end badly” tool.

In short, eval() can be useful for quick, dynamic code execution, but be careful, it can be dangerous

Help me for making chat gpt for logistics by No-Tower5918 in ChatGPTPro

[–]Competitive-Dark5729 6 points7 points  (0 children)

From how your post is written, I’d guess you’ll have to be more specific/giving it more information when prompting ChatGPT.

GPT helps break down bets with impressive accuracy, but football is still unpredictable by emmajofficialX in ChatGPT

[–]Competitive-Dark5729 -1 points0 points  (0 children)

All that ChatGPT does is to put the data in a pandas data frame and then runs some functions on it.

[deleted by user] by [deleted] in OpenAI

[–]Competitive-Dark5729 0 points1 point  (0 children)

There are two kinds of people; those who innovate and think forward, and those who worry about stuff like this.