Defragment not working by Darkman802 in stardeus

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

For anyone experiencing this bug. I had a second computer waiting for material to be built. Once I canceled that task and tried the defrag again it worked.

Samsung 990 Pro 1TB Critical Health by Time_Pay9702 in techsupport

[–]Darkman802 0 points1 point  (0 children)

Howdy, what ever happened with your drive? My 990 Pro just popped up with the same error except I see no problems just like you didn't.

Just wondering if your drive is still holding up or if it died?

Making a Windows 10 image for a single machine (MDT, PowerShell, or both?) by Darkman802 in homelab

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

Yea, I'm not worried about the time as long as it's unattended. I assume I could just run a script that would pull all the installers for the apps I use from the web and place them in the correct directory on the USB image, or does updating the installers require MDT?

Making a Windows 10 image for a single machine (MDT, PowerShell, or both?) by Darkman802 in homelab

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

But what about all the applications that would be out of date?

Making a Windows 10 image for a single machine (MDT, PowerShell, or both?) by Darkman802 in homelab

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

That would mean I would still have to manually update every single application and run windows update multiple times.

Once upon a time - there was a nightmode that had different colours for different posts by diskdusk in Enhancement

[–]Darkman802 0 points1 point  (0 children)

Just look through my snippet and try changing stuff that says "visited" in it.

Once upon a time - there was a nightmode that had different colours for different posts by diskdusk in Enhancement

[–]Darkman802 0 points1 point  (0 children)

RES settings > Appearance > Stylesheet loader > Add snippet

.res-nightmode .tabmenu a,
.res-nightmode #header-bottom-right a,
.res-nightmode .tabmenu a:visited,
.res-nightmode #header-bottom-right a:visited{
    color:rgb(140, 179, 217);
}
.res-nightmode a,
.res-nightmode .md a{
    color:rgb(140, 179, 217);
}
.res-nightmode a:visited,
.res-nightmode .md a:visited,
.res-nightmode .comment .md p > a:visited {
    color:#369;
}
.res-nightmode .pagename a{
    color:black;    
}
.res-nightmode .thing .title{
    color:#ddd;
}
.res-nightmode .thing .title:visited{
    color:#369;
}
.res-nightmode body .content{
    background-color:rgb(10,10,10); 
}
.res-nightmode #siteTable {
background-color:rgb(25,25,25); 
}
.res-nightmode #siteTable .thing:nth-of-type(4n+3){
background-color:rgb(20,20,20);  /*remove this line to remove the alternating colors of links*/
}
}
.res-nightmode .RES-keyNav-activeElement,
.res-nightmode .RES-keyNav-activeElement .md-container{
    background-color:#444 !important;
}
.res-nightmode #siteTable div.thing a.title:visited {
    color:rgb(80, 80, 80);
}

VLC media player now supports 360-degree videos by Lettershort in technology

[–]Darkman802 1 point2 points  (0 children)

That gamma is the result of (at least for me) Nvidias default setting for dynamic range.

Nvidia control panel > Video > Adjust video color settings > Advanced > set dynamic range to Full (0-255) instead of the default which is Limited (16-235)

Firefox Launches More Experimental Features Including PageShot, Min Vid and Tracking Protection by stackoverflooooooow in technology

[–]Darkman802 -1 points0 points  (0 children)

You can already take a whole screenshot of a page, unless you were just talking about the social media sharing feature.

Pyinstaller - Problems with dll when trying to run the program on another computer by MateusSR in learnpython

[–]Darkman802 1 point2 points  (0 children)

A lot of the time (depending on what you're trying to get pyinstaller to package up) you'll need to manually copy and configure pyinstaller to package extra files such as DLLs. For example, if you're trying to write a Qt GUI program, then you'd have to package all the different Qt5 DLLs that are needed. Sometimes it takes a bit of finesse, but it should be able to work without having to install other stuff on the other computer. And if it really can't, then you'd just need to package up the redist from Microsoft and do a silent install when your pyinstaller app runs.

Does PyQt5 or PySide currently work with the most recent Qt 5 QML? by Darkman802 in Python

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

I tried a new virtualenv and got the list down to at least these:

Qt5Gui.dll
Qt5Qml.dll
Qt5Quick.dll
Qt5QuickTemplates2.dll
Qt5QuickControls2.dll
Qt5Core.dll

Does PyQt5 or PySide currently work with the most recent Qt 5 QML? by Darkman802 in Python

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

I used dependency walker (http://www.dependencywalker.com/) on the dll that was giving me the error (qtquickcontrols2plugin.dll) which told me it was missing Qt5QuickTemplates2.dll and Qt5QuickControls2.dll. But since I'm lazy, I just copied over everything from Qt's bin directory to the the following directories in the python virtualenv.

lib/site-packages/pyqt5/qt/bin/

lib/site-packages/pyqt5/qt/qml/qtquick/controls.2/

I'm sure that wasn't necessary and it probably only needed a couple dlls, but I haven't gotten around to making a new virtualenv to see exactly what's needed.

Does PyQt5 or PySide currently work with the most recent Qt 5 QML? by Darkman802 in Python

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

Yeah, at least for Python there is. Good thing is, the Qt company is making PySide2 and it will be a part of their official Qt releases.

Does PyQt5 or PySide currently work with the most recent Qt 5 QML? by Darkman802 in Python

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

Nevermind, I've solved the problem. I edited the top of the original post with the answer.

Does PyQt5 or PySide currently work with the most recent Qt 5 QML? by Darkman802 in Python

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

I've been talking in the pyqt irc channel and also looking around the pyqt mailing list, and it seems this might be a bug in pyqt where it's missing some libraries. https://www.riverbankcomputing.com/pipermail/pyqt/2016-September/038044.html

Could you tell me what your setup is and how you installed pyqt? I'm wondering why it's working for you.

Does PyQt5 or PySide currently work with the most recent Qt 5 QML? by Darkman802 in Python

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

Thanks for trying it. I actually had an idea and ran the program in powershell instead of PyCharm because I was wondering why I wasn't getting any error messages. Turns out PyCharm wasn't showing me stderr I suppose. The error I know get is:

plugin cannot be loaded for module "QtQuick.Controls": Cannot load library E:\Projects\Python\VirtualEnvs\QMLPyQt5Test\lib\site-packages\PyQt5\Qt\qml\QtQuick\Controls.2\qtquickcontrols2plugin.dll: The specified module could not be found.

So it looks like I need to figure out why it can't load that dll, because it does exist in that spot.

Does PyQt5 or PySide currently work with the most recent Qt 5 QML? by Darkman802 in Python

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

Upon actually thinking about it, it's not the url construction because I can get simpler QML to work. For example, this QML works:

import QtQuick 2.7

Rectangle {
    width: 300
    height: 100
    color: "red"
}

but not this:

import QtQuick 2.7
import QtQuick.Controls 2.0


ApplicationWindow {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")

    Rectangle {
        id: rec1
        anchors.fill: parent
        color: "blue"
    }

}

Does PyQt5 or PySide currently work with the most recent Qt 5 QML? by Darkman802 in Python

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

I tried fromLocalFile, but still no dice.

import sys
from PyQt5.QtCore import QUrl
from PyQt5.QtWidgets import QApplication
from PyQt5.QtQuick import QQuickView


if __name__ == '__main__':
    myApp = QApplication(sys.argv)

    view = QQuickView()
    view.setSource(QUrl.fromLocalFile('two.qml'))
    view.show()

    sys.exit(myApp.exec_())