utf8mb4 utf8
USING BTREE
บล็อคของนายปองพล ธรรมคง โรงพยาบาลส่งเสริมสุขภาพตำบลหนองหัวช้าง อำเภอกันทรารมย์ จังหวัดศรีสะเกษ .........งานเทคโนโลยีสารสนเทศ (IT) สสอ.กันทรารมย์ จ.ศรีสะเกษ
หนัง
วันพฤหัสบดีที่ 21 กุมภาพันธ์ พ.ศ. 2562
วันจันทร์ที่ 18 กุมภาพันธ์ พ.ศ. 2562
crontab
#20130816
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --rep$
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --rep$
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --rep$
0 16 * * 0-6 root /var/jhcis/mysql-backup-jhcisdb.sh >/dev/null 2>&1
0 0-23 * * 0-6 root /var/jepidem/runjepidem.sh >/dev/null 2>&1
0 0-23 * * 0-6 root /var/jxp18/runjxp18.sh >/dev/null 2>&1
0 5,13,23 * * 0-6 root /var/jautoup/runjauto.sh >/dev/null 2>&1
#end
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --rep$
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --rep$
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --rep$
0 16 * * 0-6 root /var/jhcis/mysql-backup-jhcisdb.sh >/dev/null 2>&1
0 0-23 * * 0-6 root /var/jepidem/runjepidem.sh >/dev/null 2>&1
0 0-23 * * 0-6 root /var/jxp18/runjxp18.sh >/dev/null 2>&1
0 5,13,23 * * 0-6 root /var/jautoup/runjauto.sh >/dev/null 2>&1
#end
วันศุกร์ที่ 15 กุมภาพันธ์ พ.ศ. 2562
วันจันทร์ที่ 11 กุมภาพันธ์ พ.ศ. 2562
วันพฤหัสบดีที่ 7 กุมภาพันธ์ พ.ศ. 2562
เรียงบ้านเลขที่ บลท.
access แบบสอบถาม
ORDER BY Val([house].[villcode]), Val([house].[hno])+1000, IIf(Len([house].[hno])-Len(Val([house].[hno]))=0,0,Right([house].[hno],Len([house].[hno])-Len(Val([house].[hno]))-1))+100;
excel สูตร
=IF(ISERROR(FIND("/",B3)),B3*1,LEFT(B3,FIND("/",B3)-1)+RIGHT(B3,LEN(B3)-FIND("/",B3))/1000)
Visual basic - VB - VBA
Public Function FormatAdr(Adr)
If IsNull([Adr]) Then
FormatAdr = "0000000"
ElseIf Not IsNumeric(Val(Adr)) Then
FormatAdr = Adr
Else
FormatAdr = Format(Val(Adr), "0000") & IIf(InStr(Adr, "/") = 0, Format(0, "000"), Format(Right(Adr, IIf(InStr(Adr, "/") = 0, 0, Len(Adr) - InStr(Adr, "/"))), "000"))
End If
End Function
mySQL query
ORDER BY house.villcode
,length(if(instr(hno,'/')>0,substring(hno,1,instr(hno,'/')-1),hno))
,if(instr(hno,'/')>0,substring(hno,1,instr(hno,'/')-1),hno)
,hno
ORDER BY
house.villcode,
length(if(instr(hno,'/')>0,substring(hno,1,instr(hno,'/')-1),hno)),
if(instr(hno,'/')>0,substring(hno,1,instr(hno,'/')-1),hno),
if(instr(hno,'/')>0,length(hno)-instr(hno,'/'),''),
if(instr(hno,'/')>0,right(hno,length(hno)-instr(hno,'/')),'')
เขียนโดย นายปองพล
ORDER BY Val([house].[villcode]), Val([house].[hno])+1000, IIf(Len([house].[hno])-Len(Val([house].[hno]))=0,0,Right([house].[hno],Len([house].[hno])-Len(Val([house].[hno]))-1))+100;
excel สูตร
=IF(ISERROR(FIND("/",B3)),B3*1,LEFT(B3,FIND("/",B3)-1)+RIGHT(B3,LEN(B3)-FIND("/",B3))/1000)
Visual basic - VB - VBA
Public Function FormatAdr(Adr)
If IsNull([Adr]) Then
FormatAdr = "0000000"
ElseIf Not IsNumeric(Val(Adr)) Then
FormatAdr = Adr
Else
FormatAdr = Format(Val(Adr), "0000") & IIf(InStr(Adr, "/") = 0, Format(0, "000"), Format(Right(Adr, IIf(InStr(Adr, "/") = 0, 0, Len(Adr) - InStr(Adr, "/"))), "000"))
End If
End Function
mySQL query
ORDER BY house.villcode
,length(if(instr(hno,'/')>0,substring(hno,1,instr(hno,'/')-1),hno))
,if(instr(hno,'/')>0,substring(hno,1,instr(hno,'/')-1),hno)
,hno
ORDER BY
house.villcode,
length(if(instr(hno,'/')>0,substring(hno,1,instr(hno,'/')-1),hno)),
if(instr(hno,'/')>0,substring(hno,1,instr(hno,'/')-1),hno),
if(instr(hno,'/')>0,length(hno)-instr(hno,'/'),''),
if(instr(hno,'/')>0,right(hno,length(hno)-instr(hno,'/')),'')
เขียนโดย นายปองพล
เปลี่ยนวันที่ให้บริการ
update visit INNER JOIN `__z001_1 query` ON visit.visitno = `__z001_1 query`.visitno
set visit.visitdate = `__z001_1 query`.visitdate
set visit.visitdate = `__z001_1 query`.visitdate
วันพุธที่ 6 กุมภาพันธ์ พ.ศ. 2562
คำนวนอายุ
access : age: Int(DateDiff("m",[Birth],Now())/12)
Int(DateDiff("m", [BirthDate], Now()) / 12) & " ปี " & (DateDiff("m", [BirthDate], Now()) Mod 12) & " เดือน"
Excel : =DATEDIF(A1,$B$1,"Y")&" ปี "&DATEDIF(A1,$B$1,"YM")&" เดือน "&DATEDIF(A1,$B$1,"MD")&" วัน"
รูปแบบเซลล์ [$-,107]d/mm/yyyy
หรือ dd/mm/bbbb
พิมพ์ พ.ศ. แล้วให้ excel แปลงค่าเป็น ค.ศ. นำไปคำนวน
=DATE(YEAR(A1)-543,MONTH(A1),DAY(A1))
Int(DateDiff("m", [BirthDate], Now()) / 12) & " ปี " & (DateDiff("m", [BirthDate], Now()) Mod 12) & " เดือน"
Excel : =DATEDIF(A1,$B$1,"Y")&" ปี "&DATEDIF(A1,$B$1,"YM")&" เดือน "&DATEDIF(A1,$B$1,"MD")&" วัน"
รูปแบบเซลล์ [$-,107]d/mm/yyyy
หรือ dd/mm/bbbb
พิมพ์ พ.ศ. แล้วให้ excel แปลงค่าเป็น ค.ศ. นำไปคำนวน
=DATE(YEAR(A1)-543,MONTH(A1),DAY(A1))
วันจันทร์ที่ 4 กุมภาพันธ์ พ.ศ. 2562
haguichi
sudo add-apt-repository -y ppa:webupd8team/haguichi
sudo apt update
sudo apt install -y haguichi
sudo apt update
sudo apt install -y haguichi
วันอาทิตย์ที่ 3 กุมภาพันธ์ พ.ศ. 2562
autoupdate
http://202.80.231.69/php5.zip
http://202.80.231.69/gisweb.zip
http://203.157.165.99/program/jautoup.deb
http://203.157.165.99/program/jxp18.deb
http://203.157.165.99/program/jepidem.deb
http://202.80.231.69/gisweb.zip
http://203.157.165.99/program/jautoup.deb
http://203.157.165.99/program/jxp18.deb
http://203.157.165.99/program/jepidem.deb
setting os4j network (ssko)
sudo su
123456
sudo passwd
123456
123456
(sudo apt-get install openssh-server)
sudo dpkg-reconfigure openssh-server
sudo nano /etc/ssh/sshd_config
#PermitRootLogin without-password
PermitRootLogin yes
ctrl+x
Y
sudo service ssh restart
sudo nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
reboot
check version
apche2 -vphp -v
mysql --version
java -version
javac -version
สมัครสมาชิก:
บทความ (Atom)