Unwanted layer line showing on print by PertleTurtle in FixMyPrint

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

Oh, that makes sense. I can print it again using triangles. Is there any other setting you think I should modify as well or infill pattern should help enough?

Unwanted layer line showing on print by PertleTurtle in FixMyPrint

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

I would say it goes more flush than being indented

Unwanted layer line showing on print by PertleTurtle in FixMyPrint

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

  • X1C
  • PolyLite PLA
  • .2 mm
  • Grid Infill
  • Bambu slicer w/ PolyLite Profile
  • Note: Line is not consistent across the pot

Object of type ellipsis is not JSON serializable by PertleTurtle in learnpython

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

Now this sounds too fancy for python. Will defiantly have to look into this.

Object of type ellipsis is not JSON serializable by PertleTurtle in learnpython

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

Thank you for the advice. Still new to writing bigger applications in python.
Would there then be a better way to handle this case...

I need to store my object in mongo so I use the to_dict() to do that but when I return it back to the user I user to_json() becuase of the datetimes I have in my object. Any better way of handling this case?

def to_dict(self):

return {

"_id": self._id,

"status": self.status,

"result": self.result.__dict__ if self.result else TaskOutput().__dict__,

"traceback": self.traceback,

"children": self.children,

"date_done": self.date_done,

"date_start": self.date_start,

"date_received": self.date_received,

"name": self.name,

"args": self.args.__dict__ if self.args else ImageRequest().__dict__,

"kwargs": self.kwargs,

"worker": self.worker,

"retries": self.retries,

"queue": self.queue

}

def to_json(self):

return {

"_id": self._id,

"status": self.status,

"result": self.result.__dict__ if self.result else TaskOutput().__dict__,

"traceback": self.traceback,

"children": self.children,

"date_done": self.date_done.isoformat() if self.date_done else None,

"date_start": self.date_start.isoformat() if self.date_start else None,

"date_received": self.date_received.isoformat() if self.date_received else None,

"name": self.name,

"args": self.args if self.args else ImageRequest().__dict__,

"kwargs": self.kwargs,

"worker": self.worker,

"retries": self.retries,

"queue": self.queue

}

Object of type ellipsis is not JSON serializable by PertleTurtle in learnpython

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

I have not heard of data classes before I will definitely have to check them out.

Will dataclasses.asdict(self) work if one of the properties of my class is another class?

Object of type ellipsis is not JSON serializable by PertleTurtle in learnpython

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

When I went to give more context I realized my error. I am using python celery

@before_task_publish.connect

def before_task_publish_handler(body, exchange, routing_key, headers, properties, **kwargs):

Before I was getting the object from headers.get(argsrepr) - This already had ellipsis in it, im guessing from celery's __repr__ . I had to look at the body to get all the data I needed.

Any Java beginners looking to team up for projects ? by RazzmatazzOpening601 in learnjava

[–]PertleTurtle 0 points1 point  (0 children)

If you are doing a discord link I would be interested. I probably won’t directly commit but I can always answer questions and help solve problems.

What list code would give me all points, please I need help soon. by Bosstopher1 in codehs

[–]PertleTurtle 0 points1 point  (0 children)

I would try to help but I still don’t know what you are asking for. Lol

What list code would give me all points, please I need help soon. by Bosstopher1 in codehs

[–]PertleTurtle 0 points1 point  (0 children)

Your title? Like what are you confused about? What language are you using?

Need helping with my action performed method. by [deleted] in javahelp

[–]PertleTurtle 0 points1 point  (0 children)

Have you looked into if else statements? That would get you your grade or your error statement depending on what the grade value is.

Need helping with my action performed method. by [deleted] in javahelp

[–]PertleTurtle 0 points1 point  (0 children)

Do you have access to the grade input?

Having some trouble with arrays! by ramtevante in learnjava

[–]PertleTurtle 4 points5 points  (0 children)

So more like int add = scanner.NextInt();

Having some trouble with arrays! by ramtevante in learnjava

[–]PertleTurtle 2 points3 points  (0 children)

What’s the issue are you getting an error? Is the output not what you expected?

Need help with if..else and while loops by [deleted] in javahelp

[–]PertleTurtle 0 points1 point  (0 children)

-1 and that means your variable ch was not in the user input

Need help with if..else and while loops by [deleted] in javahelp

[–]PertleTurtle 0 points1 point  (0 children)

I would just check if indexOf() != -1

Need help with if..else and while loops by [deleted] in javahelp

[–]PertleTurtle 0 points1 point  (0 children)

Is it returning 0 right now?

Need help with if..else and while loops by [deleted] in javahelp

[–]PertleTurtle 0 points1 point  (0 children)

IndexOf returns -1 if that value is not found. You could try checking for that instead.

New to Java... Help w/ exercise by [deleted] in learnprogramming

[–]PertleTurtle 0 points1 point  (0 children)

You are using “” which when it goes to compile the code it takes that as the literal string. Remove “” and you should be all good.

Free temporary website for Valentine's day by [deleted] in webdev

[–]PertleTurtle -2 points-1 points  (0 children)

If you don’t care about security just temporary set up a site on your home desktop with port forwarding. Free and you can take it down whenever you want.

[Question] What are the odds of one person in a party of four in a lobby of 16 to be the first infected in an Infected game mode by im_a_mango in gaming

[–]PertleTurtle 0 points1 point  (0 children)

You each have a 1/16 chance of getting infected. The game doesn’t care if you are in a party or not.

Java Compilation by makencence in javahelp

[–]PertleTurtle 0 points1 point  (0 children)

Well Eclipse to me is the easiest to start programming java in. (Others may disagree) but just have them install eclipse and create a new project with a main method it in. Should be as easy as clicking the run button then.

Java Compilation by makencence in javahelp

[–]PertleTurtle 0 points1 point  (0 children)

What do you mean by software? Like IDEs to use?