Skip to main content

Gadget Wisdom

Author: David Shanske

Registration time

2011-09-25 06:23:49

Website

https://david.shanske.com/

Email

david@shanske.com

All posts by David Shanske

0 Responses

Intel to buy McAfee

SAN FRANCISCO - SEPTEMBER 22:  Intel CEO Paul ...
Image by Getty Images via @daylife

Intel, best known for its chip manufacturing, announced it is buying computer security software company McAfee for $7.68 billion.

Intel commented that today’s security approach is inadequate for current market, with the growing availability of Internet connections on phones and other devices. The industry, they state, needs a solution that combines software, hardware, and services.

In the past, energy-efficient performance and connectivity have defined computing requirements. Looking forward, security will join those as a third pillar of what people demand from all computing experiences,” said Intel CEO Paul Otellini.

Both boards of directors have unanimously approved the deal. The deal still requires McAfee shareholder approval and regulatory clearance.

Published on August 19, 2010
Full Post
0 Responses

Some CableCard Content Will Be Available to Linux

CableLabs, the independent consortium of cable operators which creates specifications for cable television compatible products has approved two measures that will permit Home Theater PCs running Linux to take advantage of some U.S. cable television content.

Cable providers can set copy control information for their content to specify how the content can be duplicated, setting it to Copy Once, Copy Never, or Copy Freely. In the United States, the Federal Communications Commission, or FCC, specified that all broadcast television channels must be set as Copy Freely. Non-premium subscription programming has to be set to at least Copy Once, but of course can be set to Copy Freely. This is where cable providers vary, as some tend to set all programs as Copy Once and others tend to set all programs as Copy Freely.

CableLabs has approved the passing of content coded as Copy Free without Digital Rights Management, or DRM. DRM allows a content provider to restrict what you can do with content once downloaded or recorded. No current Linux based software has licensed or been approved to carry content with DRM, and the decision by CableLabs means that users of MythTV, will be able to decrypt and record some content. CableLabs is charged with approving all CableCard compatible devices.

A CableCard is a PCMCIA card which a carrier is legally obligated to offer on request, which can be added to a tuner to decrypt content. However, until recently, PC CableCard peripherals were extremely limited. Two manufacturers have worked hard to open up the PC market to this hardware and have advocated for Linux support. Ceton, just recently launched its InfiniTV4 PCI-Express card, and Silicondust, creators of the popular and Linux compatible HDHomerun networked digital tuner are set to release a cablecard enabled version later this year.  Jeremy Hammer, VP of Systems integration for Ceton, and a Fedora user, advised that the Ceton product will fully support Linux and MythTV to the extent they are able.

Unfortunately for us, our service provider, Time Warner Cable, sets nearly everything to Copy Once, this rendering the device pretty much useless unless they change their ways. Comcast, however, apparently is much more open(surprising, isn’t it?), setting most of its non-premium content to Copy Freely. Being as you need to rent the cable card from the cable company anyway, we do not see the point of restricted content they know you’ve paid for.

However, we’ve never quite gotten the point of DRM in general. It more often restricts legitimate usage over actually stopping piracy. And as we’ve been reminded recently, fair use for recorded content is not to keep it on your hard drive forever. If you really like something enough to keep, you probably should buy it. You’ll get a better quality version…and if you’re lucky…extras.

Published on August 16, 2010
Full Post
0 Responses

Fun with SIP, Android, and Free Dial-In Numbers

Sipdroid 1.0.7 on a HTC Hero mobile phone
Image via Wikipedia

SIPDroid is a free VOIP client for Android that uses the standard SIP protocol. The VOIP calls will go over the data connection, be it 3G or Wi-Fi, and thus not affect your minute count.

According to their FAQ, it “uses G.711 A-law to transmit voice which needs about 80 kBit/s in each direction. This corresponds to a total of 1.2 MB per minute. A video call needs approximately twice as much. When optionally enabled for all calls Sipdroid uses GSM codec to compress to about 30 kBit/s in each direction resulting in a total of 0.5 MB per minute.”

