研究水平:商业公司 vs. 大学 应用研究&应用基础研究&基础研究

其实现在已经有这样的例子了,主要是大公司的研究部门和大学的对比,当然是水平可以比较的情况下,比如CMU, Stanford, 等对比Google的研究部门,记得Andrew Ng在Google做的Y2B深度学习猫的研究,调动的计算资源可能不是斯坦福具有的,而这样的有钱的公司,如果真要做某些事情,我看也可以做得到。Google Glass 2006年开始做,自动驾驶印象中也是那个时候,谁知道现在还在做什么未来10年的大技术呢。在这一点上,大学至少从经费支持上,不一定比得过。而且人家接地气呀。所以,在应用研究和应用基础研究上,大学不一定比得上大公司。

再举一个例子,最近审稿审到做LED headlamp,摩托车上用的, Read more »

电脑SSH代理给手机上网

由于总所周知的原因,google在中国不容易上

但很多时候查资料,baidu是很烂的,google是很好的

为了这一点也要想办法上

bitvise services 里面 listen interface 0.0.0.0

port 1525

privoxy里面

forward-socks5 / 127.0.0.1:1525 .
listen-address 0.0.0.0:8118

Nexus5 wifi高级设置

proxy manual

192.168.168.101(ipconfig /all 看连上网的那个连接的ipv4地址)

port 8118

dhcp

此时,浏览器应该能够上google了,要更新play的话,需要手机上安装drony app,安装了之后

setting

wifi

电脑和手机同时连上的那个无线ssid

proxy type: manual

start option:allways start

proxy type:plain http

host name:192.168.168.101

port:8118

其余保持默认

选项改变了之后要重新on/off一下生效

然后点play就可以上了,更新速度快

黑莓的没落是注定的

因为太不在意客户需求了

电量低到一定程度就不能用无线电,哎我就奇怪了,一般用户可能都是想无线电开到直接断电为好,无线电不能用,开着手机干什么呢?黑莓你们是为什么要这样设定系统功能,谁定义的,真是太奇怪了,电话打到一半,手机还开着,电话不能打,接收验证码,收到一半(好险还都收了)信号断掉,请问黑莓这种情况下,要这个手机作甚?手机是工具,不是TM你们是随意做决定的

黑莓必须要没落

开心一笑7

One joke a day, keeps the doctor away.

———————————————————

[出差前老婆给了几百块,想不到几天就花了,想不起来哪里花的,正在想呢,自言自语中]

我:打的花了40,车票来回140.。。。。。。还差300啊。。。。怎么花的。。。。。应该也没掉啊。。。。。。

我:哦~~~~!

沉默了几秒

老婆:你哦啥,你肯定是去吃了个金钱豹,花了300,这就对上了

