I’m reading James Gleick’s The Information, and finding it exceptionally thought provoking.  I’m almost done.  The book is a vivid historical journey and exposition of various interconnected forms of communication as discovered and/or practiced by humans, including the syntax and logic of African drum communication that carries messages miles, the development of Morse code and the telegraph, the history of written word, Shannon’s “A Theory of Communication”, the history of computing machines beginning with Babbage and Ada Lovelace in England to tragic hero Turing and through to modern quantum computing.  It also examines the information theory of biology, like the replication of DNA and discussion of Dawkins’ The Selfish Gene that serves only to replicate itself, to build a protective body, find resources, etc.

Why is this sort of education not more emphasized?  I remember learning about entropy in statistical mechanics, and maybe even from the time as young students when we started using telephones on our own, we could have been learning that the telephone is enabled by a deeply entrenched and complex infrastructure.  Why was it never mentioned in English courses that Poe read work on cryptography and cryptanalysis as well as Laplace, whose philosophical thought, conversely, is not discussed or even mentioned in mathematics courses.  We could easily enrich education at all levels by not erecting thick walls between disciplines, but instead letting each subject, English, maths, sciences, etc., have a multitude of horizons.

Posted in computing, information theory, signal processing | Comments Off on

MATLAB Subsref

I learned a new MATLAB command which seems like it’d be useful for many applications, especially for switching between different methods for subsampling from a vector.  Here’s some sample code:

As I was searching for how best to include Matlab code in this post, I found this interesting LaTeX package that can accommodate the inclusion of source code of just about any language: “listings

Posted in LaTeX, matlab | Comments Off on MATLAB Subsref

Hacking

What does it mean to be a hacker?  If you’re like me, a physics graduate student or any other person struggling to meet your programming demands and expand your programming skills, you might agree with my opinion that it just means you don’t have formal training and get the job done any way you can.  It means being clever and direct.  More sophisticated hackers exploit weaknesses and deficiencies in the code that others write.  On any given day I’ll code some mathematics and then get three different pieces of lab equipment working together.  I build, but I certainly consider myself a hacker.  I get what I need done, ideally in the simplest way possible.  I’ve been at it for a while and I’d like to expand these skills.  Here’s a few links I got today from my daily CodeProject email that are very interesting, especially for young technicians in the post-Arab Spring world.

First, “Books Every Self-taught Computer Scientist Should Read”  Do you know what ‘software engineering’ means?  It’s enticing and even knowing a few principles has proved useful for me.  Concepts such as repeatability, generalization, and not solving the same problem twice can be found in what seems like one of the sacred readings in software engineering, Design Patterns.  The first link reminds me that I should study some Latin as well as C so I get all my languages in order.

Second, “From encryption to darknets: As governments snoop, activists fight back” This is further evidence that us who are technically inclined in any field need to wake up to the cosmic vibrations come to shake world society.

Finally, we are reminded that technology is man made and fallible.  The New York Times reports on recently published findings, acquired through relatively unsophisticated methods, that showed a widely-trusted encryption algorithm was vulnerable to eavesdropping .2% of the time.  Although some consider this acceptable, the authors point out that this still means 2 out of every 1000 transactions are unsecure, which sounds much worse.  “Flaw Found in an Online Encryption Method

 

Posted in computing, mathematics | Comments Off on Hacking

The Zen of (a course in) Management

Sometimes I stress about the degree of specialization many of us pursuing a PhD feel.  This semester I enrolled in a management course, and while it can’t oppose the pressure to specialize, it has already  provided an outlet for me to explore other passions and interests, such as psychology, human behavior, human organization, power structures and relations, finance, and more.  The teacher, Dr. Harry Wilkins who has a PhD from Harvard Business school, recited the saying that a PhD continued to specialize his whole life until the end of his career as a tenured professor and found he knew everything about nothing.  On the flip side, an MBA who ascends to be a CEO of diverse companies finds he has learned nothing about everything.  Perhaps through exploring both management and pursuing my PhD I can get closer to my promethean goal of learning everything about everything.

 

Posted in MGMT | Comments Off on The Zen of (a course in) Management

MATLAB for controlling external hardware

Happy New Year!!!

For a while we’ve used patchy solutions for controlling a digital micromirror device (DMD), first just by roughly changing the included API code, then a professional software engineer designed a beautiful but very complicated Java code to display patterns on the DMD.  Aside from being possibly overcomplicated, this design is not so flexible for us as experimenters.  Often our first designs of measurement patterns are carried out in Matlab before we export them to the other code that controls the mirrors.  Now we have a new project where Matlab needs to read out a measurement, perform a calculation based on that measurement, and generate a new pattern to be displayed based on the outcome of the calculation.  Now it’s my turn to generate a solution — good news: Matlab has built in functions to load the .dll needed to communicate with the DMD.

 

The first search I did on this subject came up with this post on the TI E2E Community page.  Apparently someone was trying to do this with the newer 4000 kit that supports some .OCX/COM object shit that I really don’t know anything about.  I searched around for a while, but then realized I just need to communicate with the libraries included with the API that came with our DMD chipset.

Then on codeproject.com, I found an entry, Connecting MATLAB to C-language DLLs.   It seems matlab has built in functions to call functions contained in .dll files.  For some more info on just what a .dll is, see wikipedia of course, and the microsoft site on how to compile a .dll from .h and .c is also illuminating.  The latter I found with this google search: how to generate a .dll from c code.

I tried just running the code found in “Connecting MATLAB…” and got the error message:

??? Error using ==> loadlibrary at 282
Microsoft Visual C++ 2005 or 2008 is required to use this
feature

So now to remind myself how to check/install compilers in Matlab and hoping I can get Microsoft VC++ 2010 to work instead of 2005 or 2008…

 

Posted in computing | Comments Off on MATLAB for controlling external hardware

Figures with LaTeX

Here’s the latex wiki page for how to make some nice figures directly in latex.

[link]

Posted in LaTeX | Comments Off on Figures with LaTeX

LaTeX Formatting

Good stuff on page formatting from the latex wikibook:

Page Layout section

Posted in LaTeX | Comments Off on LaTeX Formatting

Matlab for reading from ccd camera

here’s a blog post about it [link]

Posted in matlab, Optics | Comments Off on Matlab for reading from ccd camera

Posters in LaTeX with beamer

I’m preparing to make a poster for an upcoming meeting, and I’m sick and tired of powerpoint.  I’ll have a lot of math and I want my .eps figures to be seamlessly weaved in, so naturally I look to latex.  I’d seen beamer used for slideshows before, and on searching for “posters with latex” I found that there’s a beamerposter package.

I also want to modify the style of the poster.  Here are some resources for that:

  • A conversation on the LaTeX community page regarding this with what looks like some useful code [link].
  • A page from someone at purdue with some code [link]
  • Shawn Lankton’s tips on beamerstylesheets with examples [link] (I included his name and a link to his homepage because it looks like it has a lot of interesting and useful material beyond just latex…)
  • random googlecode doc of what seems to be all possible options for beamer stylesheets
Posted in LaTeX | Comments Off on Posters in LaTeX with beamer

TV reconstruction with cvx

TV reconstruction with cvx

Posted in compress(ed/ive) sensing, signal processing | Comments Off on TV reconstruction with cvx