You can use a + in a phone number in order to indicate to the Android device to use the secondary as opposed to the primary choice. You can set either the phone or SIPDroid to be the primary method of dialing. Emergency calls will always go out over the phone line.

SIPDroid prefers you set up a free or paid account at PBXes. This allows you to have all the advantages of a PBX and is already set up for connecting calls anonymously to Skype and GTalk. You can, if you use them, set a feature that will, if the data reception is bad enough, transfer the call to the phone’s cell number. You need to set up a gateway to the traditional telephone network(PSTN) from the PBX for this to work, however.

For services like dialing onto the regular phone network, you do have to pay money. But not to SIPDroid. To a VOIP provider(more on that at some point). PBXes also offers a paid account with additional features, such as a better voice codec and support for more lines.

If you don’t want to go out on the traditional telephone network, you can use the five extensions offered in the free version to talk to other people logged in(only 2 simultaneous conversations at a time, however).

Since we didn’t want to pay any money for a test, we opted to sign up for a free number with IPKall. They offer dial-in only numbers in the 206, 253, 360, and 425 area codes that will auto-forward to a SIP account you designate. We had some issues as we tried routing a call from them to PBXes and then to a phone on a wi-fi connection logged into the PBXes server. A few times it didn’t seem to connect, and when it did, there was some lag. But it was free and when it worked, it was clear. We also experimented with SIPGate, which offers a free dial-in phone number as well.

We could see a lot of potential uses for this technology. VoIp is nothing new. We’ve played with it before. But, think of the possibilities. A little private network your phone can always be connected to that will alow you to communicate airtime free? Let’s go a step further. We know of someone who lived on a college campus with good wi-fi coverage and considered having an iPod Touch and Skype or such instead of a phone.

As public wi-fi and open wi-fi becomes more available, and with fewer people calling and more people using data…we could imagine a future where people opt for a data only connection and the occasional SIP call. The possibilities are endless.

And we’ll have more on playing with SIP later.

Published on July 25, 2010
Full Post
0 Responses

Simple Power Management Under Fedora

SATA-Kabeladapter
Image via Wikipedia

This post is a result of experimentation, but also of some information from the RHEL6 Power Management Guide. Most people tend to ignore power management, but remember, power management can result in lower utility bills as well as increased life of components.

First, turn on CPUSpeed if it isn’t on. It may require enabling BIOS settings. Look for names like SpeedStep, Cool’n’Quiet, PowerNow!, ACPI, SMART to enable in BIOS. Then, set CPUSpeed to run. CPUSpeed dynamically adjusts the speed and voltage of the CPU based on demand.

While you’re in BIOS, take the opportunity to disable any system piece you aren’t using. For example, your parallel port.

Tuned is a daemon that monitors the use of system components and dynamically tunes system settings based on that monitoring information. A detailed system configuration might be too time-consuming for most. Most people will not do certain things unless it is easy and does not inconvenience them too much. Thus, tuned comes with preset profiles.

Active-State Power Management (ASPM) saves power in the Peripheral Component Interconnect Express (PCI Express or PCIe) subsystem by setting a lower power state for PCIe links when the devices to which they connect are not in use. ASPM controls the power state at both ends of the link, and saves power in the link even when the device at the end of the link is in a fully powered-on state.

Aggressive Link Power Management (ALPM) is a power-saving technique that helps the disk save power by setting a SATA link to the disk to a low-power setting during idle time (that is when there is no I/O). ALPM automatically sets the SATA link back to an active power state once I/O requests are queued to that link.

tuned has the following profiles:

  • default – lowest impact on power savings, only enables CPU and Disk Power Savings
  • desktop-powersave – designed for desktops. Enables CPU, Disk, and Ethernet savings, as well as ALPM power saving for SATA.
  • server-powersave – Designed for Servers. Enables ALPM powersaving for SATA host adapters, disables CD-ROM polling through HAL (refer to the hal-disable-polling man page) as well as the CPU and disk power controls.
  • laptop-ac-powersave – medium-impact profile for laptops on AC. Enables CPU, ethernet, disk, wi-fi, and ALPM power saving for SATA.
  • laptop-battery-powersave – high-impact profile for laptops on battery. All the same from the AC-powersave, plus multi-core power-savings
    scheduler for low wakeup systems and makes sure that the ondemand governor is active and that AC97 audio power-saving is enabled. Will work for any system, not just a laptop, there will be a noticeable impact on performance.
  • throughput-performance – server profile for throughput performance. Disables power saving mechanisms and enables sysctl settings that improve the throughput performance of your disk and network I/O, and switches to the deadline scheduler
  • latency-performance – server profile for typical latency performance tuning. It disables power saving mechanisms and enables sysctl settings that improve the latency performance of your network I/O.