undefined reference to `SetDIBitsToDevice@48′

from [1]一样的问题, 添加后解决
Hello,Recently I’ve downloaded Code::Blocks because I’d like to make projects that are open and multi platform. I want to make a very simple program that uses the C image liberary CImg.
The whole library is included in a single header called :CImg.h”. I’ve included this in the same folder as my project I wish to work on. I have also included the header file in my source code for the project.

The minimum code contained in my main.cpp file looks like this:

#include"CImg.h"usingnamespace cimg_library;int main(){constunsignedchar purple[]={255,0,255};CImg<unsignedchar>(640,400,1,3,0).draw_text(100,100,"Hello World",purple).display("My first CImg code");return0;}

Upon compiling I get the following errors:


obj\Release\main.o:main.cpp||undefined reference to `SetDIBitsToDevice@48'|
obj\Release\main.o:main.cpp|| undefined reference to `SetDIBitsToDevice@48'|
obj\Release\main.o:main.cpp|| undefined reference to `SetDIBitsToDevice@48'|
obj\Release\main.o:main.cpp||undefined reference to `SetDIBitsToDevice@48'|
obj\Release\main.o:main.cpp|| undefined reference to `SetDIBitsToDevice@48'|
obj\Release\main.o:main.cpp|| more undefined references to `SetDIBitsToDevice@48' follow|||===Build finished:6 errors,0 warnings ===|

I’m not used to really working much with external dependencies with Code::Blocks and I’ve not ventured beyond playing with SFML (which I got working following a tutorial).
I’m working on Windows 7 at the moment if that is of any help. I’m not advanced with C++ but I have an understanding of the core library. Adding dependent libraries is really a headache it seems…

Sponsor:

#2Ryan Konky   Members   –  Reputation: 95

Like

0Likes1Likes

Like

Posted 10 June 2011 – 07:58 AM

Although I don’t know CImg, undefined reference normally means you haven’t linked something properly.Meaning, either it’s not there (under more options in build options), in the wrong order or the library files is not in the places where you have specified. (MinGW compiler library folder or somewhere else on your hard drive).

Sometimes, particularly with things like Qt4 and Java, you may need to setup Environmental Variables under Advanced Properties in Computer; this is for in folders other than the MinGW library folder.

My TwitterI do not care for reputation, merely to help fellow users.

#3nife87   Members   –  Reputation: 516

Like

0Likes1Likes

Like

Posted 10 June 2011 – 08:06 AM

A quick search on Google (SetDIBitsToDevice) revealed that you need to link with libgdi32.a (assuming MinGW). Under Build Options – Linker Settings – Link Libraries, add gdi32.

#4Ryan_Burnside   Members   –  Reputation: 106

Like

0Likes1Likes

Like

Posted 10 June 2011 – 07:29 PM

‘nife87’, on 10 Jun 2011 – 10:06 PM, said:

A quick search on Google (SetDIBitsToDevice) revealed that you need to link with libgdi32.a (assuming MinGW). Under Build Options – Linker Settings – Link Libraries, add gdi32.

Thank you SO much!
Working now!

What is a general rule of thumb process when adding a new library to a project?
It seems that no two libraries share exactly the same steps…

#5nife87   Members   –  Reputation: 516

Like

1Likes2Likes

Like

Posted 11 June 2011 – 07:09 PM

Rule of thumb: Include as few headers as possible, and link as few libraries as possible :wink:As mentioned, most “undefined reference to SomeFunction@XX” are linker errors (the value XX indicates how many bytes of parameters it expects), and if you do not know which library it is defined within, you will just have to search (Google is your friend) or look in the source. Chances are, you are not the first to ask this question, or it will be documentated somewhere online, as the aforementioned function were on MSDN.

When you want to use a new library, you have usually read an article/tutorial about it, so you will know what functions/classes to use, which basic headers to include and which libraries to link with. The latter is only an option when someone have been so kind as to compile them for you – otherwise this you will also have to do yourself (can be a bit tricky if you also have to guess the compiler and linker parameters).
Now, whether you have read about its usage or not, it is always a good thing to get an overview of the library’s general structure, since no two libraries are the same (as you have discovered). This will also give you an understanding of its usage and a clue as to how it works internally (can be useful when strange errors start to pop up). Just a quick look through the API Reference (Doxygen) or similar will usually do (heck, even scanning the main “include” directory reveils a lot about its structure if the headers are properly named).

[1] http://www.gamedev.net/topic/603840-codeblocks-cimg/

C++ undefined reference to WinMain@16 (Code::Blocks)

同样的问题,

http://stackoverflow.com/questions/21500724/c-undefined-reference-to-winmain16-codeblocks

解决方案为

Try this: Settings->Compiler, click the tab Build options, select the checkbox

Explicitly add currently compiling file’s directory to compiler search dirs

P.S.

Next time when you create a new class, in the File policy section, make sure you select checkboxes

  • Add path to project
  • Header and implementation file shall be in same folder

However, do NOT select

Use relative path

stay uncomfortable 不要在舒适区呆着

Women Techmakers Summit – Staying Uncomfortable: How I Got to Design Glass featuring Isabelle Olsson

https://www.youtube.com/watch?v=JXWJN0DtH2c&list=UU_x5XG1OV2P6uZZ5FSM9Ttw

来自Google Glass的主要设计师 Isabelle Olsson 的分享, 不要呆在自己的舒适区, 要勇于挑战并且呆在不舒适区, 才能够达成一些刚开始看起来不能完成但最终被证实非常有影响力的事情.

想起了9gag上的一个图[1]和另外一个地方的图[2], 表达了相似的含义, 共勉, 在保证身体健康情况下, 走出comfort zone, 尝试不可能

[1] http://9gag.com/gag/4578361/your-comfort-zone-vs-where-the-magic-happens

[2] http://wishesforthesoul.files.wordpress.com/2013/08/4397d05310079996d45c3e85f5af2b63.jpg

« Older Entries Recent Entries »