小编Ada*_*tle的帖子

函数参数可以在cfscript(CF9)中提示吗?

函数参数可以在cfscript(CF9)中提示吗?

CFML风格:

<cffunction name="myFunc" output="false" returntype="void">
  <cfargument name="arg1" type="arg1" default="default" hint="my hint">
  ...
</cffunction>
Run Code Online (Sandbox Code Playgroud)

CF9 cfscript风格:

public void function myFunc(string arg1='default') {
  ...
}
Run Code Online (Sandbox Code Playgroud)

在哪里指定上面的参数提示(arg1)?

coldfusion coldfusion-9

10
推荐指数
1
解决办法
3086
查看次数

我应该将哪种计算机辅助翻译格式用于ColdFusion网站?

我正在创建一个多语言网站,至少需要支持五种不同的语言,包括韩语和中文.站点语言是ColdFusion,因此Java是本地语言.我想让网站尽可能简单地让下一个程序员更新,并让第三方翻译人员使用比挖掘SQL数据库更容易使用的工具.

到目前为止,我遇到过Resource Bundles,GNU的GetText和TMX.

你推荐哪个,为什么?

coldfusion localization internationalization

9
推荐指数
1
解决办法
611
查看次数

使用Coldfusion创建QR码

有没有人得到"开源QR码库"与ColdFusion合作?我需要在ColdFusion中生成QR码.

我也发现这个教程对如何使用生成它斑马线.

但教程并不清楚如何配置文件,例如需要在哪个目录...

欢迎任何帮助和替代方案,谢谢.

java coldfusion coldfusion-8 coldfusion-9

9
推荐指数
1
解决办法
4437
查看次数

如何在ColdFusion(Java)中在CMYK和RGB之间转换图像?

我需要将图像从CMYK转换为RGB - 不一定再回来了,但是嘿,如果可以的话......

随着ColdFusion 8的发布,我们获得了CFImage标签,但它不支持这种转换; Image.cfcAlagad的Image Component也没有.

但是,应该可以用Java; 我们可以通过CF来利用它.例如,以下是创建Java线程以休眠进程的方法:

<cfset jthread = createObject("java", "java.lang.Thread")/>
<cfset jthread.sleep(5000)/>
Run Code Online (Sandbox Code Playgroud)

我猜可以使用类似的方法来利用java来进行这种图像转换,但不是Java开发人员,我不知道从哪里开始.任何人都可以在这里伸出援手吗?

java coldfusion image

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

如何解决"%1不是有效的Win32应用程序"?

环境: 据说安装了
Windows Server 2003 R2 Enterprise 64位,SP2
.NET框架(2.0 SP2,3.0 SP2,3.5 SP1)

我说"应该",因为它们被列为已添加/删除程序下的安装.我不确定它是否正确安装,因为"ASP.NET"选项卡未添加到IIS中的任何站点.

在IIS Web服务扩展部分中,我同时拥有"ASP.NET v2.0.50727"(允许)和"ASP.NET v2.0.50727(32位)"(禁止).

有问题的网站启用了脚本执行.

问题:

我创建了一个超级简单的ASP.NET/C#网站:Default.aspx,标签为id ="Label1",后面是代码隐藏:Label1.text = "Hello World";我得到的错误是:

%1不是有效的Win32应用程序.

.net asp.net 64-bit configuration win64

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

创意用于版本控制

我正在寻找创意 - 或者至少是非标准 - 用于版本控制.我有一个特定的目的,但我不想以任何限制来扼杀你的创造性思想.

为此,请不要因为我说创意/非标准而消除对VCS处理源代码的创造性使用:这并不意味着它无法处理源代码.它只是意味着我正在寻找除分支,合并,标记,回滚和分叉之外的其他想法.

例如:我会认为使用版本控制作为一个快速而肮脏的SharePoint淘汰赛作为一个可以通过的答案,但几乎没有.

您还看到了其他有趣的用途吗?

version-control

8
推荐指数
3
解决办法
1458
查看次数

如何将CFC存储在单独的目录中并使其工作?

有没有办法在标签中指定组件路径?

我正在为我的应用程序使用ColdFusion组件.我的应用程序有几个文件夹,每次我想要一个CFC工作时,我必须将它保存在与需要访问的文件相同的目录中.这导致我创建了几个相同的CFC文件.

有没有办法将我的CFC存储在一个目录中,并使其在我的网站上工作?

coldfusion cfc

8
推荐指数
2
解决办法
7090
查看次数

angular-ui-router嵌套视图和"RangeError:超出最大调用堆栈大小"

我正在使用最新版本的IonicFramework,它使用了引擎盖下的angular-ui-router 0.2.8.这是我第一次使用ui-router所以我可能犯了一个愚蠢的错误,但我无法弄清楚它是什么.当我导航到我刚刚添加的新状态/视图集时,出现"超出最大调用堆栈大小"错误,Chrome选项卡崩溃.

我的基本HTML非常简单:

<body ng-app="checkinApp" ng-controller="GlobalCtrl">
    <nav-view></nav-view>
</body>
Run Code Online (Sandbox Code Playgroud)

这是相关屏幕的路由配置:

app.config(function($stateProvider, $urlRouterProvider) {

    $stateProvider
    .state('event', {
        url: "/event"
        ,templateUrl: "templates/event.html"
        ,controller: "MainCtrl"
    })
    .state('event.chooseEvent', {
        url: "/choose"
        ,templateUrl: "templates/chooseEvent.html"
        ,controller: "MainCtrl"
    })
    .state('event.eventCheckin', {
        url: "/checkin"
        ,templateUrl: "templates/eventCheckin.html"
        ,controller: "MainCtrl"
    });

     // if none of the above are matched, go to this one
     $urlRouterProvider.otherwise("/event/choose");
});
Run Code Online (Sandbox Code Playgroud)

只需使用上述路由配置启动应用程序就会导致错误,无需其他交互.

以下是我的看法......

event.html:

注意<nav-view></nav-view>块,我期望子视图呈现.

<side-menus>

    <!-- page content -->
    <pane side-menu-content>
        <header class="bar bar-header bar-positive">
            <button class="button button-icon icon ion-navicon" ng-click="toggleMenu()"></button>
            <h1 …
Run Code Online (Sandbox Code Playgroud)

angularjs angular-ui-router ionic-framework

8
推荐指数
1
解决办法
4724
查看次数

使用 pnpm 的 TypeScript + SvelteKit monorepo 出现“ReferenceError:未定义导出”

我正在尝试围绕我的 SvelteKit 应用程序构建一个 monorepo,其中该应用程序和各种 monorepo 包都是用 TypeScript 编写的。

SvelteKit 应用程序工作正常,直到我尝试从 monorepo 中将符号链接到一个特定包中。问题包取决于@redis/client(我希望它非常可靠)并且错误消息引用该模块:

ReferenceError:导出未 在 /@fs/Users/me/project/node_modules/.pnpm/@redis+client@1.5.6/node_modules/@redis/client/dist/index.js:16:23 在 instantiateModule 处定义(文件:///Users/me/project/node_modules/.pnpm/vite@4.1.4/node_modules/vite/dist/node/chunks/dep-ca21228b.js:52420:15)

如果我将 monorepo 包发布到我们的私有 github 包注册表,并从那里安装它们,它就可以正常工作...所以我认为我构建 TS 包的方式是可以的...但作为参考,这里是依赖于以下包的 package.json 的片段@redis/client

"type": "module",
"types": "dist/index.d.ts",
"exports": {
    "import": "./dist/index.js",
    "require": "./dist/index.cjs"
},
Run Code Online (Sandbox Code Playgroud)

以及来自同一包的 tsconfig:

{
    "compilerOptions": {
        "target": "es6", //also tried ES2022
        "module": "commonjs", //also tried ES2022
        "esModuleInterop": true,
        "forceConsistentCasingInFileNames": true,
        "strict": true,
        "skipLibCheck": true,
        "noUncheckedIndexedAccess": true,
        "noEmit": true,
        "moduleResolution": "node"
    }
}
Run Code Online (Sandbox Code Playgroud)

SvelteKit 应用程序通常包含type=module在其 package.json 中,并使用 Vite。vite …

typescript monorepo vite sveltekit

8
推荐指数
1
解决办法
2094
查看次数

Flex ItemRenderer可防止在文本输入之间使用Tab键

我有一个自定义ItemRenderer,它在3个面板中显示5个文本输入:

<?xml version="1.0" encoding="utf-8"?>
<mx:VBox 
    xmlns:mx="http://www.adobe.com/2006/mxml"
    height="300"
    width="800"
    creationComplete="onCreationComplete()"
>
    <!-- code-behind -->
    <mx:Script source="ChainListRenderer.mxml.as" />

    <mx:Label text="{data.title}" fontSize="25" fontWeight="bold" width="100%" textAlign="center" />
    <mx:HBox>
        <mx:Panel id="triggerPanel" title="Trigger" width="260">
            <mx:VBox id="tpBoxes" width="100%" paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="5">
                <mx:TextInput id="trigger1" width="100%" textAlign="left" tabIndex="0" tabEnabled="true" />
                <mx:TextInput id="trigger2" width="100%" textAlign="left" tabIndex="1" tabEnabled="true" />
                <mx:TextInput id="trigger3" width="100%" textAlign="left" tabIndex="2" tabEnabled="true" />
                <mx:TextInput id="trigger4" width="100%" textAlign="left" tabIndex="3" tabEnabled="true" />
                <mx:TextInput id="trigger5" width="100%" textAlign="left" tabIndex="4" tabEnabled="true" />
            </mx:VBox>
        </mx:Panel>
        <mx:Panel id="linkPanel" title="Link" width="260">
            <mx:VBox id="lpBoxes" …
Run Code Online (Sandbox Code Playgroud)

apache-flex usability flex3 itemrenderer

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