To list available profiles,  use the command tuned-adm list.

To switch to another profile, use tuned-adm profile profile_name.

Reducing the amount of work performed by the hardware is the best way to save power. Applications that request unnecessary work prevent hardware from entering a reduced state. Fedora has already done a lot of work in reducing unnecessary processes, but it can’t do everything. Audit running processes and discontinue anything unnecessary.

But, let’s address one concern. By turning things off or slowing them down, it means you may have a few seconds wait while they reactivate. That may be a downside, but the secret is to find a balance between always on and always off. It is better to turn it on than leave it off. Plan well early on.

We’ll have more on this later.

Published on July 19, 2010
Full Post
0 Responses

So You Want to Only Use One Microblogging Service

A highly simplified version of the RSS feed ic...
Image via Wikipedia

Last time, we discussed some of the things we’d learned about Status.net and the OStatus standard. Now, our understanding is far from perfect, but we keep trying to learn more. This is some of our attempt to summarize it.

So, here we are once again looking at how other services play with Status.net. We’ve covered the fact that Twitter doesn’t. Although, since Twitter has an API, a bridge has been created that imports the tweets into your timeline as notices. There is a Facebook bridge as well, but we have yet to test it, as we aren’t Facebook users.

But many sites do support standards that Status.net can use. A service has to be PuSh enabled. OStatus is reliant on the fact that most sites noawadays put out an Atom or RSS feed. The problem is real-time notification. That is where PubSubHubbub(PuSh) comes in. It is a simple extension to RSS and Atom feeds for real-time subscriptions. Basically, the feed declares a URL for the Hub server. Now, instead of the subscriber server/reader repeatedly polling the site to look for updates, it can register with the hub to be notified of updates.

That is how OStatus is built. Each site builds a feed of updates and uses PuSh subscriptions to send relevant updates to other sites, and each site is responsible for pushing those updates to the correct user. The rest of OStatus is also built on top of Atom feeds, including extensions to describe social activities like replies, following, user profile information, etc. As their wiki describes it: “the real beauty of it is that at this point we[OStatus] already have something useful, without anything StatusNet-specific. In fact you can already subscribe to someone’s public Google Buzz feed as an OStatus remote user, and they haven’t done anything special for us!

So, there is one example. You don’t need to be on Google Buzz. If Google Buzz supports PuSh and OStatus, you can subscribe to their feed. Let’s go a step further:

  • WordPress – All the blogs on WordPress.com have PuSh enabled. If you run a WordPress blog elsewhere, you can set up your site as a Hub using a plugin like PushPress. If you are using Feedburner with Pingshot enabled, PuSh is already enabled and no plugin is needed. Sound useful? Why not subscribe to this blog, which is PuSh enabled, by entering the URL into the Remote Subscription option on your identi.ca/status.net account?
  • Tumblr – We tried the test-tumblr that the Status.net wiki used and that was recognized, but a random Tumblr site would not work.
  • Google Buzz – As mentioned above…we tried a few accounts and it does work. It is, of course, one-way.
  • Posterous – It would allow us to subscribe to a random posterous account we picked.

Status.net is working on some workarounds for additional integrations, but any established site can become PuSh enabled and thus support subscriptions in status.net. With a little extra work supporting the standard, they can support activity streams, replies, and other user events without any change in the user experience, except opening it up to interaction with any other site that supports those standards.

Imagine this a few months/years down the road if people support it. It would be like Email. Anyone can self-host or sign up for a social media account on whatever server they want, but anyone on any other server can communicate with them.

