How to add Modules to WeScheme - module

I am currently working on a program, that uses images and need to add the module mentioned in this question
(require 2htdp/image)
I come up the the error
I see a require of the module 2htdp/image,
but I don't yet know what this module is.
How do I solve this? I have no idea how to make WeScheme know what a module is. Thanks in advance.

2htdp/image is part of the How to Design Programs teachpacks that come with Racket, if you need it you should use Racket as your Scheme interpreter.

From the error message, it looks like you meant to write 2htdp/image, but you wrote htdp2/image instead. Note the different location of the 2.

Related

How do I apply the spacemacs command (setq-default...)

So I'm new to spacemacs, and am having a problem with my python tabs. I found this stackoverflow solution to the issue. The scenario he explained is exactly the problem Im having with my python layer, but I don't know how to apply the solution he gave, namely:
If that is the case, you can fix the problem by running
(setq-default python-indent-offset 4)
Where/how exactly do I run the command "(setq-default python-indent-offset 4)"? Do I put it in my spacemacs config? Or some where else?
Thanks!
I found the answer to this question as I was typing it up by way of the related questions (here).
Commands such as these go inside of your init.el config, which is accessed by typing SPC-f e i
Hope this helps all the spacemacs newbies out there. (Feel free anyone to correct me if i'm wrong or don't fully understand)
Edit 1
Just some background info for my answer for those who are curious. The command
(setq-default python-indent-offset 4)
is actually from the lisp family of programming languages. So spacemacs basically uses source code controlled configuration. It could probably have similarly went inside your spacemacs config as well (SPC f e d), although I believe init.el is the proper place for this type of setting

Disable JRockit Optimzation per class

Is there anyway to do this? I have seen there is a -XnoOpt function, but that seems more global than only applying this to a particular class.
Any help would be useful ... even if to tell me this is not possible.
Thanks!
You can create an opt file, see
JRockit R28: http://docs.oracle.com/cd/E15289_01/doc.40/e15059/crash.htm#BABJGICB
Earlier releases: https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/crash.html#wp1010461

Need help in configuring correct paths for DOH

I'm trying to get DOH testing working for my company's upcoming platform, but I can't figure out the right combination of paths. Our file structure looks like this:
/dojo15
/release
/dojo
/dojo
dojo.js
dojoExt.js
/dojo
dojo.js
/util
/doh
/js
mainLib.js
/tests
base.js
This was created by our contractors, so unfortunately there are some things I have to figure out as I'm going along.
The "release" directory is what is used on our pages.
The "util" directory doesn't exist in our release directory. (I'd like to avoid having to make a copy of it there.)
I'm not entirely sure what they did with dojoExt.js there, but it seems to be required. I was able to make a simple "hello world" sort of test, but once I did dojo.require(js.mainLib), I got an error that dojo.behavior.add is not a method. So it seems to be they made a stripped-down dojo.js and put other required code in dojoExt.js.
My guess is that DOH is using the dojo in dojo15/dojo, but I need to include dojo15/release/dojo/dojo/dojoExt.js. I've tried every combination of dojoUrl, testModule, registerModulePath I can think of...also saw "boot" and "path" from other SE questions, even though I can't see in runner.html where they would even be used, but I tried throwing them in to see if they'd magically help anyway.
At the moment I don't really have the option to move code around, so I'm hoping to work this out with files where they currently are.
Did you try the bits I suggested over at a related question? We use the bits I detailed there to pull together a completely custom layout of dojo + util. Take a look at both boot and dojoUrl. I think it's runner.js that does most of the cunning stuff, rather than runner.html.
Is the problem that you can't arrange for dojoExt.js to get loaded? How does your other code arrange for it to get loaded? Is tests/base.js your test module?

Getting Cocoa method completions in Sublime Text 2

I've been playing with Sublime Text 2 the last few days and was wondering if anyone out there has had any success getting Cocoa method completions working yet? Is there a plugin (or in-progress project to create one) out there?
Any general comments on using Objective-C in Chocolat or Sublime Text 2 would also be welcome.
There is an in-progress Sublime Text package that connects to clang to get autocomplete data called SublimeClang I've not managed to successfully get it to work totally with Cocoa/UIKit Dev, but here's a screenshot
and my options, that are a start
In MacVim I use a plugin called Cocoa.vim which haves useful python scripts that generates a classes and methods files for autocompletion. I didn't try so much with ST2, but may be is posible to create a sublime-package or sublime-completions file with all this data.
For the moment, I only create a sublime-completions file with some snippets. If I find a way to make this work, I will tell you.
I let my SublimeClang configuration options if helps anybody. I've already some of the autocompletions working:
"options":[
"-Wall",
"-isystem", "/Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/",
"-isystem", "/Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/c++/4.2.1/",
"-I/usr/lib/clang/3.1/include/**",
"-I", "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include/",
"-arch","armv7",
"-isysroot", "/Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk",
"-D__IPHONE_OS_VERSION_MIN_REQUIRED=50000",
"-ferror-limit=0"
]
Answering my own question here. A quick visit to the Sublime forums didn't turn up any leads nor did Google. It looks as though method completions for Objective-C aren't currently part of the default install nor available via 3rd-party quite yet.
This user http://b.rthr.me/wp/?p=368 claims to have gotten SublimeClang working. I may report back myself once I try it...

Objective-C: symbols not found during link

Very, very new at Obj-C... that said, I had some problems with code earlier, which seem to be resolved (I guess!). Now, when I do a build, I get this:
I am not using vanilla SQLite, but rather SQLCipher, (http://sqlcipher.net)
What symbols is it talking about? and how do I fix it?
Thank you (in advance) for looking at this... I'm "dead in the water" until I can get this fixed!
It looks like you haven't added the SQLite library to your project. Choose Project->Add to Project... and select the library.
When Xcode says 'symbols not found,' it's telling you that you're using a name for something that's not defined anywhere. The specific symbol it shows you is _sqlite3_open, which looks like the sort of thing that would be defined by the SQLite library.