This is the coolest thing I have seen in a while. I frequently spend time on remote hosts via SSH, some, if not most, of which run sshd on a port other than 22. This resulted in me adding “-p 1234″ to every single ssh command I executed.
Well, no more. Today I stumbled upon SSH config. Just edit your ~/.ssh/config file and add the following to get rid of all those -p’s:
Host myserver.com
Port 1234
Do that for all your frequently visited hosts, and you will have saved your fingers a lot of typing.
Christoph Technology ssh
Just wanted to get this out there before I forget about it, so I won’t have the schematics up.
This is your basic audio amplifier without any filters or fancy stuff. The little breadboard on the right has the pre-amp stage, a simple inverting op-amp amplifier with a gain of 4 V/V or so to get the voltage up. The one on the big breadboard on the left is the Class AB stage amp that provides the current to drive the speakers.
All that is plugged into my iPhone on one side and some computer speakers (without internal amplifier, that would be cheating) on the other. David Crowder Band – Wholly Yours is playing! You can see the waveform on the scope in the background, too!
Here’s the video, enjoy!
Christoph Personal, Technology audio amplifier, david crowder
Recently I switched from Opera to Safari, more precisely the Webkit nightlies. The main reason is the great 1Password password manager and form filler that takes care of all my logins and more so that I can be more secure on the web.
One of the main things I missed in Safari that I came to love in Opera are mouse gestures. I checked out the programs most often recommended, but they either didn’t work anymore or cost money now. Until I stumbled upon SafariGestures. It’s a SIMBL plugin (I use PlugSuite instead, either should work) and adds a menu item to your toolbar. From there you can set a plethora of preferences and customize it to your needs.
I actually prefer it over Opera’s mouse gestures; so far it’s been a good switch!
Christoph Technology 1password, opera, plugsuite, safari, simbl, webkit
I am reading in 1 Chronicles right now and just finished the last chapter. David’s prayer in 1 Chronicles 29:10ff reminded me of Jesus’ Sermon on the Mount, where he raised the bar from simply doing to the intentions of the heart. Don’t just not commit adultery, don’t lust in your heart, either. Don’t just not murder, but don’t be angry with your brother, either.
Of course this wasn’t a new concept in the NT, it was supposed to have been like that all along, even under the Law, and the passage in Chronicles makes that clear. Starting in v.17 (emphasize mine):
17 “Since I know, O my God, that You try the heart and delight in uprightness, I, in the integrity of my heart, have willingly offered all these things; so now with joy I have seen Your people, who are present here, make their offerings willingly to You. 18 “O Lord , the God of Abraham, Isaac and Israel, our fathers, preserve this forever in the intentions of the heart of Your people, and direct their heart to You;
19 and give to my son Solomon a perfect heart to keep Your commandments, Your testimonies and Your statutes, and to do them all, and to build the temple, for which I have made provision.”
Notice the focus on the heart, and deeds coming from it. Especially in v19, David asks God to give his son a perfect heart to keep God’s commandments, or in other words, in order that he would keep God’s commandments. Of course God judges our actions, but He also judges our intentions and thoughts.
If you’re not a Christian, how would you stand up to a test like that?
Christoph Theology bible, good person, heart, law
It seems like over 61% of Americans feel like this country is headed in the wrong direction, but at the same time, 60% approve of Obama’s performance.
I realize that Obama isn’t the only one running this country, but it appears to me that he has the most influence on what’s happening right now and what will happen in the future. I don’t believe the majority of people spend too much time thinking…
Christoph Funny, Politics
This is mostly for my own reference, but I hope someone else will benefit from it. It’s mainly to play with transfer functions.
First, generate the transfer function:
% numerator coefficients for s^2 + 2s + 4
num = [1 2 4]
% denominator coefficients for s + 6
den = [ 1 6 ]
% build the transfer function
H = tf(num, den)
% now we can do fun stuff like get a bode plot
bode(H)
% or plot it over a range of frequencies, 100 to 200 radians/s
bode(H,{100,200})
% or we could get the gain and phase shift for a certain frequency, 4*pi here
[gain, phase] = bode(H, 4*pi)
% how about zeroes and poles? Okay...
tzero(H)
poles(H)
To add some more stuff, the transfer function can also be generated when you have the factored form of it to begin with:
% if the denominator looks like (s-1)(s-2)(s-3)
poles = [1 2 3]
% same for zeros: (s+1)(s+2)(s+3)
zeros = [-1 -2 -3]
% and finally, gain K
k = 1
% now we can get the system like so:
H = zpk(zeros, poles, k)
I may add more at a later point. Not too fancy stuff here, but pretty helpful to what I needed done.
Christoph Personal, Technology bode, matlab, systems
Similar to Xdebug, DTrace also didn’t want to work and failed with the same error, so I tried the same trick, and it worked.
Follow the instructions from Lee Packham’s blog but configure it as a 64-bit application:
- tar xzf dtrace-1.0.3fixtar.gz
- cd dtrace-1.0.3+fix
- phpize
- CFLAGS=’-arch x86_64′ ./configure –with-dtrace
- make
- make install
So far so good, the module is loaded. Now let’s see if Instruments will do its thing.
Christoph Technology dtrace, entropy, leopard, osx, php
Since I have been struggling with this for forever and finally found an answer, here’s an attempt to spread the wealth knowledge around.
Blog: Compiling & installing Xdebug for PHP 5.2.5 (Entropy.ch build) on OS X 10.5
Just to give the web crawlers some more info, the error message was:
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so’ – (null) in Unknown on line 0
The solution is to compile it manually as a 64-bit application like so:
CFLAGS=’-arch x86_64′ ./configure –enable-xdebug
Hope this helps someone out there.
Christoph Technology entropy, leopard, osx, php, xdebug
Per Wesley J. Smith’s blog Secondhand Smoke comes this story about adult stem cells being successfully used to treat spinal cord injuries. No one seems to care that these uncontroversial treatments are showing a lot of promise already, and everyone flocks around Obama as he “restores science to its rightful place” by continuing to fund controversial embryonic stem cell research and also cutting funding for adult stem cell research. You won’t find this last one widely reported either. It’s about time the mainstream media lost their influence.
Christoph Culture, Politics
Yeah I’m on a financial roll. This is interesting though. Karl Rove in the WSJ:
Mr. Obama cannot dismiss critics by pointing to President George W. Bush’s decision to run $2.9 trillion in deficits while fighting two wars and dealing with 9/11 and Katrina. Mr. Obama will surpass Mr. Bush’s eight-year total in his first 20 months and 11 days in office, adding $3.2 trillion to the national debt. If America “cannot and will not sustain” deficits like Mr. Bush’s, as Mr. Obama said during the campaign, how can Mr. Obama sustain the geometrically larger ones he’s flogging?
Christoph Politics bush, deficit, obama, rove