We’re in on the ground floor. We’re on our status.net which imports Twitter and lets us subscribe to any PuSh enabled site. And since we run it, we don’t have to worry about the service being discontinued or falling out of favor, because the next service is likely to be…if not immediately compatible, eventually bridged.

In the meantime, check out supporting PuSh on your site. Next time, we hope to have more to say about WebFinger…or how to tie your identity to a website.

Published on July 11, 2010
Full Post
3 Responses

So You Want to Take Control of Your MicroBlogging

Image representing StatusNet as depicted in Cr...
Image via CrunchBase

If you haven’t heard of Twitter, you may have been living under a rock for the last few years. If you aren’t quite sure what it is, then you are not alone. People who have Twitter accounts aren’t quite sure what to do with them, and some people will disagree on the point of Twitter.

Twitter is the most popular example of microblogging, although Facebook, extremely popular, is mostly such a service. Twitter limits updates…or tweets to 140 characters. This limit has made URL shorteners popular. There are advantages to the brevity of microblogging, and inserting URL allows you to elaborate elsewhere. We use it not only to interact with those who share interests, but as a real-time substitute for RSS. RSS, or Really Simple Syndication, is the standard for subscribing to blogs.

So, although some have agreed with us, it is important we don’t miss important information. Many Twitter clients only go back so far. And your Tweets are held closely by Twitter itself. Twitter can cancel your account at any time…they don’t need a reason. While you can appeal it, they owe you nothing. You aren’t paying for the service.

As Backupify, a service that backs up cloud services to its site for you, and provides them in downloadable form, stated, “Imagine if your phone company behaved in a similar fashion, disconnecting your phone number(s) because it didn’t care for the phone conversations you were having. Of course, that could never happen — and not (just) because of government regulation. You pay for your phone service, so the phone company has a certain financial incentive to care for your business. Facebook, Twitter, and most web apps are free. Zero dollars buys you zero service level guarantees. Never forget that you have access to Twitter and Facebook only so long as it is convenient and beneficial to them.

Now, we do have an account with them, but we chose a different route. Being open-source enthusiasts, we looked for an open-source solution. We came up with StatusNet. It is a microblogging server written in PHP that implements the OStatus standard. OStatus is an open standard that allows people on different social networks to follow each other. It supports PUSH notification.

Diaspora, if it gets off the ground, is a proposal to replace Facebook with an open distributed platform. Anyone could run the software, thus allowing them to control their user data locally. Their local software would interact with other people’s to form a decentralized social network. It would thus work like an email address. Anyone could host your email…but you could choose to contract with someone to do so, and thus ensure a greater responsibility on the part of the provider, or choose a free option. The idea sounds great, and we wish them luck…

Unfortunately, without interoperability with existing services, it will likely occupy the same space as Identi.ca, the most popular and the original Status.net service. There are a lot of people happily on Identi.ca, but it is not a mainstream product.

We already had an Identi.ca account, but now we are running our own Status.net server. And Status.net supports a Twitter Bridge. It allows you to automatically send your notices to Twitter, send local “@” replies to Twitter, subscribe to your Twitter friends on the service, and import your Friends Timeline. The last is not enabled for Identi.ca, but allows you to import your friend’s tweets into your timeline. So, the Status.net server imports the Twitter data, which means that you have it on a server controlled by you.

Now, running your own server somewhere may be a bit too much for you. So Status.net offers single user instances, as well as private community instances. It is extensible with plugins. So any functionality you want could be built on top of it, or interact with.

Using the open standards it supports out of the box, you can subscribe to people from your status.net account who are on Google Buzz, Tumblr, Posterous, WordPress.com, Livejournal…etc.  140 characters isn’t required. You can set your instance to support 140 characters(Twitter Standard), or more or less than that.

Interoperability will hopefully lead to longevity. Even famous Twitter account ShitMyDadSays, has migrated to a Status.net instance. Having accounts on every single service can be confusing. If you can have an account on one service…and link to people on other services, isn’t that better?

