There's script for update OwnCloud by Updater.
https://doc.owncloud.org/server/10.4/admin_manual/maintenance/update.html#setting-permissions-for-updating
But OwnCloud recommend Strong permissions after update.
https://doc.owncloud.org/server/10.4/admin_manual/installation/installation_wizard.html#setting-strong-directory-permissions
This Script prevent upgrading OwnCloud.
2020年4月30日木曜日
2020年4月17日金曜日
Use XSL as Model of MVC
This is a sample of xslt which transform xml to sql.
I confirmed its result by using this link
https://www.freeformatter.com/xsl-transformer.html#ad-output
XSL having basic function and selection method of XPath.
It is possible to build Logic of Translation from GUI values to SQL.
Followings are the example.
XML
<Models>
<model_1>
<table>TBL_SAMPLE</table>
<param_1>101</param_1>
<param_2>102</param_2>
</model_1>
</Models>
XSL
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="text" doctype-public="XSLT-compat" omit-xml-declaration="yes" encoding="UTF-8" indent="yes" />
<xsl:template match="//model_1">
SELECT *
FROM <xsl:value-of select="table" />
WHERE p1 = <xsl:value-of select="param_1" />
AND p2 = '<xsl:value-of select="param_2" />'
</xsl:template>
</xsl:transform>
Result
SELECT * FROM TBL_SAMPLE WHERE p1 = 101 AND p2 = '102'
I confirmed its result by using this link
https://www.freeformatter.com/xsl-transformer.html#ad-output
XSL having basic function and selection method of XPath.
It is possible to build Logic of Translation from GUI values to SQL.
Followings are the example.
XML
<Models>
<model_1>
<table>TBL_SAMPLE</table>
<param_1>101</param_1>
<param_2>102</param_2>
</model_1>
</Models>
XSL
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="text" doctype-public="XSLT-compat" omit-xml-declaration="yes" encoding="UTF-8" indent="yes" />
<xsl:template match="//model_1">
SELECT *
FROM <xsl:value-of select="table" />
WHERE p1 = <xsl:value-of select="param_1" />
AND p2 = '<xsl:value-of select="param_2" />'
</xsl:template>
</xsl:transform>
Result
SELECT * FROM TBL_SAMPLE WHERE p1 = 101 AND p2 = '102'
2020年4月6日月曜日
Duet Maestro Firmware 2.0 to 3.0 settings changes and Precision Piezo Orion settings
;EndStops
2.0
M574 X2 Y2 Z2 S1 ; set active high endstops
3.0
; Endstops
;M574 X2 Y2 Z2 S1 ; set active high endstops
M574 X2 S1 P"xstop" ; X min active high endstop switch
M574 Y2 S1 P"ystop" ; Y min active high endstop switch
M574 Z2 S1 P"zstop" ; Z min active high endstop switch
; Z-Probe
2.0
M558 P5 I1 H5 R0.4 F300 X0 Y0 Z0 T10000 ; set Z probe type to switch and the dive height + speeds
3.0
M558 P5 I1 H5 R0.4 F300 X0 Y0 Z0 T10000 C"^zprobe.in" ; Piezo connected to Z probe IN pin, free up MOD pin
G31 X0 Y0 Z-0.1 P100 ; set Z probe trigger value, offset and trigger height
M557 R140 S20 ; define mesh grid
; Heaters
2.0
; Heaters
M305 P0 T100000 B4138 R2200 ; set thermistor + ADC parameters for heater 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M305 P1 T100000 B4138 R2200 ; set thermistor + ADC parameters for heater 1
M143 H1 S280 ; set temperature limit for heater 1 to 280C
M308 S1 P"e0_temp" Y"thermistor" T100000 B3950 C7.06e-8 ; define E0 temperature sensor
M950 H0 C"bed_heat" T0 ; heater 0 uses the bed_heat pin, sensor 0
M950 H1 C"e0_heat" T1 ; heater 1 uses the e0_heat pin and sensor 1
2.0
M574 X2 Y2 Z2 S1 ; set active high endstops
3.0
; Endstops
;M574 X2 Y2 Z2 S1 ; set active high endstops
M574 X2 S1 P"xstop" ; X min active high endstop switch
M574 Y2 S1 P"ystop" ; Y min active high endstop switch
M574 Z2 S1 P"zstop" ; Z min active high endstop switch
; Z-Probe
2.0
M558 P5 I1 H5 R0.4 F300 X0 Y0 Z0 T10000 ; set Z probe type to switch and the dive height + speeds
3.0
M558 P5 I1 H5 R0.4 F300 X0 Y0 Z0 T10000 C"^zprobe.in" ; Piezo connected to Z probe IN pin, free up MOD pin
G31 X0 Y0 Z-0.1 P100 ; set Z probe trigger value, offset and trigger height
M557 R140 S20 ; define mesh grid
; Heaters
2.0
; Heaters
M305 P0 T100000 B4138 R2200 ; set thermistor + ADC parameters for heater 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M305 P1 T100000 B4138 R2200 ; set thermistor + ADC parameters for heater 1
M143 H1 S280 ; set temperature limit for heater 1 to 280C
3.0
M308 S0 P"bed_temp" Y"thermistor" T100000 B4607 ; define bed temperature sensorM308 S1 P"e0_temp" Y"thermistor" T100000 B3950 C7.06e-8 ; define E0 temperature sensor
M950 H0 C"bed_heat" T0 ; heater 0 uses the bed_heat pin, sensor 0
M950 H1 C"e0_heat" T1 ; heater 1 uses the e0_heat pin and sensor 1
登録:
投稿 (Atom)
-
https://social.msdn.microsoft.com/Forums/vstudio/en-US/f0502813-9c4f-4b45-bab8-91f98971e407/popup-popupstaysopen-togglebutton-and-data-bindi...
-
どうも書かなくてはならないネタが出来てしまった。 マルチスレッドには欠かせないSleep(0)についてだ。 自分はSleep(0)を多用していた。 MSDNの記述 によると 「中断時間として 0ms を指定してこの関数を呼び出すと、現在のスレッドは自らに割り当てられている...