由买买提看人间百态

topics

全部话题 - 话题: object
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
i*****f
发帖数: 578
1
【 以下文字转载自 Linux 讨论区 】
发信人: Fibonacci (Fbi), 信区: Linux
标 题: Is it possible to use c++ objects from python code?
发信站: BBS 未名空间站 (Wed Dec 9 23:45:36 2009, 美东)
If so, any tutorials or references or keyword to recommend?
many thanks!
i*****f
发帖数: 578
2
【 以下文字转载自 Linux 讨论区 】
发信人: hubai (泡饭VIII号), 信区: Linux
标 题: Re: Is it possible to use c++ objects from python code?
发信站: BBS 未名空间站 (Thu Dec 10 00:14:54 2009, 美东)
用swig写个python binding
i*****f
发帖数: 578
3
【 以下文字转载自 Linux 讨论区 】
发信人: pstnims (gg), 信区: Linux
标 题: Re: Is it possible to use c++ objects from python code?
发信站: BBS 未名空间站 (Thu Dec 10 01:20:07 2009, 美东)
keywords, SWIG, FFI, ctypes
i*****f
发帖数: 578
4
【 以下文字转载自 Linux 讨论区 】
发信人: Fibonacci (Fbi), 信区: Linux
标 题: Re: Re: Is it possible to use c++ objects from python code?
发信站: BBS 未名空间站 (Thu Dec 10 01:22:12 2009, 美东)
Thank you all.
How about boost.python?
thanks again!
l**p
发帖数: 474
5
来自主题: _Graphics版 - OFF - A 3D Object File Format
OFF - A 3D Object File Format
Randi J. Rost
6-November-1986
Updated 12-October-1989
Digital Equipment Corporation
Workstation Systems Engineering
100 Hamilton Ave.
Palo Alto, Ca. 94301
This document describes the data format
developed by
o*********e
发帖数: 3093
6
来自主题: Military版 - Linux哪个版本的比较易用
月光阿姨,我问你,我刚刚想在自己电脑上装Drupal来玩玩,结果出现这么多问题,咋
整?
是哪些问题造成怎么多问题?
Skip to main content
Drupal 8.4.3
Installation tasks
Choose language
(active)
Choose profile
Verify requirements
Set up database
Install site
Configure site
Choose language
Error message
Deprecated function: assert(): Calling assert() with a string argument is
deprecated in DrupalCoreCacheMemoryBackend->set() (line 101 of
corelibDrupalCoreCacheMemoryBackend.php).
DrupalCoreCacheMemoryBackend->set('module_implements', Array) (Line: 359)
D... 阅读全帖
z**********g
发帖数: 16
7
Discussing The Existence of “repulsion particle” And Its Significance

