recentpopularlog in

aries1988 : programming   50

We decoded NASA’s messages to aliens by hand - YouTube
In 1977, twin golden records were sent into space on the Voyager 1 and 2 spacecraft. Still sailing through space at nearly 60,000 km per hour, the records…
video  earth  image  information  engineering  decode  programming  science 
february 2019 by aries1988
phi -= pEqn.flux() vs. linearInterpolate(U) & mesh.Sf() - Page 2 -- CFD Online Discussion Forums

After re-reading your last and previous posts and also Issa's paper and Jasak's Thesis, I think I should clarify this a bit. My previous consideration is NOT right, since H(U) is updated between every two consecutive PISO correctors (so k-1 times along the whole time step, if k is the number of PISO correctors), but ONLY in terms of the cell-centered neighbour velocities U_N, and NOT in terms of the phi contribution inside discretization coefficients (a_N, but also the owner coefficient a_P, which contributes in the construction of the HbyA vector).
algorithm  piso  cfd  programming  ofm 
november 2018 by aries1988
编程要从娃娃抓起:家长们的焦虑托起百亿级产业
Scratch是麻省理工学院开发的一款专门针对低年龄段孩子的编程工具,因其入门简单、操作极具趣味性,推出十余年来,已经是世界上最流行的儿童编程语言。即便是不会英语、不会用键盘打字的孩子,也可以通过拖拽积木形状的模块来实现构成程序的命令和参数,在制作动画、游戏的过程中学习到有关编程的基本知识。
programming  kid  2018  reportage  china  formation 
september 2018 by aries1988
你要的OpenFOAM编程杂七杂八
因为最近又开始重写求解器代码,代码又搞得有点多。本篇文章谈一谈OpenFOAM代码方面的杂七杂八,不谈CFD算法,只是编程,算是这些年写代码,重写代码,再重写代码,再再重写代码的总结。 OpenFOAM的入门请参考:OpenFOAM入门建议 第一句:可能有些刚入门CFD的朋友不知道我说的是什么,但你总会明白的。 开源和闭源 现在CFD软件非常多,相对于ANSYS Fluent,OpenFOAM最大的特点是开源,也就是代码是公开的。因此我们可以从代码这方面把所有的CFD软件分为: 闭源CFD求解器,例如...
programming  c++  ofm 
february 2018 by aries1988
Modify boundary fields
forAll(field.boundaryField(), I)
{
scalarField& bScalarField = field.boundaryField()[I];
bScalarField = 123;
}
programming  explained  moi  ofm 
january 2018 by aries1988
C char array initialization - Stack Overflow
First, in C, there is no such thing as an empty char. You can use double quotes to designate an empty string, as with:

char* buf = "";
That will give you a pointer to a NUL string, i.e., a single-character string with only the NUL character in it. But you cannot use single quotes with nothing inside them--that is undefined. If you need to designate the NUL character, you have to specify it:
c  c++  explained  programming  vector 
october 2017 by aries1988
野蛮生长 - 我的又一个五年 - 十五言
鼓舞我码字的一个缘由,是我加入了一个很棒的小型写作社区。一群“老司机”带路,写文顺畅了很多。比如“1793”这个集体写书项目,就是大家一起写1793年这个历史横断面,解答“世界如何进入现代”和“东方为何落后西方”两个问题。不同领域的人一起头脑风暴,很容易找到切入点。而相互竞争的写作气氛,让我几乎忘了所谓的写作障碍。“老司机”还教了我不少技巧,写作前要有充分的资料准备、不能把文章写得太散、多篇文章可以组织成一个系列等等。和这群有趣的作者认识,也让我和法律、文学、心理专业搭上线,开拓了不少视野。而凭着爱好、不以利益为前提的交往,格外让人舒心。
bio  phd  story  writing  life  programming  history  hobby 
september 2017 by aries1988
How to Become a Data Scientist - On your own

Here is my cheat sheet of becoming a Data Scientist through your own efforts
list  howto  job  data  online  mooc  resource  programming  tutorial  moi  datascience 
may 2017 by aries1988
MinGW | Minimalist GNU for Windows
MinGW, a contraction of "Minimalist GNU for Windows", is a minimalist development environment for native Microsoft Windows applications.
windows  programming  development 
january 2017 by aries1988
Fortran90 for Fortran77 Programmers
INTENT may be specified for procedure arguments: useful aid to documentation, and allows the compiler to check usage more carefully:
fortran  programming  comparison  moi 
december 2016 by aries1988
Soon We Won’t Program Computers. We’ll Train Them Like Dogs
For much of computing history, we have taken an inside-out view of how machines work. First we write the code, then the machine expresses it. This worldview implied plasticity, but it also suggested a kind of rules-based determinism, a sense that things are the product of their underlying instructions. Machine learning suggests the opposite, an outside-in view in which code doesn’t just determine behavior, behavior also determines code. Machines are products of the world.
programming  ai 
november 2016 by aries1988
How to Write a Git Commit Message
The seven rules of a great git commit message
Keep in mind: This has all been said before.
Separate subject from body with a blank line
Limit the subject line to 50 characters
Capitalize the subject line
Do not end the subject line with a period
Use the imperative mood in the subject line
Wrap the body at 72 characters
Use the body to explain what and why vs. how
best  practice  git  development  programming  tool 
august 2016 by aries1988
TIMER - Compute Elapsed Time
The OpenMP system provides a function used as follows:

seconds = omp_get_wtime ( )
operations to time;
seconds = omp_get_wtime ( ) - seconds;
time  howto  measure  programming  openmp 
march 2016 by aries1988
Programmers: Stop Calling Yourselves Engineers
consider how often your late-model car fails to start inexplicably or your office elevator traps you inside its shaft. Computing has become infrastructure, but it doesn’t work like infrastructure.

When it comes to skyscrapers and bridges and power plants and elevators and the like, engineering has been, and will continue to be, managed partly by professional standards, and partly by regulation around the expertise and duties of engineers. But fifty years’ worth of attempts to turn software development into a legitimate engineering practice have failed.

Software wasn’t ever really akin to manufacturing and construction, where changes were difficult or impossible after initial implementation.

First, the pressure to get things right the first time around was relieved, because updates and changes could be applied centrally, as in the mainframe era.

As a result, software development has become institutionally hermetic. And that’s the opposite of what engineering ought to mean: a collaboration with the world, rather than a separate domain bent on overtaking it.

California, for example, issues Professional licenses for agricultural, chemical, civil, control system, electrical, fire protection, industrial, mechanical, metallurgical, nuclear, petroleum engineering, and traffic engineers.

Engineers bear a burden to the public, and their specific expertise as designers and builders of bridges or buildings—or software—emanates from that responsibility.
engineering  programming  culture  comparison  opinion 
november 2015 by aries1988
Edsger W. Dijkstra - Wikiquote
FORTRAN's tragic fate has been its wide acceptance, mentally chaining thousands and thousands of programmers to our past mistakes.
computer  people  programming  quotes  fortran 
march 2015 by aries1988
Git and Vimdiff
git log --pretty=format:"[%h] %ae, %ar: %s" --stat
diff  git  programming  vim  best  practice 
march 2015 by aries1988
Goldman Sachs Recasts Its Reputation to Woo Tech Talent
In recruiting programmers from elite universities, Wall Street runs up against the idea that Silicon Valley is the technological promised land.

“Whereas in other opportunities you might be considering, it is working one type of data or one type of application, we deal in hundreds of products in hundreds of markets, with thousands or tens of thousands of clients, every day, millions of times of day worldwide,” Afsheen Afshar, a managing director at Goldman Sachs, told the students.

At the Columbia event, the screen at the front of the room had a word cloud showing the cool fields — at least for computer scientists — that Goldman engineers work in, among them “machine learning,” “data mining” and “cloud computing.”

In 2007, for instance, 28.7 percent of M.I.T. graduating seniors took a job in finance and only 9.3 percent went to software companies. At graduation last year, those numbers had flipped, with 21.5 percent of graduates taking software jobs and only 11.8 percent going into finance.

“As soon as we start talking to the candidates about what our starting packages look like, the lifestyle questions about flip-flops and beanbags really start to go away,” he said.
career  choice  technology  finance  youth  future  programming 
november 2014 by aries1988
python - How to replace non ascii characters in string? - Stack Overflow
def removeNonAscii(s): return "".join(filter(lambda x: ord(x)<128, s))
python  programming  code  utf  string  learn 
february 2013 by aries1988
Python UnicodeEncodeError: 'ascii' codec can't encode character « SaltyCrane Blog
Operations related to str and unicode objects
unicode.encode() - converts to str
str.decode() - converts to unicode
unicode(str, encoding) - converts to unicode
ord(c) - returns the Unicode code point of the character
chr(i) - returns a str object for the given ASCII code (inverse of ord() for 8-bit strings)
unichr(i) - returns a unicode object for the given Unicode code (inverse of ord() for Unicode strings)
encoding  programming  python  utf  explained 
december 2012 by aries1988
Unicode in the real world
Another example is posting to del.icio.us, using pydelicious; every link I post here is also submitted to my del.icio.us account via this API and, again, I just use smart_str() to convert the various values (three of them in this case: the link’s title, its URL and a list of tags).
development  programming  python  utf 
december 2012 by aries1988
Arduino的编程练习
先来看张图,这些就是最近两周我用做练习的Arduino程序,同时也学会了用SVN和Google Code进行版本管理。
diy  robot  programming  future 
april 2012 by aries1988
醒醒吧,开发语言只是你手里的扳手
工具是最其次的东西,使用什么工具、工具用的好不好、能不能解决问题,往往并不在于工具本身如何,关键是人的因素占主要,同时要通盘考虑到产品需求、研发人员的招聘难度,现有的平台和技术等等。
当然,作为一个技术人员,保持对新技术的敏感是最要紧的事情。我一直认为,在地球上,只有程序员和医生这两个职业,是必须要终身学习的。但对新技术的敏感,并不代表一定要去实践,甚至在下一个项目里面贸然用上自己并不熟悉的架构,正确的做法是,通过对新技术的了解,开拓思路,在处理新问题上做到触类旁通。
programming  opinion  howto 
march 2011 by aries1988

Copy this bookmark:





to read