The 'create a module' walkthrough for Orchard doesn't work with the code in the Orchard Mercurial repository at the head of the default or dev branches. Anyone know how I can create a new Orchard module with something later than the 0.1 release from March?
It'd be great if there was an updated sample module available in the source somew...
Hello, how does referenced linking work in OCaml?
Example, let's assume I have 3 modules declared as
A.ml
B.ml
C.ml
of which
A needs B and C
B needs A
How should I proceed in compiling?
Since order is relevant using ocamlc or ocamlopt how can I fix the cross reference between B and A?
I'm trying to first compile them all into ...
I've gotten used to writing functions that work like this:
def f():
if sunny:
return
#do non-sunny stuff
I'm trying to figure out the equivalent syntax to use within a module. I want to do something like this:
if sunny:
import tshirt
#do something here to skip the rest of the file
import raincoat
import umbrella
#continue...
We develop an application in an embedded environment. It is a high level computing environment with a complete webbrowser on top of a busybox Linux system. The only exception is that the system has a limited amount of system memory.
Our application is built in JavaScript and runs inside a Webkit based webbrowser and consists of a lot of...
I uses dotnetnuke CaptchaControl in my module. However when I added two instacnes of the module into one page, the CaptchaControl cannot work properly. The generated valid code in both module are the same.
...
When we set breakpoints within a Module we've imported the debugger ignores the breakpoint. Has anybody else seen this behaviour?
This is driving me nuts, we use PowerShell Modules extensively.
The thing that's really weird is I can see the breakpoint if I run get-psbreakpoint
PS H:\Projects\Powershell> get-psbreakpoint | format-list -f...
There are a lot of flexible, complete, cross-platform, et cetera, graphical user interface frameworks. Most of them provide many tools to turn software development easier. When building a desktop application in Qt environment, for example, one usually would have different file types, headers, implementation files, and user-interface file...
I'm working on a django project that serves multiple sites; depending on the site I want to import different functionality from a different module; how do I import a module in Python if I have the name of its package and the module name itself as a string?
...
Hi,
I am working on a gwt project and we are using eventbus for communicating events between widgets. I have 2 modules and when i raise an event in one module, the other module is unable to receive it. How can i solve this.Any help??
...
I know some Python xlsx readers are emerging, but from what I've seen they don't seem nearly as intuitive as the built-in csv module.
What I want is a module that can do something like this:
reader = xlsx.reader(open('/path/to/file'))
for sheet in reader:
print 'In %s we have the following employees:' % (sheet.name)
for row in...
i am learning python.. i want to do certain kind of scripting in python.. like,
i want to communicate 'wmic' commands through dos promt.. store the result a file..
access some sqlite database, take the data it has and compare with the result i stored..
now, what i dont get is that, how should i proceed? is there any specific frameworks o...
I'm working on a custom module that needs to know if/when a user has aborted the checkout process. "Aborting" simply means they landed on the checkout's indexAction but didn't complete the process. It's absolutely essential that I know if/when this happens.
I was thinking maybe set a session variable that they've entered checkout. On ...
Trying to create a multi module maven project in eclipse.
Parent Pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>parent</gro...
Hello, I want to use regexps in OCaml and it seems that Str module provides these functionalities.
So I tried with a simple program:
open Str
let regx = regexp "."
but it gives me the following error
File "lol.ml", line 1, characters 0-1:
Error: Error while linking lol.cmo:
Reference to undefined global `Str'
As if module i...
It's possible to the Services layer of Drupal to get nodes, etc. but is there a way to restrict Drupal to being a Services layer, where the front end would be entirely something else not Drupal/PHP. Is there a way to prevent Drupal from lading anywhere and have only the non-drupal interface load which then communicates with Drupal throug...
Hello, how can I manage to define a Set in OCaml that can contains element of its type too?
To explain the problem I have a type declaration for a lot of data types like
type value =
Nil
| Int of int
| Float of float
| Complex of Complex.t
| String of string
| Regexp of regexp
| Char of char
| Bool of bool
| Range of (int*int) list
|...
I'm wondering how to declare permissions and access for more than one defined node type in a module. I'm guessing that as hook_node_info() returns the array like it does then more than one node type can be declared as part of the array but I'm stumped with regards to hook_perm() and hook_perm(). How do I separate the permissions in the...
How could I call a module or something else to return data to me after its ran. I don't want to make my form1 code all messy.
Thanks!
Example by what I mean return:
Public Function Test() As String
Return "Tes34t"
End Function
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
...
Hi, I just run into a problem with the hamster's codebase where a module is loaded with one function and not the other. It's not my code, so I don't know many details, but I'd really like to learn how can such situation arise.
There is a module called hamster which includes i18n.py which has two functions: setup_i18n and C_. There is no...
Hi,
In order to grasp better typeclasses (starting pretty much form scratch) I had a go at modelling 2-D shapes with area calculations, like this:
module TwoDShapes where
class TwoDShape s where
area :: s -> Float
data Circle = Circle Float deriving Show
aCircle radius | radius < 0 = error "circle radius must be non-negative"
...