We tried to ask a few questions of the founder of Status.net, in regards to how people were using the Twitter integration specifically, but the question was a bit open-ended, and thus we did not quite get all the answers we’re still looking for. Either way, it’s fun to play with.

More on this to come. In the meantime, any questions?

Published on June 27, 2010
Full Post
0 Responses

SouthEast Linux Fest is Over

This weekend, our Editor was down at the SouthEast Linux Fest in South Carolina. Three fun filled days of interacting, speakers, vendors, free stuff, and oddly enough, playing board games. The panels put a lot of interesting thoughts on the table, and over the coming weeks, we plan to discuss a few of them.

These sort of discussions always light a fire under us. Already, we’ve started hardening our servers in various ways, started looking at a new way to explain MythTV to the guys over at HTPCentric, got scared about IPV6, etc.

SELF’s speakers were all filmed, and the video will be available eventually. We’ll post links when available.

Published on June 15, 2010
Full Post
1 Response

Planning for and Optimizing Solid State Drives

This past week, we installed our first Solid State Drive. We had a lot of concern about this technology early on. There were reports of gradual performance degradation.This has been improved, however, and we’ll discuss some ways to better optimize your experience. Hopefully, in future Linux releases some of these options will be configured automatically

The biggest development that has been made to preserve longevity on these drives is TRIM. The TRIM command allows the operating system to inform the drive which data blocks are no longer in use and can be wiped. TRIM is supported beginning in kernel 2.6.33 and can be enabled under Linux by editing the mount options to include the discard option, such as in the below example.

/dev/sda1 / ext4 discard,defaults

Other suggestions include removing journaling and limiting read and writes to the drive. This will extend life as well, but without journaling, there is some risk of data loss in the event of a crash. However, Theodore Tso debunked this thought last year in a blog post, in which he concluded that the overhead is minimal.

  • Another Linux-based tuning technique is to disable Linux from writing the last accessed time to files. This can be done by adding noatime to the above command. Realistically, on many computers the last accessed time is not extremely important. Do not confuse accessed time with the last modified time.
  • Add the option elevator=deadline to your grub boot configuration to use the deadline disk scheduler. If you have a slower CPU go for the noop scheduler. The default schedulers are optimized for traditional hard drives.
  • Move your Firefox Cache to RAM – Open Firefox and enter about:config in the location bar.  Right-click and choose the option New->String.  Enter “browser.cache.disk.parent_directory” for the preference name, and for the string value enter “/dev/shm/”. That will also reduce writes and improve performance.
  • Reduce kernel swappiness(the tendency for the OS to swap from physical memory to a hard drive based swap file). Add vm.swappiness  = ? to /etc/sysctl.conf. Default is 60, out of 0-100. Some suggest lowering it all the way to 0. Experiment with what works for you. This suggestion is not limited to systems with SSDs.

Bear in mind for the Firefox and Swappiness suggestions, you should have enough RAM to support reducing the swap and moving the cache to memory.

Now that we’ve covered optimizing the solid state drive, let’s discuss usage. We used the Kingston 30GB SSD, reviewed here in comparison to the Intel value SSD, which we also considered. The SSD, because of price and size considerations, is not ideal for all functions. You can see a picture of it just before install in the laptop we used to write this blog entry above.

SSDs are small in size, but speedy. Their best use is as an operating system drive. In our first test case, which is a laptop, they are the only drive. However, the laptop is mostly OS only. All media and other files are stored on a file server. With this drive, the laptop flies along and is extremely quiet as an SSD makes no noise. We have not done any battery life tests, but there is some evidence from those who have that some SSDs may be less energy efficient than conventional hard drives.

In conclusion, with the price of SSDs continuing to drop, it is a good time to start considering it as a boot/OS drive for your systems. Now that we’ve grown comfortable with its usage, we plan on expanding it to future renovations, including in our file server.

Update(06/03/10): The day after we wrote this, AnandTech released a review of three SSDs, including our Kingston 30GB as well as the Onyx and Intel budget SSDs. Certainly makes us feel better about our purchase.

Published on June 2, 2010
Full Post
0 Responses

Review: MJSI Hydroright Dual Flush Converter

