小编msi*_*nfo的帖子

在网页上写下音乐符号

我希望能够在网页中编写音乐符号和和弦.

有没有可用于此的库(如Mathjax for math)?如果没有,那么还有其他方法来实现这一目标吗?

html javascript css jquery

24
推荐指数
3
解决办法
9672
查看次数

Perl Apache:Perl脚本显示为纯文本

使用apache和配置时perl cgi scripts,不知道为什么index.cgi/ index.pl显示为纯文本而不是执行它们.当我放入http://localhost浏览器时,它显示在代码下面,而不是执行它.

List item
    #!C:/Dwimperl/perl/bin/perl.exe -w

     print "Content-type: text/html\n\n";
        print <<HTML;
        <html>
        <head>
        <title>A perl web page</title>
        </head>
        <body>
        <h3>A hello world form perl</h3>
        </body>

        HTML
        exit;
Run Code Online (Sandbox Code Playgroud)

这是httpd.conf我大部分时间编辑的文件的一部分(阅读各种在线参考,教程后)

# This should be changed to whatever you set DocumentRoot to.
<Directory "D:\webserver">

Listen 80
ServerName localhost:80
LoadModule cgi_module modules/mod_cgi.so

# First, we configure the "default" to be a very restrictive set of 
# features.  
<Directory />
    Options FollowSymLinks …
Run Code Online (Sandbox Code Playgroud)

apache perl configuration cgi windows-7

16
推荐指数
1
解决办法
5万
查看次数

winapi找到网页对话框的子窗口标题(属性)

我使用winapi来处理网页对话框,除了excel vba编辑器,我无法访问visual studio或其他工具.另外,我对winapi的经验不足.我想点击此网页对话框的某个按钮并输入一些文字.
使用winapi我可以找到它的句柄并尝试枚举子窗口,但收到的信息不正确.

' search for child window accept button
hWndAccept = FindWindowEx(hWndColo, 0, vbNullString, vbNullString)
Debug.Print hWndAccept
Run Code Online (Sandbox Code Playgroud)

Public Function EnumChildProc(ByVal hWnd As Long, ByVal lParam As Long) As Long
  Dim slength As Long
  Dim wintext As String                         ' window title text length and buffer
  Dim retval As Long                            ' return value
  Dim textlen As Long

Static winnum As Integer                      ' counter keeps track of how many windows have been enumerated
winnum = winnum + 1

textlen = …
Run Code Online (Sandbox Code Playgroud)

windows excel winapi vba

6
推荐指数
1
解决办法
1514
查看次数

CSV 中的 Powershell 组对象并将其导出

#foo.csv
No, Fruit, Quality, Units, Location
1, Orange, New, 10, Village
2, Orange, Fresh, 20, City
3, Apple, New, 15, Village
4, Grapes, Fresh, 25, City
5, Apple, Fresh, 30, City
6, Apple, Fresh, 35, City
Run Code Online (Sandbox Code Playgroud)

有了这些数据,我想以下列方式输出:
水果 | 位置 | 质量 | 单位

我无法进一步分组(子组?)数据,我带来的内容如下,但这不是我需要的:

Import-Csv "E:\foo.csv"  | 
Group-Object { $_.Fruit } | 
Select-Object -Property Count, 
    @{ Name = 'Fruits'; Expression = { $_.Name } }, 
    @{ Name = 'Location'; Expression = { ($_.Group | Measure-Object -Property Units -Sum).Sum } …
Run Code Online (Sandbox Code Playgroud)

csv powershell

3
推荐指数
1
解决办法
1万
查看次数

在Windows 7上编译和运行GTK +应用程序

系统:Windows7,32位,GTK 2.24.10,mingw
我正在尝试编写基本的helloworld.c类型的基于GTK的应用程序.但是,它没有运行.
这些是我遵循的步骤.

  1. 安装MinGW.
  2. 将GTK +全部下载到一个捆绑包中.
  3. 在C:\ gtk文件夹中提取内容.
  4. 打开cmd并转到C:\ gtk\bin目录并运行pkg-config --cflags --libs gtk + -win32-2.0
  5. 它打印编译标志列表,以及将项目链接到的库.复制它们并创建一个浴室文件,如下所示.设置VAR = FLAGS start cmd,其中VAR = GTK,FLAGS =上一个命令的输出(pkg-config).当您要编译文件使用命令时:gcc foo.c%VAR%

D:\ gtk> gcc -o project helloworld.c%GTK%
gcc:%GTK%:没有这样的文件或目录helloworld.c:1:21:错误:gtk/gtk.h:没有这样的文件或目录helloworld.c :在函数'main'中:helloworld.c:5:错误:'GtkWidget'未声明(首次在此函数中使用)helloworld.c:5:错误:(每个未声明的标识符只报告一次helloworld.c:5:错误:对于它出现的每个函数.)helloworld.c:5:错误:'window'未声明(在此函数中首次使用)helloworld.c:9:错误:'GTK_WINDOW_TOPLEVEL'未声明(首次在此函数中使用)

D:\gtk>gcc -Wall -g helloworld.c -o helloworld pkg-config --cflags gtk+-2.0 pkg-config --libs gtk+-2.0
gcc: pkg-config: No such file or directory
gcc: gtk+-2.0: No such file or directory
gcc: pkg-config: No such file or directory
gcc: gtk+-2.0: No such file or directory
cc1.exe: error: unrecognized command line option "-fcflags" …
Run Code Online (Sandbox Code Playgroud)

c c++ windows gtk gcc

2
推荐指数
1
解决办法
1万
查看次数

命名空间“System.Management”中缺少自动化。缺少装配参考

系统:Windows 7 Professional 64 位,PowerShell v 2.0,无Visual Studio(无法安装等)

尝试从 C# 运行 PowerShell。这是代码片段:

using System;
using System.Management.Automation;  

class Hello {
    static void Main(string[] args) {           
        PowerShell ps = PowerShell.Create();
        ps.AddCommand("Get-Process");
        Console.WriteLine("Process                 Id");
        Console.WriteLine("----------------------------");
        foreach (PSObject result in ps.Invoke()) {
            Console.WriteLine(
            "{0,-24}{1}",
            result.Members["ProcessName"].Value,
            result.Members["Id"].Value);
            } 
        }       
    }
Run Code Online (Sandbox Code Playgroud)

错误:

e:\foo.cs(2,25):错误 CS0234:命名空间“System.Management”中不存在类型或命名空间名称“Automation”(您是否缺少程序集引用?)

由于没有 Visual Studio,我以原始方式运行代码。由于错误,我http://www.dll-found.com/system.management.automation.dll_download.html按照说明从dir下载了 dll并将其放置在 dir 中。重启机器后,没有成功。

首先,我想问一个普遍的问题。如何安装丢失的程序集或 dll 文件(仅限),因为对于某些人,您可能必须安装整个 Windows 或 PowerShell SDK 或 .NET Framework。

编辑
我已将下载的 dll 文件放在 C:\Windows\SysWOW64、C:\Windows\system32、C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5 和 C:\Program Files\Reference Assemblies\Microsoft\框架\v3.0.

我正在编译使用: C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe /target:exe …

.net c# powershell

1
推荐指数
3
解决办法
2万
查看次数

标签 统计

powershell ×2

windows ×2

.net ×1

apache ×1

c ×1

c# ×1

c++ ×1

cgi ×1

configuration ×1

css ×1

csv ×1

excel ×1

gcc ×1

gtk ×1

html ×1

javascript ×1

jquery ×1

perl ×1

vba ×1

winapi ×1

windows-7 ×1