![Ckeditor Ckfinder https 沒法瀏覽伺服 Ckeditor Ckfinder https 沒法瀏覽伺服](https://pic.pimg.tw/netyea/1672325329-2091983931-g.png)
本日把http轉成https
到後台編纂時發現沒法瀏覽伺服器及上傳圖片
![Ckeditor Ckfinder https 沒法瀏覽伺服 Ckeditor Ckfinder https 沒法瀏覽伺服](http://www.tshopping.com.tw/data/attachment/forum/202203/13/212843h4dz7bpkkk6hm000.png)
到ckeditor目次下,找到config.js
prescoevlti 發表在 痞客邦 留言(0) 人氣()
網站架設
![利用Highcharts實現柱狀圖、餅狀圖、曲線圖三圖合一 利用Highcharts實現柱狀圖、餅狀圖、曲線圖三圖合一](https://pic.pimg.tw/netyea/1674118121-3869986116-g_n.jpg)
在數據統計和闡發業務中,有時會碰到客戶需要在一個圖表中將柱狀圖、餅狀圖、曲線圖的都表現出來,便可以從柱狀圖中看出具體數據、又能從曲線圖中看出變化趨向,還能從餅狀圖中看出各部份數據比重。Highcharts可以輕鬆實現三圖合一的結果。
prescoevlti 發表在 痞客邦 留言(0) 人氣()
網站架設
有時辰會需要寫PHP程式去取得指定資料夾內的檔案列表,這三個函式分別是glob、scandir、readdir
prescoevlti 發表在 痞客邦 留言(0) 人氣()
網站架設
在搜尋引擎不斷改版網頁不得不進入https
所今後台編纂器圖片上傳也變得不克不及用了
不得已又請教了谷哥大神
多方嘗試後,找到
CKeditor 4.11.1 網頁編輯器與CKfinder 2.6.2.1 圖片上傳可以用
![CKeditor 4.11.1 網頁編纂器與CKfinder CKeditor 4.11.1 網頁編纂器與CKfinder](https://pic.pimg.tw/netyea/1674119525-1049143071-g_n.png)
![CKeditor 4.11.1 網頁編纂器與CKfinder CKeditor 4.11.1 網頁編纂器與CKfinder](http://www.tshopping.com.tw/data/attachment/forum/201811/30/210344anrxcnh00her0050.png)
檔案下載了今後,籠蓋之前檔案
找到 ckeditor/config.js
- CKEDITOR.editorConfig = function( config ) {
- // Define changes to default configuration here. For example:
- // config.language = 'fr';
- // config.uiColor = '#AADC6E';
- }
prescoevlti 發表在 痞客邦 留言(0) 人氣()
範例圖片
網站架設![用jquery做相册 用jquery做相册](https://pic.pimg.tw/netyea/1675221036-933847678-g_n.png)
CSS網站架設
- body{ text-align:center;}
- *{ margin:0; padding:0;}
- img{ border:none;}
- #container{ width:900px; height:900px; background:#000000; border:1px solid #006633; margin:auto; padding:0;}
- #loader{ width:480px; margin:auto; height:500px; background:#FFFFFF; float:left; margin-right:5px;}
- #imageOptions{ float:left;}
- #imageOptions li{ list-style:none; margin:10px;}
- .loading{ background:url(images/spinner.gif) center center no-repeat;}
- h3{ line-height:500px;}
|
prescoevlti 發表在 痞客邦 留言(0) 人氣()
因搜索引擎改版,網站不能不改https
當網站安裝了SSL後,如何把網址主動轉成https?
在網頁目次-public_html,有一個檔案叫 .htaccess,編纂檔案內容,然後將以下轉向的規則寫在裡面:
寫法1:
- RewriteCond %{HTTPS} off
- RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
prescoevlti 發表在 痞客邦 留言(0) 人氣()
在測試 mnist 數字辨識時
代碼起原
https://hackmd.io/@Maxlight/SkuYB0w6_#3-hyperparameter
網站架設
- import torch
- from torch.utils import data as data_
- import torch.nn as nn
- from torch.autograd import Variable
- import matplotlib.pyplot as plt
- import torchvision
- import os
-
- EPOCH = 1
- BATCH_SIZE = 50
- LR = 0.001
- DOWNLOAD_MNIST = False
-
- train_data = torchvision.datasets.MNIST(root = './mnist',train = True,transform = torchvision.transforms.ToTensor(),download = DOWNLOAD_MNIST)
-
- print(train_data.train_data.size())
- print(train_data.train_labels.size())
- plt.ion()
- for i in range(11):
- plt.imshow(train_data.train_data[i].numpy(), cmap = 'gray')
- plt.title('%i' % train_data.train_labels[i])
- plt.pause(0.5)
- plt.show()
-
- train_loader = data_.DataLoader(dataset = train_data, batch_size = BATCH_SIZE, shuffle = True,num_workers = 2)
-
- test_data = torchvision.datasets.MNIST(root = './mnist/', train = False)
- test_x = torch.unsqueeze(test_data.test_data, dim = 1).type(torch.FloatTensor)[:2000]/255.
- test_y = test_data.test_labels[:2000]
-
- class CNN(nn.Module):
- def __init__(self):
- super(CNN, self).__init__()
- self.conv1 = nn.Sequential(
- nn.Conv2d(in_channels = 1, out_channels = 16, kernel_size = 5, stride = 1, padding = 2,),# stride = 1, padding = (kernel_size-1)/2 = (5-1)/2
- nn.ReLU(),
- nn.MaxPool2d(kernel_size = 2),
- )
- self.conv2 = nn.Sequential(
- nn.Conv2d(16, 32, 5, 1, 2),
- nn.ReLU(),
- nn.MaxPool2d(2)
- )
- self.out = nn.Linear(32*7*7, 10)
-
- def forward(self, x):
- x = self.conv1(x)
- x = self.conv2(x)
- x = x.view(x.size(0), -1)
- output = self.out(x)
- return output, x
-
- cnn = CNN()
- print(cnn)
-
- optimization = torch.optim.Adam(cnn.parameters(), lr = LR)
- loss_func = nn.CrossEntropyLoss()
-
- for epoch in range(EPOCH):
- for step, (batch_x, batch_y) in enumerate(train_loader):
- bx = Variable(batch_x)
- by = Variable(batch_y)
- output = cnn(bx)[0]
- loss = loss_func(output, by)
- optimization.zero_grad()
- loss.backward()
- optimization.step()
-
- if step % 50 == 0:
- test_output, last_layer = cnn(test_x)
- pred_y = torch.max(test_output, 1)[1].data.numpy()
- accuracy = float((pred_y == test_y.data.numpy()).astype(int).sum()) / float(test_y.size(0))
- print('Epoch: ', epoch, '| train loss: %.4f' % loss.data.numpy(), '| test accuracy: %.2f' % accuracy)
-
- test_output, _ = cnn(test_x[:10])
- pred_y = torch.max(test_output, 1)[1].data.numpy()
- print(pred_y, 'prediction number')
- print(test_y[:10].numpy(), 'real number')
prescoevlti 發表在 痞客邦 留言(0) 人氣()
![網站架設 帶排序功能的js masonry瀑布流插件 網站架設 帶排序功能的js masonry瀑布流插件](https://pic.pimg.tw/netyea/1673014151-1076566349-g_n.jpg)
網站架設 查看演示 下載檔案
扼要教程
sortableJs是一款帶排序功能的js masonry瀑布流插件。sortableJs能夠使元素以卡片情勢顯示,並以masonry瀑布流體式格局進行結構,經由過程點擊分類按鈕,可以將卡片按指定的方式動態排序。
利用方式
在頁面中引入sortable.min.css和sortable.min.js文件。
- <link rel="stylesheet" href="path/to/sortable.min.css">
- <script src="path/to/sortable.min.js"></script>
-
|
prescoevlti 發表在 痞客邦 留言(0) 人氣()
不管是使用無名、Pixnet、Xuite或Wordpress...等平台,在治理後台新增文章,都邑有一個很像Word的編纂器,透過此編纂器便可輕鬆撰寫文章,而且還可以加粗體、變換字體顏色、超保持....與圖片上傳等功能,即便完全不懂任何的HTML語法,也可編纂出一個漂亮的文章頁面出來,而且邊製作還會邊顯示後果,這是個相當利便的功能,而這麼棒的功能難不成要自已寫,寫完不只天黑可能都爆肝了,所以要多加善用資源,今天梅干就來分享一個好用的即見即所得HTML文章編纂器CKeditor,與CKfinder上傳元件讓編纂器不只單單可編輯,同時還可上傳檔案乃至直瀏覽伺器服中的檔案,且完全不消寫任何的程式碼,只要設定一下,當即就打造自已專屬的文章編纂器囉!
prescoevlti 發表在 痞客邦 留言(0) 人氣()
起首可以到FPDF網站下載程式,固然FPDF的網站有教學也值得前去觀看http://www.fpdf.org/
或直接點選這邊下載fpdf16.zip
prescoevlti 發表在 痞客邦 留言(0) 人氣()