Zhuang Yiliong
Shanghai Institute of Science and Technology Management
Abstract:This report has advanced a assume about the existence of “
repellention” by a kind of new idea. Beginning with this, I have explained
more successfully some import theory questions in the area of the present
physics, cosmology and philosophy ect. At same time a few of new reasons
have been raised But this is only rough idea of physica... 阅读全帖
r******r
发帖数: 700
8
我当年的 homework,翻出来了。另一个 homework project, 帮我找到了第一个工作。
#ifndef LIST_H
#define LIST_H
#include
#include
#include
#include "node.h"
using namespace std;
/*=========================================================================*/
/**
* Implementation of a List ADT using a doubly-linked list.
*
* @version 1.0 2/25/05
*/
/*.........................................................................*/
/**
* Definition of exception handling class
*/
class ListEmpty : public ... 阅读全帖
n*****e
发帖数: 473
9
来自主题: StartUp版 - 显摆下我做的网站
If that is your first website, congrats! I didn't read your post, just
clicked on the link. Here are my 2cents:
Use bootstrap if you can. both wp and joomla are outdated. many media
companies still support Drupal.
Try to land local pros to help you. I would never contract out my projects
overseas.
just a simple test, here is what I got:
"in compiled.php line 8084
at RouteCollection->match(object(Request)) in compiled.php line 7351
at Router->findRoute(object(Request)) in compiled.php line 7316
a... 阅读全帖
o**2
发帖数: 168
10
来自主题: Programming版 - FMP 3.0 Mitbbs 首发 — 求建议求反馈
前言
===========================================================
FMP的核心理论一直没有变过, 之所以有1.0、2.0、3.0, 是因为分阶段推广的原因,
不同阶段对功能的要求有不同的取舍。 从目前的结果来看, 我的推广策划能力远远
不及我的编程能力, 所以干脆把FMP的全部功能一起推出来了, 也就是3.0。
3.0的东西我还没有在其他地方发过, 我觉得Mitbbs的小圈子挺不错的, 非常适合先
试试水, 希望能听听大家的意见, 高见和低见都欢迎, 只要不歪楼都行。 我在这里
邀请所有的人来参加讨论, 特别是zhaoce和goodbug, 我挺认同你们平时的一些看法
的, 希望你们能对3.0给出一些专业的意见。
FMP针对的是并发和分布编程, 并发主要是在单机内, 分布就是多机了。 FMP的独特
贡献是提供了一个统一的language independent的编程style和element, 轻松地把这
两个重大问题都解决了。 FMP提供的不是具体的系统或实现, FMP提供的是一个独创的
简洁的设计, 使得设计并发和分布系统... 阅读全帖
f**d
发帖数: 768
11
来自主题: Neuroscience版 - eBook: From computer to brain
这是一本计算神经科学的优秀著作,全文拷贝这里(图和公式缺),有兴趣的同学可以
阅读
如需要,我可以分享PDF文件(--仅供个人学习,无商业用途)
From Computer to Brain
William W. Lytton
From Computer to Brain
Foundations of Computational Neuroscience
Springer
William W. Lytton, M.D.
Associate Professor, State University of New York, Downstato, Brooklyn, NY
Visiting Associate Professor, University of Wisconsin, Madison
Visiting Associate Professor, Polytechnic University, Brooklyn, NY
Staff Neurologist., Kings County Hospital, Brooklyn, NY
In From Computer to Brain: ... 阅读全帖
d*****s
发帖数: 173
12
来自主题: EmergingNetworking版 - 请教ASA5510 配置
T1给了5个ip 50.20.38.106-50.20.38.110
asa5510 0/0口绑定了地址50.20.38.110,0/1接内部网络
想要从外部通过50.20.38.106访问内部web server 192.168.1.110
我参考cisco文档配置了static nat,但是还是无法访问,请问哪里出了问题,谢谢!
http://www.cisco.com/en/US/docs/security/asa/asa83/configuration/guide/nat_objects.html#wp1119793
asa版本是8.3
附上我的配置
ASA Version 8.3(1)
!
hostname ciscoasa
domain-name default.domain.invalid
enable password b4RZzua6LpNOeJCF encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
dns-guard
!
interface Ethernet0/0
nameif outside
security-... 阅读全帖
a***n
发帖数: 262
13
来自主题: EmergingNetworking版 - 请教ASA5510 配置
I did not see the static nat.
apply access-group 100 in outside
then try to use packet-tracer utility

T1给了5个ip 50.20.38.106-50.20.38.110
asa5510 0/0口绑定了地址50.20.38.110,0/1接内部网络
想要从外部通过50.20.38.106访问内部web server 192.168.1.110
我参考cisco文档配置了static nat,但是还是无法访问,请问哪里出了问题,谢谢!
http://www.cisco.com/en/US/docs/security/asa/asa83/configuration/guide/nat_objects.html#wp1119793
asa版本是8.3
附上我的配置
ASA Version 8.3(1)
!
hostname ciscoasa
domain-name default.domain.invalid
enable password b4RZzua6LpNOeJCF encry... 阅读全帖
z**********g
发帖数: 16
14
bout “Repulsive particle” hypothesis
Zhuang Yilong
Shanghai Institute of Science and Technology Managemen
Jiading 201800
“Repulsive particle” hypothesis is a new theory of material
action. Contrary to Newton law of universal gravitation, which explains why
an apple on the three falls to the ground, it can be called law of universal
repulsion which explains why an apple grows on the tree. It regards a plank
quantum as a material particle, which is a epulsive particle”
counter... 阅读全帖
z*******n
发帖数: 1034
15
http://www.informit.com/articles/printerfriendly/2211695
Introduction to "The Java Language Specification, Java SE 8 Edition"
By James Gosling, Gilad Bracha, Alex Buckley, Bill Joy, Guy L. Steele
Date: Jun 12, 2014
The Java® programming language is a general-purpose, concurrent, class-
based, object-oriented language. It is designed to be simple enough that
many programmers can achieve fluency in the language. The Java programming
language is related to C and C++ but is organized rather dif... 阅读全帖
z**********g
发帖数: 16
16
Repulsion Particle Hypothesis

: Zhuang Yilong
Shanghai Institute of Science & Technology Management
Jiading District of Shanghai, 201800, China

Abstract: The theory of “ Repulsion Particle Hypothesis” is a new theory
of matter interactions. In contrast to Newtons universal gravitation that
the apple drops from the tree, this hypothesis can be called the universal
repulsion theory tha... 阅读全帖
a******e
发帖数: 36306
17
来自主题: ebiz版 - 这是啥问题
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;
chromeframe/11.0.696.57; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0
.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
Timestamp: Sun, 8 Apr 2012 18:46:19 UTC
Message: Object doesn't support this property or method
Line: 20
Char: 78
Code: 0
URI: https://s-static.ak.fbcdn.net/rsrc.php/v1/yH/r/dLyZ2TBtIHU.js
Message: Object doesn't support this property or method
Li... 阅读全帖
I*D
发帖数: 40035
18
来自主题: WashingtonDC版 - 诚聘 IT 英才---ZZ
Role Title Description Start Date End Date Status Level From
Level To Standard Role Work Location Role Specialty 1 Level 1
Role Specialty 1 Level 2 Role Specialty 1 Level 3 Role Specialty 1
Level 4 Role Specialty 1 Level 5 Skill & Proficiency
PeopleSoft Administrator This person will be part of a team that supports
a PeopleSoft Financial system with several associated custom applications
and batches using ASP .NET, Hyperion, PL/SQL, SQL, and SQR. This ... 阅读全帖
j****m
发帖数: 8
19
看到有人指出在icmlc 2011会议中同一个作者发表论文达10多篇。本文深知做学术
的不易,觉得在短时间内能在同一个会议上发表10多篇论文,不是造假抄袭,就是粗制
滥造。于是随便找了一篇搜索了一下。发现不如所料,亩产万斤果然是有问题的。
请相关专业人员鉴定是否属于抄袭,以及是否还有其他未发现之处。
抄袭文(以下简称USOM文)
Le Li, Xiaohang Zhang, Zhiwen yu, Zijian Feng, Ruiping Wei, USOM: Mining
and Visualizing Uncertain Data Based on Self-Organizing Maps, Proceedings
of the 2011 International Conference on machine Learning and Cybernetics,
804-809
作者单位:
School of Computer Science and Engineering, South China University of
Technology, Guangzhou, China
... 阅读全帖
z**********g
发帖数: 16
20
继续发表有关斥力子的文章,请指正。
“斥力子理论”对物理学的影响1
庄一龙
近年来,由中国学者创立的“斥力子理论”,经过中国科学院《科技促进发展》《
科技成果管理与研究》、《科技中国》、《中国科技财富》、《中国科技成果》等主流
科技杂志报导后,引起了学术界广泛重视。那么,这一理论究竟有那些观点震动了学术
界,值得人们如此关注呢?
“斥力子理论” 是一种新物质作用理论,实际上也是一种物理哲学理论。它的代
表性文章是《论“斥力子”的存在及其意义》,另外还包括《相对性效应和牛顿定律的
本质》、《物理学中精细结构常数的理论推导与解释》等几十篇论文。同牛顿的苹果从
树上掉下来的万有引力理论相对应,这是一个可称作“苹果如何转移到树上去的‘万有
斥力’理论”。该理论认为,地面的物体一旦动起来,不管方向如何,都具有一种挣脱
地球引力的能力,就好象物体吸收了一种对抗万有引力的物质那样。“斥力子理论”把
普朗克能量子看作是一种对抗引力的实物粒子,称它为“斥力子”,并认为物体运动状
态的改变就是由于吸收或释放斥力子造成的。
在思维方法上,它有两个根本突破:其一,是把抽象的能量概念实物化,使能量有
一个实物载... 阅读全帖
m**********g
发帖数: 981
21
看看这些
Cognitive Milestones
By one:
follows moving object with eyes
recognizes differences among people; responds to strangers by crying or
staring
responds to and imitates facial expressions of others
responds to very simple directions
imitates gestures and actions
puts small objects in and out of container with intention
Between one and two:
imitates actions and words of adults
understands and follows simple, familiar directions
responds to words or co... 阅读全帖
l*********e
发帖数: 5385
22
☆─────────────────────────────────────☆
wahaha2013 (娃哈哈啊) 于 (Sun Jul 14 00:29:12 2013, 美东) 提到:
我家宝宝刚满一周岁。不会用手指指东西,不会挥手再见,不会show东西给我看,不会
传东西给我。
请问如何教会啊,我天天教,就是不会啊。我教别的,比如谢谢,挠痒等,很快就会。
就是不会这几样。而这又是最重要的。用什么方法呢?我和儿医说出了我的顾虑,是不
是autism啊?儿医说等18个月再看。
我都等不急了。
真诚请教,怎么教会宝宝啊?急啊急。
拜谢各位!!!
☆─────────────────────────────────────☆
wahaha2013 (娃哈哈啊) 于 (Sun Jul 14 22:54:04 2013, 美东) 提到:
顶顶啊,没人回复我啊
☆─────────────────────────────────────☆
snowshine (snowshine) 于 (Sun Jul 14 23:13:25 2013, 美东) 提到:
我怎么觉... 阅读全帖
f**********g
发帖数: 2252
23
来自主题: _pennystock版 - 明天 ANX是升还是降
3.8
http://finviz.com/screener.ashx?v=341&t=ANX
Form 8-K for ADVENTRX PHARMACEUTICALS INC
----------------------------------------------------------------------------
----
8-Jul-2011
Change in Directors or Principal Officers, Financial Statements and
Item 5.02 Departure of Directors or Certain Officers; Election of Directors;
Appointment of Certain Officers; Compensatory Arrangements of Certain
Officers.
On July 6, 2011, the Compensation Committee (the "Committee") of the Board
of Directors (the... 阅读全帖
b**l
发帖数: 51
24
or this, works on both 32-nit and 64-bit:
====
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import java.util.ArrayList;
import java.util.List;
import java.util.prefs.Preferences;
public class WinRegistry {
// inspired by
// http://javabyexample.wisdomplug.com/java-concepts/34-core-
java/62-java-registry-wrapper.html
// http://www.snipcode.org/java/1-java/23-java-class-for-accessing-
reading-and-writing-... 阅读全帖
t*****w
发帖数: 254
25
来自主题: Statistics版 - 请问面试 R 应该怎么准备?
When I had my job interview, they always tested my SAS skill.However I use R
all the time. To help your preparation, read my R codes to see how much you
can understand it.
%in%
?keyword
a<-matrix(0,nrow=3,ncol=3,byrow=T)
a1 <- a1/(t(a1)%*%spooled%*%a1)^.5 #standadization in discrim
a1<- a>=2; a[a1]
abline(h = -1:5, v = -2:3, col = "lightgray", lty=3)
abline(h=0, v=0, col = "gray60")
abs(r2[i])>r0
aggregate(iris[,1:4], list(iris$Species), mean)
AND: &; OR: |; NOT: !
anova(lm(data1[,3]~data1[,1... 阅读全帖
m****s
发帖数: 18160
26
☆─────────────────────────────────────☆
honde (天地有正气,杂然赋流形) 于 (Thu Dec 2 17:46:46 2010, 美东) 提到:
发信人: honde (天地有正气,杂然赋流形), 信区: board
标 题: 钻风总管,您老还是把大帅请回来吧
发信站: BBS 未名空间站 (Thu Dec 2 17:46:26 2010, 美东)
没了大帅的驾驭,屎版几个搅屎棍现在转战军版了,
鸭子也整天望眼欲穿,天天念叨着公粮,凄惨的不得了
☆─────────────────────────────────────☆
mitbbs (未名空间) 于 (Thu Dec 2 19:26:52 2010, 美东) 提到:
[合集] 看了看StationCC最近作的版务,还不错
http://mitbbs.com/article1/board/31348615_3_0.html
站方希望能请到 大帅 申请 其他版 做版主。

☆─────────────────────────────────────☆
ho... 阅读全帖
S*******C
发帖数: 822
27
来自主题: JobHunting版 - Java 面试关于map 和set
这种方法会抛出ConcurrentModificationException异常,因为迭代过程中不允许修改
hashmap的state
/**
given Map hashMap 和 Set hashset,当set的key出现在map里面时,保留Map
里面的元素,最后返回map.
*/
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
public class SetAndMap {
public static void main(String args[]){
Map hashmap=new HashMap();
hashmap.put("1","A");
hashmap.put("2","B");
hashmap.put("3","C");
hashmap.put("4","D");
hashmap.put("5"... 阅读全帖
a*****y
发帖数: 33185
28
来自主题: Wisdom版 - 概念法与究竟真实法-ZZ
【 以下文字转载自 ariya_sacca 俱乐部 】
发信人: JeanIris (Iris), 信区: ariya_sacca
标 题: 概念法与究竟真实法-ZZ
发信站: BBS 未名空间站 (Fri Jan 28 09:27:50 2011, 美东)
概念法与究竟真实法
Concept and Reality
英译中:metta
2010年11月
(This is the appendix B of the book "The Essentials of Insight
Meditation Practice--A Pragmatic Approach to Vipassana" by Ven. Sayadaw
Sujiva 这是舍弃我禅师著《Mahasi毗 婆舍那禅修法要》的附录B)
It is important that the meditator understands the difference
between “concept” and “ultimate realities,” because it is the direction
which he... 阅读全帖
s**********8
发帖数: 25265
29
来自主题: MedicalDevice版 - sterilization: 器械灭菌
Sterilization (microbiology)
http://en.wikipedia.org/wiki/Sterilization_(microbiology)
From Wikipedia, the free encyclopediaJump to: navigation, search This
article has multiple issues. Please help improve it or discuss these issues
on the talk page.
It may need reorganization to meet Wikipedia's quality standards. Tagged
since March 2008.
It is in need of attention from an expert on the subject. WikiProject
Microbiology may be able to help recruit one. Tagged since December 2010.
Contents [hide... 阅读全帖
a****a
发帖数: 5763
30
2011年12月3日,LLVM 3.0正式版发布,完整支持所有ISO C++标准和大部分C++ 0x的新
特性, 这对于一个短短几年的全新项目来说非常不易。
开发者的惊愕
在2011年WWDC(苹果全球开发者大会)的一场与Objective-C相关的讲座上,开发者的
人生观被颠覆了。
作为一个开发者,管理好自己程序所使用的内存是天经地义的事,好比人们在溜狗时必
须清理狗的排泄物一样(美国随处可见“Clean up after your dogs”的标志)。在本
科阶段上C语言的课程时,教授们会向学生反复强调:如果使用malloc函数申请了一块
内存,使用完后必须再使用free函数把申请的内存还给系统——如果不还,会造成“内
存泄漏”的结果。这对于Hello World可能还不算严重,但对于庞大的程序或是长时间
运行的服务器程序,泄内存是致命的。如果没记住,自己还清理了两次,造成的结果则
严重得多——直接导致程序崩溃。
Objective-C有类似malloc/free的对子,叫alloc/dealloc,这种原始的方式如同管理C
内存一样困难。所以Objective-C中的内存管理又增... 阅读全帖
o**2
发帖数: 168
31
来自主题: Programming版 - FMP vs ExecutorService/Future
关于immutable objects
首先我要指出的是:immutable objects即不是FMP的goal,也不是FMP的feature,它们
和FMP没有关系。
多线程编程需要immutable objects,这样可以减轻出错的机会。因为你编这些object
的时候,不需要考虑thread safe了。
FMP中的每一个active object都是一个独立的处理中心,FMP保证每一个active object
的impl object及其用到的所有objects,都将运行在同一个单线程环境中。于是,
objects是不是immutable已经不是一个concern了。
FMP的message里的objects是要暴露在不同的线程里的,至少在一个caller object和一
个impl object里,这样就有两个thread了。
FMP的应对是允许用户选择他们觉得合适的messenger implementation。FMP是一个spec
,不同的software vendor可以提供不同的messenger impl。因为messenger impl的成
本很低,比如... 阅读全帖
y**l
发帖数: 714
32
来自主题: TrustInJesus版 - 质疑神存在的见证
我今晚抽空大致了解了一下笛卡尔的哲学,特别是关于上帝是否存在的逻辑。前人,包
括哲学家和神学家,都有质疑过他逻辑中的问题,其中有些质疑跟你的很相似。
你提到"如果有人认为Descartes用逻辑和科学证明神的存在是错误的,而用盲目的迷信
和主观的无知去证明上帝的存在才是正确的,那我实在无话可说。"——笛卡尔的逻辑
正确与否,与“用盲目的迷信和主观的无知去证明上帝的存在才是正确的”并不见得有
关联。认为笛卡尔逻辑有误的,并不一定认为“用盲目的迷信和主观的无知去证明上帝
的存在才是正确的”。
我想笛卡尔是从他的角度试图证明上帝的存在。如果像你提出的疑问那样,他的逻辑是
有漏洞的,则说明他这种方法并不能证明上帝存在,并不说明逻辑学有问题。我们又回
到了“既不能证明有,又不能证明无”的“尴尬”境地。
你问的具体问题,恐怕不是三言两语可以说清楚的。笛卡尔的逻辑可能确实是有漏洞。
你问题的答案,应该在前人对笛卡尔逻辑质疑的文章里找比较好,毕竟那些哲学家和神
学家都是聪明人,也花了很多时间仔细思考过的。
维基这里有个简单的列表:http://en.wikipedia.org/wiki/Meditat... 阅读全帖
R****a
发帖数: 6858
33
来自主题: Military版 - 大棋局与9/11
大棋局与9/11
来源: ognc 于 2013-02-22 16:08:44[档案] [博客] [旧帖] [转至博客] [给我悄悄
话] 本文已被阅读:63次
字体:调大/调小/重置 | 加入书签| 打印| 所有跟帖 | 加跟贴| 查看当前最热讨论主题
The Moral Decoding of 9-11
By Prof. John McMurtry
(Journal of 9/11 Studies) - I was sceptical of the 9-11 event from the first
time I saw it on television. It was on every major network within minutes.
All the guilty parties were declared before any evidence was shown. The
first questions of any criminal investigation were erased. Who had the most
compelling motives for... 阅读全帖
b*****n
发帖数: 2324
34
来自主题: Military版 - est