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

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

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的编程练习

diy  robot  programming  future
april 2012 by aries1988

programming  opinion  howto
march 2011 by aries1988

Copy this bookmark: