scratch

Cannot import zmq in python (install issue)

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I can't seem to install pyzmq on my macbook (OSX 10.9.1) First call was to run: sudo pip install pyzmq There was an error that libzmq couldn't be found, and it appeared to try and compile the bundled version: jono@air:~ $ sudo pip install pyzmq Password: Downloading/unpacking pyzmq Downloading pyzmq-14.0.1.tar.gz (867kB): 867kB downloaded Running setup.py egg_info for package pyzmq no previously-included directories found matching 'docs/build' no previously-included directories found matching 'docs/gh-pages' warning: no directories found

How to run Java scratch file in IntelliJ IDEA

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I just start using IntelliJ-14 and I want to know about a scratch file. If I create a java scratch can I compile this as a normal Java class. What I Have Already Tried Create a Java class in a scratch file but unable to find any way to compile this. What I am looking for rather than creating a new Java file in an existing project for running some test code I just want to use scratch file and write some test class with the main method and after complete running close the scratch file. Is that possible? 回答1: Executability for Java scratch

scratch教程:学做控制类积木

非 Y 不嫁゛ 提交于 2019-12-03 04:25:00
少儿编程中scratch很容易被小孩所接受,不管是从外观还是教程中,都符合少儿的兴趣,为此现在只要是开少儿编程课都会有scratch课程,今天娜娜姐小码王 scratch培训机构 就为大家分享,scratch教程:学做控制类积木!下面就一起来了解下吧!   顾名思义,就是等待一定的时间。   首先看下上次的图片,是不是感觉有一点问题,在同时说话。   加上一个等待时间后,看看效果,是不是好了很多。   重复执行上次也已经使用过了,作用就是重复的做一件事情,可以设定重复的次数也可以一直重复下去。   这也是一种重复执行,直到达成某个条件,重复执行才会停止。比如播放背景音乐,一直重复播放,直到游戏结束,停止播放。   这是一个判断语句,“如果、那么”如果达成某个条件,那么执行某段程序;“如果、那么、否则”如果达成某个条件,那么执行某段程序,如果没有达成这个条件,那就执行另一段程序。   来看个例子:小猫遇到小狗,受到惊吓,并后退。   等待达成某一项条件时,才继续运行程序。   克隆体是个很强大的积木,可以从1变到无穷大,并实现不同的功能。   效果: 来源: https://www.cnblogs.com/zqw111/p/11777013.html

用Scratch制作一个Hello World程序

☆樱花仙子☆ 提交于 2019-12-03 04:24:33
  网上出现了很多Hello World程序,看的小编心里也痒痒的,为此这次作为南京小码王Scratch培训机构的小编,就为大家来详细的了解下Scratch制作Hello World程序的过程,现在就和小编一起走进Hello World程序的编程吧!   第一步:新建项目并保存   打开Scratch,点击“文件”主菜单,先将项目名称保存为“Hello World”。需要特别提醒的是一定要养成先保存的习惯,防止因断电后者电脑系统崩溃等造成工作丢失。   第二步:删除不需要的小猫角色   由于本程序不需要小猫角色,通过鼠标右键菜单或者软件上侧剪刀工具将其删除。   第三步:添加“Characters”角色,更换背景   从角色库中如下图红色框区域内选择“H”字母添加到角色窗口,并将其命名为“Characters”。   选中刚建立的“Characters”角色,点击程序界面中间上部造型标签,顺序选择上图红色框区域内的“E”、“L”、“L”、“O”、“W”、“O”、“R”、“L”、“D”字母并添加为角色的造型。然后在用其他软件制作一个风格相同的逗号和叹号造型添加到角色中,最终效果如下图所示。   点击如下图“图片”标签从背景库中选择Underwater3背景图,并将原来的白色背景删除。   第四步:给“Characters”角色添加积木块。   首先给角色添加如下图积木块

