Showing posts in the category tech. The application of science. In many ways. Show all posts
Jan 21
How Facebook crunches images
Posted by Nathaniel Robertson at 8:48 pm on January 21, 2010 in tech | 1 Comment »

I have found a few things out about what Facebook does to your pictures after you upload them, 100% by my own experimentation. In list format:

  • Scales the image down so that the longest side is 604 pixels if it was bigger than that to start with.
  • Recompress all images as JPEGs at quality 85. I found this out with ImageMagick: identify.exe –verbose filenamehere.jpg. Hat tip to Arjan van Bentem for pointing me to IM. It doesn’t look like 85 is all that bad, by the way, if Wikipedia’s sample JPG compressed photos are anything to go by, but do bear in mind that multiple JPEG resaves will degrade the image quality, since it is a lossy format (but of course just copying or downloading it won’t mess with it at all). Also, Facebook will recompress it even if you upload a JPEG image at the correct size (using quality 85 doesn’t work either; it gets recompressed at 85 again)
  • Converts image to Grayscale mode if it is a grayscale image. I suspect this might make it smaller.

So, beware of decreased image quality if you are uploading a twice-(or more)-saved JPEG. That being said, I wouldn’t worry about it much, since it’s only Facebook. If you have a slow link to the net, I’d say go right ahead. I wrote about sizing your photos down for faster Facebook uploads a while back, so if you need some instructions, here you are.

Oh, and one more thing. I have found that JPEG compression can be used to artistic effect. Orange Peal Design’s site is a good example (in fact, the only one I know about). Gives it a certain feeling and not just a crappy impression. Strange how these things work.

Jan 6
“Taming” Avira and console mode for Linux
Posted by Matthew Hurley at 9:02 pm on January 6, 2010 in tech | 1 Comment »

Avira

Two quick things today. First, a tip on how to disable the splash screen and annoying popup “nag” screen on Avira Free AntiVir version 9. To get rid of the splash and nag screens, just follow the instructions here. You can also disable the little update notifier following these instructions. As an aside, this section of the title was loosely derived from a Grand Stream Dreams blog post on Taming AVG Free version 8.

Linux

Next, switching to console mode, a useful tool for Linux users. While it is usually preferable to use some form of GUI for general computing tasks, there are times, even if you’re not running a specialized server or recovering a corrupted machine, when a simple comand-line interface would come in exceedingly handy. You can, of course, open a terminal window to get a text interface, which is great for quickly and efficiently running powerful commands, while looking and feeling hardcore. The advantage here is that you can open other windows and continue using the GUI. However, there are times when a program crashes or the GUI freezes, and dropping to console mode acts as the equivalent of the Windows Task Manager. This can be easily accomplished with the shortcut key Ctrl+Alt+F1, with F1-F6 opening separate terminal instances. You can then terminate the offending program or restart the X server, and return to the GUI with Ctrl+Alt+F7.

Further reading here.

Jan 4
Lorem ipsum dolor sit amet.com
Posted by Nathaniel Robertson at 8:00 pm on January 4, 2010 in tech, uncategorized | 1 Comment »

Loremipsumdolorsitamet.com is no longer online. At least not in it’s proper form. However, you can view a copy right here. As the page says upon clicking the [info...] link, “Purely coded in JavaScript. This means you can save this page locally (File → Save As…) for offline use.” Or, online use in a different place.

So, what is it? A filler text generator with a choice of Lorem Ipsum, English, Jabberwock, or Tagalog. Enjoy. Especially if you miss it.

Update: Here is the official new location, I think. Complete with background image and header (yum yum). It seems to have originally been designed by Rico Sta. Cruz. The source code refers to his old site, ambiescent.com. His new site is ricostacruz.com, and Lorem Ipsum is now hosted at a subdomain there.

Dec 30
How to install mscorefonts in Ubuntu 9.10
Posted by Nathaniel Robertson at 6:21 pm on December 30, 2009 in tech | No Comments »

It seems from what I’ve read around the interwebs, the package name might have changed. Also, in my fresh installation from the LiveCD, the Microsoft Core Fonts listed in the Ubuntu Software Center doesn’t have an install button. Fear not, though.

Open a terminal (Applications > Accessories > Terminal). Type this and press enter:

sudo apt-get install ttf-mscorefonts-installer

