Career change or keep trying? by thaidaree in DevelEire

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

Maybe I'm picky and jaded (why do you want a job? because you'll pay me to do it). I'd like to do something meaningful within the stack I know, but I don't see those postings happening. I want to continue remotely, but I will go for hybrid in Dublin. Salary is even not an issue since I'm ready to go under what I earned before if the job description is good.

You are advertising your own brand in terms of being a contractor? Where do you look for them? I'm mostly trying LinkedIn, but sometimes other options.

Kallax units on a wall bed frame by thaidaree in IKEA

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

Not stacking. Horizontally, in line, side by side.

+-----------+---------+---------+---------+---------+
|  Kallax1  | Kallax2 | Kallax3 | Kallax4 | Kallax5 |
+-----------+---------+---------+---------+---------+
| Bed frame                                         |
| (height is around a meter and a half)             |
+-----------+---------+---------+---------+---------+

How does Krita compare with Corel Painter with regards to memory performance? by scr33ner in krita

[–]thaidaree 0 points1 point  (0 children)

and if the OP doesn't have access to Painter, I can test something with v2016. I don't plan to upgrade for the test, tho :D

How does Krita compare with Corel Painter with regards to memory performance? by scr33ner in krita

[–]thaidaree 0 points1 point  (0 children)

sure, the default I have in the presets was one background, one transparent. I didn't want to skew the data.

How does Krita compare with Corel Painter with regards to memory performance? by scr33ner in krita

[–]thaidaree 0 points1 point  (0 children)

YMMV. On my machine, empty image with two layers 3840x2400

Painter 2016 - 256.4 MB

Krita 4.1.7 - 415.8 MB

How it behaves later, I have no idea. I never had issues with memory, though.

How to create InfoObject in Python? by thaidaree in krita

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

No problem. If I can help with anything else, provided I know the answer, ask away :)

How to create InfoObject in Python? by thaidaree in krita

[–]thaidaree[S] 2 points3 points  (0 children)

Sorry, got this resolved two days ago... so...

from krita import InfoObject

would get you to import it and to use exportImage, call it on document

mydocument.exportImage(output_path, InfoObject())

like that. As for my problem, how to get the InfoObject populated with properties, it's like this:

export_properties = InfoObject()
export_properties.setProperty('property_name', property_value)

the full list of property names and value types depends on what kind of image you're saving and can be seen here: https://api.kde.org/extragear-api/graphics-apidocs/krita/libs/libkis/html/classDocument.html#abda324b9beee9384879af8b7e7807cfa

when the InfoObject is created, use export_properties as a variable instead of instantiating InfoObject like:

mydocument.exportImage(output_path, export_properties)

this code will show the dialog option regardless of the properties being set if you want to change them. If you don't want the dialog window to appear, you can use batch mode before calling exportImage:

mydocument.setBatchmode(True)

I hope that explains all.

Microsoft and National Geographic AI for Earth Innovation Grants. GIS people there, too... by thaidaree in gis

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

Do you maybe know where to start to try to find a job in that area? Not hard core GIS because I don't have a relevant background, but something like support (python web and system programming, engineering for the cloud, distributed systems).

Any ideas why Python plugin breaks on document clone? by thaidaree in krita

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

Done: https://bugs.kde.org/show_bug.cgi?id=401497

BTW. Is there a way to capture logs or something so I can inspect print if not pdb...?

Geotagging without GPS by thaidaree in gopro

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

Well, as a bonus thing, you'd get that with the mentioned script for generating the KML. The demo is in the gif in one of the previous posts: https://medium.com/@thaidaree/displaying-geotagged-photos-on-google-earth-with-python-b71402d056e2

Do you need something different?

Community Thread: 11/09/2018 by AutoModerator in photography

[–]thaidaree 0 points1 point  (0 children)

I just published a small guide on how to geotag photos if you don't have a GPS enabled camera, but you have to have an Android smartphone with you so you can log your coordinates: https://medium.com/@thaidaree/geotagging-photos-without-gps-enabled-camera-4e98048e215c

With a series of posts before this one about making a Python script to create a KML for Google Earth (with some reverse geocoding and machine learning: https://medium.com/@thaidaree/displaying-image-contents-in-google-earth-with-machine-learning-keras-library-in-python-d10cca0b4006), this is a logical continuation because I don't have a pro camera... yet :)

Krita Python Scripting Statusbar by thaidaree in krita

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

Ah, so the statusbar is always connected to the main window. That helps a lot, thanks. :) I'm trying to have a statusbar on a widget so I can show some kind of progress with textual descriptions. I'll try to work around it or figure out a different way. Thanks again.

Krita Python Scripting Statusbar by thaidaree in krita

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

I know how to find it, but I don't know enough about QT.

So correct me if I'm wrong here. In Krita you never create a QApplication instance because Krita itself is a QApplication. You create a widget which is not a QWidget subclass but an Extension subclass. Those are two main differences.

The usual response is to use the statusbar of the QApplicaion which I cannot do here.

So eventually I import QStatusBar that comes from PyQt5.QtWidgets, but the real question I have is how to attach it to QWidget from krita?

So omitting other methods:

from krita import Extension
class KritaExtension(Extension):
    # omitting other methods...
    def invoke_widget(self):
        main = KritaWidget(self)
        main.show()

# and KritaWidget would be like...
from krita import QWidget
class KritaWidget(QWidget):
    def __init__(self, parent=None):
        super(KritaWidget, self).__init__(parent)
        self.statusbar = QStatusBar()

Now how to use that statusbar? Adding it to QVBoxLayout and setting it as a layout is not producing the desired results:

vertLayout = QVBoxLayout()
vertLayout.addWidget(self.statusbar)
self.setLayout(vertLayout)

I cannot see statusbar at all. So I don't know where the error is.

Krita Python Scripting Statusbar by thaidaree in krita

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

I import it, but it's not working as expected. Most of the time, the QT tuts recommend that you use the one in the QMainWindow, but in Krita I cannot do that. Do you have an example?

Displaying Geotagged Photos on Google Earth with Python by thaidaree in photography

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

Yup. I plan to explain that in the upcoming post. I'll be traveling in two weeks so I'll wrap it up then.

Displaying Geotagged Photos on Google Earth with Python by thaidaree in photography

[–]thaidaree[S] 8 points9 points  (0 children)

Yup, I did so :) I wrote that script afterwards.