How do I change the scratch message in Emacs?

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The scratch message always says: ;; This buffer is for notes you don't want to save, and for Lisp evaluation. ;; If you want to create a file, visit that file with C-x C-f, ;; then enter the text in that file's own buffer. How do I remove this and make the blank scratch message the default? 回答1: You can customize this variable 'initial-scratch-message to be whatever message you want. (setq initial-scratch-message "") 回答2: For Emacs 23, you can do this: (setq initial-scratch-message nil) From the documentation: "Initial message displayed in

Error running scratch file in IntelliJ 15

匿名 (未验证) 提交于 2019-12-03 02:28:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Code: I get the following when running it: Reference: https://www.youtube.com/watch?v=AmeDNZ-86ig Settings (did not change anything here): 回答1: Got a solution see record "Eugene Zhuravlev 18 Feb 2016, 16:29" here: https://youtrack.jetbrains.com/issue/IDEA-140228?replyTo=27-1304218 Seems like under mac IDEA's custom SDK home points to "IntelliJ IDEA 15.app/Contents" instead of "IntelliJ IDEA 15.app/Contents/Home". As a workaround please define a project JDK in Project Structure | Project Settings | Project 文章来源: Error running scratch file in

Cross compile error “arm-none-eabi-g++ cannot find entry symbol”

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a problem about cross compile. #include int main () { printf ( "hello\n" ); return 0 ; } this is a simple hello world code I used. I'm using arm-none-eabi-g++, downloaded from mentor graphics. Here is the error. I don't know what lib is missed. /home/ kang / Utils / arm - 2013.05 / bin /../ lib / gcc / arm - none - eabi / 4.7 . 3 /../../../../ arm - none - eabi / bin / ld : warning : cannot find entry symbol _start ; defaulting to 00008018 / home / kang / Utils / arm - 2013.05 / bin /../ lib / gcc / arm - none - eabi / 4.7 .

Maven and dependent modules

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Colleagues have been touting the wonders of maven and its magical dependency stuff but I'm finding that it fails at what I would consider the obvious use. Suppose I have a root folder with a master POM. Then underneath I have some projects, call them A and B B requires A and so the POM in the B folder has the appropriate dependency entry in it Now, back in the root folder, in a profile, I specify that I want to build B. When I perform the usual mvn clean install, I get a failure because A was not built. My friends tell me I have to specify

scratch列表方法

匿名 (未验证) 提交于 2019-12-03 00:43:02
Hello,大家好这次我来给大家讲一讲 列表 的知识: 列表在scratch中是一个重要的内容,河妖与浮标就是一个极佳的例子: 将浮标初始化: 主要的部分还是河妖,我们想让河妖从左往右走,并且走五根河道的任意一根,在变量里找到新建链表,取名Y坐标,在里面添加5个小块儿-60、-30、0、30、60 别忘了克隆这个河妖,并隐藏列表 切换到更多模块,点新建功能块,我们来定义Y坐标: 接着编写这段代码,让河妖动起来吧!!!!! 谢谢大家! 原文:https://www.cnblogs.com/lucasyy/p/9348159.html

bat cmd复制文件夹脚本

匿名 (未验证) 提交于 2019-12-03 00:37:01
1.新建复制文件夹脚本 新建文件copyFile.bat,将上面代码复制到文件中,双击即可运行。 @echo off rem dstDir 目标文件夹 set dstDir=E:\workspace\Scratch\scratch-gui-optimization\node_modules\scratch-vm\dist rem srcDir 原文件夹 set srcDir=E:\workspace\Scratch\scratch-vm-gui\dist if exist %dstDir% ( if exist %srcDir% ( rem 文件夹下所有文件及子文件夹,文件相同直接覆盖,不进行提示 xcopy %srcDir%\*.* %dstDir% /S /Y ) ) 2.与webpack结合,在webpack打包后,再复制到另一个项目文件夹下,在package.json文件的script build部分,添加&& copyFile.bat,注意copyFile.bat需要与package.json处于同一个目录下。 "scripts": { "build": "webpack --progress --colors --bail && copyFile.bat" } 文章来源: bat cmd复制文件夹脚本