Wait for it to do it’s magic and you should be good to go. If you run into problems, I suggest starting at Google. Installing the MS core fonts seems to be an issue in this release, but then again maybe I don’t know because I’ve never had problems with it before.

Dec 30
Dream DNS scare
Posted by Nathaniel Robertson at 8:31 am on December 30, 2009 in tech | No Comments »

This morning I dreamed that Archie Buck1 had reported on Facebook that his internet service provider‘s DNS went down (I checked Facebook before I wrote this post: it didn’t really happen). Yikes. Because that’s my ISP now, too.

So, if your less of a computer person, you’re probably wondering what exactly DNS is. It stands for Domain Name System and this is what it does:

The most basic task of DNS is to translate hostnames such as theos.in to IP address such as 74.86.49.131. In very simple terms, it can be compared to a phone book. DNS also has other important use such as email routing.

From Vivek Gite’s post Free Fast Public DNS Servers List.

What does this mean for you or me? It means if the DNS server we use is down, we can’t type in www.google.com and get to Google because our computer doesn’t have a way to find the correct IP address behind that domain name. Same for Facebook, Twitter, or anything else.

And so, I got to thinking I should probably grab some alternate DNS server IP addresses, know how to use them, and tell you to do that, too.

First off, a list of servers (IP addresses are comma separated):

Thanks again, Vivek.

And now, how one uses them. Google has a page on how to configure Windows, OS X, and Linux to use their DNS servers. Just replace the Google Public DNS IP addresses with those you want to use (or use them if you want). Go copy that info right now (and the list of DNS servers above (or Vivek’s)). If you’re on Windows XP, try here.

And… it might never happen to you, but if it does it can be a real pain; you have an internet connection but you just can’t go anywhere (or some places). So I’d recommend stowing away that information in case it ever happens. Here are some tips at Lifehacker to figure out if your DNS servers just went kaput or something else is wrong.

  1. Friend and former principal of the private school I attend (sort of this year)
Dec 21
CRKT Drifter knife review
Posted by Matthew Hurley at 1:57 am on December 21, 2009 in gadgets, tech | No Comments »

So I recently purchased a new knife, having unfortunately lost my previous one out raking leaves on the same day, ironically, that I lost my wallet, keys, and cell phone… but that’s another story.

My last knife was a CRKT M16-13Z, which was a pretty decent knife. You can find a good review of it here. The only thing I’d add is to say that I found the clip somewhat less than satisfactory. The black paint wears off pretty quickly, at least with the kind of wear I put it through. Worse still, the three little screws that hold it on are placed in a short line or arc, and the leverage of being in my pocket as I move throughout the day would loosen them significantly. I did use Loctite® on them a few times, but it only helped partially. This did nothing to help the fact that the clip is a bit small for the knife in the first place. So not the greatest clip, but all in all a good knife — beefy and tactical, and I really liked the “flipper” opening mechanism. But now, on to the feature presentation.

My new knife is the CRKT Drifter, a budget offering of surprisingly good quality from Columbia River Knife and Tool. You can find several good video reviews on YouTube, such as this one.

At the risk of being redundant, however, I’ll reiterate the main points of interest, as well as give my personal impressions. First off, as I mentioned, the knife is affordable; pricing runs from around $18 to $25 on most retail websites. Its weight is 2.4 oz, meaning it’s easy to forget you’re carrying it. Nevertheless, it still feels quite sturdy, which brings me to build quality. The knife handle scales are made of G10, an extremely durable, lightweight material. From the Benchmade website:

G10: An extremely durable makeup of layers of fiberglass soaked in resin, then highly compressed and baked. Impervious to moisture or liquid and physically stable under climate change. Most commonly black, but is available in various colors, too.

Besides being surprisingly light and rugged, the handles are also nicely checkered for grip. The M16-13Z I previously mentioned had Zytel plastic scales, which give more grip in extreme conditions than stainless steel or titanium, but they were also thicker and heavier. These G10 scales accomplish the same thing without the thickness or weight. So, those are good, if you hadn’t got the idea. Moving on.

