Recently in full_entry Category
Problem: My new ISP blocks outgoing port 25 (SMTP) and I want to run a mail server from home.
Solution: I need to set up sendmail so that it uses gmail (or my ISP) as the outgoing smart host.
You'll need SASL running, so yum or apt-get that. Then add the following to your sendmail.mc file:
TRUST_AUTH_MECH(`LOGIN PLAIN GSSAPI DIGEST-MD5 CRAM-MD5')dnl define(`confAUTH_MECHANISMS', `EXTERNAL LOGIN PLAIN GSSAPI DIGEST-MD5 CRAM-MD5')dnl define(`SMART_HOST',`relay:smtp.gmail.com')dnl define(`RELAY_MAILER', `esmtp')dnl define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl FEATURE(`authinfo',`hash /etc/mail/auth/authinfo.db')dnl
Make an authinfo:
/etc/mail/auth/authinfo, chmod it to 0600, and have the following lines in it:
AuthInfo:smtp.gmail.com "U:root" "I:email@example.com" "P:password" "M:PLAIN" AuthInfo:smtp.gmail.com:587 "U:root" "I:firstname.lastname@example.org" "P:password" "M:PLAIN"
(Note: these should actually be all on one line per entry, so two lines for the above.)
As always when dealing with
sendmail.mc, you'll need to run the m4 processor over the file and make the hash maps. Do yourself a favour and have a Makefile to do it for you. Restart sendmail, and you should be good to go!
# makemap hash authinfo.db < auth/authinfo # m4 sendmail.mc > sendmail.cf # service sendmail restart
And note that if you use Application Specific passwords (i.e. 2 step authentication), you'll need to generate a password for this.
Helpful info from:
UPDATE: While the above is fine and works, Google's mail servers rewrite the
From: address to the gmail account you use to authenticate. This is not the best solution if you want to not appear to only be able to send from gmail.com. Here are some other changes to use the ISP's mail server. (In this case I'm using netvigator.com, others should be similar.)
/etc/mail/auth/authinfo (Note that I don't need to specify the higher ports, as the ISP only accepts on port 25. The Method ("
M:PLAIN") doesn't seem to be required either.
AuthInfo:smtp.netvigator.com "U:username" "P:password"
define(`SMART_HOST',`relay:smtp.netvigator.com')dnl define(`RELAY_MAILER', `esmtp')dnl define(`RELAY_MAILER_ARGS', `TCP $h 25')dnl define(`ESMTP_MAILER_ARGS', `TCP $h 25')dnl FEATURE(`authinfo',`hash /etc/mail/auth/authinfo.db')dnl
And to enable all this:
# makemap hash authinfo.db < auth/authinfo # m4 sendmail.mc > sendmail.cf # service sendmail restart
I'm taking a break from doing this.
You may enjoy some of the links on the left.
"Daniel Goldsmith" called me back tonight with the spiel for buying into an IPO on an institutional investment rate.
The IPO deal was for a company called USA Oil And Gas Corp (Nice and generic, huh? Although the company does appear to exist.) and how they were about to be snapped up by Halliburton and be given vast amounts of previously untenable oilfields to extract oil from.
(At least he didn't read out the URL in pseudo-milspeak like he did the company one: "Kilo! India! November! Golf! Sierra! Mike! Echo! Alpha! Delta! Papa! Echo! er, dot com". I was so tempted to come back with Whiskey Tango Foxtrot!)
He reckoned that the opening price for the IPO would be USD 1.95, but I could get on board for USD 1.50 and cash in after the IPO.
While explaining the details of the deal, he was really hammering on the "little yeses". This is a sales technique which involves getting the
sucker 'valued customer' to agree with you at each incremental step along the way so that they hopefully agree to give you all their money at the end.
I told him I wasn't interested in doing business. He got quite angry at that point and, although he managed to control himself, he started getting quite snappy. He told me that if I didn't get on board now, I'd be sorry in five weeks (the IPO time), and he'd call me back to gloat.
When I mentioned finding negative reviews of KingsmeadPE on the Motley Fool forums and how they appeared to be a Boiler Room, he started up with a cock and bull story about how a disgruntled office junior named Walters was poisoning the good name of the company. At that point, I hung up on him, having better things to do.
That's not the kind of profile you expect from a respectable business!
UPDATE: so, about 45 minutes after posting this, this post is #3 on the google search for KingsmeadPE.
Yesterday, for various reasons, I attended one of those pre-construction presentations where a property developer tries to convince you to pre-buy a flat in an upcoming development. This development was a Lohas Park, over in Tseung Kwan O.
The brochures actually looked promising: it's an attempt at a pretty green development on the southern spur from the Tseung Kwan O line. Flat sizes range from 650-odd square feet to 1165 sq.ft. These sizes are probably lower-middle to middle-middle class in Hong Kong terms. The 1165 unit was interesting to us as we currently live in 1120sq.ft, which suits us fine.
(Note: HK flat sizes are specified as Gross Floor Area (GFA), which includes an allowance for the common areas, such as the entrance ways, lift lobbies, etc. Generally, they like to claim a utilisation of 75% or so, which means that you're getting 75% of what you paid for. In places with actual competition laws, property developers would have to tell you the actual size. In HK, you put up *AND* shut up.)
Once into the presentation itself (after queueing for more than an hour or two), we were treated to some aspirational video telling us that our new neighbours will all be very attractive Westerners with hobbies like lounging around the pool, shopping, being massaged and having western servants. This seemed a bit out of odds with the crowd actually gathered to view these presentations, but I guess the main point was: "Your neighbours won't really be the obnoxious market stall holders who are elbowing you in the ribs right now, and who smell of durian and don't understand the concept of standing in line."
(The man who smelled like sweaty durian was standing directly behind us and kept saying things like "Why can't I go in front of the gweilo? They never buy anyway, he's just here to look.")
Once past the aspirational videos, we were treated to displays of how glorious the clubhouse, sorry -- Premier Club Spa -- would be, and how wonderful the vaguely Germanic stock photo people would be when shopping. (A HK shopping mall full of blonde hair? Seriously?)
Then, we finally got to see the mockups of the biggest of the potential flats as recreated in a Jordan showroom. Despite the fact that the developer could have made the show flats bigger than reality, despite the fact the the show flats had no internal doors, despite the fact that there were no internal doorways just huge gaping openings, despite the fact that this was all marketing material, the show flats appeared to be far smaller than advertised.
We looked at the largest one first. 1165 square feet. Officially, about the same net size as our current flat. (We have a huge living/dining room, and three fairly large bedrooms, one of which is my office and the kids playroom.) It was tiny. They couldn't even get four bedrooms (as advertised) in the mockup -- they had to make two rooms into one just to *fit* a double bed in the master bedroom, and there was no storage. The two child rooms only worked because they had half of the beds into the bay windows.
In terms of actual usable living room, it looked like less than 600 sq.ft. My cousin's public housing flat in Shek Kip Mei looked more appealing.
The smaller flat, of 900sq.ft. was one of the worst laid out flats I've ever seen.
We came away from the whole travesty with the realisation that, for us to even think about living there, we'd have to buy two flats and knock them into one.
We may still buy a unit there, but purely for investment purposes. We'll continue to live in human sized older units over here on Hong Kong Island, not whatever shoeboxes Li Ka Shing thinks he can convince HongKongers in 400sq.ft. public housing to buy.
It is, without a shadow of a doubt, the best made laptop in Apple's lineup. The build quality is astonishing, and the feel of holding the thing in your hand is amazing. The use of tapered edges makes it feel even thinner than it really is. As the screen and keyboard are full size (and almost the same as a MacBook), the thinness of the device is very striking.
Being made of metal, the 3 pound weight (2 pounds lighter than a MacBook) confounds your senses. You expect a plastic MacBook to be light, and it is. But this feels so solid and metallic in your hand and is lighter so you seem to discount its weight completely. It almost feels weightless.
The keyboard feels slightly more solid than the MacBook one, but I think that this is mainly down to the different materials.
Technically, the laptop is far too compromised to be of interest to me. The hard disk is too small, the CPU slightly too slow, it has integrated graphics, and the non-expandable RAM is a real concern for power users. But this machine isn't aimed at power users. It's aimed at people who use their laptop for email, writing, photos, web-browsing, etc. Normal stuff. Not running Crysis, making HD movies or Music production.
People are decrying the lack of USB ports and thinking that you'll need a powered hub, but the single USB slot is a high power slot. It must be, as it provides power to the optional SuperDrive. I'm sure it won't be long before there are sleek hubs powered from the +5V line on that with style to match the Air.
It's gorgeous, and it might just redefine the consumer laptop as a device where the technology disappears and you just have a beautiful screen and keyboard. And seemingly no computer.
 a 1.6Ghz Core 2 Duo is about as fast as a 3.2Ghz Pentium 4 processor. And probably faster on some tasks, as there are two independent cores rather than the 1.5 cores you get with Hyperthreading. Slow is relative.
Woah, Google is going to buy Skype? This week's This Week in Tech Podcast makes that statement and it sounds pretty interesting, especially in conjunction with the Android mobile phone SDK.
Imagine a world where most phones are wifi-enabled and have VOIP. Instant free phone calls in those places where you have Wifi. Instant Messaging instead of SMS, and email instead of MMS.
Instant death to the Mobile Phone companies, which is also the long-term plan for the iPhone (in my opinion, anyway). That's mobile phone network providers, not Nokia, et al.
I had a phone call yesterday from a company(?) calling themselves Kingsmeade Equity.
They claimed to be a financial services company who would help me invest. The call was very low-pressure - basically a chat about the markets, where they would go, and what did I think. The caller had a English accent (London, I think, although it could've been more northern) calling himself "Daniel Goldsmith" calling from Tokyo.
The thing which worries me is that I can find no trace of the company online. I find it very difficult to believe that you can have a global trading company which doesn't show up in Google. This may just be a spelling thing, but Google normally searches for similarly sounding word. Does anyone know of a "Kingsmeade Equity"?
Also, the amount of backchat I could hear (The caller clearly talking to someone else when he thought I couldn't hear) was odd. Obviously there was someone else listening to the call and commenting ,saying things like "he's saying he's not with us". It seemed a bit unprofessional.
UPDATE: I just love having google juice. This is now the first of the entries on google if you search for kingsmeade equity, and you don't even need quotes. Despite having a Google Page Rank of only 3/10.
UPDATE 27/02/2008: The company appears to be KingsmeadPE.
Perhaps he will move it (move it) later.
It's apparently not possible to forward an SMS from the iPhone. And you obviously can't copy and paste the SMS into an email and forward it that way.
If you need to have the latest currency rates on your iPhone, there's a very simple hack to do it. Open the Stocks widget, and add a new stock with the name in following format: <currency_code_1><currency_code_2>=X. See the image for examples.
For HK Stocks, just add the four digit stock code, followed by .HK.
- Unsolicited Bulk Email (spam), commercial solicitations, SEO related items, link exchange requests, and abuse are not welcome here and will result in complaints to your ISP.
- Any email to the above address may be made public at the sole discretion of the recipient.
- WWdN: In Exile (Wil Wheaton)
- Uncertain Principles
- Crooked Timber
- Official Google Blog
- Wine Library TV
- Making Light
- The Language Hat
- Neil Gaiman
- Whatever: John Scalzi
- Charlie Stross's Diary
- Ken MacLeod
- Dave Langford's Ansible
- Contrary Brin
- Stephen Fry
- Veronica Belmont
- Merlin Mann
- Kung Fu Grippe
- Jonathan Coulton
- David Gerrold
- The Sideshow
- Josh Marshall
- Atrios (Eschaton)
- 43 Folders
- Wis[s]e Words: Ceci n'est pas un blog
- Wil Harris
- Boing Boing
- The Poor Man
- Creative Commons
Apple News and blogs
- Apple Hot News
- Mac Rumors
- Andy Ihnatko
- Apple Insider
- Fake Steve Jobs
- Erica Sadun iPhone developer
- Mac OS X Hints
- 9 to 5 Mac
Photography News and blogs
- This Week in Photography
- TWiP Blog
- Strobist (flash photography)
- Stuck In Customs (HDR)
- Pentax Support
- The Gimp
News and Politics
- Google News
- BBC News
- South China Morning Post
- HK Standard
- UK Guardian
- Your Yahoo!
- Christian Science Monitor
- The Onion (Even better than the real thing!)
- User Friendly by Illiad
- Sheldon by Dave Kellett
- Dilbert by Scott Adams
- Doonesbury by Trudeau
- XKCD by Randall Munroe
- The Joy of Tech comic by nitrozac
- PVP Online by Scott Kurtz
- Real Life by Greg Dean
- Questionable Content
- Mega Tokyo
- WonderMark by David Maliki
- Girl Genius
- Penny Arcade by Gabe and Tycho
- NASA astronomy picture of the day
- The World of Lily Wong
- Hi Jinks Ensue
- Three Panel Soul
- Girls With Slingshots