我主要使用Notepad ++进行编码.
如何将大写字母转换为小写字母,反之亦然?
我在Android文档中阅读有关AsyncTask的内容.
private class DownloadFilesTask extends AsyncTask<URL, Integer, Long> {
protected Long doInBackground(URL... urls) {
int count = urls.length;
long totalSize = 0;
for (int i = 0; i < count; i++) {
totalSize += Downloader.downloadFile(urls[i]);
publishProgress((int) ((i / (float) count) * 100));
// Escape early if cancel() is called
if (isCancelled()) break;
}
return totalSize;
}
protected void onProgressUpdate(Integer... progress) {
setProgressPercent(progress[0]);
}
protected void onPostExecute(Long result) {
showDialog("Downloaded " + result + " bytes");
}
}
Run Code Online (Sandbox Code Playgroud)
问题是doInBackground(URL... urls) …
我想在localhost中设置一个asp.net网站.Fitst,我启用了IIS服务器并在C:\ inetpub\wwwroot文件夹中创建了网站并运行以确保正确设置IIS.在这种情况下,我使用了我从visualstudio IDE创建的现有网站.一切都很完美.在这种情况下,我大量使用以下文章. http://forums.asp.net/t/1689133.aspx
现在问题是我有一个从远程服务器下载的网站,我想在localhost中托管它.当我比较我下载的网站和工作网站时,我发现有些文件丢失了.但是,远程服务器上的站点工作正常.
我没有看到bin文件夹,并且web.config文件中没有太多信息.
这是web.config文件中的代码
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
</system.webServer>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
Run Code Online (Sandbox Code Playgroud)
当我尝试执行上一个网站所做的相同过程并尝试浏览器然后我得到关注错误.
Access is denied.
Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the …Run Code Online (Sandbox Code Playgroud) 我无法从for循环中找到以下输出的共鸣.
for循环
for($i=5; $i>0; $i=$i-.1){
echo $i.'<br>';
}
Run Code Online (Sandbox Code Playgroud)
结果是,
5
4.9
4.8
4.7
4.6
4.5
4.4
4.3
4.2
4.1
4
3.9
3.8
3.7
3.6
3.5
3.4
3.3
3.2
3.1
3
2.9
2.8
2.7
2.6
2.5
2.4
2.3
2.2
2.1
2
1.9
1.8
1.7
1.6
1.5
1.4
1.3
1.2
1.1
1
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
1.0269562977783E-15
Run Code Online (Sandbox Code Playgroud)
为什么打印1.0269562977783E-15?对我而言应该是在0此之前.1
我想格式化 html 文档,它充满了内联 css。我使用 notpad++ 并尝试正则表达式来格式化它。我想用 style='' 替换 style='font-family:"Arial","sans-serif"....... 等 '
如何使用正则表达式来做到这一点?
我是正则表达式的新手。