之前似乎也遇過,避免忘記MEMO一下。
撇除其他MIME、影片格式、靜音等問題後,用HTML5 video tag tag在WINDOWS瀏覽器沒問題,但在IOS系統上影片會無法撥放,查一下是得加上 playsinline 才可以正常撥放。
原因跟原理未知,之後有空研究再補說明吧(會有那天嗎XD
之前似乎也遇過,避免忘記MEMO一下。
撇除其他MIME、影片格式、靜音等問題後,用HTML5 video tag tag在WINDOWS瀏覽器沒問題,但在IOS系統上影片會無法撥放,查一下是得加上 playsinline 才可以正常撥放。
原因跟原理未知,之後有空研究再補說明吧(會有那天嗎XD
DBNull不等於空值所以要用DBNull去判斷,紀錄一下每次都忘記的DBNull判斷方式
If Not 欄位 Is DBNull.Value Then
-----
End If
If IsDBNull(欄位) Then
-----
End If
目前看到最方便的方法,感謝前人的教學,文章連結:
https://www.wfublog.com/2014/12/traditional-simplified-chinese-auto-switch.html
串接API時一直出現錯誤
基礎連接已關閉: 傳送時發生未預期的錯誤。
上網查找資料後應該是SSL的問題,總之就是串接方已經不接受TLS1.0的協定,所以要強制讓我方以TLS1.1或1.2
需.NET4.0以上,記得先Imports System.Net才能用參數
之後再整個Request前先加上
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
就可以解決了,未來會不會需要更新成更高或其他的協議就未知啦
Public Function TestRotate(sImageFilePath As String) As Boolean
Dim rft As RotateFlipType = RotateFlipType.RotateNoneFlipNone
Dim img As Bitmap = Image.FromFile(sImageFilePath)
Dim properties As PropertyItem() = img.PropertyItems
Dim bReturn As Boolean = False
For Each p As PropertyItem In properties
If p.Id = 274 Then
Dim orientation As Short = BitConverter.ToInt16(p.Value, 0)
Select Case orientation
Case 1
rft = RotateFlipType.RotateNoneFlipNone
Case 3
rft = RotateFlipType.Rotate180FlipNone
Case 6
rft = RotateFlipType.Rotate90FlipNone
Case 8
rft = RotateFlipType.Rotate270FlipNone
End Select
End If
Next
If rft <> RotateFlipType.RotateNoneFlipNone Then
img.RotateFlip(rft)
System.IO.File.Delete(sImageFilePath)
img.Save(sImageFilePath, System.Drawing.Imaging.ImageFormat.Jpeg)
bReturn = True
End If
Return bReturn
End Function
<system.web>
<httpRuntime maxRequestLength="102400" executionTimeout="600"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="104857600" />
</requestFiltering>
</security>
</system.webServer>
protected void Application_BeginRequest(object sender, EventArgs e)
{
HttpRuntimeSection section = (HttpRuntimeSection)ConfigurationManager.GetSection("system.web/httpRuntime");
int maxFileSize = section.MaxRequestLength * 1024;
if (Request.ContentLength > maxFileSize)
{
try
{
Response.Redirect("~/MySizeError.aspx");
}
catch (Exception ex)
{
}
}
}
%JAVA_HOME%\bin folder.C:\Program Files (x86)\Java\jdk1.7.0_55\bin).keytool -genkey -v -keystore c:\my-release-key.keystore -alias johnS -keyalg RSA -keysize 2048 -validity 10000
my-release-key.keystore and johnS with names that make sense to you.Enter keystore password: pwd123 Re-enter new password: pwd123 What is your first and last name? [Unknown]= John Smith What is the name of your organizational unit? [Unknown]= ABC What is the name of your organization? [Unknown]= XYZ What is the name of your of your City or Locality? [Unknown]= Redmond What is the name of your State or Province? [Unknown]= WA What is the two-letter country code for this unit? [Unknown]= US Is CN=John Smith, OU=ABC, O=XYZ, L=Redmond, ST=WA, C=US correct?? [no]= y
Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA)
with a validity of 10,000 days for: CN= John Smith, OU= ABC, O= XYZ,
L=Redmond, ST=WA, C=US
Enter key password for <johnS>
(RETURN if same as keystore password):
{
"android": {
"release": {
"keystore":"c:\\my-release-key.keystore",
"storePassword":"pwd123",
"alias":"johnS",
"password":"pwd123",
"keystoreType":""
}
}
}
之後打包後安裝就沒金鑰問題了。| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>CheckBox全選或全不選</title> <style type="text/css"> p {margin:0;font-size:12px;line-height:26px;} </style> <script type="text/javascript"> function check_all(obj,cName) { var checkboxs = document.getElementsByName(cName); for(var i=0;i<checkboxs.length;i++){checkboxs[i].checked = obj.checked;} } </script> </head> <body> <p><input type="checkbox" name="all" onclick="check_all(this,'c')" />全選/全不選</p> <p><input type="checkbox" name="c" value="" /></p> <p><input type="checkbox" name="c" value="" /></p> <p><input type="checkbox" name="c" value="" /></p> <p><input type="checkbox" name="c" value="" /></p> </body> </html> |
<divdiv class="slider_container">
<divdiv>
<divimg src="images/image1.png" alt="pure css3 slider" />
<divspan class="info">Image Description
<div/div>
<divdiv>
<divimg src="images/image2.png" alt="pure css3 slider" />
<divspan class="info">Image Description
<div/div>
<divdiv>
<divimg src="images/image3.png" alt="pure css3 slider" />
<divspan class="info">Image Description
<div/div>
<divdiv>
<divimg src="images/image4.png" alt="pure css3 slider" />
<divspan class="info">Image Description
<div/div>
<divdiv>
<divimg src="images/image5.png" alt="pure css3 slider" />
<divspan class="info">Image Description
<div/div>
<div/div>
.slider_container {
margin: 30px auto;
width: 400px;
height: 280px;
position: relative;
border: 20px solid;
border-color: #fff;
border-bottom-width: 100px;
background-color: #f5f5f5;
box-shadow: #666 0 0 5px;
}
.slider_container div {
position: absolute;
top: 0;
left: 0;
opacity: 0;
filter: alpha(opacity=0);
}
.slider_container div {
-webkit-animation: round 25s linear infinite;
animation: round 25s linear infinite;
}
@-webkit-keyframes round {
4% {
opacity: 1;
filter: alpha(opacity=100);
/* 0 - 1秒 淡入*/
}
20% {
opacity: 1;
filter: alpha(opacity=100);
/* 1- 5秒靜止*/
}
24% {
opacity: 0;
filter: alpha(opacity=0);
/* 5-6秒淡出*/
}
}
@keyframes round {
4% {
opacity: 1;
filter: alpha(opacity=100);
/* 0 - 1秒 淡入*/
}
20% {
opacity: 1;
filter: alpha(opacity=100);
/* 1- 5秒靜止*/
}
24% {
opacity: 0;
filter: alpha(opacity=0);
/* 5-6秒淡出*/
}
}
.slider_container div:nth-child(5) {
-webkit-animation-delay: 0s;
animation-delay: 0s;
}
.slider_container div:nth-child(4) {
-webkit-animation-delay: 5s;
animation-delay: 5s;
}
.slider_container div:nth-child(3) {
-webkit-animation-delay: 10s;
animation-delay: 10s;
}
.slider_container div:nth-child(2) {
-webkit-animation-delay: 15s;
animation-delay: 15s;
}
.slider_container div:nth-child(1) {
-webkit-animation-delay: 20s;
animation-delay: 20s;
}
.slider_container span {
color: #000;
background: #fff;
position: absolute;
left: 0%;
top: 280px;
width: 400px;
height: 100px;
font-size: 30px;
text-align: center;
line-height: 100px;
-webkit-transform:scaleY(0);
-ms-transform:scaleY(0);
transform:scaleY(0);
-webkit-transition: all 0.5s ease-in-out;
transition: all 0.5s ease-in-out;
}
.slider_container:hover span {
width: 100%;
-webkit-transform:scaleY(1);
-ms-transform:scaleY(1);
transform:scaleY(1);
}
.slider_container:hover div {
-webkit-animation-play-state: paused;
animation-play-state: paused;
}