Anonymous asked
Who am I?

A person created in the image of Christ … or maybe a very intelligent cat. Not sure.

Anonymous asked
what is underwater optical communication?Please give me the detailed idea about the same.what is on off keying and why is it required?

Underwater optical communication is a method of communicate data via an optical signal underwater. 

On-off keying is a baseband form of digital communication with 1 bit per symbol. The two symbols are a high and low values, which, respectively, communicate a bit ‘1’ and bit ‘0’. For optical signaling, this usually equates to turning off and on the optical source. It’s not required, but it’s convenient and usually has a lower average power than other forms of optical communication (like subcarrier intensity modulation)

Good overview of an exciting field. I hope to dive into this at my new job at 3 Phoenix Inc.

Sumatra and TeXnicCenter Inverse Search

What’s the difference between this command:

/ddecmd “[goto(’%f’,’%l’)]

and this one?

/ddecmd “[goto(‘%f’,’%l’)]

In practice, the latter allows you to do a proper inverse search (clicking on the PDF takes you to the relevant section of the LaTeX document for editing), while the former does not.

That little tick mark, , is wrong. It should be a single quote, . I don’t even know what it is, because it’s not a single backquote, `. It’s something entirely different that jumped into the command and frustrated me for many hours. 

Now you know. Not all quotes are the same.

Q: Do you still drink cheap beer?

A: I do. I play on an adult hockey league team. And every week it’s one of my teammate’s job to bring a 30 pack of cheap, cold cans of lager. And whatever one it is, whatever brand it is I look forward to having it. There’s nothing like that light lager for refreshing after a hockey game. There’s really not any other occasions in my week where I’m craving that kind of beer. But I’m a beer geek, not a beer snob. And all beer is good. And there’s a time and place for any kind of beer.

Nothing is easier to achieve than full employment, once it is divorced from the goal of full production and taken as an end in itself. Hitler provided full employment with a huge armament program. World War II provided full employment for every nation involved. The slave labor in Germany had full employment. Prisons and chain gangs have full employment. Coercion can always provide full employment.

Setting the Axis of a MATLAB Plot

I ran into a situation where I was progromatically making a plot and I wanted it to be formatted correctly each time. This saves me effort from having to manually fix aspects of the plot that aren’t set. 

The trouble is, MATLAB doesn’t make this particularly easy. There’s lots of figure handles and such that need to be manipulated. Here’s a code snippet that a) creates a figure b) lets you manually set the axis properties and c) plots data on that axis. 

figure(2); % Create figure #2. Note this figure does NOT have an axis associated  
		% with it. If you call 'hold on' it WILL create a default axis.
axes1 = axes('Parent',gcf,'YScale','log','YMinorTick','on',...
    'YMinorGrid','on',...
    'YGrid','on',...
    'XGrid','on'); % Creates a semilog axis with logarithmic y-axis, etc.
hold(axes1,'all'); % Prevents subsequent plots from changing the axis property
plot(...,'Parent',axes1);  % Plot data on this new axis. I don't think this is strictly 
 % necessary, but can help if you have trouble.

So, there you go. Don’t forget you can use the following to add title, labels, and set the axis limits:

title({'Title line 1','Title line 2'},'FontSize',12);
xlabel('X label','FontSize',12);
ylabel('Y label','FontSize',12);
ylim([1e-012 1]);
xlim([1 10]);

MOG Just Sent Me My Plaintext Password

So there’s plenty of online music streaming services - Pandora, Spotify, Grooveshark … and MOG. MOG just announced their new “free” service so I decided to sign up. Awesome. 

All fine and good until I get my confirmation email:

WTF MOG?! You’re storing my password in plaintext?!? Have you ever developed a web app before? Hash-ed much?

Long story short, if you care about security you won’t sign up for MOG.

Mr. Hamilton could stand to break up some sentences

I’m reading the Federalist Papers. Two paragraphs in, I come across this monster:

The most formidable of the obstacles which the new Constitution will have to encounter may readily be distinguished the obvious interest of a certain class of men in every State to resist all changes which may hazard a diminution of the power, emolument, and consequence of the offices they hold under the State establishments; and the perverted ambition of another class of men, who will either hope to aggrandize themselves by the confusions of their country, or will flatter themselves with fairer prospects of elevation from the subdivision of the empire into several partial confederacies than from its union under one government.

James Madison; Alexander Hamilton; John Jay. The Federalist Papers (Kindle Locations 129-133). 

One sentence. Wow.