The blade is 2.875 inches long and made up of 8Cr14MoV steel, which is comparable to AUS8. In other words, it’s a high-quality (especially for the price) blade with good hardness and edge retention. Have a look at this steel chart for a more technical breakdown. The volcano-shaped thumb studs work very nicely, and the blade flicks open with ease. This is largely due to the Teflon and what looks like Phosphor Bronze bushings, both low-friction materials that make for a very smooth deployment. The top of the blade and the liner lock at the choil area have minor jimping, but this knife is decidedly more of an EDC (Every Day Carry) knife than a tactical model. Oh, and I like the blade shape… kind of understated and attractive. The liner lock is solid and holds the blade rigidly in place. Like the M16-13Z, the liner incorporates a little knob that corresponds to a divot on the base of the blade, meaning the blade snaps firmly shut, and requires a bit of pressure to flick open; this is a nice feature because it keeps the blade from coming open easily in a pocket or backpack. However, the Drifter does lack the LAWKS system found on many CRKT models, and even a good liner lock like this may fail under extreme torque. Again, EDC, not tactical.

Finally, the pocket clip. This is, in my opinion, one of the real strong points of the knife. Going back again to the M16-13Z, this is another area where the Drifter wins out. For a knife that CRKT markets at $60, twice the price of the Drifter, one might expect AUS8 steel instead of AUS6, Teflon *and* Phosphor Bronze Bushings, G10 scales, and a decent pocket clip. Don’t get me wrong, I like the M16 series, but the Drifter really has something going. (It does have a couple of down points too, but I’ll get to those in a minute.)

CRKT Drifter Pocket Clip

CRKT Drifter Pocket Clip

As you can see from this picture, the clip is securely mounted with three screws around the pivot screw. Furthermore, the triangular arrangement of the screws provides a much stronger bracing against day-to-day tension and leverage. To be fair, I should mention that the clip is not adjustable, so if you are left-handed or favor a tip-up carry, you may prefer something like the Spyderco Tenacious. But for a knife in this price range, you can’t expect everything, and the Drifter does quite well on most counts. I described above the shortcomings of my M16-13Z on this point, and I’m pleased to say the Drifter nails it. This clip is awesome.

Having said that, I suppose I should get to the cons, few though they are. Firstly and most importantly, the gray satin finish on the blade is something less than rugged. Maybe I’m just rough on blades, but for an EDC knife like this, I shouldn’t have the finish wear off under relatively mild abrasion. Granted, other stainless or bead-blasted blades I’ve had got scratched up after so much hard usage, but after a month this blade has a number of scratches where the satin finish has worn off, which is somewhat annoying. My input? Go with a bead-blasted finish, CRKT. And secondly — well, I guess this isn’t really a con — flicking this blade open or holding it for normal use, the knife doesn’t even fill my whole hand. The handle is 3.625 inches, which in comparison to the M16-13Z at 4.75 inches is definitely on the petite side. Then again, for a lightweight EDC knife I don’t guess it’s such a bad thing… it just feels weird when aggressively flicking it open.

So there you have it. In summary, the CRKT Drifter is an excellent-value, lightweight, rugged, liner-locking EDC knife with a quality blade and smooth deployment. I love the shape and feel of the whole knife, and definitely recommend this one.

Nov 12

Covenant Eyes posted about a job listing on their blog a couple weeks back and linked to a jobs.stackoverflow.com listing. It has since disappeared (somebody got the job?), but I managed to snag it from Google’s cache. Here it lies. And here is an excerpt that I rather thought cuts to the technical juice.

At this moment we use the following technologies:
* Python w/Django
* C/C++/C#/Objective C/
* PHP
* CentOS 5
* MySQL 4 and 5
* VMWare
Our ideal candidate has the following experiences:
* Highly experienced in Object Oriented design and related software development
practices, preferably in an Agile environment
* Experience using Python or other web scripting language to deliver enterprise web
applications
* Experience with TDD, Pair Programming, and other eXtreme Programming practices
* Experienced with Linux and VMWare
* Communicates well with both technical and non-technical team members
* Bachelors degree in Computer Science, or equivalent (5+ yrs.) work experience.

While it might not be that interesting of post materiel to start the new blog off with, it does provide a small technical window into the mysterious and hush-hush world of the Covenant Eyes behind the scenes. I think it should be preserved for those interested.

Also, an irony lies in using Linux but not producing a Linux product for the end user. Depending on how things go, you may hear more on the subject at a broken mold in the future. I’m hopeful.

Aside

As a small note, regarding the blog, everything seems to be working on the outside. We have some permissions issues on the inside; hopefully we can get the more irritating one(s) solved soon. And… the database is working fine. The filesystem is where it gets sticky.

newer posts »