Sep. 14, 2024
A Tuya Homebridge plugin segítségével egyszerűen irányíthatod a Tuya Cloudhoz csatlakoztatott okoseszközöket a HomeKitben. Ez az útmutató bemutatja, hogyan kell konfigurálni a Tuya Homebridge plugint, hogy csatlakoztathasd az okoseszközöket a Homebridge-hez.
-
Menj a Tuya Fejlesztői Platformra és jelentkezz be: Tuya Developer Platform
-
Válaszd ki a Cloud > Development menüpontot.
-
Hozz létre egy új projektet: Create a New project
-
Engedélyezd az API szolgáltatásokat: Authorize API services
Aug. 1, 2024
Homebridge telepítése Dockerben egy Ubuntu rendszeren viszonylag egyszerű, és a Docker használata biztosítja, hogy a Homebridge elkülönített környezetben fusson, minimalizálva az Ubuntu rendszeren bekövetkező változásokat.
1. Előfeltételek
- Friss Ubuntu rendszer.
- Rendszergazdai jogosultságok a
sudo használatához.
- Telepített Docker.
2. Docker telepítése Ubuntu-ra
Ha a Docker még nincs telepítve az Ubuntu rendszeren, kövesd az alábbi lépéseket:
2.1 Docker telepítése
-
Rendszer frissítése:
sudo apt update
sudo apt upgrade
-
Szükséges csomagok telepítése:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
-
Docker GPG kulcs és repository hozzáadása:
Mar. 20, 2024
PDFgear - full-featured PDF management software
ImageOptim - reduce the file size of images without losing quality
Bitwarden - password manager
Pearcleaner - open-source mac app cleaner
Calibre - a powerful and easy to use e-book manager
Keka - advanced file archiver
NAPS2 - open-source scanning software
Transnomino - batch rename utility
Stats - system monitor in your menu bar
Hidden - show/hide menu bar items
MacMouseFix - app for 3rd party mouse
Jan. 12, 2024
A PrusaSlicer beállítása az Ender 3 V2-höz viszonylag egyszerű, és ezek a paraméterek egy jó alapot adnak. Az anyagtól függően finomhangolásra is szükség lehet, különösen a hőmérséklet és visszahúzás (retraction) beállításoknál.
Printer bed size:
- X: 220 mm
- Y: 220 mm
- Z: 250 mm
Extruder:
- Retraction 3mm
- Retraction speed: 60mm/s
Start G-code:
G90 ; use absolute coordinates
M83 ; extruder relative mode
M104 S[first_layer_temperature] ; set extruder temp
M140 S[first_layer_bed_temperature] ; set bed temp
M190 S[first_layer_bed_temperature] ; wait for bed temp
M109 S[first_layer_temperature] ; wait for extruder temp
G28 ; home all
M420 S1 Z2 ; Enable ABL using saved Mesh and Fade Height
;G29 ; ABL
G1 Z2 F240
G1 X3 Y10 F3000
G1 Z0.28 F240
G92 E0
G1 Y190 E15 F1500 ; intro line
G1 X3.3 F5000
G92 E0
G1 Y10 E15 F1200 ; intro line
G92 E0
End G-code:
{if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+2, max_print_height)} F600 ; Move print head up{endif}
G1 X5 Y{print_bed_max[1]*0.8} F{travel_speed*60} ; present print
{if max_layer_z < max_print_height-10}G1 Z{z_offset+min(max_layer_z+10, max_print_height-10)} F600 ; Move print head further up{endif}
M140 S0 ; turn off heatbed
M104 S0 ; turn off temperature
M107 ; turn off fan
M84 X Y E ; disable motors
Before layer change G-code
G92 E0
{if layer_num==1}M221 S95{endif}
Color change G-code
M600
Sep. 12, 2023
Egy makrós megoldás amely minden egyes sorhoz külön diagramot készít az Excelben.
Makró létrehozása:
-
Nyisd meg az Excel VBA szerkesztőt:
- Nyomd meg az
Alt + F11 billentyűkombinációt, hogy megnyisd a VBA szerkesztőt.
- Menj a Beszúrás (Insert) menübe, és válaszd az Új modul (Module) lehetőséget.
-
Illeszd be az alábbi kódot:
Sub DuplicateActiveChartOncePerRow()
If ActiveChart Is Nothing Then
MsgBox "Select a chart and try again!", vbExclamation + vbOKOnly
GoTo ExitSub
End If
Dim nCharts As Long
nCharts = ActiveSheet.ChartObjects.Count
Dim OriginalChart As Chart
Set OriginalChart = ActiveChart
' SERIES formula
Dim sFormula As String
sFormula = OriginalChart.SeriesCollection(1).Formula
' formula arguments only
sFormula = Mid$(Left$(sFormula, Len(sFormula) - 1), InStr(sFormula, "(") + 1)
' array of arguments
Dim vFormula As Variant
vFormula = Split(sFormula, ",")
' series name - first argument
Dim sName As String
sName = vFormula(LBound(vFormula))
Dim rName As Range
On Error Resume Next
Set rName = Range(sName)
On Error GoTo 0
Dim bNameIsRange As Boolean
bNameIsRange = Not rName Is Nothing
' y values - third argument
Dim sYVals As String
sYVals = vFormula(LBound(vFormula) + 2)
Dim rYVals As Range
On Error Resume Next
Set rYVals = Range(sYVals)
On Error GoTo 0
If rYVals Is Nothing Then
MsgBox "Y Values Are Not in a Range!", vbExclamation + vbOKOnly
GoTo ExitSub
End If
Dim iChart As Long
iChart = 1
Do
' loop until we run out of Y values
If WorksheetFunction.Count(rYVals.Offset(iChart)) = 0 Then
MsgBox "Finished!", vbExclamation + vbOKOnly
GoTo ExitSub
End If
' make copy of original chart
OriginalChart.Parent.Copy
Do
' loop to avoid error because sometimes clipboard isn't ready to paste
DoEvents
On Error Resume Next
ActiveSheet.Paste
On Error GoTo 0
If ActiveSheet.ChartObjects.Count >= nCharts + iChart Then Exit Do
Loop
Dim NewChart As Chart
Set NewChart = ActiveSheet.ChartObjects(ActiveSheet.ChartObjects.Count).Chart
NewChart.Parent.Left = OriginalChart.Parent.Left
NewChart.Parent.Top = OriginalChart.Parent.Top + iChart * rYVals.Height
' change Y values and name in new chart
With NewChart.SeriesCollection(1)
.Values = rYVals.Offset(iChart)
If bNameIsRange Then
.Name = "=" & rName.Offset(iChart).Address(, , , True)
End If
End With
iChart = iChart + 1
Loop
ExitSub:
End Sub
- Makró futtatása:
- Térj vissza az Excel munkafüzetedhez, majd nyomd meg az
Alt + F8 billentyűkombinációt.
- Válaszd ki az előzőleg beírt makrót, majd kattints a Futtatás gombra.
Ez a makró végigmegy minden soron, és automatikusan létrehoz egy diagramot az adott sor adataiból.
Jul. 26, 2023
How to install Redis for Nextcloud on Ubuntu:
sudo apt install redis-server
sudo nano /etc/redis/redis.conf
Change bind 127.0.0.1 to bind 0.0.0.0
sudo service redis-server restart
sudo apt install php-redis
sudo systemctl status redis
Edit nextcloud’s config.php, and add:
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => 'true',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
'timeout' => 0.0,
),
Jun. 20, 2023
Az alábbi lépésről lépésre bemutatott tutorial segítségével telepíthetsz egy Nextcloud szervert egy Ubuntu alapú rendszeren, Nginx webszerver használatával.
1. Szükséges csomagok telepítése
Győződj meg róla, hogy a rendszered naprakész, és van hozzáférésed egy terminálhoz.
-
Frissítsd a rendszert és telepítsd a szükséges csomagokat:
sudo apt update && sudo apt upgrade -y
sudo apt install nginx mariadb-server php-fpm unzip curl -y
-
Engedélyezd az Nginx automatikus indítását:
sudo systemctl enable nginx
sudo systemctl start nginx
2. MariaDB telepítése és konfigurálása
A Nextcloud működéséhez szükség van egy adatbázisra. Ehhez MariaDB-t fogunk használni.
Mar. 15, 2023
Open Windows PowerShell in Administrator Mode and paste:
$mode = Read-host "How do you like your mouse scroll (0 or 1)?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" }
It will ask how do you like your mouse to scroll.
0 - Move up so you see contents below (Default Mode, Windows behavior)
1 - Move down so you can see contents above (Natural Mode, Mac behavior, reverse mode)