After writing about a dual flush retrofit kit, we became enthused about the idea of installing one of these ourselves. We don’t have a plumber on staff, so our intrepid editor was forced to play with his own toilet. Please excuse if our terminology falls short as we try to explain basic toilet technology.

Our toilet is a 1.6 Gallon model installed around 2000. A traditional toilet uses a simple system. The ballcock floats on top of the water. when the tank is emptied, the ballcock lowers, thus activating the fill valve until the ballcock is lifted up to the off position by the water. The fill valve on this toilet was replaced with a newer, more reliable design, the concentric-float fill valve, and thus there is no ballcock. The concentric design is required for this retrofit kit.

The model is the MJSI HYR270 HydroRight Drop-In Dual Flush Converter, purchased at a local Home Depot. The nice thing about this design is that it does not require removal of the toilet tank to install. If you have to go as far as to remove the toilet tank, you might as well buy a new toilet with integrated dual flush, which we recommend if you have a really old toilet.

If you need to replace your fill valve with a concentric float one, which as mentioned is required, MJSI makes an adjustable one that can also help you save water, and sometimes it is better to get components from the same manufacturer, as you can be reasonably certain they work together.

As you can see in the image, this toilet has a typical flapper. The flapper is a rubber stopper that is connected to the handle by a chain. When you press the handle, it pulls up, allowing water to empty from tank to bowl. For this retrofit, we will be replacing the flapper with the retrofit unit.

Installation was surprisingly easy. First we shut off the water and drained the tank. Then we removed the handle and the flapper and set them inside in case the mechanism did not work. The retrofit mechanism slips in place of the flapper and is a tall unit, so you need sufficient clearance. It is then secured with a zip tie in the back to the overflow tube. The overflow tube is next to the drain(where the flapper is normally inserted), and serves the purpose of preventing the tank from overflowing.

A button is then inserted into the hole where the handle once was, and attached to the control box, which is connected to the retrofit unit by a blue cable(as pictured)

Then, after following some calibration tests, your toilet is ready to be more water efficient. Fun, huh? The actual installation only took about twenty minutes, and we’re sure it would be faster the second time. We’ve given some time to test and the toilet is running without problem. The button mechanism has a low flush for liquid waste and a high flush for solid waste.

The only problem is making sure guest know how to properly use the new mechanism, but that is fairly easy to explain. So, for less than thirty dollars, we’ve committed to water savings, efficiency…and it makes for an interesting conversation piece.

Any questions?

[asa]B002NKRR7Y[/asa]

Published on June 2, 2010
Full Post
0 Responses

Froyo is Coming…Are you Ready?

Giant Google Android statue with puppy and cupcake
Image by ToastyKen via Flickr

Android 2.2 is here…well, not on our Android devices. But Google announced the new version, codenamed Froyo. Here are some highlights:

  • Dedicated shortcuts on the Home Screen for Phone, Launcher, and Browser.
  • Password unlock in addition to pattern unlock
  • New UI for camera controls
  • Portable Hotspot built-in
  • Improved Browser Performance
  • Improved Application and Memory Performance
  • New Media Framework
  • Voice Dialing over Bluetooth
  • App Storage on SD card
  • Apps Can Now do Data Backup and Restore
  • Car Mode and Night Mode controls and configurations to adjust their user interface for these situations
  • Adobe Flash support(More on this here)
  • Desktop to Mobile functions

We don’t have any pictures, but Engadget does, and they can be found here.

Well, voice dialing over Bluetooth has been sadly missing, and is a safety concern. With the increased public program to prevent texting while driving, and to encourage safety, it seems this is the best move. We were outraged this option wasn’t enabled initially, as were many.

The keynote also demonstrated being able to initiate app installation and other functions on your desktop, and transfer that to the phone. This, and automatic updates, also coming, are two features that people have felt are lacking in the Android marketplace. Third party apps have tried to fill the gaps, such as AppBrain, which is very useful, but still needs to call the Android Market to install.

Hopefully, it will be in our hands soon.

Published on May 20, 2010
Full Post

Get New Posts By Email